devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply
@ 2023-09-06 10:47 Krzysztof Kozlowski
  2023-09-06 10:47 ` [PATCH 2/6] arm64: dts: qcom: sm8550-qrd: " Krzysztof Kozlowski
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: Krzysztof Kozlowski @ 2023-09-06 10:47 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel
  Cc: Krzysztof Kozlowski

According to schematics the VCCQ2 supply is not connected and the L3G
regulator instead powers up the controller pads (VDD_PX10).  Use correct
supply vdd-hba and drop unsupported current limit for the vdd-hba.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm8550-mtp.dts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/sm8550-mtp.dts b/arch/arm64/boot/dts/qcom/sm8550-mtp.dts
index f29cce5186ac..91aa37ecb259 100644
--- a/arch/arm64/boot/dts/qcom/sm8550-mtp.dts
+++ b/arch/arm64/boot/dts/qcom/sm8550-mtp.dts
@@ -797,8 +797,7 @@ &ufs_mem_hc {
 	vcc-max-microamp = <1300000>;
 	vccq-supply = <&vreg_l1g_1p2>;
 	vccq-max-microamp = <1200000>;
-	vccq2-supply = <&vreg_l3g_1p2>;
-	vccq2-max-microamp = <100>;
+	vdd-hba-supply = <&vreg_l3g_1p2>;
 
 	status = "okay";
 };
-- 
2.34.1


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

* [PATCH 2/6] arm64: dts: qcom: sm8550-qrd: use correct UFS supply
  2023-09-06 10:47 [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply Krzysztof Kozlowski
@ 2023-09-06 10:47 ` Krzysztof Kozlowski
  2023-09-06 12:07   ` Konrad Dybcio
  2023-09-06 10:47 ` [PATCH 3/6] arm64: dts: qcom: sm8450-hdk: add UFS host controller supply Krzysztof Kozlowski
                   ` (5 subsequent siblings)
  6 siblings, 1 reply; 17+ messages in thread
From: Krzysztof Kozlowski @ 2023-09-06 10:47 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel
  Cc: Krzysztof Kozlowski

According to schematics the VCCQ2 supply is not connected and the L3G
regulator instead powers up the controller pads (VDD_PX10).  Use correct
supply vdd-hba and drop unsupported current limit for the vdd-hba.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm8550-qrd.dts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts
index 2c09ce8aeafd..923b40646e81 100644
--- a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts
+++ b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts
@@ -889,8 +889,7 @@ &ufs_mem_hc {
 	vcc-max-microamp = <1300000>;
 	vccq-supply = <&vreg_l1g_1p2>;
 	vccq-max-microamp = <1200000>;
-	vccq2-supply = <&vreg_l3g_1p2>;
-	vccq2-max-microamp = <100>;
+	vdd-hba-supply = <&vreg_l3g_1p2>;
 
 	status = "okay";
 };
-- 
2.34.1


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

* [PATCH 3/6] arm64: dts: qcom: sm8450-hdk: add UFS host controller supply
  2023-09-06 10:47 [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply Krzysztof Kozlowski
  2023-09-06 10:47 ` [PATCH 2/6] arm64: dts: qcom: sm8550-qrd: " Krzysztof Kozlowski
@ 2023-09-06 10:47 ` Krzysztof Kozlowski
  2023-09-06 11:29   ` Konrad Dybcio
  2023-09-06 10:47 ` [PATCH 4/6] arm64: dts: qcom: sm8450-qrd: " Krzysztof Kozlowski
                   ` (4 subsequent siblings)
  6 siblings, 1 reply; 17+ messages in thread
From: Krzysztof Kozlowski @ 2023-09-06 10:47 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel
  Cc: Krzysztof Kozlowski

According to schematics the L9B regulator supplies VCCQ (already in DTS)
and the UFS controller pads (VDD_PX10, missing vdd-hba).  Add the
missing supply for full hardware description, even though it should not
have functional impact.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
index bd5e8181f2aa..df9251089cb9 100644
--- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
+++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
@@ -1073,6 +1073,7 @@ &ufs_mem_hc {
 	vcc-max-microamp = <1100000>;
 	vccq-supply = <&vreg_l9b_1p2>;
 	vccq-max-microamp = <1200000>;
+	vdd-hba-supply = <&vreg_l9b_1p2>;
 };
 
 &ufs_mem_phy {
-- 
2.34.1


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

* [PATCH 4/6] arm64: dts: qcom: sm8450-qrd: add UFS host controller supply
  2023-09-06 10:47 [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply Krzysztof Kozlowski
  2023-09-06 10:47 ` [PATCH 2/6] arm64: dts: qcom: sm8550-qrd: " Krzysztof Kozlowski
  2023-09-06 10:47 ` [PATCH 3/6] arm64: dts: qcom: sm8450-hdk: add UFS host controller supply Krzysztof Kozlowski
@ 2023-09-06 10:47 ` Krzysztof Kozlowski
  2023-09-06 11:28   ` Konrad Dybcio
  2023-09-06 10:47 ` [PATCH 5/6] arm64: dts: qcom: sm8350-hdk: " Krzysztof Kozlowski
                   ` (3 subsequent siblings)
  6 siblings, 1 reply; 17+ messages in thread
From: Krzysztof Kozlowski @ 2023-09-06 10:47 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel
  Cc: Krzysztof Kozlowski

According to schematics the L9B regulator supplies VCCQ (already in DTS)
and the UFS controller pads (VDD_PX10, missing vdd-hba).  Add the
missing supply for full hardware description, even though it should not
have functional impact.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm8450-qrd.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/qcom/sm8450-qrd.dts b/arch/arm64/boot/dts/qcom/sm8450-qrd.dts
index 37479327707f..c7d05945aa51 100644
--- a/arch/arm64/boot/dts/qcom/sm8450-qrd.dts
+++ b/arch/arm64/boot/dts/qcom/sm8450-qrd.dts
@@ -443,6 +443,7 @@ &ufs_mem_hc {
 	vcc-max-microamp = <1100000>;
 	vccq-supply = <&vreg_l9b_1p2>;
 	vccq-max-microamp = <1200000>;
+	vdd-hba-supply = <&vreg_l9b_1p2>;
 };
 
 &ufs_mem_phy {
-- 
2.34.1


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

* [PATCH 5/6] arm64: dts: qcom: sm8350-hdk: add UFS host controller supply
  2023-09-06 10:47 [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply Krzysztof Kozlowski
                   ` (2 preceding siblings ...)
  2023-09-06 10:47 ` [PATCH 4/6] arm64: dts: qcom: sm8450-qrd: " Krzysztof Kozlowski
@ 2023-09-06 10:47 ` Krzysztof Kozlowski
  2023-09-06 11:29   ` Konrad Dybcio
  2023-09-06 10:47 ` [PATCH 6/6] arm64: dts: qcom: sm8350-mtp: " Krzysztof Kozlowski
                   ` (2 subsequent siblings)
  6 siblings, 1 reply; 17+ messages in thread
From: Krzysztof Kozlowski @ 2023-09-06 10:47 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel
  Cc: Krzysztof Kozlowski

According to schematics the L9B regulator supplies VCCQ (already in DTS)
and the UFS controller pads (VDD_PX10, missing vdd-hba).  Add the
missing supply for full hardware description, even though it should not
have functional impact.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
index 4013d25a7df3..dd2cb0ccd3cb 100644
--- a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
+++ b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
@@ -760,6 +760,7 @@ &ufs_mem_hc {
 	vcc-max-microamp = <800000>;
 	vccq-supply = <&vreg_l9b_1p2>;
 	vccq-max-microamp = <900000>;
+	vdd-hba-supply = <&vreg_l9b_1p2>;
 };
 
 &ufs_mem_phy {
-- 
2.34.1


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

* [PATCH 6/6] arm64: dts: qcom: sm8350-mtp: add UFS host controller supply
  2023-09-06 10:47 [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply Krzysztof Kozlowski
                   ` (3 preceding siblings ...)
  2023-09-06 10:47 ` [PATCH 5/6] arm64: dts: qcom: sm8350-hdk: " Krzysztof Kozlowski
@ 2023-09-06 10:47 ` Krzysztof Kozlowski
  2023-09-06 11:29   ` Konrad Dybcio
  2023-09-06 11:28 ` [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply Konrad Dybcio
  2023-09-14 16:04 ` (subset) " Bjorn Andersson
  6 siblings, 1 reply; 17+ messages in thread
From: Krzysztof Kozlowski @ 2023-09-06 10:47 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel
  Cc: Krzysztof Kozlowski

According to schematics the L9B regulator supplies VCCQ (already in DTS)
and the UFS controller pads (VDD_PX10, missing vdd-hba).  Add the
missing supply for full hardware description, even though it should not
have functional impact.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm8350-mtp.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/qcom/sm8350-mtp.dts b/arch/arm64/boot/dts/qcom/sm8350-mtp.dts
index c5a6c8745606..8bee57f3b25a 100644
--- a/arch/arm64/boot/dts/qcom/sm8350-mtp.dts
+++ b/arch/arm64/boot/dts/qcom/sm8350-mtp.dts
@@ -325,6 +325,7 @@ &ufs_mem_hc {
 	vcc-max-microamp = <800000>;
 	vccq-supply = <&vreg_l9b_1p2>;
 	vccq-max-microamp = <900000>;
+	vdd-hba-supply = <&vreg_l9b_1p2>;
 };
 
 &ufs_mem_phy {
-- 
2.34.1


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

* Re: [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply
  2023-09-06 10:47 [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply Krzysztof Kozlowski
                   ` (4 preceding siblings ...)
  2023-09-06 10:47 ` [PATCH 6/6] arm64: dts: qcom: sm8350-mtp: " Krzysztof Kozlowski
@ 2023-09-06 11:28 ` Konrad Dybcio
  2023-09-06 11:39   ` Krzysztof Kozlowski
  2023-09-14 16:04 ` (subset) " Bjorn Andersson
  6 siblings, 1 reply; 17+ messages in thread
From: Konrad Dybcio @ 2023-09-06 11:28 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel

On 6.09.2023 12:47, Krzysztof Kozlowski wrote:
> According to schematics the VCCQ2 supply is not connected and the L3G
> regulator instead powers up the controller pads (VDD_PX10).  Use correct
> supply vdd-hba and drop unsupported current limit for the vdd-hba.
Why is it unsupported?

Konrad

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

* Re: [PATCH 4/6] arm64: dts: qcom: sm8450-qrd: add UFS host controller supply
  2023-09-06 10:47 ` [PATCH 4/6] arm64: dts: qcom: sm8450-qrd: " Krzysztof Kozlowski
@ 2023-09-06 11:28   ` Konrad Dybcio
  0 siblings, 0 replies; 17+ messages in thread
From: Konrad Dybcio @ 2023-09-06 11:28 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel

On 6.09.2023 12:47, Krzysztof Kozlowski wrote:
> According to schematics the L9B regulator supplies VCCQ (already in DTS)
> and the UFS controller pads (VDD_PX10, missing vdd-hba).  Add the
> missing supply for full hardware description, even though it should not
> have functional impact.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

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

* Re: [PATCH 5/6] arm64: dts: qcom: sm8350-hdk: add UFS host controller supply
  2023-09-06 10:47 ` [PATCH 5/6] arm64: dts: qcom: sm8350-hdk: " Krzysztof Kozlowski
@ 2023-09-06 11:29   ` Konrad Dybcio
  0 siblings, 0 replies; 17+ messages in thread
From: Konrad Dybcio @ 2023-09-06 11:29 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel

On 6.09.2023 12:47, Krzysztof Kozlowski wrote:
> According to schematics the L9B regulator supplies VCCQ (already in DTS)
> and the UFS controller pads (VDD_PX10, missing vdd-hba).  Add the
> missing supply for full hardware description, even though it should not
> have functional impact.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

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

* Re: [PATCH 6/6] arm64: dts: qcom: sm8350-mtp: add UFS host controller supply
  2023-09-06 10:47 ` [PATCH 6/6] arm64: dts: qcom: sm8350-mtp: " Krzysztof Kozlowski
@ 2023-09-06 11:29   ` Konrad Dybcio
  0 siblings, 0 replies; 17+ messages in thread
From: Konrad Dybcio @ 2023-09-06 11:29 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel

On 6.09.2023 12:47, Krzysztof Kozlowski wrote:
> According to schematics the L9B regulator supplies VCCQ (already in DTS)
> and the UFS controller pads (VDD_PX10, missing vdd-hba).  Add the
> missing supply for full hardware description, even though it should not
> have functional impact.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

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

* Re: [PATCH 3/6] arm64: dts: qcom: sm8450-hdk: add UFS host controller supply
  2023-09-06 10:47 ` [PATCH 3/6] arm64: dts: qcom: sm8450-hdk: add UFS host controller supply Krzysztof Kozlowski
@ 2023-09-06 11:29   ` Konrad Dybcio
  0 siblings, 0 replies; 17+ messages in thread
From: Konrad Dybcio @ 2023-09-06 11:29 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel

On 6.09.2023 12:47, Krzysztof Kozlowski wrote:
> According to schematics the L9B regulator supplies VCCQ (already in DTS)
> and the UFS controller pads (VDD_PX10, missing vdd-hba).  Add the
> missing supply for full hardware description, even though it should not
> have functional impact.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

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

* Re: [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply
  2023-09-06 11:28 ` [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply Konrad Dybcio
@ 2023-09-06 11:39   ` Krzysztof Kozlowski
  2023-09-06 11:50     ` Konrad Dybcio
  0 siblings, 1 reply; 17+ messages in thread
From: Krzysztof Kozlowski @ 2023-09-06 11:39 UTC (permalink / raw)
  To: Konrad Dybcio, Andy Gross, Bjorn Andersson, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel

On 06/09/2023 13:28, Konrad Dybcio wrote:
> On 6.09.2023 12:47, Krzysztof Kozlowski wrote:
>> According to schematics the VCCQ2 supply is not connected and the L3G
>> regulator instead powers up the controller pads (VDD_PX10).  Use correct
>> supply vdd-hba and drop unsupported current limit for the vdd-hba.
> Why is it unsupported?

Maybe I was here not precise. I move the regulator from vccq2 to
vdd-hba. vccq2 has control of current in UFS core driver. Bindings also
allow it.

vdd-hba does not have current control in UFS (ignored) and bindings do
not allow such max-microamp property. Why? I don't know. That's how it
is done.

Best regards,
Krzysztof


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

* Re: [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply
  2023-09-06 11:39   ` Krzysztof Kozlowski
@ 2023-09-06 11:50     ` Konrad Dybcio
  2023-09-06 12:05       ` Krzysztof Kozlowski
  0 siblings, 1 reply; 17+ messages in thread
From: Konrad Dybcio @ 2023-09-06 11:50 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel

On 6.09.2023 13:39, Krzysztof Kozlowski wrote:
> On 06/09/2023 13:28, Konrad Dybcio wrote:
>> On 6.09.2023 12:47, Krzysztof Kozlowski wrote:
>>> According to schematics the VCCQ2 supply is not connected and the L3G
>>> regulator instead powers up the controller pads (VDD_PX10).  Use correct
>>> supply vdd-hba and drop unsupported current limit for the vdd-hba.
>> Why is it unsupported?
> 
> Maybe I was here not precise. I move the regulator from vccq2 to
> vdd-hba. vccq2 has control of current in UFS core driver. Bindings also
> allow it.
Looks like the bindings are out of sync with the driver.

ufshcd_populate_vreg() which parses current is used for both vccq2
and vdd-hba.

Konrad

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

* Re: [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply
  2023-09-06 11:50     ` Konrad Dybcio
@ 2023-09-06 12:05       ` Krzysztof Kozlowski
  2023-09-06 12:07         ` Konrad Dybcio
  0 siblings, 1 reply; 17+ messages in thread
From: Krzysztof Kozlowski @ 2023-09-06 12:05 UTC (permalink / raw)
  To: Konrad Dybcio, Andy Gross, Bjorn Andersson, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel

On 06/09/2023 13:50, Konrad Dybcio wrote:
> On 6.09.2023 13:39, Krzysztof Kozlowski wrote:
>> On 06/09/2023 13:28, Konrad Dybcio wrote:
>>> On 6.09.2023 12:47, Krzysztof Kozlowski wrote:
>>>> According to schematics the VCCQ2 supply is not connected and the L3G
>>>> regulator instead powers up the controller pads (VDD_PX10).  Use correct
>>>> supply vdd-hba and drop unsupported current limit for the vdd-hba.
>>> Why is it unsupported?
>>
>> Maybe I was here not precise. I move the regulator from vccq2 to
>> vdd-hba. vccq2 has control of current in UFS core driver. Bindings also
>> allow it.
> Looks like the bindings are out of sync with the driver.
> 
> ufshcd_populate_vreg() which parses current is used for both vccq2
> and vdd-hba.

Just for convenience. The current is not used for vdd-hba. Also:

https://lore.kernel.org/all/20230906113302.201888-1-krzysztof.kozlowski@linaro.org/

Best regards,
Krzysztof


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

* Re: [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply
  2023-09-06 12:05       ` Krzysztof Kozlowski
@ 2023-09-06 12:07         ` Konrad Dybcio
  0 siblings, 0 replies; 17+ messages in thread
From: Konrad Dybcio @ 2023-09-06 12:07 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel

On 6.09.2023 14:05, Krzysztof Kozlowski wrote:
> On 06/09/2023 13:50, Konrad Dybcio wrote:
>> On 6.09.2023 13:39, Krzysztof Kozlowski wrote:
>>> On 06/09/2023 13:28, Konrad Dybcio wrote:
>>>> On 6.09.2023 12:47, Krzysztof Kozlowski wrote:
>>>>> According to schematics the VCCQ2 supply is not connected and the L3G
>>>>> regulator instead powers up the controller pads (VDD_PX10).  Use correct
>>>>> supply vdd-hba and drop unsupported current limit for the vdd-hba.
>>>> Why is it unsupported?
>>>
>>> Maybe I was here not precise. I move the regulator from vccq2 to
>>> vdd-hba. vccq2 has control of current in UFS core driver. Bindings also
>>> allow it.
>> Looks like the bindings are out of sync with the driver.
>>
>> ufshcd_populate_vreg() which parses current is used for both vccq2
>> and vdd-hba.
> 
> Just for convenience. The current is not used for vdd-hba. Also:
> 
> https://lore.kernel.org/all/20230906113302.201888-1-krzysztof.kozlowski@linaro.org/

I see, you're right.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

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

* Re: [PATCH 2/6] arm64: dts: qcom: sm8550-qrd: use correct UFS supply
  2023-09-06 10:47 ` [PATCH 2/6] arm64: dts: qcom: sm8550-qrd: " Krzysztof Kozlowski
@ 2023-09-06 12:07   ` Konrad Dybcio
  0 siblings, 0 replies; 17+ messages in thread
From: Konrad Dybcio @ 2023-09-06 12:07 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel

On 6.09.2023 12:47, Krzysztof Kozlowski wrote:
> According to schematics the VCCQ2 supply is not connected and the L3G
> regulator instead powers up the controller pads (VDD_PX10).  Use correct
> supply vdd-hba and drop unsupported current limit for the vdd-hba.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

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

* Re: (subset) [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply
  2023-09-06 10:47 [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply Krzysztof Kozlowski
                   ` (5 preceding siblings ...)
  2023-09-06 11:28 ` [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply Konrad Dybcio
@ 2023-09-14 16:04 ` Bjorn Andersson
  6 siblings, 0 replies; 17+ messages in thread
From: Bjorn Andersson @ 2023-09-14 16:04 UTC (permalink / raw)
  To: Andy Gross, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree, linux-kernel,
	Krzysztof Kozlowski


On Wed, 06 Sep 2023 12:47:39 +0200, Krzysztof Kozlowski wrote:
> According to schematics the VCCQ2 supply is not connected and the L3G
> regulator instead powers up the controller pads (VDD_PX10).  Use correct
> supply vdd-hba and drop unsupported current limit for the vdd-hba.
> 
> 

Applied, thanks!

[1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply
      commit: 5c72cb3a9a96a5103cba49a1c8f2a2c71b158ab6
[2/6] arm64: dts: qcom: sm8550-qrd: use correct UFS supply
      commit: e485c6e19ae888761d9fc65353722afa0235bbb4
[3/6] arm64: dts: qcom: sm8450-hdk: add UFS host controller supply
      commit: f5688b4914fa5c5b9a0fca1692b82d25ae6cee33
[4/6] arm64: dts: qcom: sm8450-qrd: add UFS host controller supply
      commit: ebad126daf0c70a054b358e276cef453b2fcdc7f
[5/6] arm64: dts: qcom: sm8350-hdk: add UFS host controller supply
      commit: 2c20c75d850574c727e07e615ed55e3d5c2b42db
[6/6] arm64: dts: qcom: sm8350-mtp: add UFS host controller supply
      commit: 201cd8541673f9b553508c2f11dadfab7874addd

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

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

end of thread, other threads:[~2023-09-14 16:00 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-06 10:47 [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply Krzysztof Kozlowski
2023-09-06 10:47 ` [PATCH 2/6] arm64: dts: qcom: sm8550-qrd: " Krzysztof Kozlowski
2023-09-06 12:07   ` Konrad Dybcio
2023-09-06 10:47 ` [PATCH 3/6] arm64: dts: qcom: sm8450-hdk: add UFS host controller supply Krzysztof Kozlowski
2023-09-06 11:29   ` Konrad Dybcio
2023-09-06 10:47 ` [PATCH 4/6] arm64: dts: qcom: sm8450-qrd: " Krzysztof Kozlowski
2023-09-06 11:28   ` Konrad Dybcio
2023-09-06 10:47 ` [PATCH 5/6] arm64: dts: qcom: sm8350-hdk: " Krzysztof Kozlowski
2023-09-06 11:29   ` Konrad Dybcio
2023-09-06 10:47 ` [PATCH 6/6] arm64: dts: qcom: sm8350-mtp: " Krzysztof Kozlowski
2023-09-06 11:29   ` Konrad Dybcio
2023-09-06 11:28 ` [PATCH 1/6] arm64: dts: qcom: sm8550-mtp: use correct UFS supply Konrad Dybcio
2023-09-06 11:39   ` Krzysztof Kozlowski
2023-09-06 11:50     ` Konrad Dybcio
2023-09-06 12:05       ` Krzysztof Kozlowski
2023-09-06 12:07         ` Konrad Dybcio
2023-09-14 16:04 ` (subset) " Bjorn Andersson

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