GPIOs¶
There are two different GPIO controllers that you might interact with on the Ten64 board:
-
The SoC GPIO controller, mainly for the control header (has both GPIO and GIC IRQs) and some status LEDs.
Note SoC GPIOs may have limitations on current source/sink, different min/max voltages depending on the voltage domain, or lack ESD protection.
-
The PCA9534 GPIO expander (U39), used for control IO/s in its vicinity (SFP, LTE), as well as some with special requirements (HD activity LED).
Table of GPIOs¶
GPIO Controller | Pin | Linux GPIO number (with default device tree) | Default Direction | Purpose | Meaning of ‘0’ | Meaning of ‘1 | Notes |
---|---|---|---|---|---|---|---|
TCA9539 (U39) | 0 | 368 | Input | Lower SFP+ TXFAULT | No transmitter fault | Transmitter Fault | Has pull up |
TCA9539 (U39) | 1 | 369 | Output | Lower SFP+ TXDISABLE | SFP+ transmitter disabled | SFP+ transmitter enabled | Has pull up – if the pin is not driven as output it goes to 1, this pin may not be effective with direct connect (DAC) cables |
TCA9539 (U39) | 2 | 370 | Input | Lower SFP+ PRESENT | Lower SFP present | Lower SFP not present | |
TCA9539 (U39) | 3 | 371 | Input | Lower SFP+ LOS | Lower SFP lost signal | Lower SFP has signal | |
TCA9539 (U39) | 4 | 372 | Input | Upper SFP+ TXFAULT | No transmitter fault | Transmitter Fault | Has pull up |
TCA9539 (U39) | 5 | 373 | Output | Upper SFP+ TXDISABLE | SFP+ transmitter disabled | SFP+ transmitter enabled | Has pull up – if the pin is not driven as output it goes to 1, this pin may not be effective with direct connect (DAC) cables |
TCA9539 (U39) | 6 | 374 | Input | Upper SFP+ PRESENT | Upper SFP present | Upper SFP not present | |
TCA9539 (U39) | 7 | 375 | Input | Upper SFP+ LOS | Upper SFP lost signal | Upper SFP has signal | |
TCA9539 (U39) | 8 | 376 | Output | Cellular Modem (M.2/B) RESET | |||
TCA9539 (U39) | 9 | 377 | Output | Cellular Modem (M.2/B) POWER OFF | |||
TCA9539 (U39) | 10 | 378 | Output | Cellular Modem (M.2/B) DISABLE | |||
TCA9539 (U39) | 11 | 379 | Output | Cellular Modem (M.2/B) GNSS | |||
TCA9539 (U39) | 12 | 380 | Output | I/O Panel "ADMIN" LED+ | LED off | LED on | Both 380 and 381 need to be set up as outputs. On some beta test boards the ADMIN LED is bi-color. |
TCA9539 (U39) | 13 | 381 | Output | I/O Panel "ADMIN" LED- | Must be 0 for LED to function | ||
TCA9539 (U39) | 14 | 382 | Output | “User Switch” / P9 Header | P9 is pressed | P9 not pressed | |
TCA9539 (U39) | 15 | 383 | Output | ATX Front Panel Hard Drive Activity LED | |||
LS1088 GPIO3 | 27 | 384 | Input | GPIO Header GPIO_A | |||
LS1088 GPIO3 | 28 | 385 | Input | GPIO Header GPIO_B | |||
LS1088 GPIO3 | 29 | 386 | Input | GPIO Header GPIO_C | |||
LS1088 GPIO4 | 4 | 388 | Input | GPIO Header GPIO_D | |||
LS1088 GPIO4 | 5 | 389 | Input | GPIO Header GPIO_E | |||
LS1088 GPIO4 | 6 | 390 | Input | GPIO Header GPIO_F | |||
LS1088 GPIO4 | 7 | 391 | Input | GPIO Header GPIO_G | |||
LS1088 GPIO4 | 8 | 392 | Input | GPIO Header GPIO_H | |||
LS1088 GPIO4 | 9 | 393 | Input | Interrupt from TCA9539 | |||
LS1088 GPIO4 | 11 | 395 | Output | SFP+ Left Down (usually bound to lower port) | LED off | LED on | |
LS1088 GPIO4 | 12 | 396 | Output | SFP+ Right Up (usually bound to upper port) | LED off | LED on | |
LS1088 GPIO4 | 13 | 397 | Input | SD/SIM Tray Status | Tray Inserted/Present | Tray ejected |
Device Tree Paths for each controller¶
Controller | DT Path | Default Linux GPIO Base |
---|---|---|
TCA9539 | /soc/i2c@2000000/gpio@76 | 368 |
LS1088 GPIO1 | /soc/gpio@2300000 | 480 |
LS1088 GPIO2 | /soc/gpio@2310000 | 448 |
LS1088 GPIO3 | /soc/gpio@2320000 | 416 |
LS1088 GPIO4 | /soc/gpio@2330000 | 384 |