GPIO Pin Assignment
To configure GPIO in the DTS an entry such as the following can be used, which consists of the GPIO bank, the GPIO Number, and the GPIO Options. More information on the possible GPIO options can be found here.
gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
For ATM33/ATM34
gpio1
with GPIO number5
would map toP21
.
Below are tables containing mappings of the GPIO banks and their GPIO number to the physical pin number:
Note
Not all packages will have all of the GPIOs available to them. Please check the Pinmux Tool to see the available GPIO for a given package.
ATM33:
GPIO Bank |
GPIO Number |
Pin Number |
---|---|---|
gpio0 |
0-15 |
P0-P15 |
gpio1 |
0-14 |
P16-P30 |
ATM34:
GPIO Bank |
GPIO Number |
Pin Number |
---|---|---|
gpio0 |
0-15 |
P0-P15 |
gpio1 |
0-14 |
P16-P30 |
gpio2 |
3-15 |
P35-P47 |
gpio3 |
0-3 |
P48-P51 |