-
Notifications
You must be signed in to change notification settings - Fork 29
OpenWrt One
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.
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 |
- Official OpenWrt One hardware source directory
-
Official CN7/M.2/RTC KiCad schematic, SHA256
26aa741396e076904e6e9a220b3e0bb45d47a65423f615829bacb0ddd901c8a3 - Exact OpenWrt One DTS at audited OpenWrt commit
- MT7981 pinctrl groups and line names
- MT7981B DTSI and
pinctrl@11d00000
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.
Documentation for BPI-SINOVOIP/BPI-WiringPi2 · Verify the exact board, carrier, revision and voltage before driving GPIO.