AOM-DB3500 GPIO CN3
Contents
- 1GPIO Header and Selection 1.1AOM-DB3500 GPIO Connector 1.2AOM-DB3500 GPIO Jumper Setting 1.3GPIO
GPIO Header and Selection
AOM-DB3500 GPIO Connector
| CN3_GPIO Connector Pin Definition |
|---|
| Pin |
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
| 9 |
| 10 |
AOM-DB3500 GPIO Jumper Setting
| J28 GPIO0 Headers |
|---|
| Pin |
| J28(1-2) |
| J28(2-3) |
| J26 GPIO0 Selection |
|---|
| Pin |
| J26(1-2) |
| j26(2-3) |
| J25 GPIO1 Selection |
|---|
| Pin |
| J25(1-2) |
| J25(2-3) |
| J27 GPIO1 Selection |
|---|
| Pin |
| J27(1-2) |
| J27(-23) |
| J31 GPIO4 Selection |
|---|
| Pin |
| J31(2-3) |
| J37 GPIO4 Selection |
|---|
| Pin |
| J37(1-2) |
GPIO
The RK3588 bank/bit notation for GPIOs must be formed as "GPIO<GPIO_bank>_<gpio_bit>" The numeric value of GPIO is calculated as follows: 32 x (gpio_bank) + gpio_bit gpio_bit: A0A7 0-7 B0B7 8-15 C0C7 16-23 D0D7 24-31 E.g. GPIO3_A0 becomes 96
| GPIO Number | GPIO formed | Numeric Representation |
|---|---|---|
| GPIO4 | GPIO1_C6 | 54 |
Export GPIO then you can use control GPIO from user space through sysfs.
Export GPIO0
# echo 54 > /sys/class/gpio/export
Set GPIO direction to in/out
# echo "out" > /sys/class/gpio/gpio54/direction
Set GPIO value 0/1 if GPIO pin define is output
# echo 1 > /sys/class/gpio/gpio54/value
Unexport GPIO0
# echo 54 > /sys/class/gpio/unexport


