mediatek: use mac-base
[openwrt/staging/hauke.git] / target / linux / mediatek / dts / mt7986a-xiaomi-redmi-router-ax6000.dtsi
index 4b2754b001251e53a5d5f356de9df0b3bb377888..ffa5acb5d3694ec630e9de0e0b1e84027d6145fc 100644 (file)
        };
 };
 
+&crypto {
+       status = "okay";
+};
+
 &eth {
        status = "okay";
 
@@ -50,9 +54,8 @@
                reg = <0>;
                phy-mode = "2500base-x";
 
-               nvmem-cells = <&macaddr_factory_4>;
+               nvmem-cells = <&macaddr_factory_4 (-1)>;
                nvmem-cell-names = "mac-address";
-               mac-address-increment = <(-1)>;
 
                fixed-link {
                        speed = <2500>;
@@ -68,7 +71,7 @@
 };
 
 &mdio {
-       switch: switch@0 {
+       switch: switch@1f {
                compatible = "mediatek,mt7531";
                reg = <31>;
                reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
 &spi0 {
        pinctrl-names = "default";
        pinctrl-0 = <&spi_flash_pins>;
-       cs-gpios = <0>, <0>;
        status = "okay";
 
-       flash@0 {
+       spi_nand_flash: flash@0 {
                compatible = "spi-nand";
                #address-cells = <1>;
                #size-cells = <1>;
                reg = <0>;
 
-               mediatek,nmbm;
-               mediatek,bmt-max-ratio = <1>;
-               mediatek,bmt-max-reserved-blocks = <64>;
-
                spi-max-frequency = <20000000>;
-               spi-tx-buswidth = <4>;
-               spi-rx-buswidth = <4>;
+               spi-tx-bus-width = <4>;
+               spi-rx-bus-width = <4>;
 
                partitions: partitions {
                        compatible = "fixed-partitions";
                                reg = <0x180000 0x200000>;
                                read-only;
 
-                               compatible = "nvmem-cells";
-                               #address-cells = <1>;
-                               #size-cells = <1>;
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
 
-                               macaddr_factory_4: macaddr@4 {
-                                       reg = <0x4 0x6>;
+                                       macaddr_factory_4: macaddr@4 {
+                                               compatible = "mac-base";
+                                               reg = <0x4 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
                                };
                        };
 
                                reg = <0x380000 0x200000>;
                                read-only;
                        };
-
-                       partition@580000 {
-                               label = "crash";
-                               reg = <0x580000 0x40000>;
-                               read-only;
-                       };
-
-                       partition@5c0000 {
-                               label = "crash_log";
-                               reg = <0x5c0000 0x40000>;
-                               read-only;
-                       };
                };
        };
 };
 
                port@6 {
                        reg = <6>;
-                       label = "cpu";
                        ethernet = <&gmac0>;
                        phy-mode = "2500base-x";
 
        };
 };
 
-&wmac {
+&trng {
+       status = "okay";
+};
+
+&uart0 {
+       status = "okay";
+};
+
+&watchdog {
+       status = "okay";
+};
+
+&wifi {
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&wf_2g_5g_pins>;