Skip to main content
Sxuem.1
Associate
June 29, 2021
Question

How to control a GPIO in TF-A ?

  • June 29, 2021
  • 3 replies
  • 1231 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

OlivierK
ST 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

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
PatrickF
ST Employee
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'

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
Sxuem.1
Sxuem.1Author
Associate
July 24, 2021

Thanks,!