ARM: dts: stih407: Enable PWM nodes only board level
authorMaxime Coquelin <maxime.coquelin@st.com>
Wed, 23 Sep 2015 00:47:44 +0000 (02:47 +0200)
committerMaxime Coquelin <maxime.coquelin@st.com>
Tue, 29 Sep 2015 13:55:04 +0000 (15:55 +0200)
The PWM may not be used on some boards, so enable them only the board file.

Acked-by: Patrice Chotard <patrice.chotard@st.com>
Acked-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
arch/arm/boot/dts/stih407-family.dtsi
arch/arm/boot/dts/stihxxx-b2120.dtsi

index ae0527754000e6f8752b4f12cced4d8c68c165d3..9975e8feffa645d5ce4e510dcfddb96487d161ee 100644 (file)
                /* COMMS PWM Module */
                pwm0: pwm@9810000 {
                        compatible      = "st,sti-pwm";
-                       status          = "okay";
                        #pwm-cells      = <2>;
                        reg             = <0x9810000 0x68>;
                        pinctrl-names   = "default";
                        clock-names     = "pwm";
                        clocks          = <&clk_sysin>;
                        st,pwm-num-chan = <1>;
+
+                       status          = "disabled";
                };
 
                /* SBC PWM Module */
                pwm1: pwm@9510000 {
                        compatible      = "st,sti-pwm";
-                       status          = "okay";
                        #pwm-cells      = <2>;
                        reg             = <0x9510000 0x68>;
                        pinctrl-names   = "default";
                        clock-names     = "pwm";
                        clocks          = <&clk_sysin>;
                        st,pwm-num-chan = <4>;
+
+                       status          = "disabled";
                };
        };
 };
index f589fe487f13f2ad41af93506ed9c968c8398150..ab029f7239b257abcf213550c6e5368f171094c6 100644 (file)
                        };
                };
 
+               pwm0: pwm@9810000 {
+                       status = "okay";
+               };
+
+               pwm1: pwm@9510000 {
+                       status = "okay";
+               };
+
                i2c@9842000 {
                        status = "okay";
                };