devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] arm64: dts: qcom: sm8350: fix pinctrl for UART18
@ 2023-08-25 21:45 Dmitry Baryshkov
  2023-08-25 21:45 ` [PATCH 2/3] arm64: dts: qcom: sm8350-hdk: add missing PMICs Dmitry Baryshkov
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Dmitry Baryshkov @ 2023-08-25 21:45 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski
  Cc: linux-arm-msm, devicetree

On sm8350 QUP18 uses GPIO 68/69, not 58/59. Fix correponding UART18
pinconf configuraion.

Fixes: 98374e6925b8 ("arm64: dts: qcom: sm8350: Set up WRAP2 QUPs")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm8350.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi
index b9469d488b26..0fb4e5a66420 100644
--- a/arch/arm64/boot/dts/qcom/sm8350.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi
@@ -2949,7 +2949,7 @@ qup_uart6_default: qup-uart6-default-state {
 			};
 
 			qup_uart18_default: qup-uart18-default-state {
-				pins = "gpio58", "gpio59";
+				pins = "gpio68", "gpio69";
 				function = "qup18";
 				drive-strength = <2>;
 				bias-disable;
-- 
2.39.2


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

* [PATCH 2/3] arm64: dts: qcom: sm8350-hdk: add missing PMICs
  2023-08-25 21:45 [PATCH 1/3] arm64: dts: qcom: sm8350: fix pinctrl for UART18 Dmitry Baryshkov
@ 2023-08-25 21:45 ` Dmitry Baryshkov
  2023-08-25 21:50   ` Konrad Dybcio
  2023-08-25 21:45 ` [PATCH 3/3] arm64: dts: qcom: sm8350-hdk: add pmr735a regulators Dmitry Baryshkov
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: Dmitry Baryshkov @ 2023-08-25 21:45 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski
  Cc: linux-arm-msm, devicetree

Include configuration for several PMICs presend on the board.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
index f7b80b7009c1..69870f69fe4f 100644
--- a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
+++ b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
@@ -7,7 +7,12 @@
 
 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
 #include "sm8350.dtsi"
+#include "pm8350.dtsi"
+#include "pm8350b.dtsi"
+#include "pm8350c.dtsi"
 #include "pmk8350.dtsi"
+#include "pmr735a.dtsi"
+#include "pmr735b.dtsi"
 
 / {
 	model = "Qualcomm Technologies, Inc. SM8350 HDK";
-- 
2.39.2


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

* [PATCH 3/3] arm64: dts: qcom: sm8350-hdk: add pmr735a regulators
  2023-08-25 21:45 [PATCH 1/3] arm64: dts: qcom: sm8350: fix pinctrl for UART18 Dmitry Baryshkov
  2023-08-25 21:45 ` [PATCH 2/3] arm64: dts: qcom: sm8350-hdk: add missing PMICs Dmitry Baryshkov
@ 2023-08-25 21:45 ` Dmitry Baryshkov
  2023-08-26  9:03   ` Konrad Dybcio
  2023-08-25 21:50 ` [PATCH 1/3] arm64: dts: qcom: sm8350: fix pinctrl for UART18 Konrad Dybcio
  2023-09-20  3:58 ` (subset) " Bjorn Andersson
  3 siblings, 1 reply; 7+ messages in thread
From: Dmitry Baryshkov @ 2023-08-25 21:45 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski
  Cc: linux-arm-msm, devicetree

The SM8350 HDK uses pmr735a to supply some of the voltages (e.g. to
WiFi/BT chip). Declare corresponding regulators together with voltage
boundaries.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 75 +++++++++++++++++++++++++
 1 file changed, 75 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
index 69870f69fe4f..30ff85250505 100644
--- a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
+++ b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts
@@ -321,6 +321,81 @@ vreg_l10c_1p2: ldo10 {
 			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 		};
 	};
+
+	regulators-2 {
+		compatible = "qcom,pmr735a-rpmh-regulators";
+		qcom,pmic-id = "e";
+
+		vdd-s1-supply = <&vph_pwr>;
+		vdd-s2-supply = <&vph_pwr>;
+		vdd-s3-supply = <&vph_pwr>;
+
+		vdd-l1-l2-supply = <&vreg_s2e_0p85>;
+		vdd-l3-supply = <&vreg_s1e_1p25>;
+		vdd-l4-supply = <&vreg_s1c_1p86>;
+		vdd-l5-l6-supply = <&vreg_s1c_1p86>;
+		vdd-l7-bob-supply = <&vreg_bob>;
+
+		vreg_s1e_1p25: smps1 {
+			regulator-name = "vreg_s1e_1p25";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <1280000>;
+		};
+
+		vreg_s2e_0p85: smps2 {
+			regulator-name = "vreg_s2e_0p85";
+			regulator-min-microvolt = <950000>;
+			regulator-max-microvolt = <976000>;
+		};
+
+		vreg_s3e_2p20: smps3 {
+			regulator-name = "vreg_s3e_2p20";
+			regulator-min-microvolt = <2200000>;
+			regulator-max-microvolt = <2352000>;
+		};
+
+		vreg_l1e_0p9: ldo1 {
+			regulator-name = "vreg_l1e_0p9";
+			regulator-min-microvolt = <912000>;
+			regulator-max-microvolt = <912000>;
+		};
+
+		vreg_l2e_1p2: ldo2 {
+			regulator-name = "vreg_l2e_0p8";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <1200000>;
+		};
+
+		vreg_l3e_1p2: ldo3 {
+			regulator-name = "vreg_l3e_1p2";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <1200000>;
+		};
+
+		vreg_l4e_1p7: ldo4 {
+			regulator-name = "vreg_l4e_1p7";
+			regulator-min-microvolt = <1776000>;
+			regulator-max-microvolt = <1872000>;
+		};
+
+		vreg_l5e_0p8: ldo5 {
+			regulator-name = "vreg_l5e_0p8";
+			regulator-min-microvolt = <800000>;
+			regulator-max-microvolt = <800000>;
+		};
+
+		vreg_l6e_0p8: ldo6 {
+			regulator-name = "vreg_l6e_0p8";
+			regulator-min-microvolt = <480000>;
+			regulator-max-microvolt = <904000>;
+		};
+
+		vreg_l7e_2p8: ldo7 {
+			regulator-name = "vreg_l7e_2p8";
+			regulator-min-microvolt = <2800000>;
+			regulator-max-microvolt = <2800000>;
+		};
+	};
 };
 
 &cdsp {
-- 
2.39.2


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

* Re: [PATCH 1/3] arm64: dts: qcom: sm8350: fix pinctrl for UART18
  2023-08-25 21:45 [PATCH 1/3] arm64: dts: qcom: sm8350: fix pinctrl for UART18 Dmitry Baryshkov
  2023-08-25 21:45 ` [PATCH 2/3] arm64: dts: qcom: sm8350-hdk: add missing PMICs Dmitry Baryshkov
  2023-08-25 21:45 ` [PATCH 3/3] arm64: dts: qcom: sm8350-hdk: add pmr735a regulators Dmitry Baryshkov
@ 2023-08-25 21:50 ` Konrad Dybcio
  2023-09-20  3:58 ` (subset) " Bjorn Andersson
  3 siblings, 0 replies; 7+ messages in thread
From: Konrad Dybcio @ 2023-08-25 21:50 UTC (permalink / raw)
  To: Dmitry Baryshkov, Andy Gross, Bjorn Andersson, Rob Herring,
	Krzysztof Kozlowski
  Cc: linux-arm-msm, devicetree

On 25.08.2023 23:45, Dmitry Baryshkov wrote:
> On sm8350 QUP18 uses GPIO 68/69, not 58/59. Fix correponding UART18
> pinconf configuraion.
> 
> Fixes: 98374e6925b8 ("arm64: dts: qcom: sm8350: Set up WRAP2 QUPs")
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

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

* Re: [PATCH 2/3] arm64: dts: qcom: sm8350-hdk: add missing PMICs
  2023-08-25 21:45 ` [PATCH 2/3] arm64: dts: qcom: sm8350-hdk: add missing PMICs Dmitry Baryshkov
@ 2023-08-25 21:50   ` Konrad Dybcio
  0 siblings, 0 replies; 7+ messages in thread
From: Konrad Dybcio @ 2023-08-25 21:50 UTC (permalink / raw)
  To: Dmitry Baryshkov, Andy Gross, Bjorn Andersson, Rob Herring,
	Krzysztof Kozlowski
  Cc: linux-arm-msm, devicetree

On 25.08.2023 23:45, Dmitry Baryshkov wrote:
> Include configuration for several PMICs presend on the board.
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

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

* Re: [PATCH 3/3] arm64: dts: qcom: sm8350-hdk: add pmr735a regulators
  2023-08-25 21:45 ` [PATCH 3/3] arm64: dts: qcom: sm8350-hdk: add pmr735a regulators Dmitry Baryshkov
@ 2023-08-26  9:03   ` Konrad Dybcio
  0 siblings, 0 replies; 7+ messages in thread
From: Konrad Dybcio @ 2023-08-26  9:03 UTC (permalink / raw)
  To: Dmitry Baryshkov, Andy Gross, Bjorn Andersson, Rob Herring,
	Krzysztof Kozlowski
  Cc: linux-arm-msm, devicetree

On 25.08.2023 23:45, Dmitry Baryshkov wrote:
> The SM8350 HDK uses pmr735a to supply some of the voltages (e.g. to
> WiFi/BT chip). Declare corresponding regulators together with voltage
> boundaries.
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

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

* Re: (subset) [PATCH 1/3] arm64: dts: qcom: sm8350: fix pinctrl for UART18
  2023-08-25 21:45 [PATCH 1/3] arm64: dts: qcom: sm8350: fix pinctrl for UART18 Dmitry Baryshkov
                   ` (2 preceding siblings ...)
  2023-08-25 21:50 ` [PATCH 1/3] arm64: dts: qcom: sm8350: fix pinctrl for UART18 Konrad Dybcio
@ 2023-09-20  3:58 ` Bjorn Andersson
  3 siblings, 0 replies; 7+ messages in thread
From: Bjorn Andersson @ 2023-09-20  3:58 UTC (permalink / raw)
  To: Andy Gross, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Dmitry Baryshkov
  Cc: linux-arm-msm, devicetree


On Sat, 26 Aug 2023 00:45:48 +0300, Dmitry Baryshkov wrote:
> On sm8350 QUP18 uses GPIO 68/69, not 58/59. Fix correponding UART18
> pinconf configuraion.
> 
> 

Applied, thanks!

[1/3] arm64: dts: qcom: sm8350: fix pinctrl for UART18
      commit: c1efa960114f743924b884da098298512a7e9983
[2/3] arm64: dts: qcom: sm8350-hdk: add missing PMICs
      commit: 2037fefcdea0252b45f9003659f8b0431054c417
[3/3] arm64: dts: qcom: sm8350-hdk: add pmr735a regulators
      commit: 4e4c45f90ee313a4b475591a3109ff5314127f40

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

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

end of thread, other threads:[~2023-09-20  3:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-25 21:45 [PATCH 1/3] arm64: dts: qcom: sm8350: fix pinctrl for UART18 Dmitry Baryshkov
2023-08-25 21:45 ` [PATCH 2/3] arm64: dts: qcom: sm8350-hdk: add missing PMICs Dmitry Baryshkov
2023-08-25 21:50   ` Konrad Dybcio
2023-08-25 21:45 ` [PATCH 3/3] arm64: dts: qcom: sm8350-hdk: add pmr735a regulators Dmitry Baryshkov
2023-08-26  9:03   ` Konrad Dybcio
2023-08-25 21:50 ` [PATCH 1/3] arm64: dts: qcom: sm8350: fix pinctrl for UART18 Konrad Dybcio
2023-09-20  3:58 ` (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).