Skip to main content
Visitor 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
  • 1070 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.12Author
    Visitor II
    July 28, 2021

    I saw samething with DK2 board also,

    Technical Moderator
    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.