ramips: add proper system clock and reset driver support for mt7621
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_thunder_timecloud.dts
index 195750a27d0ab509e1a84a14410f29421d7b8518..917a6beb512228e3b78452cb5539e0bf76cb195e 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "mt7621.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
                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>;
                };
        };
@@ -58,7 +56,7 @@
 &spi0 {
        status = "okay";
 
-       m25p80@0 {
+       flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
        };
 };
 
-&ethernet {
-       mtd-mac-address = <&factory 0xe000>;
+&gmac0 {
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
+};
+
+&switch0 {
+       ports {
+               port@4 {
+                       status = "okay";
+                       label = "lan";
+               };
+       };
 };
 
 &state_default {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};