]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: tegra: fix the status of PWM DT nodes
authorAndrew Chew <achew@nvidia.com>
Tue, 12 Mar 2013 23:40:51 +0000 (16:40 -0700)
committerStephen Warren <swarren@nvidia.com>
Wed, 13 Mar 2013 16:15:59 +0000 (10:15 -0600)
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>
arch/arm/boot/dts/tegra20-medcom-wide.dts
arch/arm/boot/dts/tegra20.dtsi
arch/arm/boot/dts/tegra30.dtsi

index a2d6d6541f83ebc8bf3e73d7cff4b0b1848959ef..52993a1d181f2e082fa47693de49c5eccacc3924 100644 (file)
@@ -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";
index 9a428931d0429d2befef3d6d3084b7499eeb3a02..0bfd823086306170d36e30a00e0ed8882b432696 100644 (file)
                reg = <0x7000a000 0x100>;
                #pwm-cells = <2>;
                clocks = <&tegra_car 17>;
+               status = "disabled";
        };
 
        rtc {
index 767803e1fd55f2d6e75053527e47a26d536e4f77..c37165128e58446e7235f89e59633849776090e8 100644 (file)
                reg = <0x7000a000 0x100>;
                #pwm-cells = <2>;
                clocks = <&tegra_car 17>;
+               status = "disabled";
        };
 
        rtc {