aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/apm821xx/dts/netgear-wndr4700.dts
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/apm821xx/dts/netgear-wndr4700.dts')
-rw-r--r--target/linux/apm821xx/dts/netgear-wndr4700.dts27
1 files changed, 23 insertions, 4 deletions
diff --git a/target/linux/apm821xx/dts/netgear-wndr4700.dts b/target/linux/apm821xx/dts/netgear-wndr4700.dts
index 63c96bd82a..12d9dc0bfd 100644
--- a/target/linux/apm821xx/dts/netgear-wndr4700.dts
+++ b/target/linux/apm821xx/dts/netgear-wndr4700.dts
@@ -247,6 +247,25 @@
label = "wifi_data";
reg = <0x07fc0000 0x00040000>;
read-only;
+
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_wifi_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+ macaddr_wifi_c: macaddr@c {
+ reg = <0xc 0x6>;
+ };
+
+ calibration_wifi_1000: calibration@1000 {
+ reg = <0x1000 0x440>;
+ };
+
+ calibration_wifi_5000: calibration@5000 {
+ reg = <0x5000 0x440>;
+ };
};
};
};
@@ -457,8 +476,8 @@
compatible = "pci168c,0030";
reg = <0x00430000 0 0 0 0>;
interrupts = <3>; /* INTC */
- qca,no-eeprom;
- /* wifi CAL & MAC is stored in nvram */
+ nvmem-cell-names = "mac-address", "calibration";
+ nvmem-cells = <&macaddr_wifi_0>, <&calibration_wifi_1000>;
/*
* Because this was such a pain.
@@ -480,8 +499,8 @@
compatible = "pci168c,0033";
reg = <0x00440000 0 0 0 0>;
interrupts = <4>; /* INTD */
- qca,no-eeprom;
- /* wifi CAL & MAC is stored in nvram */
+ nvmem-cell-names = "mac-address", "calibration";
+ nvmem-cells = <&macaddr_wifi_c>, <&calibration_wifi_5000>;
};
};