Skip to content

Commit

Permalink
scripts: genpinctrl: Generate SWJ port pins
Browse files Browse the repository at this point in the history
Generate Serial Wire and JTAG port pins definitions.
The particularity of these signals is that they are part of
default SoC boot time configuration (in order to enable debug at boot time
with no SW configuration required).

The reason we need to define them is to enable the ability to set
JTAG port pins in analog mode when they are not needed in order to
save power (set them to analog).

Today, the use case of dynamic configuration from analog back to a
functional SWJ state is not taken into account, hence we're not generating
the complete pin configuration (including possible pull-down or slew-rate
combinations).

Similarly, we're not generating these signals on STM32F1 as default SoC
configuration is analog state. Hence no need to be taken into account
for the required functionality.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
  • Loading branch information
erwango committed Jan 11, 2024
1 parent 4e94213 commit aca26e9
Showing 1 changed file with 3 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 @@ -267,3 +267,6 @@

- name: USB
match: "^USB_(?:DM)?(?:DP)?(?:NOE)?$"

- name: JTAG PORT
match: ^(SYS|DEBUG)_(JTMS-SWDIO|JTCK-SWCLK|JTDI|JTDO(-TRACESWO|-SWO)?|(NJ)?JTRST)$

0 comments on commit aca26e9

Please sign in to comment.