]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: imx23-evk: Move regulators outside simple-bus
authorFabio Estevam <fabio.estevam@nxp.com>
Fri, 20 Jul 2018 20:39:18 +0000 (17:39 -0300)
committerShawn Guo <shawnguo@kernel.org>
Mon, 27 Aug 2018 07:05:46 +0000 (15:05 +0800)
It is recommended to place regulators outside simple-bus, so move them
accordingly.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx23-evk.dts

index 9fb47724b9c1fa2dee8a6f1695fba9a68d30e80f..494095d40327298475f1210303eb5d3b83c82ee5 100644 (file)
@@ -13,6 +13,23 @@ memory@40000000 {
                reg = <0x40000000 0x08000000>;
        };
 
+       reg_vddio_sd0: regulator-vddio-sd0 {
+               compatible = "regulator-fixed";
+               regulator-name = "vddio-sd0";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               gpio = <&gpio1 29 0>;
+       };
+
+       reg_lcd_3v3: regulator-lcd-3v3 {
+               compatible = "regulator-fixed";
+               regulator-name = "lcd-3v3";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               gpio = <&gpio1 18 0>;
+               enable-active-high;
+       };
+
        apb@80000000 {
                apbh@80000000 {
                        gpmi-nand@8000c000 {
@@ -118,31 +135,6 @@ usb0: usb@80080000 {
                };
        };
 
-       regulators {
-               compatible = "simple-bus";
-               #address-cells = <1>;
-               #size-cells = <0>;
-
-               reg_vddio_sd0: regulator@0 {
-                       compatible = "regulator-fixed";
-                       reg = <0>;
-                       regulator-name = "vddio-sd0";
-                       regulator-min-microvolt = <3300000>;
-                       regulator-max-microvolt = <3300000>;
-                       gpio = <&gpio1 29 0>;
-               };
-
-               reg_lcd_3v3: regulator@1 {
-                       compatible = "regulator-fixed";
-                       reg = <1>;
-                       regulator-name = "lcd-3v3";
-                       regulator-min-microvolt = <3300000>;
-                       regulator-max-microvolt = <3300000>;
-                       gpio = <&gpio1 18 0>;
-                       enable-active-high;
-               };
-       };
-
        backlight {
                compatible = "pwm-backlight";
                pwms = <&pwm 2 5000000>;