Commit b726a9e3 authored by Yoshihiro Kaneko's avatar Yoshihiro Kaneko Committed by Geert Uytterhoeven

arm64: dts: renesas: ulcb-kf: Sort nodes

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: default avatarYoshihiro Kaneko <ykaneko0929@gmail.com>
Reviewed-by: default avatarSimon Horman <horms+renesas@verge.net.au>
[geert: Sort i2c slave nodes]
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
parent 44d2266c
...@@ -83,6 +83,56 @@ &hsusb { ...@@ -83,6 +83,56 @@ &hsusb {
}; };
&i2c2 { &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 */ /* U11 */
gpio_exp_74: gpio@74 { gpio_exp_74: gpio@74 {
compatible = "ti,tca9539"; compatible = "ti,tca9539";
...@@ -100,13 +150,6 @@ audio_out_off { ...@@ -100,13 +150,6 @@ audio_out_off {
line-name = "Audio_Out_OFF"; 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 { hub_pwen {
gpio-hog; gpio-hog;
gpios = <6 GPIO_ACTIVE_HIGH>; gpios = <6 GPIO_ACTIVE_HIGH>;
...@@ -121,6 +164,13 @@ hub_rst { ...@@ -121,6 +164,13 @@ hub_rst {
line-name = "HUB rst"; line-name = "HUB rst";
}; };
otg_extlpn {
gpio-hog;
gpios = <9 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "OTG EXTLPn";
};
otg_offvbusn { otg_offvbusn {
gpio-hog; gpio-hog;
gpios = <8 GPIO_ACTIVE_HIGH>; gpios = <8 GPIO_ACTIVE_HIGH>;
...@@ -128,11 +178,11 @@ otg_offvbusn { ...@@ -128,11 +178,11 @@ otg_offvbusn {
line-name = "OTG OFFVBUSn"; line-name = "OTG OFFVBUSn";
}; };
otg_extlpn { sd-wifi-mux {
gpio-hog; gpio-hog;
gpios = <9 GPIO_ACTIVE_HIGH>; gpios = <5 GPIO_ACTIVE_HIGH>;
output-high; output-low; /* Connect WL1837 */
line-name = "OTG EXTLPn"; line-name = "SD WiFi mux";
}; };
snd_rst { snd_rst {
...@@ -153,59 +203,17 @@ gpio_exp_75: gpio@75 { ...@@ -153,59 +203,17 @@ gpio_exp_75: gpio@75 {
interrupt-parent = <&gpio6>; interrupt-parent = <&gpio6>;
interrupts = <4 IRQ_TYPE_EDGE_FALLING>; interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
}; };
};
i2cswitch2: i2c-switch@71 { &i2c4 {
i2cswitch4: i2c-switch@71 {
compatible = "nxp,pca9548"; compatible = "nxp,pca9548";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
reg = <0x71>; reg = <0x71>;
reset-gpios = <&gpio5 3 GPIO_ACTIVE_LOW>; reset-gpios = <&gpio3 15 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>;
};
};
};
};
};
}; };
};
&i2c4 {
gpio_exp_76: gpio@76 { gpio_exp_76: gpio@76 {
compatible = "ti,tca9539"; compatible = "ti,tca9539";
reg = <0x76>; reg = <0x76>;
...@@ -225,14 +233,6 @@ gpio_exp_77: gpio@77 { ...@@ -225,14 +233,6 @@ gpio_exp_77: gpio@77 {
interrupt-parent = <&gpio5>; interrupt-parent = <&gpio5>;
interrupts = <9 IRQ_TYPE_EDGE_FALLING>; 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 { &ohci0 {
...@@ -279,14 +279,50 @@ sdhi3_pins: sdhi3 { ...@@ -279,14 +279,50 @@ sdhi3_pins: sdhi3 {
power-source = <3300>; power-source = <3300>;
}; };
sound_pcm_pins: sound-pcm {
groups = "ssi349_ctrl", "ssi3_data", "ssi4_data";
function = "ssi";
};
usb0_pins: usb0 { usb0_pins: usb0 {
groups = "usb0"; groups = "usb0";
function = "usb0"; function = "usb0";
}; };
};
sound_pcm_pins: sound-pcm { &rcar_sound {
groups = "ssi349_ctrl", "ssi3_data", "ssi4_data"; pinctrl-0 = <&sound_pins
function = "ssi"; &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 @@ wlcore: wlcore@2 { ...@@ -322,17 +358,6 @@ wlcore: wlcore@2 {
}; };
}; };
&usb2_phy0 {
pinctrl-0 = <&usb0_pins>;
pinctrl-names = "default";
status = "okay";
};
&xhci0 {
status = "okay";
};
&sound_card { &sound_card {
dais = <&rsnd_port0 /* ak4613 */ dais = <&rsnd_port0 /* ak4613 */
&rsnd_port1 /* HDMI0 */ &rsnd_port1 /* HDMI0 */
...@@ -341,42 +366,17 @@ &rsnd_port3 /* pcm3168a capture */ ...@@ -341,42 +366,17 @@ &rsnd_port3 /* pcm3168a capture */
>; >;
}; };
&rcar_sound { &ssi4 {
pinctrl-0 = <&sound_pins shared-pin;
&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"; &usb2_phy0 {
bitclock-master = <&rsnd_for_pcm3168a_capture>; pinctrl-0 = <&usb0_pins>;
frame-master = <&rsnd_for_pcm3168a_capture>; pinctrl-names = "default";
dai-tdm-slot-num = <6>;
capture = <&ssi4>; status = "okay";
};
};
};
}; };
&ssi4 { &xhci0 {
shared-pin; status = "okay";
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment