arm64: dts: qcom: sm8250-xiaomi-elish: Add qca6390-pmu node
Subsystems (4)
PATCH v3 1/3 arm64: dts: qcom: sm8250-xiaomi-elish: Add qca6390-pmu node
Add qca6390-pmu node, which is used to manage power supply sequence for wifi and bluetooth on sm8250 soc based devices.
---
No changes in v3.
changes in v2:
1. pick up Dmitry Baryshkov's Reviewed-by
.../dts/qcom/sm8250-xiaomi-elish-common.dtsi | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+)
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +77 -0
@@ -97,6 +97,67 @@ key-vol-up { }; }; + qca6390-pmu { + compatible = "qcom,qca6390-pmu"; + + pinctrl-names = "default"; + pinctrl-0 = <&bt_en_state>, <&wlan_en_state>; + + vddaon-supply = <&vreg_s6a_0p95>; + vddpmu-supply = <&vreg_s6a_0p95>; + vddrfa0p95-supply = <&vreg_s6a_0p95>; + vddrfa1p3-supply = <&vreg_s8c_1p35>; + vddrfa1p9-supply = <&vreg_s5a_1p9>; + vddpcie1p3-supply = <&vreg_s8c_1p35>; + vddpcie1p9-supply = <&vreg_s5a_1p9>; + vddio-supply = <&vreg_s4a_1p8>; + + wlan-enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>; + bt-enable-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>; + + regulators { + vreg_pmu_rfa_cmn: ldo0 { + regulator-name = "vreg_pmu_rfa_cmn"; + }; + + vreg_pmu_aon_0p59: ldo1 { + regulator-name = "vreg_pmu_aon_0p59"; + }; + + vreg_pmu_wlcx_0p8: ldo2 { + regulator-name = "vreg_pmu_wlcx_0p8"; + }; + + vreg_pmu_wlmx_0p85: ldo3 { + regulator-name = "vreg_pmu_wlmx_0p85"; + }; + + vreg_pmu_btcmx_0p85: ldo4 { + regulator-name = "vreg_pmu_btcmx_0p85"; + }; + + vreg_pmu_rfa_0p8: ldo5 { + regulator-name = "vreg_pmu_rfa_0p8"; + }; + + vreg_pmu_rfa_1p2: ldo6 { + regulator-name = "vreg_pmu_rfa_1p2"; + }; + + vreg_pmu_rfa_1p7: ldo7 { + regulator-name = "vreg_pmu_rfa_1p7"; + }; + + vreg_pmu_pcie_0p9: ldo8 { + regulator-name = "vreg_pmu_pcie_0p9"; + }; + + vreg_pmu_pcie_1p8: ldo9 { + regulator-name = "vreg_pmu_pcie_1p8"; + }; + }; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; regulator-name = "vph_pwr";
@@ -701,6 +762,22 @@ &slpi { &tlmm { gpio-reserved-ranges = <40 4>; + + bt_en_state: bt-default-state { + pins = "gpio21"; + function = "gpio"; + drive-strength = <16>; + output-low; + bias-pull-up; + }; + + wlan_en_state: wlan-default-state { + pins = "gpio20"; + function = "gpio"; + drive-strength = <16>; + output-low; + bias-pull-up; + }; }; &usb_1 {
Signature · 1 line
2.46.1
PATCH v3 2/3 arm64: dts: qcom: sm8250-xiaomi-elish: Add wifi node
Add wifi node and this wifi module is connected to PCIe port.
The following is qca6390 probe message:
ath11k_pci 0000:01:00.0: Adding to iommu group 12
ath11k_pci 0000:01:00.0: BAR 0 [mem 0x60400000-0x604fffff 64bit]: assigned ath11k_pci 0000:01:00.0: enabling device (0000 -> 0002)
ath11k_pci 0000:01:00.0: MSI vectors: 32
ath11k_pci 0000:01:00.0: qca6390 hw2.0
ath11k_pci 0000:01:00.0: chip_id 0x0 chip_family 0xb board_id 0xff soc_id 0xffffffff ath11k_pci 0000:01:00.0: fw_version 0x10121492 fw_build_timestamp 2021-11-04 11:23 fw_build_id
---
changes in v3:
1. fix commit message typo (pice -> PCIe).
changes in v2:
1. add qcom,ath11k-calibration-variant property.
.../dts/qcom/sm8250-xiaomi-elish-common.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +19 -0
@@ -680,6 +680,25 @@ &pcie0_phy { status = "okay"; }; +&pcieport0 { + wifi@0 { + compatible = "pci17cb,1101"; + reg = <0x10000 0x0 0x0 0x0 0x0>; + + vddrfacmn-supply = <&vreg_pmu_rfa_cmn>; + vddaon-supply = <&vreg_pmu_aon_0p59>; + vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; + vddwlmx-supply = <&vreg_pmu_wlmx_0p85>; + vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; + vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; + vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>; + vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>; + vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>; + + qcom,ath11k-calibration-variant = "Xiaomi_Pad_5Pro"; + }; +}; + &pm8150_gpios { vol_up_n: vol-up-n-state { pins = "gpio6";
Signature · 1 line
2.46.1
Re: [PATCH v3 2/3] arm64: dts: qcom: sm8250-xiaomi-elish: Add wifi node
Quoted 35 lines · Jianhua Lu
Add wifi node and this wifi module is connected to PCIe port.
The following is qca6390 probe message:
ath11k_pci0000:01:00.0: Adding to iommu group 12
ath11k_pci0000:01:00.0: BAR 0 [mem 0x60400000-0x604fffff 64bit]: assignedath11k_pci0000:01:00.0: enabling device (0000 -> 0002)
ath11k_pci0000:01:00.0: MSI vectors: 32
ath11k_pci0000:01:00.0: qca6390 hw2.0
ath11k_pci0000:01:00.0:chip_id0x0chip_family0xbboard_id0xffsoc_id0xffffffffath11k_pci0000:01:00.0:fw_version0x10121492fw_build_timestamp2021-11-04 11:23fw_build_idSigned-off-by Jianhua Lu <[email protected]>---
changes in v3:
1. fix commit message typo (pice -> PCIe).changes in v2:
1. add qcom,ath11k-calibration-variant property..../dts/qcom/sm8250-xiaomi-elish-common.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +6
-0@@ -680,6 +680,25 @@ &pcie0_phy { status = "okay"; }; +&pcieport0 { + wifi@0 { + compatible = "pci17cb,1101"; + reg = <0x10000 0x0 0x0 0x0 0x0>; + + vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi &pcie0_phy { · line 698
Quoted 10 lines
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +10
-0+ vddaon-supply = <&vreg_pmu_aon_0p59>; + vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; + vddwlmx-supply = <&vreg_pmu_wlmx_0p85>; + vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; + vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; + vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>; + vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>; + vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>; + + qcom,ath11k-calibration-variant = "Xiaomi_Pad_5Pro";
Let's wait for Kalle's response.
Nevertheless,
Quoted 9 lines
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +3
-0+ }; +}; + &pm8150_gpios { vol_up_n: vol-up-n-state { pins = "gpio6";Signature · 1 line
2.46.1
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v3 2/3] arm64: dts: qcom: sm8250-xiaomi-elish: Add wifi node
Quoted 16 lines · Dmitry Baryshkov
Quoted 16 lines
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +10
-0@@ -680,6 +680,25 @@ &pcie0_phy { status = "okay"; }; +&pcieport0 { + wifi@0 { + compatible = "pci17cb,1101"; + reg = <0x10000 0x0 0x0 0x0 0x0>; + + vddrfacmn-supply = <&vreg_pmu_rfa_cmn>; + vddaon-supply = <&vreg_pmu_aon_0p59>; + vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; + vddwlmx-supply = <&vreg_pmu_wlmx_0p85>; + vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
Quoted 8 lines
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi &pcie0_phy { · line 698
Quoted 6 lines
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +6
-0+ vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; + vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>; + vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>; + vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>; + + qcom,ath11k-calibration-variant = "Xiaomi_Pad_5Pro";Let's wait for Kalle's response.
Sorry, I don't know what you refer to here. I have been extremly busy with MLO patches so drowning with mail right now :/
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Re: [PATCH v3 2/3] arm64: dts: qcom: sm8250-xiaomi-elish: Add wifi node
Quoted 27 lines · Kalle Valo
Quoted 16 lines · Dmitry Baryshkov
Quoted 16 lines
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +10
-0@@ -680,6 +680,25 @@ &pcie0_phy { status = "okay"; }; +&pcieport0 { + wifi@0 { + compatible = "pci17cb,1101"; + reg = <0x10000 0x0 0x0 0x0 0x0>; + + vddrfacmn-supply = <&vreg_pmu_rfa_cmn>; + vddaon-supply = <&vreg_pmu_aon_0p59>; + vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; + vddwlmx-supply = <&vreg_pmu_wlmx_0p85>; + vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;Quoted 8 lines
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi &pcie0_phy { · line 698
Quoted 6 lines
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +6
-0+ vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; + vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>; + vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>; + vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>; + + qcom,ath11k-calibration-variant = "Xiaomi_Pad_5Pro";Let's wait for Kalle's response.
Quoted 2 lines
Sorry, I don't know what you refer to here. I have been extremly busy with MLO patches so drowning with mail right now :/
Just an ack for the calibration variant name. Jianhua has also sent the BDF file, [1]
[1] https://lore.kernel.org/ath11k/[email protected]/
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v3 2/3] arm64: dts: qcom: sm8250-xiaomi-elish: Add wifi node
Quoted 28 lines · Dmitry Baryshkov
Quoted 27 lines · Kalle Valo
Quoted 24 lines · Dmitry Baryshkov
Quoted 12 lines
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +6
-0@@ -680,6 +680,25 @@ &pcie0_phy { status = "okay"; }; +&pcieport0 { + wifi@0 { + compatible = "pci17cb,1101"; + reg = <0x10000 0x0 0x0 0x0 0x0>; + + vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi &pcie0_phy { · line 698
Quoted 10 lines
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +10
-0+ vddaon-supply = <&vreg_pmu_aon_0p59>; + vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; + vddwlmx-supply = <&vreg_pmu_wlmx_0p85>; + vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; + vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; + vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>; + vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>; + vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>; + + qcom,ath11k-calibration-variant = "Xiaomi_Pad_5Pro";Let's wait for Kalle's response.
Quoted 4 lines
Quoted 2 lines
Sorry, I don't know what you refer to here. I have been extremly busy with MLO patches so drowning with mail right now :/
Just an ack for the calibration variant name.
Ah, then ack from me for the name. Thanks for following these.
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
PATCH v3 3/3 arm64: dts: qcom: sm8250-xiaomi-elish: Add bluetooth node
In reply to Jianhua LuAdd bluetooth node and this bluetooth module is connected to uart.
---
No changes in v3.
changes in v2:
1. pick up Dmitry Baryshkov's Reviewed-by
.../dts/qcom/sm8250-xiaomi-elish-common.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +19 -0
@@ -30,6 +30,10 @@ / { qcom,msm-id = <QCOM_ID_SM8250 0x20001>; /* SM8250 v2.1 */ qcom,board-id = <0x10008 0>; + aliases { + serial0 = &uart6; + }; + chosen { #address-cells = <2>; #size-cells = <2>;
@@ -799,6 +803,21 @@ wlan_en_state: wlan-default-state { }; }; +&uart6 { + status = "okay"; + + bluetooth { + compatible = "qcom,qca6390-bt"; + + vddrfacmn-supply = <&vreg_pmu_rfa_cmn>; + vddaon-supply = <&vreg_pmu_aon_0p59>; + vddbtcmx-supply = <&vreg_pmu_btcmx_0p85>; + vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; + vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; + vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>; + }; +}; + &usb_1 { /* USB 2.0 only */ qcom,select-utmi-as-pipe-clk;
Signature · 1 line
2.46.1