diff mbox series

[v13,10/18] ARM: dts: imx6dl-yapp4: Add reg property to the lp5562 channel node

Message ID 20191016155954.29044-11-dmurphy@ti.com
State Superseded
Headers show
Series None | expand

Commit Message

Dan Murphy Oct. 16, 2019, 3:59 p.m. UTC
Add the reg property to each channel node.  This update is
to accomodate the multicolor framework.  In addition to the
accomodation 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>

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>
---
 arch/arm/boot/dts/imx6dl-yapp4-common.dtsi | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

-- 
2.22.0.214.g8dca754b1e

Comments

Shawn Guo Oct. 28, 2019, 2:55 a.m. UTC | #1
On Wed, Oct 16, 2019 at 10:59:46AM -0500, Dan Murphy wrote:
> Add the reg property to each channel node.  This update is

> to accomodate the multicolor framework.  In addition to the

> accomodation 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>

> 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>

> ---

>  arch/arm/boot/dts/imx6dl-yapp4-common.dtsi | 14 ++++++++++----

>  1 file changed, 10 insertions(+), 4 deletions(-)

> 

> diff --git a/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi b/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi

> index e8d800fec637..efc466ed1fea 100644

> --- a/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi

> +++ b/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi

> @@ -257,29 +257,35 @@

>  		reg = <0x30>;

>  		clock-mode = /bits/ 8 <1>;

>  		status = "disabled";

> +		#address-cells = <1>;

> +		#size-cells = <0>;

>  

> -		chan0 {

> +		chan@0 {


Patch #18 updates bindings example to use led as node name.  Maybe we
should do the same here?

Shawn

>  			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>;

>  		};

>  	};

>  

> -- 

> 2.22.0.214.g8dca754b1e

>
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi b/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi
index e8d800fec637..efc466ed1fea 100644
--- a/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi
+++ b/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi
@@ -257,29 +257,35 @@ 
 		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>;
 		};
 	};