Skip to content

Commit

Permalink
ARM: tegra: fix the status of PWM DT nodes
Browse files Browse the repository at this point in the history
We should be defining the PWM nodes with status as "disabled" in the
chip-specific dtsi file, since we don't know whether specific boards
will use the PWM or not. This patch fixes the PWM node status for
Tegra20 and Tegra30.

Also fixed the one user of PWM, which is the Tegra20 medcom-wide board,
so that PWM is set to "okay" in the board-specific dts file.

Signed-off-by: Andrew Chew <achew@nvidia.com>
[swarren: in medcom-wide: fixed node sort order, removed duplicate pwm:
label, fixed syntax error]
Signed-off-by: Stephen Warren <swarren@nvidia.com>
  • Loading branch information
Andrew Chew authored and Stephen Warren committed Apr 4, 2013
1 parent 8d3207c commit b69cd98
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm/boot/dts/tegra20-medcom-wide.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
model = "Avionic Design Medcom-Wide board";
compatible = "ad,medcom-wide", "ad,tamonten", "nvidia,tegra20";

pwm {
status = "okay";
};

i2c@7000c000 {
wm8903: wm8903@1a {
compatible = "wlf,wm8903";
Expand Down
1 change: 1 addition & 0 deletions arch/arm/boot/dts/tegra20.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@
reg = <0x7000a000 0x100>;
#pwm-cells = <2>;
clocks = <&tegra_car 17>;
status = "disabled";
};

rtc {
Expand Down
1 change: 1 addition & 0 deletions arch/arm/boot/dts/tegra30.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
reg = <0x7000a000 0x100>;
#pwm-cells = <2>;
clocks = <&tegra_car 17>;
status = "disabled";
};

rtc {
Expand Down

0 comments on commit b69cd98

Please sign in to comment.