ramips: use NVMEM cells with mt76 EEPROM for Netgear R6220 & WNDR3700 v5
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3050_teltonika_rut5xx.dts
index 9532d922f9525c9696cb1fadb8911aa3d0a1bf5a..6be2590a0cda2e33d3875b87c7cb1f29e2ffc49a 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "rt3050.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
@@ -20,7 +18,7 @@
                compatible = "gpio-leds";
 
                led_status: status {
-                       label = "rut5xx:green:status";
+                       label = "green:status";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
                        linux,code = <KEY_RESTART>;
                };
        };
+
+       watchdog {
+               compatible = "linux,wdt-gpio";
+               gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+               hw_algo = "toggle";
+               /* hw_margin_ms is actually 280s but driver limits it to 60s */
+               hw_margin_ms = <60000>;
+               always-running;
+       };
 };
 
 &spi0 {
        status = "okay";
 
-       m25p80@0 {
+       flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
 
 &state_default {
        gpio {
-               ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
-               ralink,function = "gpio";
+               groups = "i2c", "jtag", "rgmii", "mdio", "uartf";
+               function = "gpio";
        };
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0>;
+       ralink,mtd-eeprom = <&factory 0x0>;
 };
 
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};