Message ID | 51409a73a9bb493465cb5e93b0d3a600d6f0fe23.1655150409.git.sander@svanheule.net |
---|---|
State | Accepted |
Delegated to: | Sander Vanheule |
Headers | show |
Series | ath79: convert QCA953x-based D-Link DAP-2xxx to nvmem | expand |
diff --git a/target/linux/ath79/dts/qca953x_dlink_dap-2xxx.dtsi b/target/linux/ath79/dts/qca953x_dlink_dap-2xxx.dtsi index 59c09dbe1b62..13d41f7bd57d 100644 --- a/target/linux/ath79/dts/qca953x_dlink_dap-2xxx.dtsi +++ b/target/linux/ath79/dts/qca953x_dlink_dap-2xxx.dtsi @@ -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>; + }; }; }; }; @@ -54,5 +62,6 @@ &wmac { status = "okay"; - mtd-cal-data = <&art 0x1000>; + nvmem-cells = <&cal_ath9k>; + nvmem-cell-names = "calibration"; };
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> --- Changes in v2: - Put nvmem cell defition directly into partition node - Drop unused 'art' label --- target/linux/ath79/dts/qca953x_dlink_dap-2xxx.dtsi | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)