Sort nodes.

If node address is present
   * Sort by node address, grouping all nodes with the same compat string
     and sorting the group alphabetically.
Else
   * Sort alphabetically

This should not have any run-time effect.

Signed-off-by: Yoshihiro Kaneko <[email protected]>
---

This patch is based on the devel branch of Simon Horman's renesas tree.

 arch/arm64/boot/dts/renesas/ulcb-kf.dtsi | 118 +++++++++++++++----------------
 1 file changed, 59 insertions(+), 59 deletions(-)

diff --git a/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi 
b/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi
index 27851a7..5ac22a8 100644
--- a/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi
+++ b/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi
@@ -100,13 +100,6 @@
                        line-name = "Audio_Out_OFF";
                };
 
-               sd-wifi-mux {
-                       gpio-hog;
-                       gpios = <5 GPIO_ACTIVE_HIGH>;
-                       output-low;     /* Connect WL1837 */
-                       line-name = "SD WiFi mux";
-               };
-
                hub_pwen {
                        gpio-hog;
                        gpios = <6 GPIO_ACTIVE_HIGH>;
@@ -121,6 +114,13 @@
                        line-name = "HUB rst";
                };
 
+               otg_extlpn {
+                       gpio-hog;
+                       gpios = <9 GPIO_ACTIVE_HIGH>;
+                       output-high;
+                       line-name = "OTG EXTLPn";
+               };
+
                otg_offvbusn {
                        gpio-hog;
                        gpios = <8 GPIO_ACTIVE_HIGH>;
@@ -128,11 +128,11 @@
                        line-name = "OTG OFFVBUSn";
                };
 
-               otg_extlpn {
+               sd-wifi-mux {
                        gpio-hog;
-                       gpios = <9 GPIO_ACTIVE_HIGH>;
-                       output-high;
-                       line-name = "OTG EXTLPn";
+                       gpios = <5 GPIO_ACTIVE_HIGH>;
+                       output-low;     /* Connect WL1837 */
+                       line-name = "SD WiFi mux";
                };
 
                snd_rst {
@@ -279,14 +279,50 @@
                power-source = <3300>;
        };
 
+       sound_pcm_pins: sound-pcm {
+               groups = "ssi349_ctrl", "ssi3_data", "ssi4_data";
+               function = "ssi";
+       };
+
        usb0_pins: usb0 {
                groups = "usb0";
                function = "usb0";
        };
+};
 
-       sound_pcm_pins: sound-pcm {
-               groups = "ssi349_ctrl", "ssi3_data", "ssi4_data";
-               function = "ssi";
+&rcar_sound {
+       pinctrl-0 = <&sound_pins
+                    &sound_clk_pins
+                    &sound_pcm_pins>;
+
+       ports {
+               /* rsnd_port0/1 are on salvator-common */
+               rsnd_port2: port@2 {
+                       reg = <2>;
+                       rsnd_for_pcm3168a_play: endpoint {
+                               remote-endpoint = <&pcm3168a_endpoint_p>;
+
+                               dai-format = "i2s";
+                               bitclock-master = <&rsnd_for_pcm3168a_play>;
+                               frame-master = <&rsnd_for_pcm3168a_play>;
+                               dai-tdm-slot-num = <8>;
+
+                               playback = <&ssi3>;
+                       };
+               };
+               rsnd_port3: port@3 {
+                       reg = <3>;
+                       rsnd_for_pcm3168a_capture: endpoint {
+                               remote-endpoint = <&pcm3168a_endpoint_c>;
+
+                               dai-format = "i2s";
+                               bitclock-master = <&rsnd_for_pcm3168a_capture>;
+                               frame-master = <&rsnd_for_pcm3168a_capture>;
+                               dai-tdm-slot-num = <6>;
+
+                               capture  = <&ssi4>;
+                       };
+               };
        };
 };
 
@@ -322,17 +358,6 @@
        };
 };
 
-&usb2_phy0 {
-       pinctrl-0 = <&usb0_pins>;
-       pinctrl-names = "default";
-
-       status = "okay";
-};
-
-&xhci0 {
-       status = "okay";
-};
-
 &sound_card {
        dais = <&rsnd_port0     /* ak4613 */
                &rsnd_port1     /* HDMI0  */
@@ -341,42 +366,17 @@
                >;
 };
 
-&rcar_sound {
-       pinctrl-0 = <&sound_pins
-                    &sound_clk_pins
-                    &sound_pcm_pins>;
-
-       ports {
-               /* rsnd_port0/1 are on salvator-common */
-               rsnd_port2: port@2 {
-                       reg = <2>;
-                       rsnd_for_pcm3168a_play: endpoint {
-                               remote-endpoint = <&pcm3168a_endpoint_p>;
-
-                               dai-format = "i2s";
-                               bitclock-master = <&rsnd_for_pcm3168a_play>;
-                               frame-master = <&rsnd_for_pcm3168a_play>;
-                               dai-tdm-slot-num = <8>;
-
-                               playback = <&ssi3>;
-                       };
-               };
-               rsnd_port3: port@3 {
-                       reg = <3>;
-                       rsnd_for_pcm3168a_capture: endpoint {
-                               remote-endpoint = <&pcm3168a_endpoint_c>;
+&ssi4 {
+       shared-pin;
+};
 
-                               dai-format = "i2s";
-                               bitclock-master = <&rsnd_for_pcm3168a_capture>;
-                               frame-master = <&rsnd_for_pcm3168a_capture>;
-                               dai-tdm-slot-num = <6>;
+&usb2_phy0 {
+       pinctrl-0 = <&usb0_pins>;
+       pinctrl-names = "default";
 
-                               capture  = <&ssi4>;
-                       };
-               };
-       };
+       status = "okay";
 };
 
-&ssi4 {
-       shared-pin;
+&xhci0 {
+       status = "okay";
 };
-- 
1.9.1

Reply via email to