Re: [PATCH] arm64: dts: qcom: sm8450: add missing power-domains property to usb qmpphy node

From: Neil Armstrong
Date: Wed Jun 21 2023 - 06:50:50 EST


On 21/06/2023 12:39, Neil Armstrong wrote:
Hi,

On 21/06/2023 12:01, Konrad Dybcio wrote:
On 21.06.2023 11:55, Neil Armstrong wrote:
Add the missing property to fix the bindings check error:
arch/arm64/boot/dts/qcom/sm8450-hdk.dtb: phy@88e8000: 'power-domains' is a required property
     From schema: Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml

Signed-off-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx>
---
Are you sure about this one? Historically PHYs have had their own GDSCs.

May just be a wrong binding fwiw

Indeed you're right, forget this patch USB30_PRIM_GDSC id for the controller
and starting from SM8550 a new one is used USB3_PHY_GDSC.

I'll fix the bindings.

https://lore.kernel.org/all/20230521202321.19778-2-dmitry.baryshkov@xxxxxxxxxx/ does exactly that,
so no need to fix anything.

Neil


Neil


Konrad
  arch/arm64/boot/dts/qcom/sm8450.dtsi | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi
index 5cd7296c7660..f921bd520e40 100644
--- a/arch/arm64/boot/dts/qcom/sm8450.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi
@@ -2046,6 +2046,8 @@ usb_1_qmpphy: phy@88e8000 {
                   <&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>;
              clock-names = "aux", "ref", "com_aux", "usb3_pipe";
+            power-domains = <&gcc USB30_PRIM_GDSC>;
+
              resets = <&gcc GCC_USB3_DP_PHY_PRIM_BCR>,
                   <&gcc GCC_USB3_PHY_PRIM_BCR>;
              reset-names = "phy", "common";

---
base-commit: 15e71592dbae49a674429c618a10401d7f992ac3
change-id: 20230621-topic-sm8450-upstream-usb-phy-missing-power-domains-499a3d6c725f

Best regards,