2022-03-17 05:05:14

by Rohit Agarwal

[permalink] [raw]
Subject: [PATCH 0/6] Devicetree updates for SDX65 platform

Hello,

This series adds all the devicetree nodes related to power domains
and regulators in SDX65 platform.

Thanks,
Rohit.

Rohit Agarwal (6):
ARM: dts: qcom: sdx65: Add spmi node
ARM: dts: qcom: sdx65-mtp: Add pmk8350b and pm8150b pmic
ARM: dts: qcom: sdx65-mtp: Add pmx65 pmic
ARM: dts: qcom: sdx65: Add rpmpd node
ARM: dts: qcom: Add PMIC pmx65 dts
ARM: dts: qcom: sdx65-mtp: Add regulator nodes

arch/arm/boot/dts/qcom-pmx65.dtsi | 32 ++++++
arch/arm/boot/dts/qcom-sdx65-mtp.dts | 200 +++++++++++++++++++++++++++++++++++
arch/arm/boot/dts/qcom-sdx65.dtsi | 70 ++++++++++++
3 files changed, 302 insertions(+)
create mode 100644 arch/arm/boot/dts/qcom-pmx65.dtsi

--
2.7.4


2022-03-17 05:24:40

by Rohit Agarwal

[permalink] [raw]
Subject: [PATCH 5/6] ARM: dts: qcom: Add PMIC pmx65 dts

Add DTS for PMIC PMX65 found in Qualcomm platforms.

Signed-off-by: Rohit Agarwal <[email protected]>
---
arch/arm/boot/dts/qcom-pmx65.dtsi | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
create mode 100644 arch/arm/boot/dts/qcom-pmx65.dtsi

diff --git a/arch/arm/boot/dts/qcom-pmx65.dtsi b/arch/arm/boot/dts/qcom-pmx65.dtsi
new file mode 100644
index 0000000..5411b83
--- /dev/null
+++ b/arch/arm/boot/dts/qcom-pmx65.dtsi
@@ -0,0 +1,32 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/*
+ * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
+ */
+
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/spmi/spmi.h>
+
+&spmi_bus {
+ pmic@1 {
+ compatible = "qcom,pmx65", "qcom,spmi-pmic";
+ reg = <1 SPMI_USID>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ pmx65_temp: temp-alarm@a00 {
+ compatible = "qcom,spmi-temp-alarm";
+ reg = <0xa00>;
+ interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
+ #thermal-sensor-cells = <0>;
+ };
+
+ pmx65_gpios: pinctrl@8800 {
+ compatible = "qcom,pmx65-gpio";
+ reg = <0x8800>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ };
+ };
+};
--
2.7.4

2022-03-17 05:46:14

by Rohit Agarwal

[permalink] [raw]
Subject: [PATCH 2/6] ARM: dts: qcom: sdx65-mtp: Add pmk8350b and pm8150b pmic

SDX65-mtp features PMK8350b and PM8150B pmic, so include the dts as well

Signed-off-by: Rohit Agarwal <[email protected]>
---
arch/arm/boot/dts/qcom-sdx65-mtp.dts | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-sdx65-mtp.dts b/arch/arm/boot/dts/qcom-sdx65-mtp.dts
index 59457da..9fa251a 100644
--- a/arch/arm/boot/dts/qcom-sdx65-mtp.dts
+++ b/arch/arm/boot/dts/qcom-sdx65-mtp.dts
@@ -5,6 +5,8 @@
/dts-v1/;

#include "qcom-sdx65.dtsi"
+#include <arm64/qcom/pmk8350.dtsi>
+#include <arm64/qcom/pm8150b.dtsi>

/ {
model = "Qualcomm Technologies, Inc. SDX65 MTP";
--
2.7.4

2022-03-17 06:31:36

by Rohit Agarwal

[permalink] [raw]
Subject: [PATCH 1/6] ARM: dts: qcom: sdx65: Add spmi node

Add SPMI node to SDX65 dtsi.

Signed-off-by: Rohit Agarwal <[email protected]>
---
arch/arm/boot/dts/qcom-sdx65.dtsi | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-sdx65.dtsi b/arch/arm/boot/dts/qcom-sdx65.dtsi
index 1457912..ba7b6c5 100644
--- a/arch/arm/boot/dts/qcom-sdx65.dtsi
+++ b/arch/arm/boot/dts/qcom-sdx65.dtsi
@@ -91,6 +91,25 @@
status = "disabled";
};

+ spmi_bus: qcom,spmi@c440000 {
+ compatible = "qcom,spmi-pmic-arb";
+ reg = <0xc440000 0xd00>,
+ <0xc600000 0x2000000>,
+ <0xe600000 0x100000>,
+ <0xe700000 0xa0000>,
+ <0xc40a000 0x26000>;
+ reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
+ interrupts-extended = <&pdc 1 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "periph_irq";
+ interrupt-controller;
+ #interrupt-cells = <4>;
+ #address-cells = <2>;
+ #size-cells = <0>;
+ cell-index = <0>;
+ qcom,channel = <0>;
+ qcom,ee = <0>;
+ };
+
tlmm: pinctrl@f100000 {
compatible = "qcom,sdx65-tlmm";
reg = <0xf100000 0x300000>;
--
2.7.4