Commit 4cc1eb99 authored by Guillaume Gautier's avatar Guillaume Gautier Committed by Erwan Gouriou
Browse files

scripts: genpinctrl: Fix STM32F1 PWM pins generation

On STM32F1xx, pins used for PWM input must be configured as input, and not
as alternate.
This commit adds the generation of all PWM inputs, in addition to the
already present (though renamed) PWM outputs.

Signed-off-by: default avatarGuillaume Gautier <guillaume.gautier-ext@st.com>
parent b916f9a0
Loading
Loading
Loading
Loading
+7 −2
Changes for scripts/genpinctrl/stm32f1-pinctrl-config.yaml: 7 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -208,10 +208,15 @@
  mode: input
  variant: slave

- name: TIM_CH_PWM / TIM_CHN_PWM
- name: TIM_CH_PWM_OUT / TIM_CHN_PWM_OUT
  match: "^TIM\\d+_CH\\d+N?$"
  mode: alternate
  variant: pwm
  variant: pwm_out

- name: TIM_CH_PWM_IN / TIM_CHN_PWM_IN
  match: "^TIM\\d+_CH\\d+N?$"
  mode: input
  variant: pwm_in

- name: UART_CTS / USART_CTS
  match: "^US?ART\\d+_CTS$"