siflower: sf21: add support for Bananapi BPI-RV2
authorChuanhong Guo <gch981213@gmail.com>
Tue, 14 Jan 2025 06:36:36 +0000 (14:36 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Wed, 5 Feb 2025 03:08:37 +0000 (11:08 +0800)
commitb8a8bf53e94c07b4c2cb85005d9598f9f6d7b87e
tree32a309a1c6bcf7aafa1899e977644f8981964838
parentc057db94f8e229054c17bb3473e0914a915695de
siflower: sf21: add support for Bananapi BPI-RV2

Specification:
 - Siflower SF21H8898
 - 512MB DDR3, 128MB SPI-NAND and 16MB SPI-NOR
 - 5x Gigabit ports (SF23P1240 QSGMII PHY and SF23P1211F RGMII PHY)
 - 1x 2.5G port (Airoha EN8811H PHY)
 - M.2 Key B slot with USB2.0, PCIEx1 and a NanoSIM card slot
 - MiniPCIe slot with USB2.0 and PCIEx1
 - 1x USB2.0 port through USB Hub
 - PCF8563-compatible RTC

The SoC can only boot from SPI0. Two SPI flash chipselects are connected
to GPIO5 (SPI0 CS) and GPIO36 through a 2x2 jumper. It boots from
SPI-NOR or SPI-NAND depending on how the jumpers are connected.

The firmware can be flashed using U-boot web recovery from Siflower
vendor U-boot.

Link: https://github.com/openwrt/openwrt/pull/17115
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/siflower/dts/sf21h8898_bananapi_bpi-rv2-nand.dts [new file with mode: 0644]
target/linux/siflower/dts/sf21h8898_bananapi_bpi-rv2-nor.dts [new file with mode: 0644]
target/linux/siflower/dts/sf21h8898_bananapi_bpi-rv2.dtsi [new file with mode: 0644]
target/linux/siflower/image/sf21.mk
target/linux/siflower/sf21/base-files/etc/board.d/02_network
target/linux/siflower/sf21/base-files/lib/upgrade/platform.sh