aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/ar9331_teltonika_rut230-v1.dts
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ath79/dts/ar9331_teltonika_rut230-v1.dts')
-rw-r--r--target/linux/ath79/dts/ar9331_teltonika_rut230-v1.dts23
1 files changed, 18 insertions, 5 deletions
diff --git a/target/linux/ath79/dts/ar9331_teltonika_rut230-v1.dts b/target/linux/ath79/dts/ar9331_teltonika_rut230-v1.dts
index c394cf1cb8..1858c74272 100644
--- a/target/linux/ath79/dts/ar9331_teltonika_rut230-v1.dts
+++ b/target/linux/ath79/dts/ar9331_teltonika_rut230-v1.dts
@@ -109,14 +109,16 @@
&eth0 {
status = "okay";
- mtd-mac-address = <&config 0x0>;
+ nvmem-cells = <&macaddr_config_0>;
+ nvmem-cell-names = "mac-address";
};
&eth1 {
status = "okay";
- mtd-mac-address = <&config 0x0>;
- mtd-mac-address-increment = <1>;
+ nvmem-cells = <&macaddr_config_0>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
};
&spi {
@@ -188,6 +190,17 @@
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&config 0x0>;
- mtd-mac-address-increment = <2>;
+ nvmem-cells = <&macaddr_config_0>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <2>;
+};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
};