ARM: ux500: register LP5521 LEDs in the device tree
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 22 May 2013 08:09:39 +0000 (10:09 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 27 May 2013 12:07:13 +0000 (14:07 +0200)
Based on pending device tree support in the LP55xx drivers
we can add the correct LED and channel configuration from the
ux500 device tree for all HREF variants.

Cc: Bryan Wu <cooloney@gmail.com>
Acked-by: Milo Kim <Milo.Kim@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/href.dtsi

index 62523f67e01aae87be22388e00c81c00428ade4d..e3154296c39a85767326aaa76cdf09915e6a5be7 100644 (file)
                };
 
                i2c@80128000 {
-                       lp5521@0x33 {
-                               compatible = "lp5521";
+                       lp5521@33 {
+                               compatible = "national,lp5521";
                                reg = <0x33>;
+                               label = "lp5521_pri";
+                               clock-mode = /bits/ 8 <2>;
+                               chan0 {
+                                       led-cur = /bits/ 8 <0x2f>;
+                                       max-cur = /bits/ 8 <0x5f>;
+                               };
+                               chan1 {
+                                       led-cur = /bits/ 8 <0x2f>;
+                                       max-cur = /bits/ 8 <0x5f>;
+                               };
+                               chan2 {
+                                       led-cur = /bits/ 8 <0x2f>;
+                                       max-cur = /bits/ 8 <0x5f>;
+                               };
                        };
-
-                       lp5521@0x34 {
-                               compatible = "lp5521";
+                       lp5521@34 {
+                               compatible = "national,lp5521";
                                reg = <0x34>;
+                               label = "lp5521_sec";
+                               clock-mode = /bits/ 8 <2>;
+                               chan0 {
+                                       led-cur = /bits/ 8 <0x2f>;
+                                       max-cur = /bits/ 8 <0x5f>;
+                               };
+                               chan1 {
+                                       led-cur = /bits/ 8 <0x2f>;
+                                       max-cur = /bits/ 8 <0x5f>;
+                               };
+                               chan2 {
+                                       led-cur = /bits/ 8 <0x2f>;
+                                       max-cur = /bits/ 8 <0x5f>;
+                               };
                        };
-
                        bh1780@0x29 {
                                compatible = "rohm,bh1780gli";
                                reg = <0x33>;