mediatek: add an upstreamed spi-nand driver
[openwrt/staging/noltari.git] / target / linux / mediatek / dts / mt7622-linksys-e8450.dtsi
index 7358b94a8e9ce8ab2c19cef81cdbffd349be1fdc..9f0dabdb4e4838b4815b26ba17b163faa6b6afa6 100644 (file)
                switch@0 {
                        compatible = "mediatek,mt7531";
                        reg = <0>;
+                       interrupt-controller;
+                       #interrupt-cells = <1>;
+                       interrupt-parent = <&pio>;
+                       interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
                        reset-gpios = <&pio 54 0>;
 
                        ports {
        };
 };
 
-&snand {
-       mediatek,quad-spi;
+&bch {
+       status = "okay";
+};
+
+&snfi {
        pinctrl-names = "default";
        pinctrl-0 = <&serial_nand_pins>;
        status = "okay";
+
+       snand: flash@0 {
+               compatible = "spi-nand";
+               reg = <0>;
+               spi-tx-bus-width = <4>;
+               spi-rx-bus-width = <4>;
+               nand-ecc-engine = <&snfi>;
+       };
 };
 
 &spi0 {