Add ath12k calibration variant for Silex SX-PCEBE on Aquila AM69
Subsystems (4)
cover Add ath12k calibration variant for Silex SX-PCEBE on Aquila AM69
From: Vitor Soares <[email protected]>
The Aquila AM69 has a Silex SX-PCEBE Wi-Fi module (WCN7850). The module reports the same PCI and QMI IDs as other WCN7850 designs, and its board data also comes in variants for different regulatory domains. The IDs alone therefore cannot identify the right board data. Patch 2 describes the Wi-Fi device and sets qcom,calibration-variant to select it.
The qcom,ath12k binding requires all nine WCN7850 supplies, which only fits designs with the chip on the board and its PMU described in DT. On modules like the SX-PCEBE, the PMU is on the module and powered from the slot, so there are no supplies to describe. Patch 1 makes them optional.
Patch 1 is for ath-next, patch 2 for ti-k3-dts-next. Patch 2 also relies on commit 75bc725cd92b ("dt-bindings: wireless: ath12k: allow calibration variant for WCN7850"), already in ath-next. There is no build dependency; until both binding changes are merged, dtbs_check reports the missing supplies and qcom,calibration-variant for the AM69 Wi-Fi node.
Based on ath/ath-next.
Vitor Soares (2):
dt-bindings: wireless: ath12k: Make WCN7850 supplies optional
arm64: dts: ti: k3-am69-aquila: Add ath12k calibration variant
.../bindings/net/wireless/qcom,ath12k.yaml | 33 ++++++++++++++----- arch/arm64/boot/dts/ti/k3-am69-aquila.dtsi | 15 +++++++++ 2 files changed, 39 insertions(+), 9 deletions(-)
base-commit: 1be6c8d3027d4a421dc46b93a89a196c61945614
Signature · 1 line
2.53.0
PATCH 1/2 dt-bindings: wireless: ath12k: Make WCN7850 supplies optional
From: Vitor Soares <[email protected]>
The binding requires all nine WCN7850 power inputs. This matches designs where the chip is placed on the board and its rails come from the WCN7850 PMU described in DT.
WCN7850 is also used in modules, such as the Silex SX-PCEBE, where the PMU and its rails are on the module and powered from the slot. None of these supplies are connected to the host, so there is nothing to describe. The DT node is still needed to set qcom,calibration-variant.
When the binding was introduced, it was agreed that the supplies can be made optional for cases such as M.2 boards once the need arises [1].
Make the supplies optional. Keep requiring all of them once any is present, so designs using the PMU are validated as before.
--- .../bindings/net/wireless/qcom,ath12k.yaml | 33 ++++++++++++++----- 1 file changed, 24 insertions(+), 9 deletions(-)
Documentation/devicetree/bindings/net/wireless/qcom,ath12k.yaml +24 -9
@@ -63,15 +63,30 @@ properties: required: - compatible - reg - - vddaon-supply - - vddwlcx-supply - - vddwlmx-supply - - vddrfacmn-supply - - vddrfa0p8-supply - - vddrfa1p2-supply - - vddrfa1p8-supply - - vddpcie0p9-supply - - vddpcie1p8-supply + +allOf: + - if: + anyOf: + - required: [vddaon-supply] + - required: [vddwlcx-supply] + - required: [vddwlmx-supply] + - required: [vddrfacmn-supply] + - required: [vddrfa0p8-supply] + - required: [vddrfa1p2-supply] + - required: [vddrfa1p8-supply] + - required: [vddpcie0p9-supply] + - required: [vddpcie1p8-supply] + then: + required: + - vddaon-supply + - vddwlcx-supply + - vddwlmx-supply + - vddrfacmn-supply + - vddrfa0p8-supply + - vddrfa1p2-supply + - vddrfa1p8-supply + - vddpcie0p9-supply + - vddpcie1p8-supply additionalProperties: false
Signature · 1 line
2.53.0
PATCH 2/2 arm64: dts: ti: k3-am69-aquila: Add ath12k calibration variant
In reply to Vitor SoaresFrom: Vitor Soares <[email protected]>
The Aquila AM69 has a Silex SX-PCEBE Wi-Fi module (WCN7850). The module reports the same PCI and QMI IDs as other WCN7850 designs, and its board data also comes in variants for different regulatory domains (US/EU/JP, UK/CA low and high). The IDs alone therefore cannot identify the right board data.
Describe the Wi-Fi device behind the PCIE3 root port and set qcom,calibration-variant to the US/EU/JP board data.
--- arch/arm64/boot/dts/ti/k3-am69-aquila.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
arch/arm64/boot/dts/ti/k3-am69-aquila.dtsi +15 -0
@@ -1393,6 +1393,21 @@ &pcie3_rc { reset-gpios = <&som_gpio_expander 4 GPIO_ACTIVE_HIGH>; ti,syscon-acspcie-proxy-ctrl = <&acspcie0_proxy_ctrl 0x3>; status = "okay"; + + pci@0,0 { + device_type = "pci"; + compatible = "pciclass,0604"; + reg = <0x0 0x0 0x0 0x0 0x0>; + ranges; + #address-cells = <3>; + #size-cells = <2>; + + wifi@0 { + compatible = "pci17cb,1107"; + reg = <0x0 0x0 0x0 0x0 0x0>; + qcom,calibration-variant = "Silex_SX-PCEBE_US_EU_JP"; + }; + }; }; &serdes0 {
Signature · 1 line
2.53.0
Re: [PATCH 2/2] arm64: dts: ti: k3-am69-aquila: Add ath12k calibration variant
Quoted 8 lines · Vitor Soares
From: Vitor Soares <[email protected]>
The Aquila AM69 has a Silex SX-PCEBE Wi-Fi module (WCN7850). The module reports the same PCI and QMI IDs as other WCN7850 designs, and its board data also comes in variants for different regulatory domains (US/EU/JP, UK/CA low and high). The IDs alone therefore cannot identify the right board data.
Quoted 4 lines
Describe the Wi-Fi device behind the PCIE3 root port and set qcom,calibration-variant to the US/EU/JP board data.
Signed-off-by Vitor Soares <[email protected]>