Skip to main content
Visitor II
June 29, 2021
Question

How to control a GPIO in TF-A ?

  • June 29, 2021
  • 3 replies
  • 1206 views

I want to control a GPIO before u-boot, so how to control in TF-A?

    This topic has been closed for replies.

    3 replies

    Technical Moderator
    July 16, 2021

    Hi Sxuem.1 (Community Member)

    STM32 GPIO driver is available in TF-A source <TF-A source directory>/drivers/st/gpio/stm32_gpio.c

    Also you can append the &pinctrl node in DT to initialize a specific GPIO configuration.

    Regards,

    Olivier

    Technical Moderator
    July 21, 2021

    In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

    Sxuem.1Author
    Visitor II
    July 24, 2021

    Thanks,!