Skip to content
Banana Pi -BPI edited this page Jul 18, 2026 · 1 revision

OpenWrt One GPIO

Support level

OpenWrt One (AP-24.XY, MediaTek MT7981B) is source-backed and build-tested, but remains limited until the production image and CN7 are tested on hardware. Detection accepts the exact Device Tree identity model = "OpenWrt One" and compatible = "openwrt,one".

The implementation does not alias BPI-R4 Lite. Both boards expose mikroBUS, but their SoCs, physical routes and GPIO line numbers differ. OpenWrt One selects the MT7981 GPIO register base 0x11d00000; the existing R3/R4-family paths continue to use 0x1001f000.

CN7 mapping

Physical mode follows the standard 16-pin mikroBUS numbering. BCM-style mode uses the native MT7981 GPIO line shown below. WiringPi logical pins 0-10 follow the GPIO-capable physical pins in ascending order.

CN7 physical Function/net MT7981 GPIO wiringPi BCM-style Current policy
1 GND Power, unavailable
2 +5 V Power, unavailable
3 SDA / UART2_RTS 7 0 7 Digital GPIO or I2C/UART mux
4 SCL / UART2_CTS 6 1 6 Digital GPIO or I2C/UART mux
5 UART2_TXD 4 2 4 Digital GPIO or UART mux
6 UART2_RXD 5 3 5 Digital GPIO or UART mux
7 INT / WO_JTDI 10 4 10 Digital GPIO
8 PWM / WO_JTCK 12 5 12 Digital GPIO; hardware PWM not claimed
9 AN / AUXIN2 Analog input, unavailable to this backend
10 RST / mikrobus-reset 2 6 2 Kernel DTS exports this line; treat as board-owned until approved
11 SPI1_CS 25 7 25 Digital GPIO or SPI mux
12 SPI1_CLK 22 8 22 Digital GPIO or SPI mux
13 SPI1_MISO 24 9 24 Digital GPIO or SPI mux
14 SPI1_MOSI 23 10 23 Digital GPIO or SPI mux
15 +3.3 V Power, unavailable
16 GND Power, unavailable

Evidence chain

Validation still required

Capture the exact OpenWrt image, kernel/DTS commit, model, complete compatible, gpiodetect, gpioinfo, /dev/mem permissions and gpio readall. A hardware owner must approve safe, unoccupied CN7 lines before any input/output test. In particular, do not overwrite an active I2C/SPI/UART pinmux or the DTS-exported reset line while a mikroBUS card is attached.

Pull control is currently a no-op. Edge behavior, hardware PWM and the compiled /dev/i2c-0 / /dev/spidev1.0 metadata are not hardware-validated claims.

Clone this wiki locally