linux-phy.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] Additional regulator support for the Qualcomm SGMII SerDes PHY
@ 2025-11-24  9:25 Mohd Ayaan Anwar
  2025-11-24  9:25 ` [PATCH 1/6] dt-bindings: phy: describe additional regulator for Qualcomm SGMII PHY Mohd Ayaan Anwar
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Mohd Ayaan Anwar @ 2025-11-24  9:25 UTC (permalink / raw)
  To: Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bartosz Golaszewski,
	Bjorn Andersson, Konrad Dybcio, Wasim Nazir, Mohd Ayaan Anwar,
	Yijie Yang
  Cc: linux-arm-msm, linux-phy, devicetree, linux-kernel, Konrad Dybcio,
	Mohd Ayaan Anwar

This patch series addresses a SerDes power-up failure observed on the
QCS8300 Ride board using the phy-qcom-sgmii-eth driver. The issue occurs
because the SerDes PHY requires both L5A and L4A regulators to be
enabled during initialization. If either one of them is disabled, the
status register does not reset, and the Ethernet interface fails to come
up due to a timeout:

[   77.105651] qcom-dwmac-sgmii-phy 8909000.phy: QSERDES_COM_C_READY_STATUS timed-out
[   77.113447] qcom-ethqos 23040000.ethernet eth0: __stmmac_open: Serdes powerup failed

Presumably, the issue is not seen on all users of this PHY because both
regulators are often shared with other peripherals. However, the power
rail schematics for boards using this SerDes PHY show that it is
supplied by both L5A (1.2V) and L4A (0.9V) regulators.

This series has been tested on the QCS8300 Ride board, and the reported
issue was resolved. All Monaco and Lemans derivative boards require this
new configuration as they use the same SerDes PHY.

Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
---
Mohd Ayaan Anwar (6):
      dt-bindings: phy: describe additional regulator for Qualcomm SGMII PHY
      arm64: dts: qcom: lemans-evk: add additional SerDes PHY regulator
      arm64: dts: qcom: lemans-ride-common: add additional SerDes PHY regulators
      arm64: dts: qcom: monaco-evk: fix the SerDes PHY regulators
      arm64: dts: qcom: qcs8300-ride: add additional SerDes PHY regulator
      phy: qcom: sgmii-eth: add second regulator support

 .../bindings/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml |  4 ++++
 arch/arm64/boot/dts/qcom/lemans-evk.dts            |  1 +
 arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi   |  4 ++++
 arch/arm64/boot/dts/qcom/monaco-evk.dts            |  3 ++-
 arch/arm64/boot/dts/qcom/qcs8300-ride.dts          |  2 ++
 drivers/phy/qualcomm/phy-qcom-sgmii-eth.c          | 24 +++++++++++++++++++++-
 6 files changed, 36 insertions(+), 2 deletions(-)
---
base-commit: 0f2995693867bfb26197b117cd55624ddc57582f
change-id: 20251124-sgmiieth_serdes_regulator-027fc6b15216

Best regards,
-- 
Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

* [PATCH 1/6] dt-bindings: phy: describe additional regulator for Qualcomm SGMII PHY
  2025-11-24  9:25 [PATCH 0/6] Additional regulator support for the Qualcomm SGMII SerDes PHY Mohd Ayaan Anwar
@ 2025-11-24  9:25 ` Mohd Ayaan Anwar
  2025-11-25  9:59   ` Krzysztof Kozlowski
  2025-11-24  9:25 ` [PATCH 2/6] arm64: dts: qcom: lemans-evk: add additional SerDes PHY regulator Mohd Ayaan Anwar
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 13+ messages in thread
From: Mohd Ayaan Anwar @ 2025-11-24  9:25 UTC (permalink / raw)
  To: Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bartosz Golaszewski,
	Bjorn Andersson, Konrad Dybcio, Wasim Nazir, Mohd Ayaan Anwar,
	Yijie Yang
  Cc: linux-arm-msm, linux-phy, devicetree, linux-kernel, Konrad Dybcio,
	Mohd Ayaan Anwar

Describe the additional vdda-0p9-supply for the Qualcomm SGMII PHY.

Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
---
 .../devicetree/bindings/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml         | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml
index 90fc8c039219c739eae05cc17108a9a2fc6193df..0a1330b9118d63cf5400325c58bca05ebc641055 100644
--- a/Documentation/devicetree/bindings/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml
@@ -36,6 +36,10 @@ properties:
     description:
       Phandle to a regulator that provides power to the PHY.
 
+  vdda-0p9-supply:
+    description:
+      Phandle to a 0.9V regulator supply to the PHY.
+
   "#phy-cells":
     const: 0
 

-- 
2.34.1


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

* [PATCH 2/6] arm64: dts: qcom: lemans-evk: add additional SerDes PHY regulator
  2025-11-24  9:25 [PATCH 0/6] Additional regulator support for the Qualcomm SGMII SerDes PHY Mohd Ayaan Anwar
  2025-11-24  9:25 ` [PATCH 1/6] dt-bindings: phy: describe additional regulator for Qualcomm SGMII PHY Mohd Ayaan Anwar
@ 2025-11-24  9:25 ` Mohd Ayaan Anwar
  2025-11-24 10:33   ` Konrad Dybcio
  2025-11-24  9:25 ` [PATCH 3/6] arm64: dts: qcom: lemans-ride-common: add additional SerDes PHY regulators Mohd Ayaan Anwar
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 13+ messages in thread
From: Mohd Ayaan Anwar @ 2025-11-24  9:25 UTC (permalink / raw)
  To: Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bartosz Golaszewski,
	Bjorn Andersson, Konrad Dybcio, Wasim Nazir, Mohd Ayaan Anwar,
	Yijie Yang
  Cc: linux-arm-msm, linux-phy, devicetree, linux-kernel, Konrad Dybcio,
	Mohd Ayaan Anwar

Add the additional 0.9V regulator for the Qualcomm SerDes PHY.

Fixes: 71ee90ed1756 ("arm64: dts: qcom: lemans-evk: Enable 2.5G Ethernet interface")
Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/lemans-evk.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/qcom/lemans-evk.dts b/arch/arm64/boot/dts/qcom/lemans-evk.dts
index b40fa203e4a2f080f501140fd1c68b72d797fd00..7e5069101f093d077eed867f8431ba0d01797f4e 100644
--- a/arch/arm64/boot/dts/qcom/lemans-evk.dts
+++ b/arch/arm64/boot/dts/qcom/lemans-evk.dts
@@ -675,6 +675,7 @@ &sdhc {
 
 &serdes0 {
 	phy-supply = <&vreg_l5a>;
+	vdda-0p9-supply = <&vreg_l4a>;
 
 	status = "okay";
 };

-- 
2.34.1


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

* [PATCH 3/6] arm64: dts: qcom: lemans-ride-common: add additional SerDes PHY regulators
  2025-11-24  9:25 [PATCH 0/6] Additional regulator support for the Qualcomm SGMII SerDes PHY Mohd Ayaan Anwar
  2025-11-24  9:25 ` [PATCH 1/6] dt-bindings: phy: describe additional regulator for Qualcomm SGMII PHY Mohd Ayaan Anwar
  2025-11-24  9:25 ` [PATCH 2/6] arm64: dts: qcom: lemans-evk: add additional SerDes PHY regulator Mohd Ayaan Anwar
@ 2025-11-24  9:25 ` Mohd Ayaan Anwar
  2025-11-24 10:34   ` Konrad Dybcio
  2025-11-24  9:25 ` [PATCH 4/6] arm64: dts: qcom: monaco-evk: fix the " Mohd Ayaan Anwar
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 13+ messages in thread
From: Mohd Ayaan Anwar @ 2025-11-24  9:25 UTC (permalink / raw)
  To: Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bartosz Golaszewski,
	Bjorn Andersson, Konrad Dybcio, Wasim Nazir, Mohd Ayaan Anwar,
	Yijie Yang
  Cc: linux-arm-msm, linux-phy, devicetree, linux-kernel, Konrad Dybcio,
	Mohd Ayaan Anwar

Add the additional 0.9V regulators for both of the Qualcomm SerDes PHYs.

Fixes: 5ef26fb8b3ed ("arm64: dts: qcom: sa8775p-ride: enable the SerDes PHY")
Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi b/arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi
index c69aa2f41ce29f9f841cc6e6651a8efc38690e19..17b5e79036161212f60e9f1f728c1af2448d1b4e 100644
--- a/arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi
@@ -779,11 +779,15 @@ &qup_uart17_rx {
 
 &serdes0 {
 	phy-supply = <&vreg_l5a>;
+	vdda-0p9-supply = <&vreg_l4a>;
+
 	status = "okay";
 };
 
 &serdes1 {
 	phy-supply = <&vreg_l5a>;
+	vdda-0p9-supply = <&vreg_l4a>;
+
 	status = "okay";
 };
 

-- 
2.34.1


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

* [PATCH 4/6] arm64: dts: qcom: monaco-evk: fix the SerDes PHY regulators
  2025-11-24  9:25 [PATCH 0/6] Additional regulator support for the Qualcomm SGMII SerDes PHY Mohd Ayaan Anwar
                   ` (2 preceding siblings ...)
  2025-11-24  9:25 ` [PATCH 3/6] arm64: dts: qcom: lemans-ride-common: add additional SerDes PHY regulators Mohd Ayaan Anwar
@ 2025-11-24  9:25 ` Mohd Ayaan Anwar
  2025-11-24 10:35   ` Konrad Dybcio
  2025-11-24  9:25 ` [PATCH 5/6] arm64: dts: qcom: qcs8300-ride: add additional SerDes PHY regulator Mohd Ayaan Anwar
  2025-11-24  9:25 ` [PATCH 6/6] phy: qcom: sgmii-eth: add second regulator support Mohd Ayaan Anwar
  5 siblings, 1 reply; 13+ messages in thread
From: Mohd Ayaan Anwar @ 2025-11-24  9:25 UTC (permalink / raw)
  To: Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bartosz Golaszewski,
	Bjorn Andersson, Konrad Dybcio, Wasim Nazir, Mohd Ayaan Anwar,
	Yijie Yang
  Cc: linux-arm-msm, linux-phy, devicetree, linux-kernel, Konrad Dybcio,
	Mohd Ayaan Anwar

The Qualcomm SerDes PHY, present on multiple boards, has two regulators
providing supplies of 1.2V (L5A) and 0.9V (L4A). Update the node to
reflect the same instead of incorrectly voting for only L4A.

Fixes: 117d6bc9326b ("arm64: dts: qcom: qcs8300: Add Monaco EVK board")
Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/monaco-evk.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/monaco-evk.dts b/arch/arm64/boot/dts/qcom/monaco-evk.dts
index bb35893da73d141465a325dcfb5542fc032c95a1..4b51a73cb5e95ab09deb9c94b4cdf06bf4c09a7b 100644
--- a/arch/arm64/boot/dts/qcom/monaco-evk.dts
+++ b/arch/arm64/boot/dts/qcom/monaco-evk.dts
@@ -429,7 +429,8 @@ &remoteproc_gpdsp {
 };
 
 &serdes0 {
-	phy-supply = <&vreg_l4a>;
+	phy-supply = <&vreg_l5a>;
+	vdda-0p9-supply = <&vreg_l4a>;
 
 	status = "okay";
 };

-- 
2.34.1


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

* [PATCH 5/6] arm64: dts: qcom: qcs8300-ride: add additional SerDes PHY regulator
  2025-11-24  9:25 [PATCH 0/6] Additional regulator support for the Qualcomm SGMII SerDes PHY Mohd Ayaan Anwar
                   ` (3 preceding siblings ...)
  2025-11-24  9:25 ` [PATCH 4/6] arm64: dts: qcom: monaco-evk: fix the " Mohd Ayaan Anwar
@ 2025-11-24  9:25 ` Mohd Ayaan Anwar
  2025-11-24 10:35   ` Konrad Dybcio
  2025-11-24  9:25 ` [PATCH 6/6] phy: qcom: sgmii-eth: add second regulator support Mohd Ayaan Anwar
  5 siblings, 1 reply; 13+ messages in thread
From: Mohd Ayaan Anwar @ 2025-11-24  9:25 UTC (permalink / raw)
  To: Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bartosz Golaszewski,
	Bjorn Andersson, Konrad Dybcio, Wasim Nazir, Mohd Ayaan Anwar,
	Yijie Yang
  Cc: linux-arm-msm, linux-phy, devicetree, linux-kernel, Konrad Dybcio,
	Mohd Ayaan Anwar

Add the additional 0.9V regulator for the Qualcomm SerDes PHY.

Fixes: 787cb3b4c434 ("arm64: dts: qcom: qcs8300-ride: enable ethernet0")
Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/qcs8300-ride.dts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/qcs8300-ride.dts b/arch/arm64/boot/dts/qcom/qcs8300-ride.dts
index 9bcb869dd270603a34221b905f0946e8af028433..66f60146a7498a86dfa2cfc0a75e3dbc540d9684 100644
--- a/arch/arm64/boot/dts/qcom/qcs8300-ride.dts
+++ b/arch/arm64/boot/dts/qcom/qcs8300-ride.dts
@@ -338,6 +338,8 @@ &remoteproc_gpdsp {
 
 &serdes0 {
 	phy-supply = <&vreg_l5a>;
+	vdda-0p9-supply = <&vreg_l4a>;
+
 	status = "okay";
 };
 

-- 
2.34.1


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

* [PATCH 6/6] phy: qcom: sgmii-eth: add second regulator support
  2025-11-24  9:25 [PATCH 0/6] Additional regulator support for the Qualcomm SGMII SerDes PHY Mohd Ayaan Anwar
                   ` (4 preceding siblings ...)
  2025-11-24  9:25 ` [PATCH 5/6] arm64: dts: qcom: qcs8300-ride: add additional SerDes PHY regulator Mohd Ayaan Anwar
@ 2025-11-24  9:25 ` Mohd Ayaan Anwar
  2025-11-24 13:31   ` Konrad Dybcio
  5 siblings, 1 reply; 13+ messages in thread
From: Mohd Ayaan Anwar @ 2025-11-24  9:25 UTC (permalink / raw)
  To: Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bartosz Golaszewski,
	Bjorn Andersson, Konrad Dybcio, Wasim Nazir, Mohd Ayaan Anwar,
	Yijie Yang
  Cc: linux-arm-msm, linux-phy, devicetree, linux-kernel, Konrad Dybcio,
	Mohd Ayaan Anwar

The Qualcomm SGMII SerDes PHY requires two regulators to function
properly. If both of these are not enabled, the following error is
observed:
[   77.105651] qcom-dwmac-sgmii-phy 8909000.phy: QSERDES_COM_C_READY_STATUS timed-out
[   77.113447] qcom-ethqos 23040000.ethernet eth0: __stmmac_open: Serdes powerup failed

Therefore, add support for handling the additional regulator in the
driver.

Fixes: 601d06277007 ("phy: qcom: add the SGMII SerDes PHY driver")
Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
---
 drivers/phy/qualcomm/phy-qcom-sgmii-eth.c | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/drivers/phy/qualcomm/phy-qcom-sgmii-eth.c b/drivers/phy/qualcomm/phy-qcom-sgmii-eth.c
index 5b1c82459c126fe3a046a89601483d8c73090fd3..5044f244762f4bb2318618b83bd94324d445b62d 100644
--- a/drivers/phy/qualcomm/phy-qcom-sgmii-eth.c
+++ b/drivers/phy/qualcomm/phy-qcom-sgmii-eth.c
@@ -10,6 +10,7 @@
 #include <linux/phy/phy.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
+#include <linux/regulator/consumer.h>
 
 #include "phy-qcom-qmp-pcs-sgmii.h"
 #include "phy-qcom-qmp-qserdes-com-v5.h"
@@ -26,6 +27,7 @@
 #define QSERDES_COM_C_PLL_LOCKED			BIT(1)
 
 struct qcom_dwmac_sgmii_phy_data {
+	struct regulator *vdda_0p9;
 	struct regmap *regmap;
 	struct clk *refclk;
 	int speed;
@@ -266,9 +268,23 @@ static int qcom_dwmac_sgmii_phy_calibrate(struct phy *phy)
 
 static int qcom_dwmac_sgmii_phy_power_on(struct phy *phy)
 {
+	int ret;
 	struct qcom_dwmac_sgmii_phy_data *data = phy_get_drvdata(phy);
 
-	return clk_prepare_enable(data->refclk);
+	ret = regulator_enable(data->vdda_0p9);
+	if (ret)
+		goto out_ret;
+
+	ret = clk_prepare_enable(data->refclk);
+	if (ret)
+		goto out_reg_disable;
+
+	return 0;
+
+out_reg_disable:
+	regulator_disable(data->vdda_0p9);
+out_ret:
+	return ret;
 }
 
 static int qcom_dwmac_sgmii_phy_power_off(struct phy *phy)
@@ -283,6 +299,8 @@ static int qcom_dwmac_sgmii_phy_power_off(struct phy *phy)
 
 	clk_disable_unprepare(data->refclk);
 
+	regulator_disable(data->vdda_0p9);
+
 	return 0;
 }
 
@@ -343,6 +361,10 @@ static int qcom_dwmac_sgmii_phy_probe(struct platform_device *pdev)
 	if (IS_ERR(data->refclk))
 		return PTR_ERR(data->refclk);
 
+	data->vdda_0p9 = devm_regulator_get(dev, "vdda-0p9");
+	if (IS_ERR(data->vdda_0p9))
+		return PTR_ERR(data->vdda_0p9);
+
 	provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate);
 	if (IS_ERR(provider))
 		return PTR_ERR(provider);

-- 
2.34.1


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

* Re: [PATCH 2/6] arm64: dts: qcom: lemans-evk: add additional SerDes PHY regulator
  2025-11-24  9:25 ` [PATCH 2/6] arm64: dts: qcom: lemans-evk: add additional SerDes PHY regulator Mohd Ayaan Anwar
@ 2025-11-24 10:33   ` Konrad Dybcio
  0 siblings, 0 replies; 13+ messages in thread
From: Konrad Dybcio @ 2025-11-24 10:33 UTC (permalink / raw)
  To: Mohd Ayaan Anwar, Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bartosz Golaszewski,
	Bjorn Andersson, Konrad Dybcio, Wasim Nazir, Mohd Ayaan Anwar,
	Yijie Yang
  Cc: linux-arm-msm, linux-phy, devicetree, linux-kernel

On 11/24/25 10:25 AM, Mohd Ayaan Anwar wrote:
> Add the additional 0.9V regulator for the Qualcomm SerDes PHY.
> 
> Fixes: 71ee90ed1756 ("arm64: dts: qcom: lemans-evk: Enable 2.5G Ethernet interface")
> Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

* Re: [PATCH 3/6] arm64: dts: qcom: lemans-ride-common: add additional SerDes PHY regulators
  2025-11-24  9:25 ` [PATCH 3/6] arm64: dts: qcom: lemans-ride-common: add additional SerDes PHY regulators Mohd Ayaan Anwar
@ 2025-11-24 10:34   ` Konrad Dybcio
  0 siblings, 0 replies; 13+ messages in thread
From: Konrad Dybcio @ 2025-11-24 10:34 UTC (permalink / raw)
  To: Mohd Ayaan Anwar, Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bartosz Golaszewski,
	Bjorn Andersson, Konrad Dybcio, Wasim Nazir, Mohd Ayaan Anwar,
	Yijie Yang
  Cc: linux-arm-msm, linux-phy, devicetree, linux-kernel

On 11/24/25 10:25 AM, Mohd Ayaan Anwar wrote:
> Add the additional 0.9V regulators for both of the Qualcomm SerDes PHYs.
> 
> Fixes: 5ef26fb8b3ed ("arm64: dts: qcom: sa8775p-ride: enable the SerDes PHY")
> Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

* Re: [PATCH 4/6] arm64: dts: qcom: monaco-evk: fix the SerDes PHY regulators
  2025-11-24  9:25 ` [PATCH 4/6] arm64: dts: qcom: monaco-evk: fix the " Mohd Ayaan Anwar
@ 2025-11-24 10:35   ` Konrad Dybcio
  0 siblings, 0 replies; 13+ messages in thread
From: Konrad Dybcio @ 2025-11-24 10:35 UTC (permalink / raw)
  To: Mohd Ayaan Anwar, Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bartosz Golaszewski,
	Bjorn Andersson, Konrad Dybcio, Wasim Nazir, Mohd Ayaan Anwar,
	Yijie Yang
  Cc: linux-arm-msm, linux-phy, devicetree, linux-kernel

On 11/24/25 10:25 AM, Mohd Ayaan Anwar wrote:
> The Qualcomm SerDes PHY, present on multiple boards, has two regulators
> providing supplies of 1.2V (L5A) and 0.9V (L4A). Update the node to
> reflect the same instead of incorrectly voting for only L4A.
> 
> Fixes: 117d6bc9326b ("arm64: dts: qcom: qcs8300: Add Monaco EVK board")
> Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

* Re: [PATCH 5/6] arm64: dts: qcom: qcs8300-ride: add additional SerDes PHY regulator
  2025-11-24  9:25 ` [PATCH 5/6] arm64: dts: qcom: qcs8300-ride: add additional SerDes PHY regulator Mohd Ayaan Anwar
@ 2025-11-24 10:35   ` Konrad Dybcio
  0 siblings, 0 replies; 13+ messages in thread
From: Konrad Dybcio @ 2025-11-24 10:35 UTC (permalink / raw)
  To: Mohd Ayaan Anwar, Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bartosz Golaszewski,
	Bjorn Andersson, Konrad Dybcio, Wasim Nazir, Mohd Ayaan Anwar,
	Yijie Yang
  Cc: linux-arm-msm, linux-phy, devicetree, linux-kernel

On 11/24/25 10:25 AM, Mohd Ayaan Anwar wrote:
> Add the additional 0.9V regulator for the Qualcomm SerDes PHY.
> 
> Fixes: 787cb3b4c434 ("arm64: dts: qcom: qcs8300-ride: enable ethernet0")
> Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

* Re: [PATCH 6/6] phy: qcom: sgmii-eth: add second regulator support
  2025-11-24  9:25 ` [PATCH 6/6] phy: qcom: sgmii-eth: add second regulator support Mohd Ayaan Anwar
@ 2025-11-24 13:31   ` Konrad Dybcio
  0 siblings, 0 replies; 13+ messages in thread
From: Konrad Dybcio @ 2025-11-24 13:31 UTC (permalink / raw)
  To: Mohd Ayaan Anwar, Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bartosz Golaszewski,
	Bjorn Andersson, Konrad Dybcio, Wasim Nazir, Mohd Ayaan Anwar,
	Yijie Yang
  Cc: linux-arm-msm, linux-phy, devicetree, linux-kernel

On 11/24/25 10:25 AM, Mohd Ayaan Anwar wrote:
> The Qualcomm SGMII SerDes PHY requires two regulators to function
> properly. If both of these are not enabled, the following error is
> observed:
> [   77.105651] qcom-dwmac-sgmii-phy 8909000.phy: QSERDES_COM_C_READY_STATUS timed-out
> [   77.113447] qcom-ethqos 23040000.ethernet eth0: __stmmac_open: Serdes powerup failed
> 
> Therefore, add support for handling the additional regulator in the
> driver.
> 
> Fixes: 601d06277007 ("phy: qcom: add the SGMII SerDes PHY driver")
> Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
> ---

[...]

> -	return clk_prepare_enable(data->refclk);
> +	ret = regulator_enable(data->vdda_0p9);
> +	if (ret)
> +		goto out_ret;

'goto return' can just become 'return'

[...]

> +	data->vdda_0p9 = devm_regulator_get(dev, "vdda-0p9");
> +	if (IS_ERR(data->vdda_0p9))
> +		return PTR_ERR(data->vdda_0p9);

Do we have any conclusions on the load discussion?

Konrad

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

* Re: [PATCH 1/6] dt-bindings: phy: describe additional regulator for Qualcomm SGMII PHY
  2025-11-24  9:25 ` [PATCH 1/6] dt-bindings: phy: describe additional regulator for Qualcomm SGMII PHY Mohd Ayaan Anwar
@ 2025-11-25  9:59   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 13+ messages in thread
From: Krzysztof Kozlowski @ 2025-11-25  9:59 UTC (permalink / raw)
  To: Mohd Ayaan Anwar
  Cc: Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bartosz Golaszewski,
	Bjorn Andersson, Konrad Dybcio, Wasim Nazir, Mohd Ayaan Anwar,
	Yijie Yang, linux-arm-msm, linux-phy, devicetree, linux-kernel,
	Konrad Dybcio

On Mon, Nov 24, 2025 at 02:55:17PM +0530, Mohd Ayaan Anwar wrote:
> Describe the additional vdda-0p9-supply for the Qualcomm SGMII PHY.

Why... device was completely described or not? What else is missing?
Please read writing bindings doc - the bindings are supposed to be
complete, so you bringing up properties afterwards feels odd.

> 
> Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
> ---
>  .../devicetree/bindings/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml         | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml
> index 90fc8c039219c739eae05cc17108a9a2fc6193df..0a1330b9118d63cf5400325c58bca05ebc641055 100644
> --- a/Documentation/devicetree/bindings/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml
> +++ b/Documentation/devicetree/bindings/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml
> @@ -36,6 +36,10 @@ properties:
>      description:
>        Phandle to a regulator that provides power to the PHY.
>  
> +  vdda-0p9-supply:

Why not vdda? What other supplies are you missing?

> +    description:
> +      Phandle to a 0.9V regulator supply to the PHY.

You just duplicated phy-supply, no? Both supply to the phy or how
exactly does it work?

Best regards,
Krzysztof


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

end of thread, other threads:[~2025-11-25  9:59 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-24  9:25 [PATCH 0/6] Additional regulator support for the Qualcomm SGMII SerDes PHY Mohd Ayaan Anwar
2025-11-24  9:25 ` [PATCH 1/6] dt-bindings: phy: describe additional regulator for Qualcomm SGMII PHY Mohd Ayaan Anwar
2025-11-25  9:59   ` Krzysztof Kozlowski
2025-11-24  9:25 ` [PATCH 2/6] arm64: dts: qcom: lemans-evk: add additional SerDes PHY regulator Mohd Ayaan Anwar
2025-11-24 10:33   ` Konrad Dybcio
2025-11-24  9:25 ` [PATCH 3/6] arm64: dts: qcom: lemans-ride-common: add additional SerDes PHY regulators Mohd Ayaan Anwar
2025-11-24 10:34   ` Konrad Dybcio
2025-11-24  9:25 ` [PATCH 4/6] arm64: dts: qcom: monaco-evk: fix the " Mohd Ayaan Anwar
2025-11-24 10:35   ` Konrad Dybcio
2025-11-24  9:25 ` [PATCH 5/6] arm64: dts: qcom: qcs8300-ride: add additional SerDes PHY regulator Mohd Ayaan Anwar
2025-11-24 10:35   ` Konrad Dybcio
2025-11-24  9:25 ` [PATCH 6/6] phy: qcom: sgmii-eth: add second regulator support Mohd Ayaan Anwar
2025-11-24 13:31   ` Konrad Dybcio

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).