ramips: use NVMEM cells with mt76 EEPROM for Netgear R6220 & WNDR3700 v5
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3050_teltonika_rut5xx.dts
index 742edbb11da4fbcc31003060f0de95c61aa2473e..6be2590a0cda2e33d3875b87c7cb1f29e2ffc49a 100644 (file)
                        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 {
@@ -83,7 +92,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};