ath79: convert UBNT Aircube AC WiFis to nvmem-cells
Pull the calibration data from the nvmem subsystem. This allows us to move userspace caldata extraction into the device-tree definition. Merge art into partition node. Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
This commit is contained in:
parent
4501f6f77c
commit
f193f2d1a0
2 changed files with 26 additions and 13 deletions
|
@ -58,10 +58,26 @@
|
||||||
read-only;
|
read-only;
|
||||||
};
|
};
|
||||||
|
|
||||||
art: partition@ff0000 {
|
partition@ff0000 {
|
||||||
label = "art";
|
label = "art";
|
||||||
reg = <0xff0000 0x010000>;
|
reg = <0xff0000 0x010000>;
|
||||||
read-only;
|
read-only;
|
||||||
|
|
||||||
|
compatible = "nvmem-cells";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
macaddr_art_0: macaddr@0 {
|
||||||
|
reg = <0x0 0x6>;
|
||||||
|
};
|
||||||
|
|
||||||
|
calibration_art_1000: calibration@1000 {
|
||||||
|
reg = <0x1000 0x440>;
|
||||||
|
};
|
||||||
|
|
||||||
|
calibration_art_5000: calibration@5000 {
|
||||||
|
reg = <0x5000 0x844>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -73,6 +89,13 @@
|
||||||
|
|
||||||
&pcie {
|
&pcie {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
|
wifi@0,0 {
|
||||||
|
compatible = "qcom,ath10k";
|
||||||
|
reg = <0x0 0 0 0 0>;
|
||||||
|
nvmem-cells = <&calibration_art_5000>;
|
||||||
|
nvmem-cell-names = "calibration";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&mdio0 {
|
&mdio0 {
|
||||||
|
@ -109,15 +132,6 @@
|
||||||
&wmac {
|
&wmac {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
mtd-cal-data = <&art 0x1000>;
|
nvmem-cells = <&calibration_art_1000>;
|
||||||
};
|
nvmem-cell-names = "calibration";
|
||||||
|
|
||||||
&art {
|
|
||||||
compatible = "nvmem-cells";
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <1>;
|
|
||||||
|
|
||||||
macaddr_art_0: macaddr@0 {
|
|
||||||
reg = <0x0 0x6>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -35,7 +35,6 @@ case "$FIRMWARE" in
|
||||||
sophos,ap55c|\
|
sophos,ap55c|\
|
||||||
sophos,ap100|\
|
sophos,ap100|\
|
||||||
sophos,ap100c|\
|
sophos,ap100c|\
|
||||||
ubnt,aircube-ac|\
|
|
||||||
ubnt,bullet-ac|\
|
ubnt,bullet-ac|\
|
||||||
ubnt,unifiac-lite|\
|
ubnt,unifiac-lite|\
|
||||||
ubnt,unifiac-lr|\
|
ubnt,unifiac-lr|\
|
||||||
|
|
Loading…
Reference in a new issue