Skip to main content
Visitor II
October 27, 2025
Question

STM32MP257FAI3 – Some GPIO pins (e.g., PZ7, PZ8) still consumed by kernel even after removing from pinctrl in TF-A, U-Boot, and Linux

  • October 27, 2025
  • 3 replies
  • 202 views

 

Hello ST Community,

I am currently working on a custom board based on STM32MP257FAI3, derived from the STM32MP257F-EV1 evaluation board.
We initially built our own custom image and successfully enabled several peripherals (SPI, USART, Timers, ADCs, and Interrupts) and tested on evaluation board as well.

Now, while adapting the configuration for our custom hardware, I have modified all pin assignments according to the alternate functions listed in the datasheet and reference manual.
Most of the pins are configured correctly and appear as expected in the system.

However, I’ve noticed that certain pins (for example, PZ7 and PZ8, which were used for LPUART1 on the EV1) and some other pins in list are still shown as “consumer = kernel” in the output of:

 

 
gpioinfo -c /dev/gpiochip11

even though I have:

  • Removed their references from TF-A, U-Boot, and Linux kernel device trees

  • Deleted their entries from the corresponding pinctrl and pinmux configurations

Despite these removals, the pins are still being consumed by the kernel and not appearing as free GPIOs.

Could you please help clarify:

  1. Why these pins are still marked as consumed by the kernel?

  2. Which subsystem (kernel, IIO, or SCMI) could be retaining control over these pins even after removal from all pinctrl nodes?

  3. Is there an additional step needed to fully release these pins for GPIO use on STM32MP25x devices?

Thank you for your time and support!

Best regards,
Preetham

    This topic has been closed for replies.

    3 replies

    _KrishnaAuthor
    Visitor II
    October 28, 2025

    Hey @PatrickF , 
         Thanks for replying. My issue is that I have removed those from lpuart1 and I am assigning the same pins for some other purpose. When access those I am facing issue and when checked with 

                                           gpioinfo -c /dev/gpiochip11


    I am getting consumer = kernel now how to remove them designated functions so that I can use them as normal gpios.

    Technical Moderator
    October 28, 2025