diff mbox

[1/2] ARM: dts: imx53-mba53: create a container for fixed regulators

Message ID 1383724993-3731-1-git-send-email-shawn.guo@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Shawn Guo Nov. 6, 2013, 8:03 a.m. UTC
To align with others on fixed regulators bindings, it adds node
'regulators' as the container and move all regulator-fixed nodes into
there.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
 arch/arm/boot/dts/imx53-mba53.dts |   32 ++++++++++++++++++--------------
 1 file changed, 18 insertions(+), 14 deletions(-)

Comments

Markus Niebel Nov. 7, 2013, 8:50 a.m. UTC | #1
Hello Shawn,

just a little note, not sure what is correct.

Am 06.11.2013 09:03, wrote Shawn Guo:
> To align with others on fixed regulators bindings, it adds node
> 'regulators' as the container and move all regulator-fixed nodes into
> there.
> 
> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
> ---
>  arch/arm/boot/dts/imx53-mba53.dts |   32 ++++++++++++++++++--------------
>  1 file changed, 18 insertions(+), 14 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/imx53-mba53.dts b/arch/arm/boot/dts/imx53-mba53.dts
> index ba95b78..c9ff1a5 100644
> --- a/arch/arm/boot/dts/imx53-mba53.dts
> +++ b/arch/arm/boot/dts/imx53-mba53.dts
> @@ -17,14 +17,6 @@
>  	model = "TQ MBa53 starter kit";
>  	compatible = "tq,mba53", "tq,tqma53", "fsl,imx53";
>  
> -	reg_backlight: fixed@0 {
> -		compatible = "regulator-fixed";
> -		regulator-name = "lcd-supply";
> -		gpio = <&gpio2 5 0>;
> -		startup-delay-us = <5000>;
> -		enable-active-low;
> -	};
> -
>  	backlight {
>  		compatible = "pwm-backlight";
>  		pwms = <&pwm2 0 50000>;
> @@ -43,12 +35,24 @@
>  		status = "disabled";
>  	};
>  
> -	reg_3p2v: 3p2v {
> -		compatible = "regulator-fixed";
> -		regulator-name = "3P2V";
> -		regulator-min-microvolt = <3200000>;
> -		regulator-max-microvolt = <3200000>;
> -		regulator-always-on;
> +	regulators {
> +		compatible = "simple-bus";

No need for additional 
	#address-cells = <1>;
	#size-cells = <0>;
here as done in ARM: dts: imx: use generic node name for fixed regulator?
> +
> +		reg_backlight: fixed@0 {
> +			compatible = "regulator-fixed";
> +			regulator-name = "lcd-supply";
> +			gpio = <&gpio2 5 0>;
> +			startup-delay-us = <5000>;
> +			enable-active-low;
> +		};
> +
> +		reg_3p2v: 3p2v {
> +			compatible = "regulator-fixed";
> +			regulator-name = "3P2V";
> +			regulator-min-microvolt = <3200000>;
> +			regulator-max-microvolt = <3200000>;
> +			regulator-always-on;
> +		};
>  	};
>  
>  	sound {
> 

Markus
Shawn Guo Nov. 8, 2013, 8:38 a.m. UTC | #2
On Thu, Nov 07, 2013 at 09:50:50AM +0100, Markus Niebel wrote:
> > @@ -43,12 +35,24 @@
> >  		status = "disabled";
> >  	};
> >  
> > -	reg_3p2v: 3p2v {
> > -		compatible = "regulator-fixed";
> > -		regulator-name = "3P2V";
> > -		regulator-min-microvolt = <3200000>;
> > -		regulator-max-microvolt = <3200000>;
> > -		regulator-always-on;
> > +	regulators {
> > +		compatible = "simple-bus";
> 
> No need for additional 
> 	#address-cells = <1>;
> 	#size-cells = <0>;
> here as done in ARM: dts: imx: use generic node name for fixed regulator?

It's been done in the patch you mentioned.

Shawn
diff mbox

Patch

diff --git a/arch/arm/boot/dts/imx53-mba53.dts b/arch/arm/boot/dts/imx53-mba53.dts
index ba95b78..c9ff1a5 100644
--- a/arch/arm/boot/dts/imx53-mba53.dts
+++ b/arch/arm/boot/dts/imx53-mba53.dts
@@ -17,14 +17,6 @@ 
 	model = "TQ MBa53 starter kit";
 	compatible = "tq,mba53", "tq,tqma53", "fsl,imx53";
 
-	reg_backlight: fixed@0 {
-		compatible = "regulator-fixed";
-		regulator-name = "lcd-supply";
-		gpio = <&gpio2 5 0>;
-		startup-delay-us = <5000>;
-		enable-active-low;
-	};
-
 	backlight {
 		compatible = "pwm-backlight";
 		pwms = <&pwm2 0 50000>;
@@ -43,12 +35,24 @@ 
 		status = "disabled";
 	};
 
-	reg_3p2v: 3p2v {
-		compatible = "regulator-fixed";
-		regulator-name = "3P2V";
-		regulator-min-microvolt = <3200000>;
-		regulator-max-microvolt = <3200000>;
-		regulator-always-on;
+	regulators {
+		compatible = "simple-bus";
+
+		reg_backlight: fixed@0 {
+			compatible = "regulator-fixed";
+			regulator-name = "lcd-supply";
+			gpio = <&gpio2 5 0>;
+			startup-delay-us = <5000>;
+			enable-active-low;
+		};
+
+		reg_3p2v: 3p2v {
+			compatible = "regulator-fixed";
+			regulator-name = "3P2V";
+			regulator-min-microvolt = <3200000>;
+			regulator-max-microvolt = <3200000>;
+			regulator-always-on;
+		};
 	};
 
 	sound {