]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: sm8350: add refgen regulator
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 4 Aug 2024 05:40:14 +0000 (08:40 +0300)
committerBjorn Andersson <andersson@kernel.org>
Thu, 15 Aug 2024 02:50:48 +0000 (21:50 -0500)
On SM8350 platform the DSI internally is using the refgen regulator. Add
corresponding device node and link it as a supply to the DSI node.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240804-sm8350-fixes-v1-10-1149dd8399fe@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm8350.dtsi

index 27f36e6366df1ae5f7dee8940d0d7f59b700ae23..37a2aba0d4cae0421c8ddc09d70373836dac8b33 100644 (file)
                        resets = <&gcc GCC_QUSB2PHY_SEC_BCR>;
                };
 
+               refgen: regulator@88e7000 {
+                       compatible = "qcom,sm8350-refgen-regulator",
+                                    "qcom,sm8250-refgen-regulator";
+                       reg = <0x0 0x088e7000 0x0 0x84>;
+               };
+
                usb_1_qmpphy: phy@88e8000 {
                        compatible = "qcom,sm8350-qmp-usb3-dp-phy";
                        reg = <0 0x088e8000 0 0x3000>;
 
                                operating-points-v2 = <&dsi0_opp_table>;
                                power-domains = <&rpmhpd RPMHPD_MMCX>;
+                               refgen-supply = <&refgen>;
 
                                phys = <&mdss_dsi0_phy>;
 
 
                                operating-points-v2 = <&dsi1_opp_table>;
                                power-domains = <&rpmhpd RPMHPD_MMCX>;
+                               refgen-supply = <&refgen>;
 
                                phys = <&mdss_dsi1_phy>;