Skip to content

Commit

Permalink
ARM: dt: tegra: sort nodes based on bus order
Browse files Browse the repository at this point in the history
Sort the nodes according to the following rules:
* First, any overrides for properties or nodes created by included files,
  in the order they appeared in the include file.
* Second, any nodes with a reg property, in numerical order.
* Third, any nodes without a reg property, in alphabetical order of node
  name.

The second sorting rule at least will probably help if/when we need to
explicitly insert nodes for the various busses in Tegra; that will just
be an indentation change rather than also a node re-ordering.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Stephen Warren committed May 14, 2012
1 parent 2f32b1f commit c04abb3
Show file tree
Hide file tree
Showing 8 changed files with 445 additions and 445 deletions.
36 changes: 18 additions & 18 deletions arch/arm/boot/dts/tegra-cardhu.dts
Original file line number Diff line number Diff line change
Expand Up @@ -138,24 +138,6 @@
};
};

sdhci@78000000 {
cd-gpios = <&gpio 69 0>; /* gpio PI5 */
wp-gpios = <&gpio 155 0>; /* gpio PT3 */
power-gpios = <&gpio 31 0>; /* gpio PD7 */
};

sdhci@78000200 {
status = "disable";
};

sdhci@78000400 {
status = "disable";
};

sdhci@78000600 {
support-8bit;
};

ahub {
i2s@70080300 {
status = "disable";
Expand All @@ -174,6 +156,24 @@
};
};

sdhci@78000000 {
cd-gpios = <&gpio 69 0>; /* gpio PI5 */
wp-gpios = <&gpio 155 0>; /* gpio PT3 */
power-gpios = <&gpio 31 0>; /* gpio PD7 */
};

sdhci@78000200 {
status = "disable";
};

sdhci@78000400 {
status = "disable";
};

sdhci@78000600 {
support-8bit;
};

sound {
compatible = "nvidia,tegra-audio-wm8903-cardhu",
"nvidia,tegra-audio-wm8903";
Expand Down
96 changes: 48 additions & 48 deletions arch/arm/boot/dts/tegra-harmony.dts
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,28 @@
};
};

pmc {
nvidia,invert-interrupt;
i2s@70002a00 {
status = "disable";
};

serial@70006000 {
status = "disable";
};

serial@70006040 {
status = "disable";
};

serial@70006200 {
status = "disable";
};

serial@70006300 {
clock-frequency = <216000000>;
};

serial@70006400 {
status = "disable";
};

i2c@7000c000 {
Expand Down Expand Up @@ -268,52 +288,12 @@
clock-frequency = <400000>;
};

i2s@70002a00 {
status = "disable";
};

sound {
compatible = "nvidia,tegra-audio-wm8903-harmony",
"nvidia,tegra-audio-wm8903";
nvidia,model = "NVIDIA Tegra Harmony";

nvidia,audio-routing =
"Headphone Jack", "HPOUTR",
"Headphone Jack", "HPOUTL",
"Int Spk", "ROP",
"Int Spk", "RON",
"Int Spk", "LOP",
"Int Spk", "LON",
"Mic Jack", "MICBIAS",
"IN1L", "Mic Jack";

nvidia,i2s-controller = <&tegra_i2s1>;
nvidia,audio-codec = <&wm8903>;

nvidia,spkr-en-gpios = <&wm8903 2 0>;
nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */
nvidia,int-mic-en-gpios = <&gpio 184 0>; /*gpio PX0 */
nvidia,ext-mic-en-gpios = <&gpio 185 0>; /* gpio PX1 */
};

serial@70006000 {
status = "disable";
};

serial@70006040 {
status = "disable";
};

serial@70006200 {
status = "disable";
};

serial@70006300 {
clock-frequency = <216000000>;
pmc {
nvidia,invert-interrupt;
};

serial@70006400 {
status = "disable";
usb@c5004000 {
nvidia,phy-reset-gpio = <&gpio 169 0>; /* gpio PV1 */
};

sdhci@c8000000 {
Expand All @@ -337,7 +317,27 @@
support-8bit;
};

usb@c5004000 {
nvidia,phy-reset-gpio = <&gpio 169 0>; /* gpio PV1 */
sound {
compatible = "nvidia,tegra-audio-wm8903-harmony",
"nvidia,tegra-audio-wm8903";
nvidia,model = "NVIDIA Tegra Harmony";

nvidia,audio-routing =
"Headphone Jack", "HPOUTR",
"Headphone Jack", "HPOUTL",
"Int Spk", "ROP",
"Int Spk", "RON",
"Int Spk", "LOP",
"Int Spk", "LON",
"Mic Jack", "MICBIAS",
"IN1L", "Mic Jack";

nvidia,i2s-controller = <&tegra_i2s1>;
nvidia,audio-codec = <&wm8903>;

nvidia,spkr-en-gpios = <&wm8903 2 0>;
nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */
nvidia,int-mic-en-gpios = <&gpio 184 0>; /*gpio PX0 */
nvidia,ext-mic-en-gpios = <&gpio 185 0>; /* gpio PX1 */
};
};
88 changes: 44 additions & 44 deletions arch/arm/boot/dts/tegra-paz00.dts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,30 @@
};
};

i2s@70002a00 {
status = "disable";
};

serial@70006000 {
clock-frequency = <216000000>;
};

serial@70006040 {
status = "disable";
};

serial@70006200 {
clock-frequency = <216000000>;
};

serial@70006300 {
status = "disable";
};

serial@70006400 {
status = "disable";
};

i2c@7000c000 {
clock-frequency = <400000>;

Expand Down Expand Up @@ -265,48 +289,8 @@
};
};

i2s@70002a00 {
status = "disable";
};

sound {
compatible = "nvidia,tegra-audio-alc5632-paz00",
"nvidia,tegra-audio-alc5632";

nvidia,model = "Compal PAZ00";

nvidia,audio-routing =
"Int Spk", "SPKOUT",
"Int Spk", "SPKOUTN",
"Headset Mic", "MICBIAS1",
"MIC1", "Headset Mic",
"Headset Stereophone", "HPR",
"Headset Stereophone", "HPL",
"DMICDAT", "Digital Mic";

nvidia,audio-codec = <&alc5632>;
nvidia,i2s-controller = <&tegra_i2s1>;
nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */
};

serial@70006000 {
clock-frequency = <216000000>;
};

serial@70006040 {
status = "disable";
};

serial@70006200 {
clock-frequency = <216000000>;
};

serial@70006300 {
status = "disable";
};

serial@70006400 {
status = "disable";
usb@c5004000 {
nvidia,phy-reset-gpio = <&gpio 168 0>; /* gpio PV0 */
};

sdhci@c8000000 {
Expand Down Expand Up @@ -348,7 +332,23 @@
};
};

usb@c5004000 {
nvidia,phy-reset-gpio = <&gpio 168 0>; /* gpio PV0 */
sound {
compatible = "nvidia,tegra-audio-alc5632-paz00",
"nvidia,tegra-audio-alc5632";

nvidia,model = "Compal PAZ00";

nvidia,audio-routing =
"Int Spk", "SPKOUT",
"Int Spk", "SPKOUTN",
"Headset Mic", "MICBIAS1",
"MIC1", "Headset Mic",
"Headset Stereophone", "HPR",
"Headset Stereophone", "HPL",
"DMICDAT", "Digital Mic";

nvidia,audio-codec = <&alc5632>;
nvidia,i2s-controller = <&tegra_i2s1>;
nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */
};
};
Loading

0 comments on commit c04abb3

Please sign in to comment.