mac80211: ath9k: replace qca,led-sources

Upstream seems to be using led-sources instead of custom properties.

Code mostly taken from mt76.

Changed all(few) users of qca,led_pin to use the new format.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18805
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Rosen Penev
2025-05-14 12:59:33 -07:00
committed by Robert Marko
parent c70f842da3
commit 3d6e1a3c9d
3 changed files with 29 additions and 9 deletions

View File

@@ -70,5 +70,8 @@
};
&wmac {
qca,led-pin = /bits/ 8 <11>;
led {
led-sources = <11>;
led-active-low;
};
};

View File

@@ -349,7 +349,6 @@
reg = <0x0000 0 0 0 0>;
#gpio-cells = <2>;
gpio-controller;
qca,led-pin = /bits/ 8 <0>;
nvmem-cells = <&cal_caldata_1000>, <&macaddr_uboot_4fc00 0>;
nvmem-cell-names = "calibration", "mac-address";
};
@@ -380,9 +379,13 @@
*/
device-id = <0x0030>;
class-code = <0x028000>;
qca,led-pin = /bits/ 8 <0>;
nvmem-cells = <&cal_caldata_5000>, <&macaddr_uboot_4fc00 (-1)>;
nvmem-cell-names = "calibration", "mac-address";
led {
led-sources = <0>;
led-active-low;
};
};
};
};