ramips: add support for Sercomm CPJ routers
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_tenbay_t-mb5eu-v01.dts
index 4be80f4836dfdc924d82e1601f73fa19d5be85ce..a7e048f9ae6c5186e89b4174d423e097e1a17f55 100644 (file)
@@ -14,7 +14,7 @@
                led-failsafe = &led_red;
                led-running = &led_blue;
                led-upgrade = &led_red;
-               label-mac-device = &wan_port;
+               label-mac-device = &gmac1;
        };
 
        chosen {
 
 &pcie1 {
        wifi@0,0 {
+               compatible = "mediatek,mt76";
                reg = <0x0 0 0 0 0>;
-               mediatek,mtd-eeprom = <&factory 0x0>;
+               nvmem-cells = <&eeprom_factory_0>;
+               nvmem-cell-names = "eeprom";
+               mediatek,disable-radar-background;
        };
 };
 
        nvmem-cell-names = "mac-address";
 };
 
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy0>;
+
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
+       mac-address-increment = <(-2)>;
+};
+
+&mdio {
+       ethphy0: ethernet-phy@0 {
+               reg = <0>;
+       };
+};
+
 &switch0 {
        ports {
-               wan_port: port@0 {
-                       status = "okay";
-                       label = "wan";
-                       nvmem-cells = <&macaddr_factory_4>;
-                       nvmem-cell-names = "mac-address";
-                       mac-address-increment = <(-2)>;
-               };
-
                port@1 {
                        status = "okay";
                        label = "lan1";
                        };
 
                        factory: partition@50000 {
+                               compatible = "nvmem-cells";
                                label = "factory";
                                reg = <0x50000 0x40000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
                                read-only;
+
+                               eeprom_factory_0: eeprom@0 {
+                                       reg = <0x0 0xe00>;
+                               };
+
+                               macaddr_factory_4: macaddr@4 {
+                                       reg = <0x4 0x6>;
+                               };
                        };
 
                        partition@90000 {
                };
        };
 };
-
-&factory {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_factory_4: macaddr@4 {
-               reg = <0x4 0x6>;
-       };
-};