mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-30 15:46:31 +00:00
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>
93 lines
1.7 KiB
Plaintext
93 lines
1.7 KiB
Plaintext
/dts-v1/;
|
|
#include "sf21h8898_bananapi_bpi-rv2.dtsi"
|
|
|
|
/ {
|
|
model = "Bananapi BPI-RV2 (Booting from NAND)";
|
|
compatible = "bananapi,bpi-rv2-nand", "siflower,sf21h8898";
|
|
};
|
|
|
|
&spi0 {
|
|
status = "okay";
|
|
num-cs = <2>;
|
|
cs-gpios = <&gpio 5 GPIO_ACTIVE_LOW>, <&gpio 36 GPIO_ACTIVE_LOW>;
|
|
|
|
flash@0 {
|
|
compatible = "spi-nand";
|
|
reg = <0>;
|
|
spi-max-frequency = <35000000>;
|
|
spi-tx-bus-width = <2>;
|
|
spi-rx-bus-width = <2>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
partition@0 {
|
|
label = "fbl";
|
|
reg = <0x0 0x20000>;
|
|
};
|
|
|
|
partition@20000 {
|
|
label = "ubi";
|
|
reg = <0x20000 0x0>;
|
|
compatible = "linux,ubi";
|
|
|
|
volumes {
|
|
factory: ubi-volume-factory {
|
|
volname = "factory";
|
|
|
|
nvmem-layout {
|
|
compatible = "fixed-layout";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
macaddr_factory_0: macaddr@0 {
|
|
compatible = "mac-base";
|
|
reg = <0x0 0x6>;
|
|
#nvmem-cell-cells = <1>;
|
|
};
|
|
};
|
|
};
|
|
|
|
rootdisk: ubi-volume-fit {
|
|
volname = "fit";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
flash@1 {
|
|
compatible = "jedec,spi-nor";
|
|
reg = <1>;
|
|
spi-max-frequency = <35000000>;
|
|
spi-tx-bus-width = <2>;
|
|
spi-rx-bus-width = <2>;
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
partition@0 {
|
|
label = "bootloader-nor";
|
|
reg = <0x0 0x90000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@90000 {
|
|
label = "factory-nor";
|
|
reg = <0x90000 0x10000>;
|
|
};
|
|
|
|
partition@a0000 {
|
|
label = "firmware-nor";
|
|
reg = <0xa0000 0xf60000>;
|
|
};
|
|
};
|
|
};
|
|
};
|