arm64: dts: qcom: add refgen regulators where applicable
Subsystems (5)
cover arm64: dts: qcom: add refgen regulators where applicable
On several Qualcomm platforms the DSI internally is using the refgen regulator. Document the regulator for the SDM670, Lemans and QCS8300 platforms. Add corresponding device nodes and link them as a supply to the DSI node.
---
Dmitry Baryshkov (14):
regulator: dt-bindings: qcom,sdm845-refgen-regulator: document more platforms
arm64: dts: qcom: lemans: move USB PHYs to a proper place
arm64: dts: qcom: lemans: add refgen regulator and use it for DSI
arm64: dts: qcom: sc7180: add refgen regulator and use it for DSI
arm64: dts: qcom: sc7280: add refgen regulator and use it for DSI
arm64: dts: qcom: sc8180x: add refgen regulator and use it for DSI
arm64: dts: qcom: sdm670: add refgen regulator and use it for DSI
arm64: dts: qcom: sdm845: add refgen regulator and use it for DSI
arm64: dts: qcom: sm6350: add refgen regulator and use it for DSI
arm64: dts: qcom: sm8150: add refgen regulator and use it for DSI
arm64: dts: qcom: sm8250: add refgen regulator and use it for DSI
arm64: dts: qcom: qcs8300: add refgen regulator
arm64: dts: qcom: sc8280xp: add refgen regulator
arm64: dts: qcom: sm6375: add refgen regulator
.../regulator/qcom,sdm845-refgen-regulator.yaml | 3 + arch/arm64/boot/dts/qcom/lemans.dtsi | 110 +++++++++++---------- arch/arm64/boot/dts/qcom/qcs8300.dtsi | 6 ++ arch/arm64/boot/dts/qcom/sc7180.dtsi | 8 ++ arch/arm64/boot/dts/qcom/sc7280.dtsi | 8 ++ arch/arm64/boot/dts/qcom/sc8180x.dtsi | 10 ++ arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 6 ++ arch/arm64/boot/dts/qcom/sdm670.dtsi | 10 ++ arch/arm64/boot/dts/qcom/sdm845.dtsi | 9 ++ arch/arm64/boot/dts/qcom/sm6350.dtsi | 8 ++ arch/arm64/boot/dts/qcom/sm6375.dtsi | 6 ++ arch/arm64/boot/dts/qcom/sm8150.dtsi | 10 ++ arch/arm64/boot/dts/qcom/sm8250.dtsi | 9 ++ 13 files changed, 153 insertions(+), 50 deletions(-)
---
base-commit: e5a7b3109c05f8aae05357fdcdaa3cfeaa99d241
change-id: 20250920-refgen-981d027f4c75
Best regards,
Signature · 2 lines
With best wishes Dmitry
PATCH 1/14 regulator: dt-bindings: qcom,sdm845-refgen-regulator: document more platforms
Document refgen block being present on SDM670, Lemans and QCS8300 platforms. It should be used to provide reference voltage to DSI controller.
--- .../devicetree/bindings/regulator/qcom,sdm845-refgen-regulator.yaml | 3 +++ 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/regulator/qcom,sdm845-refgen-regulator.yaml +3 -0
@@ -23,11 +23,14 @@ properties: - enum: - qcom,sc7180-refgen-regulator - qcom,sc8180x-refgen-regulator + - qcom,sdm670-refgen-regulator - qcom,sm8150-refgen-regulator - const: qcom,sdm845-refgen-regulator - items: - enum: + - qcom,qcs8300-refgen-regulator + - qcom,sa8775p-refgen-regulator - qcom,sc7280-refgen-regulator - qcom,sc8280xp-refgen-regulator - qcom,sm6350-refgen-regulator
Signature · 1 line
2.47.3
Re: [PATCH 01/14] regulator: dt-bindings: qcom,sdm845-refgen-regulator: document more platforms
Quoted 9 lines · Dmitry Baryshkov
Document refgen block being present on SDM670, Lemans and QCS8300 platforms. It should be used to provide reference voltage to DSI controller.
Signed-off-by Dmitry Baryshkov <[email protected]>--- .../devicetree/bindings/regulator/qcom,sdm845-refgen-regulator.yaml | 3 +++ 1 file changed, 3 insertions(+)
PATCH 2/14 arm64: dts: qcom: lemans: move USB PHYs to a proper place
In reply to Dmitry BaryshkovSort the lemans.dtsi, moving USB1 and USB2 PHYs to a proper place, making the DT file sorted by the address.
--- arch/arm64/boot/dts/qcom/lemans.dtsi | 100 +++++++++++++++++------------------ 1 file changed, 50 insertions(+), 50 deletions(-)
arch/arm64/boot/dts/qcom/lemans.dtsi +50 -50
@@ -3901,6 +3901,32 @@ usb_0_hsphy: phy@88e4000 { status = "disabled"; }; + usb_1_hsphy: phy@88e6000 { + compatible = "qcom,sa8775p-usb-hs-phy", + "qcom,usb-snps-hs-5nm-phy"; + reg = <0 0x088e6000 0 0x120>; + clocks = <&gcc GCC_USB_CLKREF_EN>; + clock-names = "ref"; + resets = <&gcc GCC_USB2_PHY_SEC_BCR>; + + #phy-cells = <0>; + + status = "disabled"; + }; + + usb_2_hsphy: phy@88e7000 { + compatible = "qcom,sa8775p-usb-hs-phy", + "qcom,usb-snps-hs-5nm-phy"; + reg = <0 0x088e7000 0 0x120>; + clocks = <&gcc GCC_USB_CLKREF_EN>; + clock-names = "ref"; + resets = <&gcc GCC_USB3_PHY_TERT_BCR>; + + #phy-cells = <0>; + + status = "disabled"; + }; + usb_0_qmpphy: phy@88e8000 { compatible = "qcom,sa8775p-qmp-usb3-uni-phy"; reg = <0 0x088e8000 0 0x2000>;
@@ -3925,6 +3951,30 @@ usb_0_qmpphy: phy@88e8000 { status = "disabled"; }; + usb_1_qmpphy: phy@88ea000 { + compatible = "qcom,sa8775p-qmp-usb3-uni-phy"; + reg = <0 0x088ea000 0 0x2000>; + + clocks = <&gcc GCC_USB3_SEC_PHY_AUX_CLK>, + <&gcc GCC_USB_CLKREF_EN>, + <&gcc GCC_USB3_SEC_PHY_COM_AUX_CLK>, + <&gcc GCC_USB3_SEC_PHY_PIPE_CLK>; + clock-names = "aux", "ref", "com_aux", "pipe"; + + resets = <&gcc GCC_USB3_PHY_SEC_BCR>, + <&gcc GCC_USB3PHY_PHY_SEC_BCR>; + reset-names = "phy", "phy_phy"; + + power-domains = <&gcc USB30_SEC_GDSC>; + + #clock-cells = <0>; + clock-output-names = "usb3_sec_phy_pipe_clk_src"; + + #phy-cells = <0>; + + status = "disabled"; + }; + usb_0: usb@a600000 { compatible = "qcom,sa8775p-dwc3", "qcom,snps-dwc3"; reg = <0 0x0a600000 0 0xfc100>;
@@ -3973,43 +4023,6 @@ usb_0: usb@a600000 { status = "disabled"; }; - usb_1_hsphy: phy@88e6000 { - compatible = "qcom,sa8775p-usb-hs-phy", - "qcom,usb-snps-hs-5nm-phy"; - reg = <0 0x088e6000 0 0x120>; - clocks = <&gcc GCC_USB_CLKREF_EN>; - clock-names = "ref"; - resets = <&gcc GCC_USB2_PHY_SEC_BCR>; - - #phy-cells = <0>; - - status = "disabled"; - }; - - usb_1_qmpphy: phy@88ea000 { - compatible = "qcom,sa8775p-qmp-usb3-uni-phy"; - reg = <0 0x088ea000 0 0x2000>; - - clocks = <&gcc GCC_USB3_SEC_PHY_AUX_CLK>, - <&gcc GCC_USB_CLKREF_EN>, - <&gcc GCC_USB3_SEC_PHY_COM_AUX_CLK>, - <&gcc GCC_USB3_SEC_PHY_PIPE_CLK>; - clock-names = "aux", "ref", "com_aux", "pipe"; - - resets = <&gcc GCC_USB3_PHY_SEC_BCR>, - <&gcc GCC_USB3PHY_PHY_SEC_BCR>; - reset-names = "phy", "phy_phy"; - - power-domains = <&gcc USB30_SEC_GDSC>; - - #clock-cells = <0>; - clock-output-names = "usb3_sec_phy_pipe_clk_src"; - - #phy-cells = <0>; - - status = "disabled"; - }; - usb_1: usb@a800000 { compatible = "qcom,sa8775p-dwc3", "qcom,snps-dwc3"; reg = <0 0x0a800000 0 0xfc100>;
@@ -4058,19 +4071,6 @@ usb_1: usb@a800000 { status = "disabled"; }; - usb_2_hsphy: phy@88e7000 { - compatible = "qcom,sa8775p-usb-hs-phy", - "qcom,usb-snps-hs-5nm-phy"; - reg = <0 0x088e7000 0 0x120>; - clocks = <&gcc GCC_USB_CLKREF_EN>; - clock-names = "ref"; - resets = <&gcc GCC_USB3_PHY_TERT_BCR>; - - #phy-cells = <0>; - - status = "disabled"; - }; - usb_2: usb@a400000 { compatible = "qcom,sa8775p-dwc3", "qcom,snps-dwc3"; reg = <0 0x0a400000 0 0xfc100>;
Signature · 1 line
2.47.3
Re: [PATCH 02/14] arm64: dts: qcom: lemans: move USB PHYs to a proper place
Quoted 5 lines · Dmitry Baryshkov
Sort the
lemans.dtsi, moving USB1 and USB2 PHYs to a proper place, making the DT file sorted by the address.Signed-off-by Dmitry Baryshkov <[email protected]>---
Konrad
PATCH 3/14 arm64: dts: qcom: lemans: add refgen regulator and use it for DSI
In reply to Dmitry BaryshkovAdd the refgen regulator block and use it for the DSI controllers.
--- arch/arm64/boot/dts/qcom/lemans.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/qcom/lemans.dtsi +10 -0
@@ -3975,6 +3975,12 @@ usb_1_qmpphy: phy@88ea000 { status = "disabled"; }; + refgen: regulator@891c000 { + compatible = "qcom,sa8775p-refgen-regulator", + "qcom,sm8250-refgen-regulator"; + reg = <0x0 0x0891c000 0x0 0x84>; + }; + usb_0: usb@a600000 { compatible = "qcom,sa8775p-dwc3", "qcom,snps-dwc3"; reg = <0 0x0a600000 0 0xfc100>;
@@ -4899,6 +4905,8 @@ mdss0_dsi0: dsi@ae94000 { operating-points-v2 = <&mdss_dsi_opp_table>; power-domains = <&rpmhpd SA8775P_MMCX>; + refgen-supply = <&refgen>; + #address-cells = <1>; #size-cells = <0>;
@@ -4981,6 +4989,8 @@ mdss0_dsi1: dsi@ae96000 { operating-points-v2 = <&mdss_dsi_opp_table>; power-domains = <&rpmhpd SA8775P_MMCX>; + refgen-supply = <&refgen>; + #address-cells = <1>; #size-cells = <0>;
Signature · 1 line
2.47.3
PATCH 4/14 arm64: dts: qcom: sc7180: add refgen regulator and use it for DSI
In reply to Dmitry BaryshkovAdd the refgen regulator block and use it for the DSI controller.
--- arch/arm64/boot/dts/qcom/sc7180.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/qcom/sc7180.dtsi +8 -0
@@ -1474,6 +1474,12 @@ uart11: serial@a94000 { }; }; + refgen: regulator@ff1000 { + compatible = "qcom,sc7180-refgen-regulator", + "qcom,sdm845-refgen-regulator"; + reg = <0x0 0x00ff1000 0x0 0x60>; + }; + config_noc: interconnect@1500000 { compatible = "qcom,sc7180-config-noc"; reg = <0 0x01500000 0 0x28000>;
@@ -3332,6 +3338,8 @@ mdss_dsi0: dsi@ae94000 { phys = <&mdss_dsi0_phy>; + refgen-supply = <&refgen>; + #address-cells = <1>; #size-cells = <0>;
Signature · 1 line
2.47.3
PATCH 5/14 arm64: dts: qcom: sc7280: add refgen regulator and use it for DSI
In reply to Dmitry BaryshkovAdd the refgen regulator block and use it for the DSI controller.
--- arch/arm64/boot/dts/qcom/sc7280.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/qcom/sc7280.dtsi +8 -0
@@ -3885,6 +3885,12 @@ usb_2_hsphy: phy@88e4000 { resets = <&gcc GCC_QUSB2PHY_SEC_BCR>; }; + refgen: regulator@88e7000 { + compatible = "qcom,sc7280-refgen-regulator", + "qcom,sm8250-refgen-regulator"; + reg = <0x0 0x088e7000 0x0 0x84>; + }; + usb_1_qmpphy: phy@88e8000 { compatible = "qcom,sc7280-qmp-usb3-dp-phy"; reg = <0 0x088e8000 0 0x3000>;
@@ -5074,6 +5080,8 @@ mdss_dsi: dsi@ae94000 { phys = <&mdss_dsi_phy>; + refgen-supply = <&refgen>; + #address-cells = <1>; #size-cells = <0>;
Signature · 1 line
2.47.3
PATCH 6/14 arm64: dts: qcom: sc8180x: add refgen regulator and use it for DSI
In reply to Dmitry BaryshkovAdd the refgen regulator block and use it for the DSI controllers.
--- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/qcom/sc8180x.dtsi +10 -0
@@ -2530,6 +2530,12 @@ usb_mp_hsphy1: phy@88e5000 { status = "disabled"; }; + refgen: regulator@88e7000 { + compatible = "qcom,sc8180x-refgen-regulator", + "qcom,sdm845-refgen-regulator"; + reg = <0x0 0x088e7000 0x0 0x60>; + }; + usb_prim_qmpphy: phy@88e8000 { compatible = "qcom,sc8180x-qmp-usb3-dp-phy"; reg = <0 0x088e8000 0 0x3000>;
@@ -3116,6 +3122,8 @@ mdss_dsi0: dsi@ae94000 { phys = <&mdss_dsi0_phy>; phy-names = "dsi"; + refgen-supply = <&refgen>; + status = "disabled"; ports {
@@ -3203,6 +3211,8 @@ mdss_dsi1: dsi@ae96000 { phys = <&mdss_dsi1_phy>; phy-names = "dsi"; + refgen-supply = <&refgen>; + status = "disabled"; ports {
Signature · 1 line
2.47.3
PATCH 7/14 arm64: dts: qcom: sdm670: add refgen regulator and use it for DSI
In reply to Dmitry BaryshkovAdd the refgen regulator block and use it for the DSI controllers.
--- arch/arm64/boot/dts/qcom/sdm670.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/qcom/sdm670.dtsi +10 -0
@@ -1124,6 +1124,12 @@ i2c15: i2c@a9c000 { }; }; + refgen: regulator@ff1000 { + compatible = "qcom,sdm670-refgen-regulator", + "qcom,sdm845-refgen-regulator"; + reg = <0x0 0x00ff1000 0x0 0x60>; + }; + mem_noc: interconnect@1380000 { compatible = "qcom,sdm670-mem-noc"; reg = <0 0x01380000 0 0x27200>;
@@ -1926,6 +1932,8 @@ mdss_dsi0: dsi@ae94000 { phys = <&mdss_dsi0_phy>; + refgen-supply = <&refgen>; + #address-cells = <1>; #size-cells = <0>;
@@ -2000,6 +2008,8 @@ mdss_dsi1: dsi@ae96000 { phys = <&mdss_dsi1_phy>; + refgen-supply = <&refgen>; + #address-cells = <1>; #size-cells = <0>;
Signature · 1 line
2.47.3
PATCH 8/14 arm64: dts: qcom: sdm845: add refgen regulator and use it for DSI
In reply to Dmitry BaryshkovAdd the refgen regulator block and use it for the DSI controllers.
--- arch/arm64/boot/dts/qcom/sdm845.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/qcom/sdm845.dtsi +9 -0
@@ -2218,6 +2218,11 @@ uart15: serial@a9c000 { }; }; + refgen: regulator@ff1000 { + compatible = "qcom,sdm845-refgen-regulator"; + reg = <0x0 0x00ff1000 0x0 0x60>; + }; + llcc: system-cache-controller@1100000 { compatible = "qcom,sdm845-llcc"; reg = <0 0x01100000 0 0x45000>, <0 0x01180000 0 0x50000>,
@@ -4750,6 +4755,8 @@ mdss_dsi0: dsi@ae94000 { phys = <&mdss_dsi0_phy>; + refgen-supply = <&refgen>; + status = "disabled"; #address-cells = <1>;
@@ -4824,6 +4831,8 @@ mdss_dsi1: dsi@ae96000 { phys = <&mdss_dsi1_phy>; + refgen-supply = <&refgen>; + status = "disabled"; #address-cells = <1>;
Signature · 1 line
2.47.3
PATCH 9/14 arm64: dts: qcom: sm6350: add refgen regulator and use it for DSI
In reply to Dmitry BaryshkovAdd the refgen regulator block and use it for the DSI controller.
--- arch/arm64/boot/dts/qcom/sm6350.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/qcom/sm6350.dtsi +8 -0
@@ -1768,6 +1768,12 @@ usb_1_hsphy: phy@88e3000 { resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>; }; + refgen: regulator@88e7000 { + compatible = "qcom,sm6350-refgen-regulator", + "qcom,sm8250-refgen-regulator"; + reg = <0x0 0x088e7000 0x0 0x84>; + }; + usb_1_qmpphy: phy@88e8000 { compatible = "qcom,sm6350-qmp-usb3-dp-phy"; reg = <0x0 0x088e8000 0x0 0x3000>;
@@ -2360,6 +2366,8 @@ mdss_dsi0: dsi@ae94000 { phys = <&mdss_dsi0_phy>; phy-names = "dsi"; + refgen-supply = <&refgen>; + #address-cells = <1>; #size-cells = <0>;
Signature · 1 line
2.47.3
Re: [PATCH 09/14] arm64: dts: qcom: sm6350: add refgen regulator and use it for DSI
Hi Dmitry,
Quoted 12 lines · Dmitry Baryshkov
Add the refgen regulator block and use it for the DSI controller.
Signed-off-by Dmitry Baryshkov <[email protected]>--- arch/arm64/boot/dts/qcom/sm6350.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)arch/arm64/boot/dts/qcom/sm6350.dtsi +0
-0
arch/arm64/boot/dts/qcom/sm6350.dtsi usb_1_hsphy: phy@88e3000 { · line 1774
Quoted 7 lines
arch/arm64/boot/dts/qcom/sm6350.dtsi +4
-0@@ -1768,6 +1768,12 @@ usb_1_hsphy: phy@88e3000 { resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>; }; + refgen: regulator@88e7000 { + compatible = "qcom,sm6350-refgen-regulator", + "qcom,sm8250-refgen-regulator"; + reg = <0x0 0x088e7000 0x0 0x84>;
Are you sure the size is 0x84? Downstream and hwio_bitra_V1.cmm would suggest size to be 0x60.
For sc7280, hwio_kodiak_E5.0.cmm does say 0x84 for refgen.
Apart from that, it's also what I have lying around somewhere, should've upstreamed this already.
Regards
Luca
Quoted 14 lines
arch/arm64/boot/dts/qcom/sm6350.dtsi +4
-0+ }; + usb_1_qmpphy: phy@88e8000 { compatible = "qcom,sm6350-qmp-usb3-dp-phy"; reg = <0x0 0x088e8000 0x0 0x3000>;@@ -2360,6 +2366,8 @@ mdss_dsi0: dsi@ae94000 { phys = <&mdss_dsi0_phy>; phy-names = "dsi"; + refgen-supply = <&refgen>; + #address-cells = <1>; #size-cells = <0>;
Re: [PATCH 09/14] arm64: dts: qcom: sm6350: add refgen regulator and use it for DSI
Quoted 26 lines · Luca Weiss
Hi Dmitry,
Quoted 12 lines · Dmitry Baryshkov
Add the refgen regulator block and use it for the DSI controller.
Signed-off-by Dmitry Baryshkov <[email protected]>--- arch/arm64/boot/dts/qcom/sm6350.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)arch/arm64/boot/dts/qcom/sm6350.dtsi +0
-0arch/arm64/boot/dts/qcom/sm6350.dtsi usb_1_hsphy: phy@88e3000 { · line 1774
Quoted 7 lines
arch/arm64/boot/dts/qcom/sm6350.dtsi +4
-0@@ -1768,6 +1768,12 @@ usb_1_hsphy: phy@88e3000 { resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>; }; + refgen: regulator@88e7000 { + compatible = "qcom,sm6350-refgen-regulator", + "qcom,sm8250-refgen-regulator"; + reg = <0x0 0x088e7000 0x0 0x84>;Are you sure the size is
0x84? Downstream and hwio_bitra_V1.cmm would suggest size to be0x60.
Quoted 1 line
For sc7280, hwio_kodiak_E5.0.cmm does say
0x84for refgen.
0x60
moreover, I see that there are two refgen regulators..
Konrad
Re: [PATCH 09/14] arm64: dts: qcom: sm6350: add refgen regulator and use it for DSI
Quoted 27 lines · Konrad Dybcio
Quoted 26 lines · Luca Weiss
Hi Dmitry,
Quoted 12 lines · Dmitry Baryshkov
Add the refgen regulator block and use it for the DSI controller.
Signed-off-by Dmitry Baryshkov <[email protected]>--- arch/arm64/boot/dts/qcom/sm6350.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)arch/arm64/boot/dts/qcom/sm6350.dtsi +0
-0arch/arm64/boot/dts/qcom/sm6350.dtsi usb_1_hsphy: phy@88e3000 { · line 1774
Quoted 7 lines
arch/arm64/boot/dts/qcom/sm6350.dtsi +4
-0@@ -1768,6 +1768,12 @@ usb_1_hsphy: phy@88e3000 { resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>; }; + refgen: regulator@88e7000 { + compatible = "qcom,sm6350-refgen-regulator", + "qcom,sm8250-refgen-regulator"; + reg = <0x0 0x088e7000 0x0 0x84>;Are you sure the size is
0x84? Downstream and hwio_bitra_V1.cmm would suggest size to be0x60.
Quoted 5 lines
Quoted 1 line
For sc7280, hwio_kodiak_E5.0.cmm does say
0x84for refgen.
0x60moreover, I see that there are two refgen regulators..
There are two refgens on each of the platforms, but I think the other one is used in the automatic way. The HPG only tells us about programming this one.
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH 09/14] arm64: dts: qcom: sm6350: add refgen regulator and use it for DSI
Quoted 30 lines · Dmitry Baryshkov
Quoted 29 lines · Konrad Dybcio
Quoted 27 lines · Luca Weiss
Hi Dmitry,
Quoted 12 lines · Dmitry Baryshkov
Add the refgen regulator block and use it for the DSI controller.
Signed-off-by Dmitry Baryshkov <[email protected]>--- arch/arm64/boot/dts/qcom/sm6350.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)arch/arm64/boot/dts/qcom/sm6350.dtsi +0
-0arch/arm64/boot/dts/qcom/sm6350.dtsi usb_1_hsphy: phy@88e3000 { · line 1774
Quoted 7 lines
arch/arm64/boot/dts/qcom/sm6350.dtsi +4
-0@@ -1768,6 +1768,12 @@ usb_1_hsphy: phy@88e3000 { resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>; }; + refgen: regulator@88e7000 { + compatible = "qcom,sm6350-refgen-regulator", + "qcom,sm8250-refgen-regulator"; + reg = <0x0 0x088e7000 0x0 0x84>;Are you sure the size is
0x84? Downstream and hwio_bitra_V1.cmm would suggest size to be0x60.For sc7280, hwio_kodiak_E5.0.cmm does say
0x84for refgen.
Quoted 7 lines
Quoted 3 lines
0x60moreover, I see that there are two refgen regulators..
There are two refgens on each of the platforms, but I think the other one is used in the automatic way. The HPG only tells us about programming this one.
OK thanks for checking that
Konrad
PATCH 10/14 arm64: dts: qcom: sm8150: add refgen regulator and use it for DSI
In reply to Dmitry BaryshkovAdd the refgen regulator block and use it for the DSI controller.
--- arch/arm64/boot/dts/qcom/sm8150.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/qcom/sm8150.dtsi +10 -0
@@ -3469,6 +3469,12 @@ usb_2_hsphy: phy@88e3000 { resets = <&gcc GCC_QUSB2PHY_SEC_BCR>; }; + refgen: regulator@88e7000 { + compatible = "qcom,sm8150-refgen-regulator", + "qcom,sdm845-refgen-regulator"; + reg = <0x0 0x088e7000 0x0 0x60>; + }; + usb_1_qmpphy: phy@88e8000 { compatible = "qcom,sm8150-qmp-usb3-dp-phy"; reg = <0 0x088e8000 0 0x3000>;
@@ -3992,6 +3998,8 @@ mdss_dsi0: dsi@ae94000 { phys = <&mdss_dsi0_phy>; + refgen-supply = <&refgen>; + status = "disabled"; #address-cells = <1>;
@@ -4085,6 +4093,8 @@ mdss_dsi1: dsi@ae96000 { phys = <&mdss_dsi1_phy>; + refgen-supply = <&refgen>; + status = "disabled"; #address-cells = <1>;
Signature · 1 line
2.47.3
PATCH 11/14 arm64: dts: qcom: sm8250: add refgen regulator and use it for DSI
In reply to Dmitry BaryshkovAdd the refgen regulator block and use it for the DSI controller.
--- arch/arm64/boot/dts/qcom/sm8250.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/qcom/sm8250.dtsi +9 -0
@@ -3901,6 +3901,11 @@ usb_2_hsphy: phy@88e4000 { resets = <&gcc GCC_QUSB2PHY_SEC_BCR>; }; + refgen: regulator@88e7000 { + compatible = "qcom,sm8250-refgen-regulator"; + reg = <0x0 0x088e7000 0x0 0x84>; + }; + usb_1_qmpphy: phy@88e8000 { compatible = "qcom,sm8250-qmp-usb3-dp-phy"; reg = <0 0x088e8000 0 0x3000>;
@@ -4873,6 +4878,8 @@ mdss_dsi0: dsi@ae94000 { phys = <&mdss_dsi0_phy>; + refgen-supply = <&refgen>; + status = "disabled"; #address-cells = <1>;
@@ -4967,6 +4974,8 @@ mdss_dsi1: dsi@ae96000 { phys = <&mdss_dsi1_phy>; + refgen-supply = <&refgen>; + status = "disabled"; #address-cells = <1>;
Signature · 1 line
2.47.3
PATCH 12/14 arm64: dts: qcom: qcs8300: add refgen regulator
In reply to Dmitry BaryshkovAdd the refgen regulator block. It should be used for DSI controllers once they are added.
--- arch/arm64/boot/dts/qcom/qcs8300.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/qcom/qcs8300.dtsi +6 -0
@@ -4294,6 +4294,12 @@ serdes0: phy@8909000 { status = "disabled"; }; + refgen: regulator@891c000 { + compatible = "qcom,qcs8300-refgen-regulator", + "qcom,sm8250-refgen-regulator"; + reg = <0x0 0x0891c000 0x0 0x84>; + }; + gpu: gpu@3d00000 { compatible = "qcom,adreno-623.0", "qcom,adreno"; reg = <0x0 0x03d00000 0x0 0x40000>,
Signature · 1 line
2.47.3
PATCH 13/14 arm64: dts: qcom: sc8280xp: add refgen regulator
In reply to Dmitry BaryshkovAdd the refgen regulator block. It should be used for DSI controllers once they are added.
--- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/qcom/sc8280xp.dtsi +6 -0
@@ -3723,6 +3723,12 @@ usb_2_qmpphy1: phy@88f1000 { status = "disabled"; }; + refgen: regulator@8900000 { + compatible = "qcom,sc8280xp-refgen-regulator", + "qcom,sm8250-refgen-regulator"; + reg = <0x0 0x08900000 0x0 0x96>; + }; + usb_1_hsphy: phy@8902000 { compatible = "qcom,sc8280xp-usb-hs-phy", "qcom,usb-snps-hs-5nm-phy";
Signature · 1 line
2.47.3
PATCH 14/14 arm64: dts: qcom: sm6375: add refgen regulator
In reply to Dmitry BaryshkovAdd the refgen regulator block. It should be used for DSI controllers once they are added.
--- arch/arm64/boot/dts/qcom/sm6375.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/qcom/sm6375.dtsi +6 -0
@@ -971,6 +971,12 @@ usb_1_hsphy: phy@162b000 { status = "disabled"; }; + refgen: regulator@162f000 { + compatible = "qcom,sm6375-refgen-regulator", + "qcom,sm8250-refgen-regulator"; + reg = <0x0 0x0162f000 0x0 0x84>; + }; + spmi_bus: spmi@1c40000 { compatible = "qcom,spmi-pmic-arb"; reg = <0 0x01c40000 0 0x1100>,
Signature · 1 line
2.47.3
Mark Brown
maintainerRe: (subset) [PATCH 00/14] arm64: dts: qcom: add refgen regulators where applicable
In reply to Dmitry BaryshkovQuoted 6 lines · Dmitry Baryshkov
On several Qualcomm platforms the DSI internally is using the refgen regulator. Document the regulator for the SDM670, Lemans and QCS8300 platforms. Add corresponding device nodes and link them as a supply to the DSI node.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
Thanks!
[01/14] regulator: dt-bindings: qcom,sdm845-refgen-regulator: document more platforms
commit: e609438851928381e39b5393f17156955a84122a
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 4 lines · Dmitry Baryshkov
On several Qualcomm platforms the DSI internally is using the refgen regulator. Document the regulator for the SDM670, Lemans and QCS8300 platforms. Add corresponding device nodes and link them as a supply to the DSI node.
It's likely that all PHY-ish hardware uses REFGEN, so please make extra sure your patches won't kill DP/USB/camera
Konrad
Quoted 9 lines · Konrad Dybcio
Quoted 4 lines · Dmitry Baryshkov
On several Qualcomm platforms the DSI internally is using the refgen regulator. Document the regulator for the SDM670, Lemans and QCS8300 platforms. Add corresponding device nodes and link them as a supply to the DSI node.
It's likely that all PHY-ish hardware uses REFGEN, so please make extra sure your patches won't kill DP/USB/camera
As far as I understand, DP and USB cast their votes directly in HW. For camera... I don't know. Do we need an extra vote?
Signature · 2 lines
With best wishes Dmitry
Quoted 9 lines · Dmitry Baryshkov
Quoted 7 lines · Konrad Dybcio
Quoted 4 lines · Dmitry Baryshkov
On several Qualcomm platforms the DSI internally is using the refgen regulator. Document the regulator for the SDM670, Lemans and QCS8300 platforms. Add corresponding device nodes and link them as a supply to the DSI node.
Quoted 5 lines
Quoted 2 lines
It's likely that all PHY-ish hardware uses REFGEN, so please make extra sure your patches won't kill DP/USB/camera
As far as I understand, DP and USB cast their votes directly in HW. For camera... I don't know. Do we need an extra vote?
$ rg refgen-supply arch -l
arch/arm64/boot/dts/qcom/lito-camera.dtsiarch/arm64/boot/dts/qcom/kona-camera.dtsiarch/arm64/boot/dts/qcom/lagoon-camera.dtsiarch/arm64/boot/dts/qcom/lahaina-sde.dtsiarch/arm64/boot/dts/qcom/kona-sde.dtsi
Konrad
Quoted 6 lines · Dmitry Baryshkov
On several Qualcomm platforms the DSI internally is using the refgen regulator. Document the regulator for the SDM670, Lemans and QCS8300 platforms. Add corresponding device nodes and link them as a supply to the DSI node.
Applied, thanks!
[01/14] regulator: dt-bindings: qcom,sdm845-refgen-regulator: document more platforms
(no commit info)
[02/14] arm64: dts: qcom: lemans: move USB PHYs to a proper place
commit: 883e20433fe586a6d3e1332d25f5e675921fefd9
[03/14] arm64: dts: qcom: lemans: add refgen regulator and use it for DSI
commit: 7522c9ffaa97041a1a5dfdcb460d2a2b89f860b1
[04/14] arm64: dts: qcom: sc7180: add refgen regulator and use it for DSI
commit: ac44b60f5d12cc5531dd04619b6fc31d84ee4091
[05/14] arm64: dts: qcom: sc7280: add refgen regulator and use it for DSI
commit: f8cfb1932ce35c149bec81ea50fdf9b7472c6013
[06/14] arm64: dts: qcom: sc8180x: add refgen regulator and use it for DSI
commit: 4be2ab8c4e7d35e287962f640a0994982776d4ce
[07/14] arm64: dts: qcom: sdm670: add refgen regulator and use it for DSI
commit: 7223744176ef40969da0caa9dcc3588baa773b99
[08/14] arm64: dts: qcom: sdm845: add refgen regulator and use it for DSI
commit: ca031c24bf66dc51e9304917243ca4d1a5dfa110
[09/14] arm64: dts: qcom: sm6350: add refgen regulator and use it for DSI
commit: e53107df09622c3a6c534ff4bffad9634d05c41e
[10/14] arm64: dts: qcom: sm8150: add refgen regulator and use it for DSI
commit: 0aa588760dd9f2f3d35eecd0a2120afe332b636d
[11/14] arm64: dts: qcom: sm8250: add refgen regulator and use it for DSI
commit: 3aedde1859f341f0f631330928872c535769e20b
[12/14] arm64: dts: qcom: qcs8300: add refgen regulator
commit: 2c9e4d7c6896ef285e884f0abf5c15d198cea469
[13/14] arm64: dts: qcom: sc8280xp: add refgen regulator
commit: d4d1e799e9bf98ddd05023dd98860079e641c547
[14/14] arm64: dts: qcom: sm6375: add refgen regulator
commit: afec70ac038bbd3666677436eb1ec0faf0504f72Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>