2022-03-27 10:54:03 +00:00
|
|
|
--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
|
|
|
|
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
|
2024-03-29 22:15:41 +00:00
|
|
|
@@ -260,14 +260,42 @@
|
2022-03-27 10:54:03 +00:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
-&nor_flash {
|
2022-04-07 02:16:47 +00:00
|
|
|
- pinctrl-names = "default";
|
2022-03-27 10:54:03 +00:00
|
|
|
- pinctrl-0 = <&spi_nor_pins>;
|
|
|
|
- status = "disabled";
|
2022-04-07 02:16:47 +00:00
|
|
|
+&bch {
|
|
|
|
+ status = "okay";
|
|
|
|
+};
|
|
|
|
|
|
|
|
+&snfi {
|
|
|
|
+ pinctrl-names = "default";
|
2022-03-27 10:54:03 +00:00
|
|
|
+ pinctrl-0 = <&serial_nand_pins>;
|
|
|
|
+ status = "okay";
|
2022-04-07 02:16:47 +00:00
|
|
|
flash@0 {
|
|
|
|
- compatible = "jedec,spi-nor";
|
|
|
|
+ compatible = "spi-nand";
|
|
|
|
reg = <0>;
|
|
|
|
+ spi-tx-bus-width = <4>;
|
|
|
|
+ spi-rx-bus-width = <4>;
|
|
|
|
+ nand-ecc-engine = <&snfi>;
|
|
|
|
+ partitions {
|
|
|
|
+ compatible = "fixed-partitions";
|
|
|
|
+ #address-cells = <1>;
|
|
|
|
+ #size-cells = <1>;
|
2022-03-27 10:54:03 +00:00
|
|
|
+
|
2022-04-07 02:16:47 +00:00
|
|
|
+ partition@0 {
|
|
|
|
+ label = "bl2";
|
|
|
|
+ reg = <0x0 0x80000>;
|
|
|
|
+ read-only;
|
|
|
|
+ };
|
2022-03-27 10:54:03 +00:00
|
|
|
+
|
2022-04-07 02:16:47 +00:00
|
|
|
+ partition@80000 {
|
|
|
|
+ label = "fip";
|
|
|
|
+ reg = <0x80000 0x200000>;
|
|
|
|
+ read-only;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ partition@280000 {
|
|
|
|
+ label = "ubi";
|
|
|
|
+ reg = <0x280000 0x7d80000>;
|
|
|
|
+ };
|
2022-03-27 10:54:03 +00:00
|
|
|
+ };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|