Skip to content

Commit 8eabf5d

Browse files
Upsylonbarelinusw
authored andcommitted
pinctrl: stm32: Introduce HDP driver
This patch introduce the driver for the Hardware Debug Port available on STM32MP platforms. The HDP allows the observation of internal SoC signals by using multiplexers. Each HDP port can provide up to 16 internal signals (one of them can be software controlled as a GPO). Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Clément Le Goffic <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 912275c commit 8eabf5d

File tree

3 files changed

+735
-0
lines changed

3 files changed

+735
-0
lines changed

drivers/pinctrl/stm32/Kconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,18 @@ config PINCTRL_STM32MP257
5757
depends on OF && HAS_IOMEM
5858
default MACH_STM32MP25 || (ARCH_STM32 && ARM64)
5959
select PINCTRL_STM32
60+
61+
config PINCTRL_STM32_HDP
62+
tristate "STMicroelectronics STM32 Hardware Debug Port (HDP) pin control"
63+
depends on OF && HAS_IOMEM
64+
default ARCH_STM32 && !ARM_SINGLE_ARMV7M
65+
select PINMUX
66+
select GENERIC_PINCONF
67+
select GPIOLIB
68+
help
69+
The Hardware Debug Port allows the observation of internal signals.
70+
It uses configurable multiplexer to route signals in a dedicated observation register.
71+
This driver also permits the observation of signals on external SoC pins.
72+
It permits the observation of up to 16 signals per HDP line.
73+
6074
endif

drivers/pinctrl/stm32/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ obj-$(CONFIG_PINCTRL_STM32H743) += pinctrl-stm32h743.o
1111
obj-$(CONFIG_PINCTRL_STM32MP135) += pinctrl-stm32mp135.o
1212
obj-$(CONFIG_PINCTRL_STM32MP157) += pinctrl-stm32mp157.o
1313
obj-$(CONFIG_PINCTRL_STM32MP257) += pinctrl-stm32mp257.o
14+
obj-$(CONFIG_PINCTRL_STM32_HDP) += pinctrl-stm32-hdp.o

0 commit comments

Comments
 (0)