ramips: convert most mtd-mac-address cases in DTSI to nvmem
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_ubnt_unifi-nanohd.dts
index 7a36ecfa7b6eef722620402176f83ba773e86ccc..2762a777a3533a2624b116a72efa395cd6e93e89 100644 (file)
        };
 };
 
+&gmac0 {
+       nvmem-cells = <&macaddr_eeprom_0>;
+       nvmem-cell-names = "mac-address";
+};
+
+&wlan_2g {
+       mediatek,mtd-eeprom = <&factory 0x0>;
+};
+
 &wlan_5g {
        mediatek,mtd-eeprom = <&factory 0x8000>;
 };
+
+&eeprom {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_eeprom_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+};