Path: csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod From: Lee Jones Newsgroups: linux.kernel Subject: Re: [PATCH 1/2] Documentation: dt-bindings: mfd: add TI LMU device binding information Date: Tue, 14 Mar 2017 17:50:01 +0100 Message-ID: References: Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=viYG+5WU8RudL6iNmQtYRVXPxYcTUVxqTAG62JLP4yY=; b=MPPb7WgfPReCYm5PwLXXwvmMTRWhvpjhZyt09YWu3ZYCsQWrezKax1kr0tuzlRP4bN vKXhxnLHHYib9vwXqs6ENwwWlBxmMIld095lLSiM7F+ear6XHQmCiFLXY7foL6wSIi3S jSEpOBTzXXOyxFnRPhFAHKHxzpeSICKIJtMQM= X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=viYG+5WU8RudL6iNmQtYRVXPxYcTUVxqTAG62JLP4yY=; b=tOb9+d5ukl7miIBha3RjgMPW3pwn6zd2ZZJ/uem5AVHwor8YKulGgfT4GIxIDlWWbO DYk1bJR8T2LVHydNwoL0EBuMPBPFP331yyEpbNnQIbjdXJC2OyST4/H43Hs+Rjj7FxO0 r0vzsL3pZNFPGpTRpM3lrGM+l8D39yhCI3QCBt6bIAZRyXe+Gdbzf5ynnt6+FAi7sLNH S/IwBSG7Ld0qPJ10ngRaXCspdbACRqKl90iVQmnGXh8n1h1HdIIirL+P+l66fVaRWvKU oOHvEFw4TwQOilRnlVkEXZcDPl4p23X5q6F2VO3RaLWbgCjY3juUvJUI1jBMb7ptlowr 9kPw== X-Gm-Message-State: AMke39lad8t5h+22J0+2dsTcxEKLtJSvwIiTOTgHSNs6+Lvzio1qie6or+c+O3w6oezE/qBi X-Received: by 10.223.136.213 with SMTP id g21mr33633775wrg.189.1489509870414; Tue, 14 Mar 2017 09:44:30 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.6.2-neo (2016-08-21) Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 269 Organization: linux.* mail to news gateway X-Original-Cc: Rob Herring , Tony Lindgren , linux-kernel@vger.kernel.org X-Original-Date: Tue, 14 Mar 2017 16:44:27 +0000 X-Original-Message-ID: <20170314164427.ldat4tm6bpboknpw@dell> X-Original-References: <20170228064515.7320-1-milo.kim@ti.com> <20170228064515.7320-2-milo.kim@ti.com> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1600682 On Tue, 28 Feb 2017, Milo Kim wrote: > This patch describes overall binding for TI LMU MFD devices. > > Acked-by: Lee Jones > Acked-by: Rob Herring > Signed-off-by: Milo Kim > --- > Documentation/devicetree/bindings/mfd/ti-lmu.txt | 243 +++++++++++++++++++++++ > 1 file changed, 243 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mfd/ti-lmu.txt Applied, thanks. > diff --git a/Documentation/devicetree/bindings/mfd/ti-lmu.txt b/Documentation/devicetree/bindings/mfd/ti-lmu.txt > new file mode 100644 > index 000000000000..c885cf89b8ce > --- /dev/null > +++ b/Documentation/devicetree/bindings/mfd/ti-lmu.txt > @@ -0,0 +1,243 @@ > +TI LMU (Lighting Management Unit) device tree bindings > + > +TI LMU driver supports lighting devices below. > + > + Name Child nodes > + ------ --------------------------------- > + LM3532 Backlight > + LM3631 Backlight and regulator > + LM3632 Backlight and regulator > + LM3633 Backlight, LED and fault monitor > + LM3695 Backlight > + LM3697 Backlight and fault monitor > + > +Required properties: > + - compatible: Should be one of: > + "ti,lm3532" > + "ti,lm3631" > + "ti,lm3632" > + "ti,lm3633" > + "ti,lm3695" > + "ti,lm3697" > + - reg: I2C slave address. > + 0x11 for LM3632 > + 0x29 for LM3631 > + 0x36 for LM3633, LM3697 > + 0x38 for LM3532 > + 0x63 for LM3695 > + > +Optional property: > + - enable-gpios: A GPIO specifier for hardware enable pin. > + > +Required node: > + - backlight: All LMU devices have backlight child nodes. > + For the properties, please refer to [1]. > + > +Optional nodes: > + - fault-monitor: Hardware fault monitoring driver for LM3633 and LM3697. > + Required properties: > + - compatible: Should be one of: > + "ti,lm3633-fault-monitor" > + "ti,lm3697-fault-monitor" > + - leds: LED properties for LM3633. Please refer to [2]. > + - regulators: Regulator properties for LM3631 and LM3632. > + Please refer to [3]. > + > +[1] ../leds/backlight/ti-lmu-backlight.txt > +[2] ../leds/leds-lm3633.txt > +[3] ../regulator/lm363x-regulator.txt > + > +lm3532@38 { > + compatible = "ti,lm3532"; > + reg = <0x38>; > + > + enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; > + > + backlight { > + compatible = "ti,lm3532-backlight"; > + > + lcd { > + led-sources = <0 1 2>; > + ramp-up-msec = <30>; > + ramp-down-msec = <0>; > + }; > + }; > +}; > + > +lm3631@29 { > + compatible = "ti,lm3631"; > + reg = <0x29>; > + > + regulators { > + compatible = "ti,lm363x-regulator"; > + > + vboost { > + regulator-name = "lcd_boost"; > + regulator-min-microvolt = <4500000>; > + regulator-max-microvolt = <6350000>; > + regulator-always-on; > + }; > + > + vcont { > + regulator-name = "lcd_vcont"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <3300000>; > + }; > + > + voref { > + regulator-name = "lcd_voref"; > + regulator-min-microvolt = <4000000>; > + regulator-max-microvolt = <6000000>; > + }; > + > + vpos { > + regulator-name = "lcd_vpos"; > + regulator-min-microvolt = <4000000>; > + regulator-max-microvolt = <6000000>; > + regulator-boot-on; > + }; > + > + vneg { > + regulator-name = "lcd_vneg"; > + regulator-min-microvolt = <4000000>; > + regulator-max-microvolt = <6000000>; > + regulator-boot-on; > + }; > + }; > + > + backlight { > + compatible = "ti,lm3631-backlight"; > + > + lcd_bl { > + led-sources = <0 1>; > + ramp-up-msec = <300>; > + }; > + }; > +}; > + > +lm3632@11 { > + compatible = "ti,lm3632"; > + reg = <0x11>; > + > + enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; /* PC2 */ > + > + regulators { > + compatible = "ti,lm363x-regulator"; > + > + ti,lcm-en1-gpio = <&pioC 0 GPIO_ACTIVE_HIGH>; /* PC0 */ > + ti,lcm-en2-gpio = <&pioC 1 GPIO_ACTIVE_HIGH>; /* PC1 */ > + > + vboost { > + regulator-name = "lcd_boost"; > + regulator-min-microvolt = <4500000>; > + regulator-max-microvolt = <6400000>; > + regulator-always-on; > + }; > + > + vpos { > + regulator-name = "lcd_vpos"; > + regulator-min-microvolt = <4000000>; > + regulator-max-microvolt = <6000000>; > + }; > + > + vneg { > + regulator-name = "lcd_vneg"; > + regulator-min-microvolt = <4000000>; > + regulator-max-microvolt = <6000000>; > + }; > + }; > + > + backlight { > + compatible = "ti,lm3632-backlight"; > + > + pwms = <&pwm0 0 10000 0>; /* pwm number, period, polarity */ > + pwm-names = "lmu-backlight"; > + > + lcd { > + led-sources = <0 1>; > + pwm-period = <10000>; > + }; > + }; > +}; > + > +lm3633@36 { > + compatible = "ti,lm3633"; > + reg = <0x36>; > + > + enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; > + > + backlight { > + compatible = "ti,lm3633-backlight"; > + > + main { > + label = "main_lcd"; > + led-sources = <1 2>; > + ramp-up-msec = <500>; > + ramp-down-msec = <500>; > + }; > + > + front { > + label = "front_lcd"; > + led-sources = <0>; > + ramp-up-msec = <1000>; > + ramp-down-msec = <0>; > + }; > + }; > + > + leds { > + compatible = "ti,lm3633-leds"; > + > + chan1 { > + label = "status"; > + led-sources = <1>; > + led-max-microamp = <6000>; > + }; > + > + chan345 { > + label = "rgb"; > + led-sources = <3 4 5>; > + led-max-microamp = <10000>; > + }; > + }; > + > + fault-monitor { > + compatible = "ti,lm3633-fault-monitor"; > + }; > +}; > + > +lm3695@63 { > + compatible = "ti,lm3695"; > + reg = <0x63>; > + > + enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; > + > + backlight { > + compatible = "ti,lm3695-backlight"; > + > + lcd { > + label = "bl"; > + led-sources = <0 1>; > + }; > + }; > +}; > + > +lm3697@36 { > + compatible = "ti,lm3697"; > + reg = <0x36>; > + > + enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; > + > + backlight { > + compatible = "ti,lm3697-backlight"; > + > + lcd { > + led-sources = <0 1 2>; > + ramp-up-msec = <200>; > + ramp-down-msec = <200>; > + }; > + }; > + > + fault-monitor { > + compatible = "ti,lm3697-fault-monitor"; > + }; > +}; -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog