![theobroma systems RK3399-Q7 User Manual Download Page 21](http://html.mh-extra.com/html/theobroma-systems/rk3399-q7/rk3399-q7_user-manual_1101597021.webp)
.
3V3
GPIO4
GPIO2
GPIO0
GND
GPIO1 GPIO3 GPIO5
GPIO7
GPIO6
Fig. 3.12: GPIO header
The GPIO numbers printed on the board refer to numbers used in the Qseven specification. They are different than the
ones used in Linux via
/sys/class/gpio
.
The mapping is shown in the following table:
Qseven signal
CPU pin
Linux GPIO #
GPIO0
GPIO4_D4
156
GPIO1
GPIO4_D1
153
GPIO2
GPIO4_D0
152
GPIO3
GPIO4_D5
157
GPIO4
GPIO4_D2
154
GPIO5
GPIO4_C4
148
GPIO6
GPIO4_C3
147
GPIO7
GPIO4_D3
155
To calculate the Linux GPIO # for CPU pins that are not listed in this table, use the following formula:
n
=
(block_number
*
32
)
+
(sub_block_number
*
8
)
+
index
Where:
• block_number: index of the block number
• sub_block_number: the alphabetical index of the block name, minus 1
• index: the pin number within the block:
RK3399-Q7 User Manual
© Theobroma Systems Design und Consulting GmbH
Release v0.2-3-g574c114
Page
17
Summary of Contents for RK3399-Q7
Page 2: ......