Difference between revisions of "AOM-DB3500 GPIO CN3"
From ESS-WIKI
Xingxing.li (talk | contribs) (→AOM-DB3500 GPIO Jumper Setting) |
Xingxing.li (talk | contribs) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== '''GPIO Header and Selection''' == | == '''GPIO Header and Selection''' == | ||
| − | |||
| − | |||
=== '''AOM-DB3500 GPIO Connector''' === | === '''AOM-DB3500 GPIO Connector''' === | ||
| − | [[File:AOM-DB3500 CN3.png|600x450px]][[File:AOM-DB3500 CN3 Pin header.png]] | + | [[File:AOM-DB3500 CN3.png|600x450px|AOM-DB3500 CN3.png]][[File:AOM-DB3500 CN3 Pin header.png|RTENOTITLE]] |
{| border="1" cellpadding="1" cellspacing="1" style="width: 500px;" | {| border="1" cellpadding="1" cellspacing="1" style="width: 500px;" | ||
| Line 68: | Line 66: | ||
|} | |} | ||
| + | === '''AOM-DB3500 GPIO Jumper Setting''' === | ||
| − | + | [[File:AOM-DB3500 GPIO.png]] | |
{| border="1" cellpadding="1" cellspacing="1" style="width: 500px;" | {| border="1" cellpadding="1" cellspacing="1" style="width: 500px;" | ||
| Line 89: | Line 88: | ||
| colspan="2" | '''J26 GPIO0 Selection''' | | colspan="2" | '''J26 GPIO0 Selection''' | ||
|- | |- | ||
| − | | '''Pin''' | + | | style="width: 123px;" | '''Pin''' |
| − | | '''Function''' | + | | style="width: 363px;" | '''Function''' |
|- | |- | ||
| − | | J26(1-2) | + | | style="width: 123px;" | J26(1-2) |
| − | | GPIO0 to CN3 | + | | style="width: 363px;" | GPIO0 to CN3 |
|- | |- | ||
| − | | j26(2-3) | + | | style="width: 123px;" | j26(2-3) |
| − | | GPIO0 to TYPEC_Z_SBU1 (Default) | + | | style="width: 363px;" | GPIO0 to TYPEC_Z_SBU1 (Default) |
|} | |} | ||
| Line 103: | Line 102: | ||
| colspan="2" | '''J25 GPIO1 Selection''' | | colspan="2" | '''J25 GPIO1 Selection''' | ||
|- | |- | ||
| − | | '''Pin''' | + | | style="width: 124px;" | '''Pin''' |
| − | | '''Function''' | + | | style="width: 362px;" | '''Function''' |
|- | |- | ||
| − | | J25(1-2) | + | | style="width: 124px;" | J25(1-2) |
| − | | ADC (AOM-3821 not support) | + | | style="width: 362px;" | ADC (AOM-3821 not support) |
|- | |- | ||
| − | | J25(2-3) | + | | style="width: 124px;" | J25(2-3) |
| − | | GPIO1 to J27 (Default) | + | | style="width: 362px;" | GPIO1 to J27 (Default) |
|} | |} | ||
| Line 117: | Line 116: | ||
| colspan="2" | '''J27 GPIO1 Selection''' | | colspan="2" | '''J27 GPIO1 Selection''' | ||
|- | |- | ||
| − | | '''Pin''' | + | | style="width: 124px;" | '''Pin''' |
| − | | '''Function''' | + | | style="width: 362px;" | '''Function''' |
| + | |- | ||
| + | | style="width: 124px;" | J27(1-2) | ||
| + | | style="width: 362px;" | GPIO1 to CN3 | ||
| + | |- | ||
| + | | style="width: 124px;" | J27(-23) | ||
| + | | style="width: 362px;" | GPIO1 to TYPEC_Z_SBU2 (Default) | ||
| + | |} | ||
| + | |||
| + | {| border="1" cellpadding="1" cellspacing="1" style="width: 500px;" | ||
| + | |- | ||
| + | | colspan="2" | '''J31 GPIO4 Selection''' | ||
| + | |- | ||
| + | | style="width: 125px;" | '''Pin''' | ||
| + | | style="width: 361px;" | '''Function''' | ||
| + | |- | ||
| + | | style="width: 125px;" | J31(2-3) | ||
| + | | style="width: 361px;" | GPIO4 to J37 (Default) | ||
| + | |} | ||
| + | |||
| + | {| border="1" cellpadding="1" cellspacing="1" style="width: 500px;" | ||
| + | |- | ||
| + | | colspan="2" | '''J37 GPIO4 Selection''' | ||
| + | |- | ||
| + | | style="width: 127px;" | '''Pin''' | ||
| + | | style="width: 359px;" | '''Function''' | ||
| + | |- | ||
| + | | style="width: 127px;" | J37(1-2) | ||
| + | | style="width: 359px;" | GPIO4 to CN3 (Default) | ||
| + | |} | ||
| + | |||
| + | |||
| + | === '''GPIO ''' === | ||
| + | |||
| + | The RK3588 bank/bit notation for GPIOs must be formed as "GPIO<GPIO_bank>_<gpio_bit>"<br/> The numeric value of GPIO is calculated as follows:<br/> 32 x (gpio_bank) + gpio_bit<br/> gpio_bit: A0~A7 0-7 B0~B7 8-15 C0~C7 16-23 D0~D7 24-31<br/> E.g. GPIO3_A0 becomes 96 | ||
| + | |||
| + | {| border="1" cellpadding="1" cellspacing="1" style="width: 500px;" | ||
|- | |- | ||
| − | | | + | | '''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 | ||
| + | <pre># echo 54 > /sys/class/gpio/export | ||
| + | </pre> | ||
| + | |||
| + | Set GPIO direction to in/out | ||
| + | <pre># echo "out" > /sys/class/gpio/gpio54/direction | ||
| + | </pre> | ||
| + | |||
| + | Set GPIO value 0/1 if GPIO pin define is output | ||
| + | <pre># echo 1 > /sys/class/gpio/gpio54/value | ||
| + | </pre> | ||
| + | |||
| + | Unexport GPIO0 | ||
| + | <pre># echo 54 > /sys/class/gpio/unexport</pre> | ||
Latest revision as of 08:08, 5 January 2026
Contents
GPIO Header and Selection
AOM-DB3500 GPIO Connector
| CN3_GPIO Connector Pin Definition | |||
| Pin | Signal | I/O | Description |
| 1 | +V1.8 | 1.8V source | |
| 2 | GND | Ground | |
| 3 | GPIO0_Z_G | I/O | GPIO0 Signal |
| 4 | GPIO4_G | I/O | GPIO4 Signal |
| 5 | GPIO1_Z_G | I/O | GPIO1 Signal |
| 6 | GPIO5_G | I/O | GPIO5 Signal |
| 7 | GPIO7_G | I/O | GPIO7 Signal |
| 8 | GPIO6_G | I/O | GPIO6 Signal |
| 9 | N/A | Note Applicable | |
| 10 | GPIO3_PH | I/O | GPIO3 Signal |
AOM-DB3500 GPIO Jumper Setting
| J28 GPIO0 Headers | |
| Pin | Function |
| J28(1-2) | ADC(AOM-3821 not support) |
| J28(2-3) | GPIO0 to J26(Default) |
| J26 GPIO0 Selection | |
| Pin | Function |
| J26(1-2) | GPIO0 to CN3 |
| j26(2-3) | GPIO0 to TYPEC_Z_SBU1 (Default) |
| J25 GPIO1 Selection | |
| Pin | Function |
| J25(1-2) | ADC (AOM-3821 not support) |
| J25(2-3) | GPIO1 to J27 (Default) |
| J27 GPIO1 Selection | |
| Pin | Function |
| J27(1-2) | GPIO1 to CN3 |
| J27(-23) | GPIO1 to TYPEC_Z_SBU2 (Default) |
| J31 GPIO4 Selection | |
| Pin | Function |
| J31(2-3) | GPIO4 to J37 (Default) |
| J37 GPIO4 Selection | |
| Pin | Function |
| J37(1-2) | GPIO4 to CN3 (Default) |
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: A0~A7 0-7 B0~B7 8-15 C0~C7 16-23 D0~D7 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

