This page gives the information about the GPIO drivers in u-boot.

Table of Contents

U-boot Configuration

To enable GPIO in u-boot, the following configurations need to be enabled
CONFIG_DM_GPIO=y
CONFIG_ZYNQ_GPIO=y
CONFIG_CMD_GPIO=y
 

Test Procedure

Command Line:
It’s a simple way to access the GPIO from the command line.
Following commands need to run on the u-boot console:
gpio status -a
gpio input <gpio_num>
gpio set <gpio_num>
gpio clear <gpio_num>
gpio toggle <gpio_num>

Zynq Ultrascale+

Zynq-7000