linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/3] arm64: qcom: x1e80100-qcp: Add power supply and sideband signals for PCIe RC
@ 2025-07-22  9:11 Wenbin Yao
  2025-07-22  9:11 ` [PATCH v5 1/3] PCI: dwc: enable PCI Power Control Slot driver for QCOM Wenbin Yao
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Wenbin Yao @ 2025-07-22  9:11 UTC (permalink / raw)
  To: lpieralisi, kwilczynski, mani, robh, bhelgaas, sfr, qiang.yu,
	quic_wenbyao, linux-pci, linux-kernel, andersson, konradybcio,
	krzk+dt, conor+dt, linux-arm-msm, devicetree
  Cc: krishna.chundru, quic_vbadigan, quic_mrana, quic_cang

The first patch enables the PCI Power Control driver to control the power
state of PCI slots. The second patch adds the bus topology of PCIe domain 3
on x1e80100 platform. The third patch adds perst, wake and clkreq sideband
signals, and describe the regulators powering the rails of the PCI slots in
the devicetree for PCIe3 controller and PHY device.

The patchset has been modified based on comments and suggestions.

Changes in v5:
- Use CONFIG_PCIE_QCOM selecting CONFIG_PCI_PWRCTRL_SLOT.
- Drop vdda-qref-supply for PCIe PHY.
- Link to v4: https://lore.kernel.org/all/20250604080237.494014-1-quic_wenbyao@quicinc.com/

Changes in v4:
- Replace pcie3port with pcie3_port in Patch 2/5.
- Add restoring the vdda-qref request for the 3th PCIe instance by
  reverting commit eb7a22f830f6("phy: qcom: qmp-pcie: drop bogus x1e80100
  qref supply") in Patch 5/5.
- Link to v3: https://lore.kernel.org/all/20250508081514.3227956-1-quic_wenbyao@quicinc.com/

Changes in v3:
- Replace PCI_PWRCTL_SLOT with PCI_PWRCTRL_SLOT in Patch 1/5.
- Keep the order of pinctrl-0 before pinctrl-names in Patch 3/5.
- Add Patch 5/5 to request qref supply for PCIe PHYs.
- Link to v2: https://lore.kernel.org/all/20250425092955.4099677-1-quic_wenbyao@quicinc.com/

Changes in v2:
- Select PCI_PWRCTL_SLOT by ARCH_QCOM in arch/arm64/Kconfig.platforms in
  Patch 1/4.
- Add an empty line before pcie3port node in Patch 2/4.
- Rename regulator-pcie_12v regulator-pcie_3v3_aux and regulator-pcie_3v3
  in Patch 3/4.
- Add Patch 4/4 to describe qref supply of PCIe PHYs.
- Link to v1: https://lore.kernel.org/all/20250320055502.274849-1-quic_wenbyao@quicinc.com/

Qiang Yu (3):
  PCI: dwc: enable PCI Power Control Slot driver for QCOM
  arm64: dts: qcom: x1e80100: add bus topology for PCIe domain 3
  arm64: dts: qcom: x1e80100-qcp: enable pcie3 x8 slot for X1E80100-QCP

 arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 118 ++++++++++++++++++++++
 arch/arm64/boot/dts/qcom/x1e80100.dtsi    |  11 ++
 drivers/pci/controller/dwc/Kconfig        |   1 +
 3 files changed, 130 insertions(+)


base-commit: 05adbee3ad528100ab0285c15c91100e19e10138
-- 
2.34.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH v5 1/3] PCI: dwc: enable PCI Power Control Slot driver for QCOM
  2025-07-22  9:11 [PATCH v5 0/3] arm64: qcom: x1e80100-qcp: Add power supply and sideband signals for PCIe RC Wenbin Yao
@ 2025-07-22  9:11 ` Wenbin Yao
  2025-07-22 23:22   ` Bjorn Helgaas
  2025-07-23 14:34   ` Manivannan Sadhasivam
  2025-07-22  9:11 ` [PATCH v5 2/3] arm64: dts: qcom: x1e80100: add bus topology for PCIe domain 3 Wenbin Yao
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 11+ messages in thread
From: Wenbin Yao @ 2025-07-22  9:11 UTC (permalink / raw)
  To: lpieralisi, kwilczynski, mani, robh, bhelgaas, sfr, qiang.yu,
	quic_wenbyao, linux-pci, linux-kernel, andersson, konradybcio,
	krzk+dt, conor+dt, linux-arm-msm, devicetree
  Cc: krishna.chundru, quic_vbadigan, quic_mrana, quic_cang

From: Qiang Yu <qiang.yu@oss.qualcomm.com>

Enable the pwrctrl driver, which is utilized to manage the power supplies
of the devices connected to the PCI slots. This ensures that the voltage
rails of the standard PCI slots on some platforms eg. X1E80100-QCP can be
correctly turned on/off if they are described under PCIe port device tree
node.

Signed-off-by: Qiang Yu <qiang.yu@oss.qualcomm.com>
Signed-off-by: Wenbin Yao <quic_wenbyao@quicinc.com>
---
 drivers/pci/controller/dwc/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig
index ff6b6d9e1..deafc512b 100644
--- a/drivers/pci/controller/dwc/Kconfig
+++ b/drivers/pci/controller/dwc/Kconfig
@@ -298,6 +298,7 @@ config PCIE_QCOM
 	select CRC8
 	select PCIE_QCOM_COMMON
 	select PCI_HOST_COMMON
+	select PCI_PWRCTRL_SLOT
 	help
 	  Say Y here to enable PCIe controller support on Qualcomm SoCs. The
 	  PCIe controller uses the DesignWare core plus Qualcomm-specific
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH v5 2/3] arm64: dts: qcom: x1e80100: add bus topology for PCIe domain 3
  2025-07-22  9:11 [PATCH v5 0/3] arm64: qcom: x1e80100-qcp: Add power supply and sideband signals for PCIe RC Wenbin Yao
  2025-07-22  9:11 ` [PATCH v5 1/3] PCI: dwc: enable PCI Power Control Slot driver for QCOM Wenbin Yao
@ 2025-07-22  9:11 ` Wenbin Yao
  2025-07-22  9:11 ` [PATCH v5 3/3] arm64: dts: qcom: x1e80100-qcp: enable pcie3 x8 slot for X1E80100-QCP Wenbin Yao
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 11+ messages in thread
From: Wenbin Yao @ 2025-07-22  9:11 UTC (permalink / raw)
  To: lpieralisi, kwilczynski, mani, robh, bhelgaas, sfr, qiang.yu,
	quic_wenbyao, linux-pci, linux-kernel, andersson, konradybcio,
	krzk+dt, conor+dt, linux-arm-msm, devicetree
  Cc: krishna.chundru, quic_vbadigan, quic_mrana, quic_cang,
	Konrad Dybcio

From: Qiang Yu <qiang.yu@oss.qualcomm.com>

Add pcie3_port node to represent the PCIe bridge of PCIe3 so that PCI slot
voltage rails can be described under this node in the board's dts.

Signed-off-by: Qiang Yu <qiang.yu@oss.qualcomm.com>
Signed-off-by: Wenbin Yao <quic_wenbyao@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/x1e80100.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/qcom/x1e80100.dtsi
index 5e9a8fa3c..c9fea0402 100644
--- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi
+++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi
@@ -3306,6 +3306,17 @@ opp-128000000 {
 					opp-peak-kBps = <15753000 1>;
 				};
 			};
+
+			pcie3_port: pcie@0 {
+				device_type = "pci";
+				compatible = "pciclass,0604";
+				reg = <0x0 0x0 0x0 0x0 0x0>;
+				bus-range = <0x01 0xff>;
+
+				#address-cells = <3>;
+				#size-cells = <2>;
+				ranges;
+			};
 		};
 
 		pcie3_phy: phy@1be0000 {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH v5 3/3] arm64: dts: qcom: x1e80100-qcp: enable pcie3 x8 slot for X1E80100-QCP
  2025-07-22  9:11 [PATCH v5 0/3] arm64: qcom: x1e80100-qcp: Add power supply and sideband signals for PCIe RC Wenbin Yao
  2025-07-22  9:11 ` [PATCH v5 1/3] PCI: dwc: enable PCI Power Control Slot driver for QCOM Wenbin Yao
  2025-07-22  9:11 ` [PATCH v5 2/3] arm64: dts: qcom: x1e80100: add bus topology for PCIe domain 3 Wenbin Yao
@ 2025-07-22  9:11 ` Wenbin Yao
  2025-08-11 10:32 ` (subset) [PATCH v5 0/3] arm64: qcom: x1e80100-qcp: Add power supply and sideband signals for PCIe RC Manivannan Sadhasivam
  2025-08-11 23:27 ` Bjorn Andersson
  4 siblings, 0 replies; 11+ messages in thread
From: Wenbin Yao @ 2025-07-22  9:11 UTC (permalink / raw)
  To: lpieralisi, kwilczynski, mani, robh, bhelgaas, sfr, qiang.yu,
	quic_wenbyao, linux-pci, linux-kernel, andersson, konradybcio,
	krzk+dt, conor+dt, linux-arm-msm, devicetree
  Cc: krishna.chundru, quic_vbadigan, quic_mrana, quic_cang,
	Konrad Dybcio

From: Qiang Yu <qiang.yu@oss.qualcomm.com>

Add perst, wake and clkreq sideband signals and required regulators in
PCIe3 controller and PHY device tree node. Describe the voltage rails of
the x8 PCI slots for PCIe3 port.

Signed-off-by: Qiang Yu <qiang.yu@oss.qualcomm.com>
Signed-off-by: Wenbin Yao <quic_wenbyao@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 118 ++++++++++++++++++++++
 1 file changed, 118 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts
index 4dfba835a..71c44e37a 100644
--- a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts
+++ b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts
@@ -318,6 +318,48 @@ vreg_wcn_3p3: regulator-wcn-3p3 {
 		regulator-boot-on;
 	};
 
+	vreg_pcie_12v: regulator-pcie-12v {
+		compatible = "regulator-fixed";
+
+		regulator-name = "VREG_PCIE_12V";
+		regulator-min-microvolt = <12000000>;
+		regulator-max-microvolt = <12000000>;
+
+		gpio = <&pm8550ve_8_gpios 8 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+
+		pinctrl-0 = <&pcie_x8_12v>;
+		pinctrl-names = "default";
+	};
+
+	vreg_pcie_3v3_aux: regulator-pcie-3v3-aux {
+		compatible = "regulator-fixed";
+
+		regulator-name = "VREG_PCIE_3P3_AUX";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+
+		gpio = <&pmc8380_3_gpios 8 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+
+		pinctrl-0 = <&pm_sde7_aux_3p3_en>;
+		pinctrl-names = "default";
+	};
+
+	vreg_pcie_3v3: regulator-pcie-3v3 {
+		compatible = "regulator-fixed";
+
+		regulator-name = "VREG_PCIE_3P3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+
+		gpio = <&pmc8380_3_gpios 6 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+
+		pinctrl-0 = <&pm_sde7_main_3p3_en>;
+		pinctrl-names = "default";
+};
+
 	usb-1-ss0-sbu-mux {
 		compatible = "onnn,fsusb42", "gpio-sbu-mux";
 
@@ -908,6 +950,59 @@ &mdss_dp3_phy {
 	status = "okay";
 };
 
+&pm8550ve_8_gpios {
+	pcie_x8_12v: pcie-12v-default-state {
+		pins = "gpio8";
+		function = "normal";
+		output-enable;
+		output-high;
+		bias-pull-down;
+		power-source = <0>;
+	};
+};
+
+&pmc8380_3_gpios {
+	pm_sde7_aux_3p3_en: pcie-aux-3p3-default-state {
+		pins = "gpio8";
+		function = "normal";
+		output-enable;
+		output-high;
+		bias-pull-down;
+		power-source = <0>;
+	};
+
+	pm_sde7_main_3p3_en: pcie-main-3p3-default-state {
+		pins = "gpio6";
+		function = "normal";
+		output-enable;
+		output-high;
+		bias-pull-down;
+		power-source = <0>;
+	};
+};
+
+&pcie3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pcie3_default>;
+	perst-gpios = <&tlmm 143 GPIO_ACTIVE_LOW>;
+	wake-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>;
+
+	status = "okay";
+};
+
+&pcie3_phy {
+	vdda-phy-supply = <&vreg_l3c_0p8>;
+	vdda-pll-supply = <&vreg_l3e_1p2>;
+
+	status = "okay";
+};
+
+&pcie3_port {
+	vpcie12v-supply = <&vreg_pcie_12v>;
+	vpcie3v3-supply = <&vreg_pcie_3v3>;
+	vpcie3v3aux-supply = <&vreg_pcie_3v3_aux>;
+};
+
 &pcie4 {
 	perst-gpios = <&tlmm 146 GPIO_ACTIVE_LOW>;
 	wake-gpios = <&tlmm 148 GPIO_ACTIVE_LOW>;
@@ -1119,6 +1214,29 @@ nvme_reg_en: nvme-reg-en-state {
 		bias-disable;
 	};
 
+	pcie3_default: pcie3-default-state {
+		clkreq-n-pins {
+			pins = "gpio144";
+			function = "pcie3_clk";
+			drive-strength = <2>;
+			bias-pull-up;
+		};
+
+		perst-n-pins {
+			pins = "gpio143";
+			function = "gpio";
+			drive-strength = <2>;
+			bias-pull-down;
+		};
+
+		wake-n-pins {
+			pins = "gpio145";
+			function = "gpio";
+			drive-strength = <2>;
+			bias-pull-up;
+		};
+	};
+
 	pcie4_default: pcie4-default-state {
 		clkreq-n-pins {
 			pins = "gpio147";
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH v5 1/3] PCI: dwc: enable PCI Power Control Slot driver for QCOM
  2025-07-22  9:11 ` [PATCH v5 1/3] PCI: dwc: enable PCI Power Control Slot driver for QCOM Wenbin Yao
@ 2025-07-22 23:22   ` Bjorn Helgaas
  2025-07-24  2:52     ` Wenbin Yao (Consultant)
  2025-07-23 14:34   ` Manivannan Sadhasivam
  1 sibling, 1 reply; 11+ messages in thread
From: Bjorn Helgaas @ 2025-07-22 23:22 UTC (permalink / raw)
  To: Wenbin Yao
  Cc: lpieralisi, kwilczynski, mani, robh, bhelgaas, sfr, qiang.yu,
	linux-pci, linux-kernel, andersson, konradybcio, krzk+dt,
	conor+dt, linux-arm-msm, devicetree, krishna.chundru,
	quic_vbadigan, quic_mrana, quic_cang

In subject:

  PCI: qcom: Enable PCI Power Control Slot driver

This is not a generic dwc change; it's specific to qcom, so I want the
subject to reflect that.

We can fix this when applying unless other changes are needed.

On Tue, Jul 22, 2025 at 05:11:49PM +0800, Wenbin Yao wrote:
> From: Qiang Yu <qiang.yu@oss.qualcomm.com>
> 
> Enable the pwrctrl driver, which is utilized to manage the power supplies
> of the devices connected to the PCI slots. This ensures that the voltage
> rails of the standard PCI slots on some platforms eg. X1E80100-QCP can be
> correctly turned on/off if they are described under PCIe port device tree
> node.
> 
> Signed-off-by: Qiang Yu <qiang.yu@oss.qualcomm.com>
> Signed-off-by: Wenbin Yao <quic_wenbyao@quicinc.com>
> ---
>  drivers/pci/controller/dwc/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig
> index ff6b6d9e1..deafc512b 100644
> --- a/drivers/pci/controller/dwc/Kconfig
> +++ b/drivers/pci/controller/dwc/Kconfig
> @@ -298,6 +298,7 @@ config PCIE_QCOM
>  	select CRC8
>  	select PCIE_QCOM_COMMON
>  	select PCI_HOST_COMMON
> +	select PCI_PWRCTRL_SLOT
>  	help
>  	  Say Y here to enable PCIe controller support on Qualcomm SoCs. The
>  	  PCIe controller uses the DesignWare core plus Qualcomm-specific
> -- 
> 2.34.1
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v5 1/3] PCI: dwc: enable PCI Power Control Slot driver for QCOM
  2025-07-22  9:11 ` [PATCH v5 1/3] PCI: dwc: enable PCI Power Control Slot driver for QCOM Wenbin Yao
  2025-07-22 23:22   ` Bjorn Helgaas
@ 2025-07-23 14:34   ` Manivannan Sadhasivam
  2025-07-24  3:24     ` Wenbin Yao (Consultant)
  1 sibling, 1 reply; 11+ messages in thread
From: Manivannan Sadhasivam @ 2025-07-23 14:34 UTC (permalink / raw)
  To: Wenbin Yao
  Cc: lpieralisi, kwilczynski, robh, bhelgaas, sfr, qiang.yu, linux-pci,
	linux-kernel, andersson, konradybcio, krzk+dt, conor+dt,
	linux-arm-msm, devicetree, krishna.chundru, quic_vbadigan,
	quic_mrana, quic_cang

On Tue, Jul 22, 2025 at 05:11:49PM GMT, Wenbin Yao wrote:
> From: Qiang Yu <qiang.yu@oss.qualcomm.com>
> 
> Enable the pwrctrl driver, which is utilized to manage the power supplies
> of the devices connected to the PCI slots. This ensures that the voltage
> rails of the standard PCI slots on some platforms eg. X1E80100-QCP can be
> correctly turned on/off if they are described under PCIe port device tree
> node.
> 
> Signed-off-by: Qiang Yu <qiang.yu@oss.qualcomm.com>
> Signed-off-by: Wenbin Yao <quic_wenbyao@quicinc.com>
> ---
>  drivers/pci/controller/dwc/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig
> index ff6b6d9e1..deafc512b 100644
> --- a/drivers/pci/controller/dwc/Kconfig
> +++ b/drivers/pci/controller/dwc/Kconfig
> @@ -298,6 +298,7 @@ config PCIE_QCOM
>  	select CRC8
>  	select PCIE_QCOM_COMMON
>  	select PCI_HOST_COMMON
> +	select PCI_PWRCTRL_SLOT

I guess you also need 'if HAVE_PWRCTRL'

- Mani

-- 
மணிவண்ணன் சதாசிவம்

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v5 1/3] PCI: dwc: enable PCI Power Control Slot driver for QCOM
  2025-07-22 23:22   ` Bjorn Helgaas
@ 2025-07-24  2:52     ` Wenbin Yao (Consultant)
  2025-08-11  9:25       ` Qiang Yu
  0 siblings, 1 reply; 11+ messages in thread
From: Wenbin Yao (Consultant) @ 2025-07-24  2:52 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: lpieralisi, kwilczynski, mani, robh, bhelgaas, sfr, qiang.yu,
	linux-pci, linux-kernel, andersson, konradybcio, krzk+dt,
	conor+dt, linux-arm-msm, devicetree, krishna.chundru,
	quic_vbadigan, quic_mrana, quic_cang

On 7/23/2025 7:22 AM, Bjorn Helgaas wrote:
> In subject:
>
>    PCI: qcom: Enable PCI Power Control Slot driver
>
> This is not a generic dwc change; it's specific to qcom, so I want the
> subject to reflect that.
>
> We can fix this when applying unless other changes are needed.

OK, will fix it.

>
> On Tue, Jul 22, 2025 at 05:11:49PM +0800, Wenbin Yao wrote:
>> From: Qiang Yu <qiang.yu@oss.qualcomm.com>
>>
>> Enable the pwrctrl driver, which is utilized to manage the power supplies
>> of the devices connected to the PCI slots. This ensures that the voltage
>> rails of the standard PCI slots on some platforms eg. X1E80100-QCP can be
>> correctly turned on/off if they are described under PCIe port device tree
>> node.
>>
>> Signed-off-by: Qiang Yu <qiang.yu@oss.qualcomm.com>
>> Signed-off-by: Wenbin Yao <quic_wenbyao@quicinc.com>
>> ---
>>   drivers/pci/controller/dwc/Kconfig | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig
>> index ff6b6d9e1..deafc512b 100644
>> --- a/drivers/pci/controller/dwc/Kconfig
>> +++ b/drivers/pci/controller/dwc/Kconfig
>> @@ -298,6 +298,7 @@ config PCIE_QCOM
>>   	select CRC8
>>   	select PCIE_QCOM_COMMON
>>   	select PCI_HOST_COMMON
>> +	select PCI_PWRCTRL_SLOT
>>   	help
>>   	  Say Y here to enable PCIe controller support on Qualcomm SoCs. The
>>   	  PCIe controller uses the DesignWare core plus Qualcomm-specific
>> -- 
>> 2.34.1
>>
-- 
With best wishes
Wenbin


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v5 1/3] PCI: dwc: enable PCI Power Control Slot driver for QCOM
  2025-07-23 14:34   ` Manivannan Sadhasivam
@ 2025-07-24  3:24     ` Wenbin Yao (Consultant)
  0 siblings, 0 replies; 11+ messages in thread
From: Wenbin Yao (Consultant) @ 2025-07-24  3:24 UTC (permalink / raw)
  To: Manivannan Sadhasivam
  Cc: lpieralisi, kwilczynski, robh, bhelgaas, sfr, qiang.yu, linux-pci,
	linux-kernel, andersson, konradybcio, krzk+dt, conor+dt,
	linux-arm-msm, devicetree, krishna.chundru, quic_vbadigan,
	quic_mrana, quic_cang

On 7/23/2025 10:34 PM, Manivannan Sadhasivam wrote:
> On Tue, Jul 22, 2025 at 05:11:49PM GMT, Wenbin Yao wrote:
>> From: Qiang Yu <qiang.yu@oss.qualcomm.com>
>>
>> Enable the pwrctrl driver, which is utilized to manage the power supplies
>> of the devices connected to the PCI slots. This ensures that the voltage
>> rails of the standard PCI slots on some platforms eg. X1E80100-QCP can be
>> correctly turned on/off if they are described under PCIe port device tree
>> node.
>>
>> Signed-off-by: Qiang Yu <qiang.yu@oss.qualcomm.com>
>> Signed-off-by: Wenbin Yao <quic_wenbyao@quicinc.com>
>> ---
>>   drivers/pci/controller/dwc/Kconfig | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig
>> index ff6b6d9e1..deafc512b 100644
>> --- a/drivers/pci/controller/dwc/Kconfig
>> +++ b/drivers/pci/controller/dwc/Kconfig
>> @@ -298,6 +298,7 @@ config PCIE_QCOM
>>   	select CRC8
>>   	select PCIE_QCOM_COMMON
>>   	select PCI_HOST_COMMON
>> +	select PCI_PWRCTRL_SLOT
> I guess you also need 'if HAVE_PWRCTRL'
>
> - Mani

PCIE_QCOM depends on PCI and (ARCH_QCOM  || COMPILE_TEST), ARCH_QCOM
selects HAVE_PWRCTRL.

>
-- 
With best wishes
Wenbin


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v5 1/3] PCI: dwc: enable PCI Power Control Slot driver for QCOM
  2025-07-24  2:52     ` Wenbin Yao (Consultant)
@ 2025-08-11  9:25       ` Qiang Yu
  0 siblings, 0 replies; 11+ messages in thread
From: Qiang Yu @ 2025-08-11  9:25 UTC (permalink / raw)
  To: Wenbin Yao (Consultant), Bjorn Helgaas
  Cc: lpieralisi, kwilczynski, mani, robh, bhelgaas, sfr, linux-pci,
	linux-kernel, andersson, konradybcio, krzk+dt, conor+dt,
	linux-arm-msm, devicetree, krishna.chundru, quic_vbadigan,
	quic_mrana, quic_cang



On 7/24/2025 10:52 AM, Wenbin Yao (Consultant) wrote:
> On 7/23/2025 7:22 AM, Bjorn Helgaas wrote:
>> In subject:
>>
>>    PCI: qcom: Enable PCI Power Control Slot driver
>>
>> This is not a generic dwc change; it's specific to qcom, so I want the
>> subject to reflect that.
>>
>> We can fix this when applying unless other changes are needed.
> 
> OK, will fix it.

Hi Bjorn, we have nothing to update, will not send new version, could you
please pick up patches and fix this when applying if there is no further
comments?

- Qiang Yu> 
>>
>> On Tue, Jul 22, 2025 at 05:11:49PM +0800, Wenbin Yao wrote:
>>> From: Qiang Yu <qiang.yu@oss.qualcomm.com>
>>>
>>> Enable the pwrctrl driver, which is utilized to manage the power supplies
>>> of the devices connected to the PCI slots. This ensures that the voltage
>>> rails of the standard PCI slots on some platforms eg. X1E80100-QCP can be
>>> correctly turned on/off if they are described under PCIe port device tree
>>> node.
>>>
>>> Signed-off-by: Qiang Yu <qiang.yu@oss.qualcomm.com>
>>> Signed-off-by: Wenbin Yao <quic_wenbyao@quicinc.com>
>>> ---
>>>   drivers/pci/controller/dwc/Kconfig | 1 +
>>>   1 file changed, 1 insertion(+)
>>>
>>> diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig
>>> index ff6b6d9e1..deafc512b 100644
>>> --- a/drivers/pci/controller/dwc/Kconfig
>>> +++ b/drivers/pci/controller/dwc/Kconfig
>>> @@ -298,6 +298,7 @@ config PCIE_QCOM
>>>       select CRC8
>>>       select PCIE_QCOM_COMMON
>>>       select PCI_HOST_COMMON
>>> +    select PCI_PWRCTRL_SLOT
>>>       help
>>>         Say Y here to enable PCIe controller support on Qualcomm SoCs. The
>>>         PCIe controller uses the DesignWare core plus Qualcomm-specific
>>> -- 
>>> 2.34.1
>>>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: (subset) [PATCH v5 0/3] arm64: qcom: x1e80100-qcp: Add power supply and sideband signals for PCIe RC
  2025-07-22  9:11 [PATCH v5 0/3] arm64: qcom: x1e80100-qcp: Add power supply and sideband signals for PCIe RC Wenbin Yao
                   ` (2 preceding siblings ...)
  2025-07-22  9:11 ` [PATCH v5 3/3] arm64: dts: qcom: x1e80100-qcp: enable pcie3 x8 slot for X1E80100-QCP Wenbin Yao
@ 2025-08-11 10:32 ` Manivannan Sadhasivam
  2025-08-11 23:27 ` Bjorn Andersson
  4 siblings, 0 replies; 11+ messages in thread
From: Manivannan Sadhasivam @ 2025-08-11 10:32 UTC (permalink / raw)
  To: lpieralisi, kwilczynski, robh, bhelgaas, sfr, qiang.yu, linux-pci,
	linux-kernel, andersson, konradybcio, krzk+dt, conor+dt,
	linux-arm-msm, devicetree, Wenbin Yao
  Cc: krishna.chundru, quic_vbadigan, quic_mrana, quic_cang


On Tue, 22 Jul 2025 17:11:48 +0800, Wenbin Yao wrote:
> The first patch enables the PCI Power Control driver to control the power
> state of PCI slots. The second patch adds the bus topology of PCIe domain 3
> on x1e80100 platform. The third patch adds perst, wake and clkreq sideband
> signals, and describe the regulators powering the rails of the PCI slots in
> the devicetree for PCIe3 controller and PHY device.
> 
> The patchset has been modified based on comments and suggestions.
> 
> [...]

Applied, thanks!

[1/3] PCI: dwc: enable PCI Power Control Slot driver for QCOM
      commit: add7b05aeeb417c86239e6731a168e6c46b83279

Best regards,
-- 
Manivannan Sadhasivam <mani@kernel.org>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: (subset) [PATCH v5 0/3] arm64: qcom: x1e80100-qcp: Add power supply and sideband signals for PCIe RC
  2025-07-22  9:11 [PATCH v5 0/3] arm64: qcom: x1e80100-qcp: Add power supply and sideband signals for PCIe RC Wenbin Yao
                   ` (3 preceding siblings ...)
  2025-08-11 10:32 ` (subset) [PATCH v5 0/3] arm64: qcom: x1e80100-qcp: Add power supply and sideband signals for PCIe RC Manivannan Sadhasivam
@ 2025-08-11 23:27 ` Bjorn Andersson
  4 siblings, 0 replies; 11+ messages in thread
From: Bjorn Andersson @ 2025-08-11 23:27 UTC (permalink / raw)
  To: lpieralisi, kwilczynski, mani, robh, bhelgaas, sfr, qiang.yu,
	linux-pci, linux-kernel, konradybcio, krzk+dt, conor+dt,
	linux-arm-msm, devicetree, Wenbin Yao
  Cc: krishna.chundru, quic_vbadigan, quic_mrana, quic_cang


On Tue, 22 Jul 2025 17:11:48 +0800, Wenbin Yao wrote:
> The first patch enables the PCI Power Control driver to control the power
> state of PCI slots. The second patch adds the bus topology of PCIe domain 3
> on x1e80100 platform. The third patch adds perst, wake and clkreq sideband
> signals, and describe the regulators powering the rails of the PCI slots in
> the devicetree for PCIe3 controller and PHY device.
> 
> The patchset has been modified based on comments and suggestions.
> 
> [...]

Applied, thanks!

[2/3] arm64: dts: qcom: x1e80100: add bus topology for PCIe domain 3
      commit: 6facfaff0fe3b4d5903bed6164eb5e60ee6cdb8f
[3/3] arm64: dts: qcom: x1e80100-qcp: enable pcie3 x8 slot for X1E80100-QCP
      commit: df758a868dbc90cae98044d52a9d753575f50cfa

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-08-11 23:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-22  9:11 [PATCH v5 0/3] arm64: qcom: x1e80100-qcp: Add power supply and sideband signals for PCIe RC Wenbin Yao
2025-07-22  9:11 ` [PATCH v5 1/3] PCI: dwc: enable PCI Power Control Slot driver for QCOM Wenbin Yao
2025-07-22 23:22   ` Bjorn Helgaas
2025-07-24  2:52     ` Wenbin Yao (Consultant)
2025-08-11  9:25       ` Qiang Yu
2025-07-23 14:34   ` Manivannan Sadhasivam
2025-07-24  3:24     ` Wenbin Yao (Consultant)
2025-07-22  9:11 ` [PATCH v5 2/3] arm64: dts: qcom: x1e80100: add bus topology for PCIe domain 3 Wenbin Yao
2025-07-22  9:11 ` [PATCH v5 3/3] arm64: dts: qcom: x1e80100-qcp: enable pcie3 x8 slot for X1E80100-QCP Wenbin Yao
2025-08-11 10:32 ` (subset) [PATCH v5 0/3] arm64: qcom: x1e80100-qcp: Add power supply and sideband signals for PCIe RC Manivannan Sadhasivam
2025-08-11 23:27 ` Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).