arm64: allwinner: h5: sort the device nodes in / part for some boards
authorIcenowy Zheng <icenowy@aosc.io>
Wed, 7 Jun 2017 00:23:03 +0000 (08:23 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 7 Jun 2017 13:26:14 +0000 (15:26 +0200)
The reg_vcc3v3 node is wrongly placed at the start of the / part, but
not with other fixed regulators used by the board, which makes the
device nodes unsorted.

As Orange Pi Prime and Nano Pi NEO2 device trees are copy'n'paste works,
they share the device node unsorted issue.

Fix this by move reg_vcc3v3 node to the position before reg_usb0_vbus.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts
arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts

index f6d71b0..f2767b9 100644 (file)
        model = "FriendlyARM NanoPi NEO 2";
        compatible = "friendlyarm,nanopi-neo2", "allwinner,sun50i-h5";
 
-       reg_vcc3v3: vcc3v3 {
-               compatible = "regulator-fixed";
-               regulator-name = "vcc3v3";
-               regulator-min-microvolt = <3300000>;
-               regulator-max-microvolt = <3300000>;
-       };
-
        aliases {
                serial0 = &uart0;
        };
                };
        };
 
+       reg_vcc3v3: vcc3v3 {
+               compatible = "regulator-fixed";
+               regulator-name = "vcc3v3";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+       };
+
        reg_usb0_vbus: usb0-vbus {
                compatible = "regulator-fixed";
                regulator-name = "usb0-vbus";
index 28d92a6..097c333 100644 (file)
        model = "Xunlong Orange Pi Prime";
        compatible = "xunlong,orangepi-prime", "allwinner,sun50i-h5";
 
-       reg_vcc3v3: vcc3v3 {
-               compatible = "regulator-fixed";
-               regulator-name = "vcc3v3";
-               regulator-min-microvolt = <3300000>;
-               regulator-max-microvolt = <3300000>;
-       };
-
        aliases {
                serial0 = &uart0;
        };
                };
        };
 
+       reg_vcc3v3: vcc3v3 {
+               compatible = "regulator-fixed";
+               regulator-name = "vcc3v3";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+       };
+
        reg_usb0_vbus: usb0-vbus {
                compatible = "regulator-fixed";
                regulator-name = "usb0-vbus";