OSDN Git Service

ARM: dts: stm32: add PWM and triggers on stm32mp157c-ev1 board
authorFabrice Gasnier <fabrice.gasnier@st.com>
Tue, 17 Apr 2018 13:45:00 +0000 (15:45 +0200)
committerAlexandre Torgue <alexandre.torgue@st.com>
Wed, 2 May 2018 15:18:57 +0000 (17:18 +0200)
stm32mp157c evaluation board has TIM2_CH4, TIM8_CH4 and TIM12_CH1
available on GPIO expansion connector.
Add PWM and associated triggers (for ADC/DAC) on these timers.
Keep them disabled so these pins can be used as GPIOs by default.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
arch/arm/boot/dts/stm32mp157c-ev1.dts

index 57e6dbc..2109558 100644 (file)
                serial0 = &uart4;
        };
 };
+
+&timers2 {
+       status = "disabled";
+       pwm {
+               pinctrl-0 = <&pwm2_pins_a>;
+               pinctrl-names = "default";
+               status = "okay";
+       };
+       timer@1 {
+               status = "okay";
+       };
+};
+
+&timers8 {
+       status = "disabled";
+       pwm {
+               pinctrl-0 = <&pwm8_pins_a>;
+               pinctrl-names = "default";
+               status = "okay";
+       };
+       timer@7 {
+               status = "okay";
+       };
+};
+
+&timers12 {
+       status = "disabled";
+       pwm {
+               pinctrl-0 = <&pwm12_pins_a>;
+               pinctrl-names = "default";
+               status = "okay";
+       };
+       timer@11 {
+               status = "okay";
+       };
+};