mediatek: filogic: switch to fitblk for Xiaomi Redmi AX6000
[openwrt/staging/mans0n.git] / target / linux / mediatek / dts / mt7986a-xiaomi-redmi-router-ax6000.dtsi
index cd74fbec74279fc141941e8ab3832fe79f4cb731..723c4f329683a7bf9ed051c82eee9ac36b68783a 100644 (file)
@@ -2,6 +2,7 @@
 
 /dts-v1/;
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/leds/common.h>
 
@@ -16,7 +17,7 @@
                led-upgrade = &led_status_rgb;
        };
 
-       chosen {
+       chosen: chosen {
                stdout-path = "serial0:115200n8";
        };
 
        };
 };
 
+&crypto {
+       status = "okay";
+};
+
 &eth {
        status = "okay";
 
@@ -50,9 +55,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 +72,7 @@
 };
 
 &mdio {
-       switch: switch@0 {
+       switch: switch@1f {
                compatible = "mediatek,mt7531";
                reg = <31>;
                reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
                reg = <0>;
 
                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>;
+                                       };
                                };
                        };
 
 
                led_status_rgb: led@0 {
                        reg = <0>;
-                       label = "rgb:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RGB>;
                        color-index = <LED_COLOR_ID_RED LED_COLOR_ID_GREEN LED_COLOR_ID_BLUE>;
                };
 
                led_network_rgb: led@1 {
                        reg = <1>;
-                       label = "rgb:network";
+
+                       /* Hardcoding here for backward compatibility */
+                       function = "network";
+
+                       color = <LED_COLOR_ID_RGB>;
                        color-index = <LED_COLOR_ID_RED LED_COLOR_ID_GREEN LED_COLOR_ID_BLUE>;
                };
        };
 
                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>;