Skip to content

Commit

Permalink
ath79: aruba,ap115: use nvmem
Browse files Browse the repository at this point in the history
Userspace handling is deprecated.

Signed-off-by: Rosen Penev <[email protected]>
Link: openwrt/openwrt#16284
Signed-off-by: Hauke Mehrtens <[email protected]>
  • Loading branch information
neheb authored and hauke committed Oct 19, 2024
1 parent 94d775d commit be2be0f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
20 changes: 13 additions & 7 deletions target/linux/ath79/dts/qca9558_aruba_ap-115.dts
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@
ath9k: wifi@0,0 {
compatible = "pci168c,0033";
reg = <0x0000 0 0 0 0>;
qca,no-eeprom;

nvmem-cells = <&macaddr_oemdata_1d 1>;
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_oemdata_1d 1>, <&cal_oemdata_5000>;
nvmem-cell-names = "mac-address", "calibration";
};
};

Expand Down Expand Up @@ -161,7 +160,7 @@
reg = <0x100000 0xe00000>;
};

oemdata: partition@fe0000 {
partition@fe0000 {
label = "oemdata";
reg = <0xfe0000 0x010000>;
read-only;
Expand All @@ -176,6 +175,14 @@
reg = <0x1d 0x6>;
#nvmem-cell-cells = <1>;
};

cal_oemdata_1000: calibration@1000 {
reg = <0x1000 0x440>;
};

cal_oemdata_5000: calibration@5000 {
reg = <0x5000 0x440>;
};
};
};

Expand All @@ -190,9 +197,8 @@
&wmac {
status = "okay";

qca,no-eeprom;
nvmem-cells = <&macaddr_oemdata_1d 0>;
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_oemdata_1d 0>, <&cal_oemdata_1000>;
nvmem-cell-names = "mac-address", "calibration";
};

&mdio0 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ board=$(board_name)
case "$FIRMWARE" in
"ath9k-eeprom-ahb-18100000.wmac.bin")
case $board in
aruba,ap-115)
caldata_extract "oemdata" 0x1000 0x440
;;
asus,pl-ac56|\
asus,rp-ac51|\
asus,rp-ac66)
Expand Down Expand Up @@ -73,9 +70,6 @@ case "$FIRMWARE" in
;;
"ath9k-eeprom-pci-0000:00:00.0.bin")
case $board in
aruba,ap-115)
caldata_extract "oemdata" 0x5000 0x440
;;
avm,fritz300e)
caldata_extract_reverse "urloader" 0x1541 0x440
;;
Expand Down

0 comments on commit be2be0f

Please sign in to comment.