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>;
+ };
};
};
};