From aca26e94278f60a2dc810830da033c13a56a6505 Mon Sep 17 00:00:00 2001 From: Erwan Gouriou Date: Fri, 6 Oct 2023 11:58:02 +0200 Subject: [PATCH] scripts: genpinctrl: Generate SWJ port pins 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 --- scripts/genpinctrl/stm32-pinctrl-config.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/genpinctrl/stm32-pinctrl-config.yaml b/scripts/genpinctrl/stm32-pinctrl-config.yaml index af0795753..08432c40d 100644 --- a/scripts/genpinctrl/stm32-pinctrl-config.yaml +++ b/scripts/genpinctrl/stm32-pinctrl-config.yaml @@ -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)$