Skip to main content
HZhu.12
Associate II
July 28, 2021
Question

SPI pinctrl information doesn't show up correctly although SPI bus function properly, is this correct? I expect "AF5" show up instead of "Analog" for pin function.

  • July 28, 2021
  • 2 replies
  • 1084 views

On my custom board, I configured PZ0, PZ1, PZ2 for SPI1 with device tree, and linux kernel probed successfully and populate spidev node and it works fine, but if look at debug information in /sys/kernel/debug/pinctrl/, it populate something like "pin 400 (PZ0): device 44004000.spi function analog group PZ0", I expect "AF5" for pin function instead of "analog", especailly for this case it has configured as SPI alternate pin already. Is this a kernel bug or some trick I have to do with device tree?

This topic has been closed for replies.

2 replies

HZhu.12
HZhu.12Author
Associate II
July 28, 2021

I saw samething with DK2 board also,

PatrickF
ST Employee
July 29, 2021

Hi,

is your Device Tree generated using CubeMx ?

Which ecosystem version are you using ?

could you please check if uboot and kernel device tree are identical ?

could you share related device tree nodes (pinctrl and spi only) ?

Regards.

In order to give better visibility on the answered topics, please click on 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent