ramips: add support for SNR-CPE-ME2-SFP
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_glinet_gl-mt750.dts
index 08451d8a8cd250a937d1be7f97a672c001e38f3d..9ee19686b760d9ec1d5c14b7744da06447822077 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "mt7620a.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
        };
 };
 
-&gpio0 {
-       status = "okay";
-};
-
-&gpio1 {
-       status = "okay";
-};
-
 &gpio2 {
        status = "okay";
 };
@@ -78,7 +68,7 @@
 &spi0 {
        status = "okay";
 
-       m25p80@0 {
+       flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4000>;
-       mediatek,portmap = "llllw";
+       nvmem-cells = <&macaddr_factory_4000>;
+       nvmem-cell-names = "mac-address";
+
+       mediatek,portmap = "wllll";
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0>;
+       ralink,mtd-eeprom = <&factory 0x0>;
 };
 
 &pcie {
        };
 };
 
-&pinctrl {
-       state_default: pinctrl0 {
-               gpio {
-                       ralink,group = "wled","ephy","uartf";
-                       ralink,function = "gpio";
-               };
+&state_default {
+       gpio {
+               groups = "wled","ephy","uartf";
+               function = "gpio";
+       };
+};
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4000: macaddr@4000 {
+               reg = <0x4000 0x6>;
        };
 };