
For debug purpose, it's useful to know the pins muxing to check is a pin is configured as a GPIO or as an alternate function. For this purpose a new command pinmux is implemented.
This series adds: _ Add new pinmux_show ops to UCLASS pinctrl - Add new pinmux command - Add get_function() support to stm32 gpio driver - Add pinmux_show() support to stm32 pinctrl driver - Enable CMD_PINMUX flag to stm32mp15 defconfig
Patrice Chotard (5): dm: pinctrl: Add pinmux_show() ops cmd: pinmux: Add pinmux command configs: stm32mp15: Enable CMD_PINMUX pinctrl: stm32: Add pinmux_show() ops gpio: stm32f7: Add ops get_function
cmd/Kconfig | 8 +++ cmd/Makefile | 3 + cmd/pinmux.c | 115 ++++++++++++++++++++++++++++++++++++++ configs/stm32mp15_basic_defconfig | 1 + drivers/gpio/stm32f7_gpio.c | 20 +++++++ drivers/pinctrl/pinctrl-uclass.c | 10 ++++ drivers/pinctrl/pinctrl_stm32.c | 79 ++++++++++++++++++++++++++ include/dm/pinctrl.h | 29 ++++++++++ 8 files changed, 265 insertions(+) create mode 100644 cmd/pinmux.c