0001 TI LMU (Lighting Management Unit) device tree bindings
0002
0003 TI LMU driver supports lighting devices below.
0004
0005 Name Child nodes
0006 ------ ---------------------------------
0007 LM3631 Backlight and regulator
0008 LM3632 Backlight and regulator
0009 LM3633 Backlight, LED and fault monitor
0010 LM3695 Backlight
0011 LM36274 Backlight and regulator
0012
0013 Required properties:
0014 - compatible: Should be one of:
0015 "ti,lm3631"
0016 "ti,lm3632"
0017 "ti,lm3633"
0018 "ti,lm3695"
0019 "ti,lm36274"
0020 - reg: I2C slave address.
0021 0x11 for LM3632
0022 0x29 for LM3631
0023 0x36 for LM3633
0024 0x63 for LM3695
0025 0x11 for LM36274
0026
0027 Optional properties:
0028 - enable-gpios: A GPIO specifier for hardware enable pin.
0029 - ramp-up-us: Current ramping from one brightness level to
0030 the a higher brightness level.
0031 Range from 2048 us - 117.44 s
0032 - ramp-down-us: Current ramping from one brightness level to
0033 the a lower brightness level.
0034 Range from 2048 us - 117.44 s
0035 - ti,brightness-resolution - This determines whether to use 8 bit brightness
0036 mode or 11 bit brightness mode. If this value is
0037 not set the device is defaulted to the preferred
0038 8bit brightness mode per 7.3.4.1 of the data
0039 sheet. This setting can either be in the parent
0040 node or as part of the LED child nodes. This
0041 is determined by the part itself if the strings
0042 have a common brightness register or individual
0043 brightness registers.
0044 The values are 255 (8bit) or 2047 (11bit).
0045
0046 Required node:
0047 - backlight: All LMU devices have backlight child nodes.
0048 For the properties, please refer to [1].
0049
0050 Optional nodes:
0051 - fault-monitor: Hardware fault monitoring driver for LM3633 and LM3697.
0052 Required properties:
0053 - compatible: Should be one of:
0054 "ti,lm3633-fault-monitor"
0055 - leds: LED properties for LM3633. Please refer to [2].
0056 LED properties for LM36274. Please refer to [4].
0057 - regulators: Regulator properties for LM3631 and LM3632.
0058 Please refer to [3].
0059
0060 [1] ../leds/backlight/ti-lmu-backlight.txt
0061 [2] ../leds/leds-lm3633.txt
0062 [3] ../regulator/lm363x-regulator.txt
0063 [4] ../leds/leds-lm36274.txt
0064
0065 lm3631@29 {
0066 compatible = "ti,lm3631";
0067 reg = <0x29>;
0068
0069 regulators {
0070 compatible = "ti,lm363x-regulator";
0071
0072 vboost {
0073 regulator-name = "lcd_boost";
0074 regulator-min-microvolt = <4500000>;
0075 regulator-max-microvolt = <6350000>;
0076 regulator-always-on;
0077 };
0078
0079 vcont {
0080 regulator-name = "lcd_vcont";
0081 regulator-min-microvolt = <1800000>;
0082 regulator-max-microvolt = <3300000>;
0083 };
0084
0085 voref {
0086 regulator-name = "lcd_voref";
0087 regulator-min-microvolt = <4000000>;
0088 regulator-max-microvolt = <6000000>;
0089 };
0090
0091 vpos {
0092 regulator-name = "lcd_vpos";
0093 regulator-min-microvolt = <4000000>;
0094 regulator-max-microvolt = <6000000>;
0095 regulator-boot-on;
0096 };
0097
0098 vneg {
0099 regulator-name = "lcd_vneg";
0100 regulator-min-microvolt = <4000000>;
0101 regulator-max-microvolt = <6000000>;
0102 regulator-boot-on;
0103 };
0104 };
0105
0106 backlight {
0107 compatible = "ti,lm3631-backlight";
0108
0109 lcd_bl {
0110 led-sources = <0 1>;
0111 ramp-up-us = <300000>;
0112 };
0113 };
0114 };
0115
0116 lm3632@11 {
0117 compatible = "ti,lm3632";
0118 reg = <0x11>;
0119
0120 enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; /* PC2 */
0121
0122 regulators {
0123 compatible = "ti,lm363x-regulator";
0124
0125 enable-gpios = <&pioC 0 GPIO_ACTIVE_HIGH>,
0126 <&pioC 1 GPIO_ACTIVE_HIGH>;
0127
0128 vboost {
0129 regulator-name = "lcd_boost";
0130 regulator-min-microvolt = <4500000>;
0131 regulator-max-microvolt = <6400000>;
0132 regulator-always-on;
0133 };
0134
0135 vpos {
0136 regulator-name = "lcd_vpos";
0137 regulator-min-microvolt = <4000000>;
0138 regulator-max-microvolt = <6000000>;
0139 };
0140
0141 vneg {
0142 regulator-name = "lcd_vneg";
0143 regulator-min-microvolt = <4000000>;
0144 regulator-max-microvolt = <6000000>;
0145 };
0146 };
0147
0148 backlight {
0149 compatible = "ti,lm3632-backlight";
0150
0151 pwms = <&pwm0 0 10000 0>; /* pwm number, period, polarity */
0152 pwm-names = "lmu-backlight";
0153
0154 lcd {
0155 led-sources = <0 1>;
0156 pwm-period = <10000>;
0157 };
0158 };
0159 };
0160
0161 lm3633@36 {
0162 compatible = "ti,lm3633";
0163 reg = <0x36>;
0164
0165 enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>;
0166
0167 backlight {
0168 compatible = "ti,lm3633-backlight";
0169
0170 main {
0171 label = "main_lcd";
0172 led-sources = <1 2>;
0173 ramp-up-us = <500000>;
0174 ramp-down-us = <500000>;
0175 };
0176
0177 front {
0178 label = "front_lcd";
0179 led-sources = <0>;
0180 ramp-up-us = <1000000>;
0181 ramp-down-us = <0>;
0182 };
0183 };
0184
0185 leds {
0186 compatible = "ti,lm3633-leds";
0187
0188 chan1 {
0189 label = "status";
0190 led-sources = <1>;
0191 led-max-microamp = <6000>;
0192 };
0193
0194 chan345 {
0195 label = "rgb";
0196 led-sources = <3 4 5>;
0197 led-max-microamp = <10000>;
0198 };
0199 };
0200
0201 fault-monitor {
0202 compatible = "ti,lm3633-fault-monitor";
0203 };
0204 };
0205
0206 lm3695@63 {
0207 compatible = "ti,lm3695";
0208 reg = <0x63>;
0209
0210 enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>;
0211
0212 backlight {
0213 compatible = "ti,lm3695-backlight";
0214
0215 lcd {
0216 label = "bl";
0217 led-sources = <0 1>;
0218 };
0219 };
0220 };
0221
0222 lm36274@11 {
0223 compatible = "ti,lm36274";
0224 #address-cells = <1>;
0225 #size-cells = <0>;
0226 reg = <0x11>;
0227
0228 enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>;
0229 regulators {
0230 #address-cells = <1>;
0231 #size-cells = <0>;
0232 compatible = "ti,lm363x-regulator";
0233
0234 enable-gpios = <&pioC 0 GPIO_ACTIVE_HIGH>,
0235 <&pioC 1 GPIO_ACTIVE_HIGH>;
0236
0237 vboost {
0238 regulator-name = "lcd_boost";
0239 regulator-min-microvolt = <4000000>;
0240 regulator-max-microvolt = <7150000>;
0241 regulator-always-on;
0242 };
0243
0244 vpos {
0245 regulator-name = "lcd_vpos";
0246 regulator-min-microvolt = <4000000>;
0247 regulator-max-microvolt = <6500000>;
0248 };
0249
0250 vneg {
0251 regulator-name = "lcd_vneg";
0252 regulator-min-microvolt = <4000000>;
0253 regulator-max-microvolt = <6500000>;
0254 };
0255 };
0256
0257 backlight {
0258 #address-cells = <1>;
0259 #size-cells = <0>;
0260 compatible = "ti,lm36274-backlight";
0261
0262 led@0 {
0263 reg = <0>;
0264 led-sources = <0 2>;
0265 label = "white:backlight_cluster";
0266 linux,default-trigger = "backlight";
0267 };
0268 };
0269 };