Tool/software: Code Composer Studio
I have a bunch of pins that i want to configure as GPIO and use them in Linux.
How do i determine which Linux GPIO numbers corresponding to those pins in the schematic?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
I have a bunch of pins that i want to configure as GPIO and use them in Linux.
How do i determine which Linux GPIO numbers corresponding to those pins in the schematic?
Data Sheet Link:
For the sake of demonstration let us take pins: GPMC0_AD10 GPMC0_AD11 GPMC0_AD12 &GPMC0_AD13.
The GPIO numbers in Linux for a pin in schematic can be determined by following the below steps.
GPMC0_AD11 It is muxed with GPIO0_72
GPMC0_AD12 It is muxed with GPIO0_73
GPMC0_AD13 It is muxed with GPIO0_80
Pin Name | SoC GPIO name | Linux GPIO number |
GPMC0_AD10 | GPIO0_71 | GPIO407 |
GPMC0_AD11 | GPIO0_72 | GPIO408 |
GPMC0_AD12 | GPIO0_73 | GPIO409 |
GPMC0_AD13 | GPIO0_80 | GPIO416 |