arm64: dts: renesas: ulcb-kf: Sort nodes
authorYoshihiro Kaneko <ykaneko0929@gmail.com>
Tue, 23 Jul 2019 18:03:35 +0000 (03:03 +0900)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 30 Jul 2019 09:25:35 +0000 (11:25 +0200)
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 <ykaneko0929@gmail.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
[geert: Sort i2c slave nodes]
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/ulcb-kf.dtsi

index 27851a7..2021777 100644 (file)
 };
 
 &i2c2 {
+       i2cswitch2: i2c-switch@71 {
+               compatible = "nxp,pca9548";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x71>;
+               reset-gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
+
+               /* Audio_SDA, Audio_SCL */
+               i2c@7 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <7>;
+
+                       pcm3168a: audio-codec@44 {
+                               #sound-dai-cells = <0>;
+                               compatible = "ti,pcm3168a";
+                               reg = <0x44>;
+                               clocks = <&clksndsel>;
+                               clock-names = "scki";
+
+                               VDD1-supply     = <&snd_3p3v>;
+                               VDD2-supply     = <&snd_3p3v>;
+                               VCCAD1-supply   = <&snd_vcc5v>;
+                               VCCAD2-supply   = <&snd_vcc5v>;
+                               VCCDA1-supply   = <&snd_vcc5v>;
+                               VCCDA2-supply   = <&snd_vcc5v>;
+
+                               ports {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+                                       mclk-fs = <512>;
+                                       port@0 {
+                                               reg = <0>;
+                                               pcm3168a_endpoint_p: endpoint {
+                                                       remote-endpoint = <&rsnd_for_pcm3168a_play>;
+                                                       clocks = <&clksndsel>;
+                                               };
+                                       };
+                                       port@1 {
+                                               reg = <1>;
+                                               pcm3168a_endpoint_c: endpoint {
+                                                       remote-endpoint = <&rsnd_for_pcm3168a_capture>;
+                                                       clocks = <&clksndsel>;
+                                               };
+                                       };
+                               };
+                       };
+               };
+       };
+
        /* U11 */
        gpio_exp_74: gpio@74 {
                compatible = "ti,tca9539";
                        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>;
                        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>;
                        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 {
                interrupt-parent = <&gpio6>;
                interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
        };
+};
 
-       i2cswitch2: i2c-switch@71 {
+&i2c4 {
+       i2cswitch4: i2c-switch@71 {
                compatible = "nxp,pca9548";
                #address-cells = <1>;
                #size-cells = <0>;
                reg = <0x71>;
-               reset-gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
-
-               /* Audio_SDA, Audio_SCL */
-               i2c@7 {
-                       #address-cells = <1>;
-                       #size-cells = <0>;
-                       reg = <7>;
-
-                       pcm3168a: audio-codec@44 {
-                               #sound-dai-cells = <0>;
-                               compatible = "ti,pcm3168a";
-                               reg = <0x44>;
-                               clocks = <&clksndsel>;
-                               clock-names = "scki";
-
-                               VDD1-supply     = <&snd_3p3v>;
-                               VDD2-supply     = <&snd_3p3v>;
-                               VCCAD1-supply   = <&snd_vcc5v>;
-                               VCCAD2-supply   = <&snd_vcc5v>;
-                               VCCDA1-supply   = <&snd_vcc5v>;
-                               VCCDA2-supply   = <&snd_vcc5v>;
-
-                               ports {
-                                       #address-cells = <1>;
-                                       #size-cells = <0>;
-                                       mclk-fs = <512>;
-                                       port@0 {
-                                               reg = <0>;
-                                               pcm3168a_endpoint_p: endpoint {
-                                                       remote-endpoint = <&rsnd_for_pcm3168a_play>;
-                                                       clocks = <&clksndsel>;
-                                               };
-                                       };
-                                       port@1 {
-                                               reg = <1>;
-                                               pcm3168a_endpoint_c: endpoint {
-                                                       remote-endpoint = <&rsnd_for_pcm3168a_capture>;
-                                                       clocks = <&clksndsel>;
-                                               };
-                                       };
-                               };
-                       };
-               };
+               reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
        };
-};
 
-&i2c4 {
        gpio_exp_76: gpio@76 {
                compatible = "ti,tca9539";
                reg = <0x76>;
                interrupt-parent = <&gpio5>;
                interrupts = <9 IRQ_TYPE_EDGE_FALLING>;
        };
-
-       i2cswitch4: i2c-switch@71 {
-               compatible = "nxp,pca9548";
-               #address-cells = <1>;
-               #size-cells = <0>;
-               reg = <0x71>;
-               reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
-       };
 };
 
 &ohci0 {
                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>;
+                       };
+               };
        };
 };
 
        };
 };
 
-&usb2_phy0 {
-       pinctrl-0 = <&usb0_pins>;
-       pinctrl-names = "default";
-
-       status = "okay";
-};
-
-&xhci0 {
-       status = "okay";
-};
-
 &sound_card {
        dais = <&rsnd_port0     /* ak4613 */
                &rsnd_port1     /* HDMI0  */
                >;
 };
 
-&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";
 };