aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7620a_cameo_810.dtsi
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/dts/mt7620a_cameo_810.dtsi')
-rw-r--r--target/linux/ramips/dts/mt7620a_cameo_810.dtsi19
1 files changed, 16 insertions, 3 deletions
diff --git a/target/linux/ramips/dts/mt7620a_cameo_810.dtsi b/target/linux/ramips/dts/mt7620a_cameo_810.dtsi
index b1a50bb711..3174b98bbf 100644
--- a/target/linux/ramips/dts/mt7620a_cameo_810.dtsi
+++ b/target/linux/ramips/dts/mt7620a_cameo_810.dtsi
@@ -127,7 +127,8 @@
};
&ethernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
@@ -141,7 +142,8 @@
pinctrl-0 = <&pa_pins>;
ralink,mtd-eeprom = <&factory 0x0>;
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&pcie {
@@ -153,7 +155,18 @@
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};