Skip to content

Commit

Permalink
ath79: D-Link DAP-2xxx (QCA953x): convert ath9k caldata to nvmem
Browse files Browse the repository at this point in the history
Convert the calibration data reference for the ath9k radio to an
nvmem-cell, replacing the downstream mtd-cal-data property.

Since the 'art' label is no longer used, it can be dropped.

Cc: Sebastian Schaper <openwrt@sebastianschaper.net>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
  • Loading branch information
svanheule committed Jun 18, 2022
1 parent b4e7b49 commit 849ffbd
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions target/linux/ath79/dts/qca953x_dlink_dap-2xxx.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,18 @@
read-only;
};

art: partition@ff0000 {
partition@ff0000 {
label = "art";
reg = <0xff0000 0x10000>;
read-only;

compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;

cal_ath9k: calibration@1000 {
reg = <0x1000 0x440>;
};
};
};
};
Expand All @@ -54,5 +62,6 @@
&wmac {
status = "okay";

mtd-cal-data = <&art 0x1000>;
nvmem-cells = <&cal_ath9k>;
nvmem-cell-names = "calibration";
};

0 comments on commit 849ffbd

Please sign in to comment.