Skip to contentSkip to conversation

arm64: dts: qcom: add refgen regulators where applicable

PATCH Applied Dmitry Baryshkov 6 participants 26 messages Sep 21, 2025 – Oct 27, 2025

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index f02f97d4fdd215f3c83f851a5c5713488051e58d..40f9223d4c27219222a1036dece3b53ce0334a1e 100644
@@ -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
maintainer Acked-by on v1 1/14
#2 lore raw

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.

---
 .../devicetree/bindings/regulator/qcom,sdm845-refgen-regulator.yaml    | 3 +++
 1 file changed, 3 insertions(+)
#3 lore raw

PATCH 2/14 arm64: dts: qcom: lemans: move USB PHYs to a proper place

In reply to Dmitry Baryshkov

Sort 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
index cf685cb186edcade643790ba22f6a900beb85679..7b5f0b4d1be75d1aa757069522bbcf20898a321e 100644
@@ -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
#5 lore raw

PATCH 3/14 arm64: dts: qcom: lemans: add refgen regulator and use it for DSI

In reply to Dmitry Baryshkov

Add 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
index 7b5f0b4d1be75d1aa757069522bbcf20898a321e..b9607cfa117c8a5d71105c7787a8db79d36cc842 100644
@@ -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
#6 lore raw

PATCH 4/14 arm64: dts: qcom: sc7180: add refgen regulator and use it for DSI

In reply to Dmitry Baryshkov

Add 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
index a0df10a97c7f8aa5cd468c8983e74256490d1d06..a47182994c564e036dba25c772454320dc41cc7c 100644
@@ -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
#7 lore raw

PATCH 5/14 arm64: dts: qcom: sc7280: add refgen regulator and use it for DSI

In reply to Dmitry Baryshkov

Add 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
index 4b04dea57ec8cc652e37f1d93c410404adaadd5d..834596fc3fc0a7f9a7e60ac412d39d09c16d6550 100644
@@ -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
#8 lore raw

PATCH 6/14 arm64: dts: qcom: sc8180x: add refgen regulator and use it for DSI

In reply to Dmitry Baryshkov

Add 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
index 85c2afcb417def2be3d99026c7febd9f9db25da3..e3143a4a41c948cf4ddbf4b137a1323366566fdc 100644
@@ -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
#9 lore raw

PATCH 7/14 arm64: dts: qcom: sdm670: add refgen regulator and use it for DSI

In reply to Dmitry Baryshkov

Add 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
index c33f3de779f6ef457a3336fa4fbe39175c378cce..c3264a31bccf25fca9eae7fa7734ff43c9db410a 100644
@@ -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
#10 lore raw

PATCH 8/14 arm64: dts: qcom: sdm845: add refgen regulator and use it for DSI

In reply to Dmitry Baryshkov

Add 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
index 13c9515260ef171121607e1b8434f64c4934720f..1c3a7371a2d371f78e13a5b0bc400f79c62d210b 100644
@@ -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
#11 lore raw

PATCH 9/14 arm64: dts: qcom: sm6350: add refgen regulator and use it for DSI

In reply to Dmitry Baryshkov

Add 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
index 8459b27cacc72a4827a2e289e669163ad6250059..dd009569a6683a25f13b068e3e0bd8746b2ac501 100644
@@ -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
Reviewed-by on v1 9/14
#12 lore raw

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.

---
 arch/arm64/boot/dts/qcom/sm6350.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/qcom/sm6350.dtsi +0 -0
index 8459b27cacc72a4827a2e289e669163ad6250059..dd009569a6683a25f13b068e3e0bd8746b2ac501 100644

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>;
 
#13 lore raw

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.

---
 arch/arm64/boot/dts/qcom/sm6350.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/qcom/sm6350.dtsi +0 -0
index 8459b27cacc72a4827a2e289e669163ad6250059..dd009569a6683a25f13b068e3e0bd8746b2ac501 100644

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.

Quoted 1 line

For sc7280, hwio_kodiak_E5.0.cmm does say 0x84 for refgen.

0x60

moreover, I see that there are two refgen regulators..

Konrad

#14 lore raw

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.

---
 arch/arm64/boot/dts/qcom/sm6350.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/qcom/sm6350.dtsi +0 -0
index 8459b27cacc72a4827a2e289e669163ad6250059..dd009569a6683a25f13b068e3e0bd8746b2ac501 100644

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.

Quoted 5 lines
Quoted 1 line

For sc7280, hwio_kodiak_E5.0.cmm does say 0x84 for refgen.

0x60

moreover, 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
#15 lore raw

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.

---
 arch/arm64/boot/dts/qcom/sm6350.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/qcom/sm6350.dtsi +0 -0
index 8459b27cacc72a4827a2e289e669163ad6250059..dd009569a6683a25f13b068e3e0bd8746b2ac501 100644

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.

Quoted 7 lines
Quoted 3 lines

0x60

moreover, 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

#16 lore raw

PATCH 10/14 arm64: dts: qcom: sm8150: add refgen regulator and use it for DSI

In reply to Dmitry Baryshkov

Add 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
index acdba79612aa8f8ad714ffd93d84ac572afdd47a..1ea2beb9e2eaccf0e39dd2baea853d0152e48477 100644
@@ -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
#17 lore raw

PATCH 11/14 arm64: dts: qcom: sm8250: add refgen regulator and use it for DSI

In reply to Dmitry Baryshkov

Add 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
index 50dd11432bb2e8d4e9c811b31192331c424f205c..8248ac3119f12919d4988f4bec34fed7139e13e6 100644
@@ -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
#18 lore raw

PATCH 12/14 arm64: dts: qcom: qcs8300: add refgen regulator

In reply to Dmitry Baryshkov

Add 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
index 8d78ccac411e495592a6ff532c99e7aba087d18c..1bcbac852c8aee6b7a68f5f90eac6831e67d8caf 100644
@@ -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
#19 lore raw

PATCH 13/14 arm64: dts: qcom: sc8280xp: add refgen regulator

In reply to Dmitry Baryshkov

Add 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
index 279e5e6beae2099f26b8e0b8576cd6c99fa856ef..e48efbd13bfa8dba71928ef11b80ac27eb4b6f85 100644
@@ -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
#20 lore raw

PATCH 14/14 arm64: dts: qcom: sm6375: add refgen regulator

In reply to Dmitry Baryshkov

Add 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
index 0faa3a40ff824a19eb238fec8665de58a983937b..87d6600ccbd94e60309c321fb4af87b35006af58 100644
@@ -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
maintainer
#21 lore raw

Re: (subset) [PATCH 00/14] arm64: dts: qcom: add refgen regulators where applicable

In reply to Dmitry Baryshkov
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 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

#22 lore raw
In reply to Dmitry Baryshkov
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

#23 lore raw
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
#24 lore raw
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.dtsi
arch/arm64/boot/dts/qcom/kona-camera.dtsi
arch/arm64/boot/dts/qcom/lagoon-camera.dtsi
arch/arm64/boot/dts/qcom/lahaina-sde.dtsi
arch/arm64/boot/dts/qcom/kona-sde.dtsi

Konrad

maintainer Applied
#25 lore raw
In reply to Dmitry Baryshkov
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: afec70ac038bbd3666677436eb1ec0faf0504f72

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>