|
|
@@ -125,6 +125,14 @@
|
|
|
|
|
|
&gsw {
|
|
|
phy-mode = "mii";
|
|
|
+
|
|
|
+ nvmem-cells = <&macaddr_uboot_ethaddr 0>;
|
|
|
+ nvmem-cell-names = "mac-address";
|
|
|
+};
|
|
|
+
|
|
|
+&ppe {
|
|
|
+ nvmem-cells = <&macaddr_uboot_ethaddr 1>;
|
|
|
+ nvmem-cell-names = "mac-address";
|
|
|
};
|
|
|
|
|
|
&pci0 {
|
|
|
@@ -138,7 +146,8 @@
|
|
|
wifi@e,0 {
|
|
|
compatible = "pci168c,0029";
|
|
|
reg = <0x7000 0 0 0 0>;
|
|
|
- qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
|
|
|
+ nvmem-cells = <&cal_f000>, <&macaddr_uboot_ethaddr 2>;
|
|
|
+ nvmem-cell-names = "calibration", "mac-address";
|
|
|
};
|
|
|
};
|
|
|
|
|
|
@@ -165,12 +174,30 @@
|
|
|
reg = <0x10000 0x10000>;
|
|
|
label = "u-boot-env";
|
|
|
read-only;
|
|
|
+
|
|
|
+ nvmem-layout {
|
|
|
+ compatible = "u-boot,env";
|
|
|
+
|
|
|
+ macaddr_uboot_ethaddr: ethaddr {
|
|
|
+ #nvmem-cell-cells = <1>;
|
|
|
+ };
|
|
|
+ };
|
|
|
};
|
|
|
|
|
|
- ath9k_cal: partition@20000 {
|
|
|
+ partition@20000 {
|
|
|
reg = <0x20000 0x10000>;
|
|
|
label = "calibration";
|
|
|
read-only;
|
|
|
+
|
|
|
+ nvmem-layout {
|
|
|
+ compatible = "fixed-layout";
|
|
|
+ #address-cells = <1>;
|
|
|
+ #size-cells = <1>;
|
|
|
+
|
|
|
+ cal_f000: calibration@f000 {
|
|
|
+ reg = <0xf000 0xeb8>;
|
|
|
+ };
|
|
|
+ };
|
|
|
};
|
|
|
|
|
|
partition@50000 {
|