Skip to contentSkip to conversation

Add devicetree support for SDX65 Modem and MTP

PATCH Superseded [email protected] 1 participant 4 messages Jul 22, 2021

Subsystems (5)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover Add devicetree support for SDX65 Modem and MTP

From: Vamsi Krishna Lanka <[email protected]>

Hello,

Changes from v1:
- Addressed Bjorn's comments

This series adds devicetree support for Qualcomm SDX65 platform and MTP board. This series functionally depends on Add Pdc, GCC and RPMh Clock support series [1] and Add pinctrl support for SDX65 [2] which are under review.

With this current devicetree support, the MTP can boot into initramfs shell.

Thanks,
Vamsi

Vamsi krishna Lanka (3):
dt-bindings: arm: qcom: Document SDX65 platform and boards
ARM: dts: qcom: Add SDX65 platform and MTP board support
ARM: dts: qcom: sdx65: Add pincontrol node

 .../devicetree/bindings/arm/qcom.yaml         |   6 +
 arch/arm/boot/dts/Makefile                    |   3 +-
 arch/arm/boot/dts/qcom-sdx65-mtp.dts          |  25 +++
 arch/arm/boot/dts/qcom-sdx65.dtsi             | 210 ++++++++++++++++++
 4 files changed, 243 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/qcom-sdx65-mtp.dts
 create mode 100644 arch/arm/boot/dts/qcom-sdx65.dtsi
Signature · 1 line
2.32.0
#1 lore raw

PATCH v2 1/3 dt-bindings: arm: qcom: Document SDX65 platform and boards

From: Vamsi krishna Lanka <[email protected]>

Document the SDX65 platform binding and also the boards using it.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/qcom.yaml +6 -0
index 174134f920e1..bdf1da8fc557 100644
@@ -41,6 +41,7 @@ description: |
         sdm660
         sdm845
         sdx55
+        sdx65
         sm8250
         sm8350
 
@@ -174,6 +175,11 @@ properties:
               - qcom,sdx55-mtp
           - const: qcom,sdx55
 
+      - items:
+          - enum:
+              - qcom,sdx65-mtp
+          - const: qcom,sdx65
+
       - items:
           - enum:
               - qcom,ipq6018-cp01-c1
Signature · 1 line
2.32.0
#2 lore raw

PATCH v2 2/3 ARM: dts: qcom: Add SDX65 platform and MTP board support

In reply to [email protected]

From: Vamsi krishna Lanka <[email protected]>

Add basic devicetree support for SDX65 platform and MTP board from Qualcomm. The SDX65 platform features an ARM Cortex A7 CPU which forms the Application Processor Sub System (APSS) along with standard Qualcomm peripherals like GCC, TLMM, BLSP, QPIC, and BAM etc... Also, there exists the networking parts such as IPA, MHI, PCIE-EP, EMAC, and Modem etc..

This commit adds basic devicetree support that includes GCC, RPMh clock, INTC and Debug UART.

---
 arch/arm/boot/dts/Makefile           |   3 +-
 arch/arm/boot/dts/qcom-sdx65-mtp.dts |  25 ++++
 arch/arm/boot/dts/qcom-sdx65.dtsi    | 198 +++++++++++++++++++++++++++
 3 files changed, 225 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/qcom-sdx65-mtp.dts
 create mode 100644 arch/arm/boot/dts/qcom-sdx65.dtsi
arch/arm/boot/dts/Makefile +2 -1
index 8e5d4ab4e75e..1e3f01496cb3 100644
@@ -929,7 +929,8 @@ dtb-$(CONFIG_ARCH_QCOM) += \
 	qcom-msm8974-sony-xperia-castor.dtb \
 	qcom-msm8974-sony-xperia-honami.dtb \
 	qcom-mdm9615-wp8548-mangoh-green.dtb \
-	qcom-sdx55-mtp.dtb
+	qcom-sdx55-mtp.dtb \
+	qcom-sdx65-mtp.dtb
 dtb-$(CONFIG_ARCH_RDA) += \
 	rda8810pl-orangepi-2g-iot.dtb \
 	rda8810pl-orangepi-i96.dtb
arch/arm/boot/dts/qcom-sdx65-mtp.dts new file +25 -0
new file mode 100644
index 000000000000..59457da8e5f1
@@ -0,0 +1,25 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
+ */
+/dts-v1/;
+
+#include "qcom-sdx65.dtsi"
+
+/ {
+	model = "Qualcomm Technologies, Inc. SDX65 MTP";
+	compatible = "qcom,sdx65-mtp", "qcom,sdx65";
+	qcom,board-id = <0x2010008 0x302>;
+
+	aliases {
+		serial0 = &blsp1_uart3;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+};
+
+&blsp1_uart3 {
+	status = "ok";
+};
arch/arm/boot/dts/qcom-sdx65.dtsi new file +198 -0

198 lines not on this page · raw message

Signature · 1 line
2.32.0
#3 lore raw

PATCH v2 3/3 ARM: dts: qcom: sdx65: Add pincontrol node

In reply to [email protected]

From: Vamsi krishna Lanka <[email protected]>

This commit adds pincontrol node to SDX65 dts.

---
 arch/arm/boot/dts/qcom-sdx65.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm/boot/dts/qcom-sdx65.dtsi +12 -0
index fb240213cc35..db269c73c0e9 100644
@@ -79,6 +79,18 @@ blsp1_uart3: serial@831000 {
 			status = "disabled";
 		};
 
+		tlmm: pinctrl@f100000 {
+			compatible = "qcom,sdx65-tlmm";
+			reg = <0xf100000 0x300000>;
+			interrupts = <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			gpio-ranges = <&tlmm 0 0 109>;
+			interrupt-controller;
+			interrupt-parent = <&intc>;
+			#interrupt-cells = <2>;
+		};
+
 		pdc: interrupt-controller@b210000 {
 			compatible = "qcom,sdx65-pdc", "qcom,pdc";
 			reg = <0xb210000 0x10000>;
Signature · 1 line
2.32.0