openwrt/package/boot/uboot-mediatek/patches/403-add-bananapi_bpi-r64-snand.patch
Daniel Golle cea78b047e uboot-mediatek: add spi-nand build for bananapi bpi-r64
Some of bpi-r64 boards have serial NAND attached to SPI bus.
Build U-Boot for booting from SPI-NAND.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Signed-off-by: maurerr <mariusd84@gmail.com>
2021-09-01 08:07:58 +00:00

34 lines
536 B
Diff

--- a/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
+++ b/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
@@ -19,7 +19,7 @@
};
aliases {
- spi0 = &snfi;
+ spi0 = &snand;
ethernet0 = &eth;
};
@@ -205,17 +205,11 @@
};
};
-&snfi {
- pinctrl-names = "default", "snfi";
- pinctrl-0 = <&snor_pins>;
- pinctrl-1 = <&snfi_pins>;
+&snand {
+ pinctrl-names = "default";
+ pinctrl-0 = <&snfi_pins>;
status = "okay";
-
- spi-flash@0{
- compatible = "jedec,spi-nor";
- reg = <0>;
- u-boot,dm-pre-reloc;
- };
+ quad-spi;
};
&uart0 {