mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-20 17:32:57 +00:00
ath79: D-Link DAP-2695 A1: convert ath10k caldata to nvmem
Add the PCIe node for the ath10k radio to the devicetree, and refer to the art partition for the calibration data using nvmem-cells. MAC address assignment is moved to '10_fix_wifi_mac', so the device can then be removed from the caldata extraction script '11-ath10k-caldata'. Cc: Sebastian Schaper <openwrt@sebastianschaper.net> Signed-off-by: Sander Vanheule <sander@svanheule.net>
This commit is contained in:
parent
abf28b79c8
commit
e5df381208
@ -105,4 +105,18 @@
|
|||||||
|
|
||||||
&pcie0 {
|
&pcie0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
|
wifi@0,0 {
|
||||||
|
compatible = "qcom,ath10k";
|
||||||
|
reg = <0 0 0 0 0>;
|
||||||
|
|
||||||
|
nvmem-cells = <&cal_ath10k>;
|
||||||
|
nvmem-cell-names = "calibration";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&art {
|
||||||
|
cal_ath10k: calibration@5000 {
|
||||||
|
reg = <0x5000 0x844>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
@ -67,7 +67,6 @@ case "$FIRMWARE" in
|
|||||||
caldata_extract "art" 0x5000 0x844
|
caldata_extract "art" 0x5000 0x844
|
||||||
ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) -1)
|
ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) -1)
|
||||||
;;
|
;;
|
||||||
dlink,dap-2695-a1|\
|
|
||||||
dlink,dap-3662-a1)
|
dlink,dap-3662-a1)
|
||||||
caldata_extract "art" 0x5000 0x844
|
caldata_extract "art" 0x5000 0x844
|
||||||
ath10k_patch_mac $(mtd_get_mac_ascii bdcfg wlanmac_a)
|
ath10k_patch_mac $(mtd_get_mac_ascii bdcfg wlanmac_a)
|
||||||
|
@ -26,13 +26,13 @@ case "$board" in
|
|||||||
dlink,dap-3320-a1)
|
dlink,dap-3320-a1)
|
||||||
mtd_get_mac_ascii bdcfg "wlanmac" > /sys${DEVPATH}/macaddress
|
mtd_get_mac_ascii bdcfg "wlanmac" > /sys${DEVPATH}/macaddress
|
||||||
;;
|
;;
|
||||||
dlink,dap-2695-a1|\
|
|
||||||
dlink,dap-3662-a1)
|
dlink,dap-3662-a1)
|
||||||
[ "$PHYNBR" -eq 1 ] && \
|
[ "$PHYNBR" -eq 1 ] && \
|
||||||
mtd_get_mac_ascii bdcfg "wlanmac" > /sys${DEVPATH}/macaddress
|
mtd_get_mac_ascii bdcfg "wlanmac" > /sys${DEVPATH}/macaddress
|
||||||
;;
|
;;
|
||||||
dlink,dap-2660-a1|\
|
dlink,dap-2660-a1|\
|
||||||
dlink,dap-2680-a1)
|
dlink,dap-2680-a1|\
|
||||||
|
dlink,dap-2695-a1)
|
||||||
[ "$PHYNBR" -eq 0 ] && \
|
[ "$PHYNBR" -eq 0 ] && \
|
||||||
mtd_get_mac_ascii bdcfg "wlanmac_a" > /sys${DEVPATH}/macaddress
|
mtd_get_mac_ascii bdcfg "wlanmac_a" > /sys${DEVPATH}/macaddress
|
||||||
[ "$PHYNBR" -eq 1 ] && \
|
[ "$PHYNBR" -eq 1 ] && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user