ramips: add support for I-O DATA WN-DEAX1800GR
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_glinet_gl-mt300n.dts
index aea243617f86deb23713cea1c6b643d83348f7c5..70d0827ed2bbe23975b541ff316237c681174396 100644 (file)
        };
 };
 
-&gpio0 {
-       status = "okay";
-};
-
-&gpio1 {
-       status = "okay";
-};
-
 &gpio2 {
        status = "okay";
 };
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4000>;
+       nvmem-cells = <&macaddr_factory_4000>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4000: macaddr@4000 {
+               reg = <0x4000 0x6>;
+       };
+};