mediatek: add support for Bananapi BPi-R3
authorDaniel Golle <daniel@makrotopia.org>
Wed, 13 Jul 2022 03:30:32 +0000 (04:30 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 30 Aug 2022 12:36:28 +0000 (13:36 +0100)
commita96382c1bb204698cd43e82193877c10e4b63027
tree8731bd46ed0128f54440ba5d30ce79b6de54322b
parent38f7e932a5bbbf0f6dbc64ac05aa59e27c7ceec6
mediatek: add support for Bananapi BPi-R3

The Bananapi BPi-R3 is a development router board built around the
MediaTek Filogic 830 (MT7986A) SoC.
The board can boot either from microSD, SPI-NAND, SPI-NOR or eMMC.
Only either SPI-NAND or SPI-NOR can be used at the same time, also only
either microSD or eMMC can be used. The various storage options can be
selected using small SMD switches on the board.

Specs:
 * MediaTek MT7986A (Filogic 830) 4x ARM Cortex A53
 * 4T4R 2.4G 802.11bgnax (MT7975N)
 * 4T4R 5G 802.11anac/ax (MT7975P)
 * 2 GB DDR4 RAM
 * 8 GB eMMC
 * 128 MB SPI-NAND flash
 * 32 MB SPI-NOR flash
 * on-board MT7531 GbE switch
 * 2x SFP+ (1 GbE / 2.5 GbE)
 * 5x GbE network port
 * miniPCIe slot (only USB 2.0 connected)
 * uSIM slot (connected to miniPCIe interface)
 * M.2 KEY-E PCIe interface (PCIe x2)
 * microSD card interface
 * 26 PIN GPIO

Hardware details: https://wiki.banana-pi.org/Banana_Pi_BPI-R3

Working:
 * all 4 boot methods incl. installation via U-Boot, sysupgrade, ...
 * copper LAN and WAN ports
 * SFP1 (connected to gmac1, eth1 in Linux)
 * WiFi
 * LEDs
 * Buttons
 * PSTORE/ramoops based dual-boot

Not Working (missing driver features):
 * SFP2 (connected to MT7531 switch)

Untested:
 * M.2/NGFF slot (PCIe x2)
 * mPCIe slot (USB 2.0 + SIM)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/base-files/etc/uci-defaults/99_fwenv-store-ethaddr.sh
target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-emmc-nor.dts [new file with mode: 0644]
target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-emmc-snand.dts [new file with mode: 0644]
target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-nor.dts [new file with mode: 0644]
target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-snand.dts [new file with mode: 0644]
target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts [new file with mode: 0644]
target/linux/mediatek/filogic/base-files/etc/board.d/02_network
target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
target/linux/mediatek/image/filogic.mk