Message ID | 20250525214256.8637-4-rosenp@gmail.com |
---|---|
State | New |
Headers | show |
Series | wifi: ath9k: add ahb OF support | expand |
On 25/05/2025 23:42, Rosen Penev wrote: > These are for the wireless chips that come built in with various > Atheros/QCA SoCs. dts wise, the difference between pcie and the wmac is > > AHB > PCIE > WIFI > AHB > WIFI > > These will be used to replace the platform_device code with OF in the > following patch. Drop the sentence. If we use auxiliary driver instead, should it invalidate this commit msg? > > Signed-off-by: Rosen Penev <rosenp@gmail.com> > --- > .../bindings/net/wireless/qca,ath9k.yaml | 18 +++++++++++++++++- > 1 file changed, 17 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml b/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml > index 0e5412cff2bc..68d56e5b8680 100644 > --- a/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml > +++ b/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml > @@ -12,7 +12,7 @@ maintainers: > description: | > This node provides properties for configuring the ath9k wireless device. > The node is expected to be specified as a child node of the PCI controller > - to which the wireless chip is connected. > + or AHB bus to which the wireless chip is connected. > > allOf: > - $ref: ieee80211.yaml# > @@ -35,6 +35,12 @@ properties: > - pci168c,0034 # AR9462 > - pci168c,0036 # AR9565 > - pci168c,0037 # AR1111 and AR9485 > + - qcom,ar9130-wifi > + - qcom,ar9330-wifi > + - qcom,ar9340-wifi I assume all these qr9xxx are capable of running Linux, thus you document here other side - having them as part of other SoC. > + - qcom,qca9530-wifi > + - qcom,qca9550-wifi > + - qcom,qca9560-wifi But what about these? As well? Do they have other interfaces? IOW, suffix "-wifi" is added ONLY if there is "qcom,qca9530" or "qcom,qca9530-foo" somewhere or possible. Best regards, Krzysztof
On Sun, May 25, 2025 at 9:26 PM Krzysztof Kozlowski <krzk@kernel.org> wrote: > > On 25/05/2025 23:42, Rosen Penev wrote: > > These are for the wireless chips that come built in with various > > Atheros/QCA SoCs. dts wise, the difference between pcie and the wmac is > > > > AHB > PCIE > WIFI > > AHB > WIFI > > > > These will be used to replace the platform_device code with OF in the > > following patch. > > Drop the sentence. If we use auxiliary driver instead, should it > invalidate this commit msg? Will drop. > > > > > Signed-off-by: Rosen Penev <rosenp@gmail.com> > > --- > > .../bindings/net/wireless/qca,ath9k.yaml | 18 +++++++++++++++++- > > 1 file changed, 17 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml b/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml > > index 0e5412cff2bc..68d56e5b8680 100644 > > --- a/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml > > +++ b/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml > > @@ -12,7 +12,7 @@ maintainers: > > description: | > > This node provides properties for configuring the ath9k wireless device. > > The node is expected to be specified as a child node of the PCI controller > > - to which the wireless chip is connected. > > + or AHB bus to which the wireless chip is connected. > > > > allOf: > > - $ref: ieee80211.yaml# > > @@ -35,6 +35,12 @@ properties: > > - pci168c,0034 # AR9462 > > - pci168c,0036 # AR9565 > > - pci168c,0037 # AR1111 and AR9485 > > + - qcom,ar9130-wifi > > + - qcom,ar9330-wifi > > + - qcom,ar9340-wifi > > I assume all these qr9xxx are capable of running Linux, thus you > document here other side - having them as part of other SoC. I assume you're referring to Documentation/devicetree/bindings/mips/ath79-soc.txt > > > + - qcom,qca9530-wifi > > + - qcom,qca9550-wifi > > + - qcom,qca9560-wifi > > But what about these? As well? Do they have other interfaces? IOW, > suffix "-wifi" is added ONLY if there is "qcom,qca9530" or > "qcom,qca9530-foo" somewhere or possible. They do. An example being the ar71xx driver which has - qca,ar9130-eth # Atheros AR9130 - qca,ar9330-eth # Atheros AR9330 - qca,ar9340-eth # Atheros AR9340 - qca,qca9530-eth # Qualcomm Atheros QCA9530 - qca,qca9550-eth # Qualcomm Atheros QCA9550 - qca,qca9560-eth # Qualcomm Atheros QCA9560 I was advised earlier to change it to qcom instead of qca. Qualcomm itself uses the qcom, prefix for its maintained drivers while the non Qualcomm maintained stuff uses qca. > > > Best regards, > Krzysztof
On 25/05/2025 23:42, Rosen Penev wrote: > These are for the wireless chips that come built in with various > Atheros/QCA SoCs. dts wise, the difference between pcie and the wmac is > > AHB > PCIE > WIFI > AHB > WIFI > > These will be used to replace the platform_device code with OF in the > following patch. > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml b/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml index 0e5412cff2bc..68d56e5b8680 100644 --- a/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml +++ b/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml @@ -12,7 +12,7 @@ maintainers: description: | This node provides properties for configuring the ath9k wireless device. The node is expected to be specified as a child node of the PCI controller - to which the wireless chip is connected. + or AHB bus to which the wireless chip is connected. allOf: - $ref: ieee80211.yaml# @@ -35,6 +35,12 @@ properties: - pci168c,0034 # AR9462 - pci168c,0036 # AR9565 - pci168c,0037 # AR1111 and AR9485 + - qcom,ar9130-wifi + - qcom,ar9330-wifi + - qcom,ar9340-wifi + - qcom,qca9530-wifi + - qcom,qca9550-wifi + - qcom,qca9560-wifi reg: maxItems: 1 @@ -88,3 +94,13 @@ examples: nvmem-cell-names = "mac-address", "calibration"; }; }; + - | + ahb { + #address-cells = <1>; + #size-cells = <1>; + wifi@180c0000 { + compatible = "qcom,ar9130-wifi"; + reg = <0x180c0000 0x230000>; + interrupts = <2>; + }; + };
These are for the wireless chips that come built in with various Atheros/QCA SoCs. dts wise, the difference between pcie and the wmac is AHB > PCIE > WIFI AHB > WIFI These will be used to replace the platform_device code with OF in the following patch. Signed-off-by: Rosen Penev <rosenp@gmail.com> --- .../bindings/net/wireless/qca,ath9k.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-)