2022-03-27 10:54:03 +00:00
|
|
|
--- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
|
|
|
|
+++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
|
2024-03-29 22:15:41 +00:00
|
|
|
@@ -540,6 +540,65 @@
|
2022-03-27 10:54:03 +00:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2022-04-07 02:16:47 +00:00
|
|
|
+&bch {
|
|
|
|
+ status = "okay";
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&snfi {
|
2022-03-27 10:54:03 +00:00
|
|
|
+ pinctrl-names = "default";
|
|
|
|
+ pinctrl-0 = <&serial_nand_pins>;
|
|
|
|
+ status = "okay";
|
2022-04-07 02:16:47 +00:00
|
|
|
+ flash@0 {
|
|
|
|
+ compatible = "spi-nand";
|
|
|
|
+ reg = <0>;
|
|
|
|
+ spi-tx-bus-width = <4>;
|
|
|
|
+ spi-rx-bus-width = <4>;
|
|
|
|
+ nand-ecc-engine = <&snfi>;
|
2022-03-27 10:54:03 +00:00
|
|
|
+
|
2022-04-07 02:16:47 +00:00
|
|
|
+ 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 = "Preloader";
|
|
|
|
+ reg = <0x00000 0x0080000>;
|
|
|
|
+ read-only;
|
|
|
|
+ };
|
2022-03-27 10:54:03 +00:00
|
|
|
+
|
2022-04-07 02:16:47 +00:00
|
|
|
+ partition@80000 {
|
|
|
|
+ label = "ATF";
|
|
|
|
+ reg = <0x80000 0x0040000>;
|
|
|
|
+ };
|
2022-03-27 10:54:03 +00:00
|
|
|
+
|
2022-04-07 02:16:47 +00:00
|
|
|
+ partition@c0000 {
|
|
|
|
+ label = "Bootloader";
|
|
|
|
+ reg = <0xc0000 0x0080000>;
|
|
|
|
+ };
|
2022-03-27 10:54:03 +00:00
|
|
|
+
|
2022-04-07 02:16:47 +00:00
|
|
|
+ partition@140000 {
|
|
|
|
+ label = "Config";
|
|
|
|
+ reg = <0x140000 0x0080000>;
|
|
|
|
+ };
|
2022-03-27 10:54:03 +00:00
|
|
|
+
|
2022-04-07 02:16:47 +00:00
|
|
|
+ partition@1c0000 {
|
|
|
|
+ label = "Factory";
|
|
|
|
+ reg = <0x1c0000 0x0100000>;
|
|
|
|
+ };
|
2022-03-27 10:54:03 +00:00
|
|
|
+
|
2022-04-07 02:16:47 +00:00
|
|
|
+ partition@200000 {
|
|
|
|
+ label = "firmware";
|
|
|
|
+ reg = <0x2c0000 0x2000000>;
|
|
|
|
+ };
|
2022-03-27 10:54:03 +00:00
|
|
|
+
|
2022-04-07 02:16:47 +00:00
|
|
|
+ partition@2200000 {
|
|
|
|
+ label = "User_data";
|
|
|
|
+ reg = <0x22c0000 0x4000000>;
|
|
|
|
+ };
|
2022-03-27 10:54:03 +00:00
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
&spi0 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&spic0_pins>;
|