diff options
author | Oskari Lemmela <oskari@lemmela.net> | 2021-04-10 20:16:08 +0300 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2021-04-11 20:19:44 +0100 |
commit | 3c23a7c03dc9821d25f3fd2a8ab17a4c460c3584 (patch) | |
tree | c160c7a241ebb5f5fb9f1c21f78a86dc798667f6 /target/linux/mediatek/patches-5.10 | |
parent | 987562bad2d8d48297829070bfdbaf0a0a423a27 (diff) | |
download | upstream-3c23a7c03dc9821d25f3fd2a8ab17a4c460c3584.tar.gz upstream-3c23a7c03dc9821d25f3fd2a8ab17a4c460c3584.tar.bz2 upstream-3c23a7c03dc9821d25f3fd2a8ab17a4c460c3584.zip |
mediatek: mt7622: add spi-nand support for bananapi bpi-r64
Some of bpi-r64 boards have serial NAND attached to SPI bus.
Add SD card image support for installing openwrt to it.
Default to nand upgrade if root device is not mmc block device.
Separate preloader and uboot images for snand are generated.
Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Diffstat (limited to 'target/linux/mediatek/patches-5.10')
-rw-r--r-- | target/linux/mediatek/patches-5.10/115-dts-bpi64-add-snand-support.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/target/linux/mediatek/patches-5.10/115-dts-bpi64-add-snand-support.patch b/target/linux/mediatek/patches-5.10/115-dts-bpi64-add-snand-support.patch new file mode 100644 index 0000000000..aa0e347115 --- /dev/null +++ b/target/linux/mediatek/patches-5.10/115-dts-bpi64-add-snand-support.patch @@ -0,0 +1,57 @@ +--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts 2021-03-13 13:46:37.057936814 +0200 ++++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts 2021-03-13 13:49:26.957481217 +0200 +@@ -114,7 +114,7 @@ + }; + + &bch { +- status = "disabled"; ++ status = "okay"; + }; + + &btif { +@@ -259,14 +259,40 @@ + status = "disabled"; + }; + +-&nor_flash { ++&snfi { + pinctrl-names = "default"; +- pinctrl-0 = <&spi_nor_pins>; +- status = "disabled"; ++ pinctrl-0 = <&serial_nand_pins>; ++ status = "okay"; + +- flash@0 { +- compatible = "jedec,spi-nor"; ++ snand: spi_nand@0 { ++ #address-cells = <1>; ++ #size-cells = <1>; ++ compatible = "spi-nand"; ++ spi-max-frequency = <104000000>; + reg = <0>; ++ ++ partitions { ++ compatible = "fixed-partitions"; ++ #address-cells = <1>; ++ #size-cells = <1>; ++ ++ partition@0 { ++ label = "bl2"; ++ reg = <0x0 0x80000>; ++ read-only; ++ }; ++ ++ partition@80000 { ++ label = "fip"; ++ reg = <0x80000 0x200000>; ++ read-only; ++ }; ++ ++ partition@280000 { ++ label = "ubi"; ++ reg = <0x280000 0x7d80000>; ++ }; ++ }; + }; + }; + |