Skip to content

Commit

Permalink
ARM: dt: tegra: invert status=disable vs status=okay
Browse files Browse the repository at this point in the history
In tegra*.dtsi, set status="disable" for all HW modules that the board
design may choose not to use. Update all boards to specifically enable
any of those modules that are useful by setting status="okay".

This makes board files say which features they do use, rather than which
they don't, which feels more logical. It also makes the .dts files
slightly smaller, at least for existing content.

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 2eaab06 commit 2a5fdc9
Show file tree
Hide file tree
Showing 8 changed files with 123 additions and 160 deletions.
48 changes: 10 additions & 38 deletions arch/arm/boot/dts/tegra-cardhu.dts
Original file line number Diff line number Diff line change
Expand Up @@ -64,34 +64,22 @@
};

serial@70006000 {
status = "okay";
clock-frequency = <408000000>;
};

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

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

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

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

i2c@7000c000 {
status = "okay";
clock-frequency = <100000>;
};

i2c@7000c400 {
status = "okay";
clock-frequency = <100000>;
};

i2c@7000c500 {
status = "okay";
clock-frequency = <100000>;

/* ALS and Proximity sensor */
Expand All @@ -104,10 +92,12 @@
};

i2c@7000c700 {
status = "okay";
clock-frequency = <100000>;
};

i2c@7000d000 {
status = "okay";
clock-frequency = <100000>;

wm8903: wm8903@1a {
Expand Down Expand Up @@ -139,38 +129,20 @@
};

ahub {
i2s@70080300 {
status = "disable";
};

i2s@70080500 {
status = "disable";
};

i2s@70080600 {
status = "disable";
};

i2s@70080700 {
status = "disable";
i2s@70080400 {
status = "okay";
};
};

sdhci@78000000 {
status = "okay";
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 {
status = "okay";
support-8bit;
};

Expand Down
40 changes: 16 additions & 24 deletions arch/arm/boot/dts/tegra-harmony.dts
Original file line number Diff line number Diff line change
Expand Up @@ -234,31 +234,17 @@
};
};

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

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

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

serial@70006200 {
status = "disable";
i2s@70002800 {
status = "okay";
};

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

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

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

wm8903: wm8903@1a {
Expand All @@ -277,40 +263,46 @@
};

i2c@7000c400 {
status = "okay";
clock-frequency = <400000>;
};

i2c@7000c500 {
status = "okay";
clock-frequency = <400000>;
};

i2c@7000d000 {
status = "okay";
clock-frequency = <400000>;
};

pmc {
nvidia,invert-interrupt;
};

usb@c5000000 {
status = "okay";
};

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

sdhci@c8000000 {
status = "disable";
usb@c5008000 {
status = "okay";
};

sdhci@c8000200 {
status = "okay";
cd-gpios = <&gpio 69 0>; /* gpio PI5 */
wp-gpios = <&gpio 57 0>; /* gpio PH1 */
power-gpios = <&gpio 155 0>; /* gpio PT3 */
};

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

sdhci@c8000600 {
status = "okay";
cd-gpios = <&gpio 58 0>; /* gpio PH2 */
wp-gpios = <&gpio 59 0>; /* gpio PH3 */
power-gpios = <&gpio 70 0>; /* gpio PI6 */
Expand Down
44 changes: 18 additions & 26 deletions arch/arm/boot/dts/tegra-paz00.dts
Original file line number Diff line number Diff line change
Expand Up @@ -226,31 +226,22 @@
};
};

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

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

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

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

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

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

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

alc5632: alc5632@1e {
Expand All @@ -262,13 +253,10 @@
};

i2c@7000c400 {
status = "okay";
clock-frequency = <400000>;
};

i2c@7000c500 {
status = "disable";
};

nvec {
compatible = "nvidia,nvec";
reg = <0x7000c500 0x100>;
Expand All @@ -281,6 +269,7 @@
};

i2c@7000d000 {
status = "okay";
clock-frequency = <400000>;

adt7461@4c {
Expand All @@ -289,25 +278,28 @@
};
};

usb@c5000000 {
status = "okay";
};

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

usb@c5008000 {
status = "okay";
};

sdhci@c8000000 {
status = "okay";
cd-gpios = <&gpio 173 0>; /* gpio PV5 */
wp-gpios = <&gpio 57 0>; /* gpio PH1 */
power-gpios = <&gpio 169 0>; /* gpio PV1 */
};

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

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

sdhci@c8000600 {
status = "okay";
support-8bit;
};

Expand Down
37 changes: 13 additions & 24 deletions arch/arm/boot/dts/tegra-seaboard.dts
Original file line number Diff line number Diff line change
Expand Up @@ -257,31 +257,17 @@
};
};

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

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

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

serial@70006200 {
status = "disable";
i2s@70002800 {
status = "okay";
};

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

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

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

wm8903: wm8903@1a {
Expand Down Expand Up @@ -315,6 +301,7 @@
};

i2c@7000c400 {
status = "okay";
clock-frequency = <100000>;

smart-battery@b {
Expand All @@ -326,10 +313,12 @@
};

i2c@7000c500 {
status = "okay";
clock-frequency = <400000>;
};

i2c@7000d000 {
status = "okay";
clock-frequency = <400000>;

temperature-sensor@4c {
Expand Down Expand Up @@ -384,29 +373,29 @@
};

usb@c5000000 {
status = "okay";
nvidia,vbus-gpio = <&gpio 24 0>; /* PD0 */
dr_mode = "otg";
};

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

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

sdhci@c8000200 {
status = "disable";
usb@c5008000 {
status = "okay";
};

sdhci@c8000400 {
status = "okay";
cd-gpios = <&gpio 69 0>; /* gpio PI5 */
wp-gpios = <&gpio 57 0>; /* gpio PH1 */
power-gpios = <&gpio 70 0>; /* gpio PI6 */
};

sdhci@c8000600 {
status = "okay";
support-8bit;
};

Expand Down
Loading

0 comments on commit 2a5fdc9

Please sign in to comment.