ramips: add support for SNR-CPE-ME2-SFP
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_zbtlink_zbt-we1226.dts
index ac2a01eabaf833309c7d852bc850082e2a3dfd38..aca4555a40bd9e63a0b8cee1d6ff2148fbcc7229 100644 (file)
 
 &wmac {
        status = "okay";
+
+       mediatek,mtd-eeprom = <&factory 0x0>;
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x2e>;
+       nvmem-cells = <&macaddr_factory_2e>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        mediatek,portmap = <0x2f>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_2e: macaddr@2e {
+               reg = <0x2e 0x6>;
+       };
+};