]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: st: add timer pins for stm32mp257f-ev1
authorFabrice Gasnier <fabrice.gasnier@foss.st.com>
Fri, 10 Jan 2025 09:19:21 +0000 (10:19 +0100)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Fri, 4 Jul 2025 08:53:46 +0000 (10:53 +0200)
Add timer pins available on stm32mp257f-ev1, configured for PWM:
- timer3 CH2 is available on mikroBUS connector
- timer8 CH1, timer8 CH4, timer10 CH1 and timer12 CH2 are available
  on EXPANSION connector
Arbitrary define all these pins to be used as PWM (output) channels,
except for timer10 CH1, to be used as counter input.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Link: https://lore.kernel.org/r/20250110091922.980627-8-fabrice.gasnier@foss.st.com
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi

index aba90d555f4ee5749f1873206f11dfac46b7817f..5ac9e72478dddb82be0ef7432d7e728932b2f4d6 100644 (file)
                };
        };
 
+       pwm3_pins_a: pwm3-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('B', 15, AF7)>; /* TIM3_CH2 */
+                       bias-pull-down;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+       };
+
+       pwm3_sleep_pins_a: pwm3-sleep-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('B', 15, ANALOG)>; /* TIM3_CH2 */
+               };
+       };
+
+       pwm8_pins_a: pwm8-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('J', 5, AF8)>, /* TIM8_CH1 */
+                                <STM32_PINMUX('J', 4, AF8)>; /* TIM8_CH4 */
+                       bias-pull-down;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+       };
+
+       pwm8_sleep_pins_a: pwm8-sleep-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('J', 5, ANALOG)>, /* TIM8_CH1 */
+                                <STM32_PINMUX('J', 4, ANALOG)>; /* TIM8_CH4 */
+               };
+       };
+
+       pwm12_pins_a: pwm12-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('B', 11, AF9)>; /* TIM12_CH2 */
+                       bias-pull-down;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+       };
+
+       pwm12_sleep_pins_a: pwm12-sleep-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('B', 11, ANALOG)>; /* TIM12_CH2 */
+               };
+       };
+
        sdmmc1_b4_pins_a: sdmmc1-b4-0 {
                pins1 {
                        pinmux = <STM32_PINMUX('E', 4, AF10)>, /* SDMMC1_D0 */
                };
        };
 
+       tim10_counter_pins_a: tim10-counter-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('B', 9, AF9)>; /* TIM10_CH1 */
+                       bias-disable;
+               };
+       };
+
+       tim10_counter_sleep_pins_a: tim10-counter-sleep-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('B', 9, ANALOG)>; /* TIM10_CH1 */
+                       bias-disable;
+               };
+       };
+
        usart2_pins_a: usart2-0 {
                pins1 {
                        pinmux = <STM32_PINMUX('A', 4, AF6)>; /* USART2_TX */