ARM: dts: imx6dl-yapp4: Add reg property to the lp5562 channel node
authorDan Murphy <dmurphy@ti.com>
Wed, 12 Aug 2020 19:50:19 +0000 (14:50 -0500)
committerShawn Guo <shawnguo@kernel.org>
Sun, 23 Aug 2020 00:51:48 +0000 (08:51 +0800)
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.

Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Dan Murphy <dmurphy@ti.com>
CC: Shawn Guo <shawnguo@kernel.org>
CC: Sascha Hauer <s.hauer@pengutronix.de>
CC: Pengutronix Kernel Team <kernel@pengutronix.de>
CC: Fabio Estevam <festevam@gmail.com>
CC: NXP Linux Team <linux-imx@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6dl-yapp4-common.dtsi

index 46927a020943d2c513bcb6c10fcf1e0d7564ab02..7d2c72562c73552a43b912cdb08cd931d966ec8b 100644 (file)
                reg = <0x30>;
                clock-mode = /bits/ 8 <1>;
                status = "disabled";
+               #address-cells = <1>;
+               #size-cells = <0>;
 
-               chan0 {
+               chan@0 {
                        chan-name = "R";
                        led-cur = /bits/ 8 <0x20>;
                        max-cur = /bits/ 8 <0x60>;
+                       reg = <0>;
                };
 
-               chan1 {
+               chan@1 {
                        chan-name = "G";
                        led-cur = /bits/ 8 <0x20>;
                        max-cur = /bits/ 8 <0x60>;
+                       reg = <1>;
                };
 
-               chan2 {
+               chan@2 {
                        chan-name = "B";
                        led-cur = /bits/ 8 <0x20>;
                        max-cur = /bits/ 8 <0x60>;
+                       reg = <2>;
                };
 
-               chan3 {
+               chan@3 {
                        chan-name = "W";
                        led-cur = /bits/ 8 <0x0>;
                        max-cur = /bits/ 8 <0x0>;
+                       reg = <3>;
                };
        };