ramips: mt7621: convert to nvmem-layout
[openwrt/staging/nbd.git] / target / linux / ramips / dts / mt7621_elecom_wrc-1750gst2.dts
index 4b8888cd914de7ba6eb084407918ec445ee375f4..4157fb6c1351cd735ecfeccc113a2a78e771a87c 100644 (file)
                read-only;
        };
 };
+
+&gmac0 {
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
+};
+
+&gmac1 {
+       nvmem-cells = <&macaddr_factory_e006>;
+       nvmem-cell-names = "mac-address";
+};
+
+&factory {
+       nvmem-layout {
+               compatible = "fixed-layout";
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               macaddr_factory_e000: macaddr@e000 {
+                       reg = <0xe000 0x6>;
+               };
+
+               macaddr_factory_e006: macaddr@e006 {
+                       reg = <0xe006 0x6>;
+               };
+       };
+};