aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/dts/mt7622-totolink-a8000ru.dts
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2022-04-07 10:16:47 +0800
committerChuanhong Guo <gch981213@gmail.com>2022-04-28 18:06:00 +0800
commit68d5efaa10cf0689521fe05e386e3a1e11d8cb29 (patch)
treec6492319fa9cb6ef1694431c948b907be6fe2735 /target/linux/mediatek/dts/mt7622-totolink-a8000ru.dts
parent2138956bdc3145fac26d2ba8ac966f31d33cd290 (diff)
downloadupstream-68d5efaa10cf0689521fe05e386e3a1e11d8cb29.tar.gz
upstream-68d5efaa10cf0689521fe05e386e3a1e11d8cb29.tar.bz2
upstream-68d5efaa10cf0689521fe05e386e3a1e11d8cb29.zip
mediatek: add an upstreamed spi-nand driver
This patch implements the spi-nand controller driver as an ECC-capable spi-mem controller to use the upstream SPI-NAND driver. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/mediatek/dts/mt7622-totolink-a8000ru.dts')
-rw-r--r--target/linux/mediatek/dts/mt7622-totolink-a8000ru.dts116
1 files changed, 63 insertions, 53 deletions
diff --git a/target/linux/mediatek/dts/mt7622-totolink-a8000ru.dts b/target/linux/mediatek/dts/mt7622-totolink-a8000ru.dts
index 0386865cc2..d67fb4efbf 100644
--- a/target/linux/mediatek/dts/mt7622-totolink-a8000ru.dts
+++ b/target/linux/mediatek/dts/mt7622-totolink-a8000ru.dts
@@ -226,62 +226,72 @@
status = "okay";
};
-&snand {
- mediatek,quad-spi;
+&bch {
+ status = "okay";
+};
+
+&snfi {
pinctrl-names = "default";
pinctrl-0 = <&serial_nand_pins>;
status = "okay";
- mediatek,bmt-v2;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- label = "Preloader";
- reg = <0x0 0x80000>;
- read-only;
- };
-
- partition@80000 {
- label = "ATF";
- reg = <0x80000 0x40000>;
- read-only;
- };
-
- partition@c0000 {
- label = "u-boot";
- reg = <0xc0000 0x80000>;
- read-only;
- };
-
- partition@140000 {
- label = "u-boot-env";
- reg = <0x140000 0x80000>;
- read-only;
- };
-
- factory: partition@1c0000 {
- label = "factory";
- reg = <0x1c0000 0x40000>;
- read-only;
- };
-
- partition@200000 {
- label = "ubi";
- reg = <0x200000 0x6400000>;
- };
-
- partition@6600000 {
- label = "User_data";
- reg = <0x6600000 0x100000>;
- };
-
- /* size of this partition varies due to BMT & bad blocks. */
- partition@6700000 {
- label = "reserved";
- reg = <0x6700000 0>;
+ flash@0 {
+ compatible = "spi-nand";
+ reg = <0>;
+ spi-tx-bus-width = <4>;
+ spi-rx-bus-width = <4>;
+ nand-ecc-engine = <&snfi>;
+ mediatek,bmt-v2;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "Preloader";
+ reg = <0x0 0x80000>;
+ read-only;
+ };
+
+ partition@80000 {
+ label = "ATF";
+ reg = <0x80000 0x40000>;
+ read-only;
+ };
+
+ partition@c0000 {
+ label = "u-boot";
+ reg = <0xc0000 0x80000>;
+ read-only;
+ };
+
+ partition@140000 {
+ label = "u-boot-env";
+ reg = <0x140000 0x80000>;
+ read-only;
+ };
+
+ factory: partition@1c0000 {
+ label = "factory";
+ reg = <0x1c0000 0x40000>;
+ read-only;
+ };
+
+ partition@200000 {
+ label = "ubi";
+ reg = <0x200000 0x6400000>;
+ };
+
+ partition@6600000 {
+ label = "User_data";
+ reg = <0x6600000 0x100000>;
+ };
+
+ /* size of this partition varies due to BMT & bad blocks. */
+ partition@6700000 {
+ label = "reserved";
+ reg = <0x6700000 0>;
+ };
};
};
};