mediatek: change dts to use the new snand driver
[openwrt/staging/noltari.git] / target / linux / mediatek / dts / mt7622-rfb1-ubi.dts
index a54e710924b119a28056f5a3f30e8292e0246db5..3816dcb9cc117aecb7b828c5a17976a287b64267 100644 (file)
@@ -6,63 +6,51 @@
        compatible = "mediatek,mt7622,ubi";
 };
 
-&snfi {
-       pinctrl-names = "default";
-       pinctrl-0 = <&serial_nand_pins>;
-       status = "okay";
-
-       spi_nand@0 {
+&snand {
+       partitions {
+               compatible = "fixed-partitions";
                #address-cells = <1>;
                #size-cells = <1>;
-               compatible = "spi-nand";
-               spi-max-frequency = <104000000>;
-               reg = <0>;
-
-               partitions {
-                       compatible = "fixed-partitions";
-                       #address-cells = <1>;
-                       #size-cells = <1>;
 
-                       partition@0 {
-                               label = "Preloader";
-                               reg = <0x00000 0x0080000>;
-                               read-only;
-                       };
+               partition@0 {
+                       label = "Preloader";
+                       reg = <0x00000 0x0080000>;
+                       read-only;
+               };
 
-                       partition@80000 {
-                               label = "ATF";
-                               reg = <0x80000 0x0040000>;
-                       };
+               partition@80000 {
+                       label = "ATF";
+                       reg = <0x80000 0x0040000>;
+               };
 
-                       partition@c0000 {
-                               label = "Bootloader";
-                               reg = <0xc0000 0x0080000>;
-                       };
+               partition@c0000 {
+                       label = "Bootloader";
+                       reg = <0xc0000 0x0080000>;
+               };
 
-                       partition@140000 {
-                               label = "Config";
-                               reg = <0x140000 0x0080000>;
-                       };
+               partition@140000 {
+                       label = "Config";
+                       reg = <0x140000 0x0080000>;
+               };
 
-                       factory: partition@1c0000 {
-                               label = "Factory";
-                               reg = <0x1c0000 0x0040000>;
-                       };
+               factory: partition@1c0000 {
+                       label = "Factory";
+                       reg = <0x1c0000 0x0040000>;
+               };
 
-                       partition@200000 {
-                               label = "kernel";
-                               reg = <0x200000 0x400000>;
-                       };
+               partition@200000 {
+                       label = "kernel";
+                       reg = <0x200000 0x400000>;
+               };
 
-                       partition@600000 {
-                               label = "ubi";
-                               reg = <0x600000 0x1C00000>;
-                       };
+               partition@600000 {
+                       label = "ubi";
+                       reg = <0x600000 0x1C00000>;
+               };
 
-                       partition@2200000 {
-                               label = "User_data";
-                               reg = <0x2200000 0x4000000>;
-                       };
+               partition@2200000 {
+                       label = "User_data";
+                       reg = <0x2200000 0x4000000>;
                };
        };
 };