Skip to content

Commit

Permalink
scripts: genpinctrl: add TSC pinctrl definition
Browse files Browse the repository at this point in the history
add TSC regex to match and
generate pin configs

Signed-off-by: Arif Balik <arifbalik@outlook.com>
  • Loading branch information
arifbalik authored and erwango committed Dec 3, 2024
1 parent 26d75d4 commit 3cfe900
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/genpinctrl/stm32-pinctrl-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@
- name: TIM_CH / TIM_CHN
match: "^TIM\\d+_CH\\d+N?$"

- name: TSC
match: "^TSC_(?:G\\d+_IO\\d+|SYNC)$"

- name: UART_CTS / USART_CTS / LPUART_CTS
match: "^(?:LP)?US?ART\\d+_CTS$"
drive: open-drain
Expand Down
4 changes: 4 additions & 0 deletions scripts/genpinctrl/stm32f1-pinctrl-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@
mode: input
variant: pwm_in

- name: TSC
match: "^TSC_(?:G\\d+_IO\\d+|SYNC)$"
mode: alternate

- name: UART_CTS / USART_CTS
match: "^US?ART\\d+_CTS$"
drive: open-drain
Expand Down

0 comments on commit 3cfe900

Please sign in to comment.