ramips: add proper system clock and reset driver support for mt7621
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_thunder_timecloud.dts
index f40c0eb7c2d8d5bb9aa7f82a674ed6f29f1460d8..917a6beb512228e3b78452cb5539e0bf76cb195e 100644 (file)
                compatible = "gpio-leds";
 
                statw {
-                       label = "timecloud:white:status";
+                       label = "white:status";
                        gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
                };
 
                led_statuso: stato {
-                       label = "timecloud:orange:status";
+                       label = "orange:status";
                        gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
                };
        };
@@ -94,7 +94,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};