ARM: dts: ste-href: Add reg property to the LP5521 channel nodes
authorDan Murphy <dmurphy@ti.com>
Wed, 12 Aug 2020 19:50:20 +0000 (14:50 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 7 Sep 2020 11:48:06 +0000 (13:48 +0200)
Add the reg property to each channel node.  This update is
to accommodate the multicolor framework.  In addition to the
accommodation this allows the LEDs to be placed on any channel
and allow designs to skip channels as opposed to requiring
sequential order.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
CC: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20200812195020.13568-7-dmurphy@ti.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/ste-href.dtsi

index 33e3b0b..ff47cbf 100644 (file)
                                reg = <0x33>;
                                label = "lp5521_pri";
                                clock-mode = /bits/ 8 <2>;
-                               chan0 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               chan@0 {
+                                       reg = <0>;
                                        led-cur = /bits/ 8 <0x2f>;
                                        max-cur = /bits/ 8 <0x5f>;
                                        linux,default-trigger = "heartbeat";
                                };
-                               chan1 {
+                               chan@1 {
+                                       reg = <1>;
                                        led-cur = /bits/ 8 <0x2f>;
                                        max-cur = /bits/ 8 <0x5f>;
                                };
-                               chan2 {
+                               chan@2 {
+                                       reg = <2>;
                                        led-cur = /bits/ 8 <0x2f>;
                                        max-cur = /bits/ 8 <0x5f>;
                                };
                                reg = <0x34>;
                                label = "lp5521_sec";
                                clock-mode = /bits/ 8 <2>;
-                               chan0 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               chan@0 {
+                                       reg = <0>;
                                        led-cur = /bits/ 8 <0x2f>;
                                        max-cur = /bits/ 8 <0x5f>;
                                };
-                               chan1 {
+                               chan@1 {
+                                       reg = <1>;
                                        led-cur = /bits/ 8 <0x2f>;
                                        max-cur = /bits/ 8 <0x5f>;
                                };
-                               chan2 {
+                               chan@2 {
+                                       reg = <2>;
                                        led-cur = /bits/ 8 <0x2f>;
                                        max-cur = /bits/ 8 <0x5f>;
                                };