Skip to contentSkip to conversation

arm64: qcom: Add support for Qualcomm MSM8916 SoC

PATCH Superseded Kumar Gala 2 participants 4 messages Feb 27, 2015 – Feb 28, 2015

Subsystems (5)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/2 arm64: qcom: Add support for Qualcomm MSM8916 SoC

From: Abhimanyu Kapur <[email protected]>

Add support for Qualcomm MSM8916 SoC in arm64 Kconfig and defconfig. Enable MSM serial driver utilized by MSM8916 and Qualcomm SoCs in general.

---
 arch/arm64/Kconfig           | 18 ++++++++++++++++++
 arch/arm64/configs/defconfig |  4 ++++
 2 files changed, 22 insertions(+)
arch/arm64/Kconfig +18 -0
index 1b8e973..f7af379 100644
@@ -177,6 +177,24 @@ config ARCH_MEDIATEK
 	help
 	  Support for Mediatek MT65xx & MT81xx ARMv8 SoCs
 
+config ARCH_QCOM
+	bool "Qualcomm Platforms"
+	select ARCH_REQUIRE_GPIOLIB
+	select COMMON_CLK_QCOM
+	select PINCTRL
+	select SOC_BUS
+	help
+	  This enables support for the ARMv8 based Qualcomm chipsets.
+
+config ARCH_QCOM_MSM8916
+	bool "Enable Support for Qualcomm MSM8916"
+	depends on ARCH_QCOM
+	select MSM_GCC_8916
+	select PINCTRL_MSM8916
+	help
+	  This enables support for the MSM8916 chipset. If you dont
+	  know what do here, say N
+
 config ARCH_SEATTLE
 	bool "AMD Seattle SoC Family"
 	help
arch/arm64/configs/defconfig +4 -0
index be1f12a..c8a0c7c 100644
@@ -33,6 +33,8 @@ CONFIG_MODULE_UNLOAD=y
 # CONFIG_IOSCHED_DEADLINE is not set
 CONFIG_ARCH_FSL_LS2085A=y
 CONFIG_ARCH_MEDIATEK=y
+CONFIG_ARCH_QCOM=y
+CONFIG_ARCH_QCOM_MSM8916=y
 CONFIG_ARCH_THUNDER=y
 CONFIG_ARCH_VEXPRESS=y
 CONFIG_ARCH_XGENE=y
@@ -93,6 +95,8 @@ CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_8250_MT6577=y
 CONFIG_SERIAL_AMBA_PL011=y
 CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
+CONFIG_SERIAL_MSM=y
+CONFIG_SERIAL_MSM_CONSOLE=y
 CONFIG_SERIAL_OF_PLATFORM=y
 CONFIG_VIRTIO_CONSOLE=y
 # CONFIG_HW_RANDOM is not set
Signature · 3 lines
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
author
#1 lore raw

PATCH 2/2 arm64: dts: Add Qualcomm MSM8916 SoC and evaluation board dts

Add initial device tree support for Qualcomm MSM8916 SoC and MTP8916 evaluation board. At the current time we only boot up a single processor.

---
 arch/arm64/boot/dts/Makefile              |   1 +
 arch/arm64/boot/dts/qcom/Makefile         |   5 +
 arch/arm64/boot/dts/qcom/msm8916-mtp.dts  |  21 ++++
 arch/arm64/boot/dts/qcom/msm8916-mtp.dtsi |  24 ++++
 arch/arm64/boot/dts/qcom/msm8916.dtsi     | 188 ++++++++++++++++++++++++++++++
 5 files changed, 239 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/Makefile
 create mode 100644 arch/arm64/boot/dts/qcom/msm8916-mtp.dts
 create mode 100644 arch/arm64/boot/dts/qcom/msm8916-mtp.dtsi
 create mode 100644 arch/arm64/boot/dts/qcom/msm8916.dtsi
arch/arm64/boot/dts/Makefile +1 -0
index e0350ca..8517f15 100644
@@ -5,5 +5,6 @@ dts-dirs += cavium
 dts-dirs += exynos
 dts-dirs += freescale
 dts-dirs += mediatek
+dts-dirs += qcom
 
 subdir-y	:= $(dts-dirs)
arch/arm64/boot/dts/qcom/Makefile new file +5 -0
new file mode 100644
index 0000000..c1ab1c3
@@ -0,0 +1,5 @@
+dtb-$(CONFIG_ARCH_QCOM_MSM8916)	+= msm8916-mtp.dtb
+
+always		:= $(dtb-y)
+subdir-y	:= $(dts-dirs)
+clean-files	:= *.dtb
arch/arm64/boot/dts/qcom/msm8916-mtp.dts new file +21 -0
new file mode 100644
index 0000000..acfe037
@@ -0,0 +1,21 @@
+/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
+*
+* This program is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License version 2 and
+* only version 2 as published by the Free Software Foundation.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+*/
+
+/dts-v1/;
+
+#include "msm8916-mtp.dtsi"
+
+/ {
+	model = "Qualcomm Technologies, Inc. MSM 8916 MTP";
+	compatible = "qcom,msm8916-mtp", "qcom,msm8916", "qcom,mtp";
+	qcom,board-id = <8 0>, <8 1>;
+};
arch/arm64/boot/dts/qcom/msm8916-mtp.dtsi new file +24 -0
new file mode 100644
index 0000000..4d2f073
@@ -0,0 +1,24 @@
+/* Copyright (c) 2014-2014, The Linux Foundation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#include "msm8916.dtsi"
+
+/ {
+	soc {
+		serial at 78b0000 {
+			status = "okay";
+			pinctrl-names = "default", "sleep";
+			pinctrl-0 = <&blsp1_uart2_default>;
+			pinctrl-1 = <&blsp1_uart2_sleep>;
+		};
+	};
+};
arch/arm64/boot/dts/qcom/msm8916.dtsi new file +188 -0

188 lines not on this page · raw message

Signature · 3 lines
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#2 lore raw

Re: [PATCH 2/2] arm64: dts: Add Qualcomm MSM8916 SoC and evaluation board dts

Hi,

Am Freitag, 27. Februar 2015, 16:14:53 schrieb Kumar Gala:

Quoted 54 lines

Add initial device tree support for Qualcomm MSM8916 SoC and MTP8916 evaluation board. At the current time we only boot up a single processor.

---
 arch/arm64/boot/dts/Makefile              |   1 +
 arch/arm64/boot/dts/qcom/Makefile         |   5 +
 arch/arm64/boot/dts/qcom/msm8916-mtp.dts  |  21 ++++
 arch/arm64/boot/dts/qcom/msm8916-mtp.dtsi |  24 ++++
 arch/arm64/boot/dts/qcom/msm8916.dtsi     | 188
++++++++++++++++++++++++++++++ 5 files changed, 239 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/Makefile
 create mode 100644 arch/arm64/boot/dts/qcom/msm8916-mtp.dts
 create mode 100644 arch/arm64/boot/dts/qcom/msm8916-mtp.dtsi
 create mode 100644 arch/arm64/boot/dts/qcom/msm8916.dtsi
arch/arm64/boot/dts/Makefile +1 -0
index e0350ca..8517f15 100644
@@ -5,5 +5,6 @@ dts-dirs += cavium
 dts-dirs += exynos
 dts-dirs += freescale
 dts-dirs += mediatek
+dts-dirs += qcom
 
 subdir-y	:= $(dts-dirs)
(quoted diff) +0 -0

b/arch/arm64/boot/dts/qcom/Makefile new file mode 100644 index 0000000..c1ab1c3

arch/arm64/boot/dts/qcom/Makefile new file +5 -0
@@ -0,0 +1,5 @@
+dtb-$(CONFIG_ARCH_QCOM_MSM8916)	+= msm8916-mtp.dtb
+
+always		:= $(dtb-y)
+subdir-y	:= $(dts-dirs)
+clean-files	:= *.dtb
(quoted diff) +0 -0

b/arch/arm64/boot/dts/qcom/msm8916-mtp.dts new file mode 100644 index 0000000..acfe037

arch/arm64/boot/dts/qcom/msm8916-mtp.dts new file +10 -0
@@ -0,0 +1,21 @@
+/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
+*
+* This program is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License version 2 and
+* only version 2 as published by the Free Software Foundation.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.

arch/arm64/boot/dts/qcom/msm8916-mtp.dts line 20

Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8916-mtp.dts new file +10 -0
+*/
+
+/dts-v1/;
+
+#include "msm8916-mtp.dtsi"
+
+/ {
+	model = "Qualcomm Technologies, Inc. MSM 8916 MTP";
+	compatible = "qcom,msm8916-mtp", "qcom,msm8916", "qcom,mtp";
+	qcom,board-id = <8 0>, <8 1>;

qcom,board-id seems undocumented - grep through devicetree/bindings didn't turn up anything. [or I'm just blind]

Quoted 1 line
arch/arm64/boot/dts/qcom/msm8916-mtp.dts new file +1 -0
+};

[...]

Quoted 20 lines
(quoted diff) +0 -0

b/arch/arm64/boot/dts/qcom/msm8916.dtsi new file mode 100644 index 0000000..72ad0f7

arch/arm64/boot/dts/qcom/msm8916.dtsi new file +14 -0
@@ -0,0 +1,188 @@
+/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#include "skeleton.dtsi"
+#include <dt-bindings/interrupt-controller/arm-gic.h>

arch/arm64/boot/dts/qcom/msm8916.dtsi line 24

Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8916.dtsi new file +10 -0
+#include <dt-bindings/clock/qcom,gcc-msm8916.h>
+#include <dt-bindings/reset/qcom,gcc-msm8916.h>
+
+/ {
+	model = "Qualcomm Technologies, Inc. MSM8916";
+	compatible = "qcom,msm8916";
+	qcom,msm-id =	<206 0>,
+			<248 0>,
+			<249 0>,
+			<250 0>;

same for this - nothing found in the devicetree/bindings from 4.0-rc1

Heiko

#3 lore raw
In reply to Kumar Gala

Hi,

Am Freitag, 27. Februar 2015, 16:14:52 schrieb Kumar Gala:

Quoted 29 lines

From: Abhimanyu Kapur <[email protected]>

Add support for Qualcomm MSM8916 SoC in arm64 Kconfig and defconfig. Enable MSM serial driver utilized by MSM8916 and Qualcomm SoCs in general.

---
 arch/arm64/Kconfig           | 18 ++++++++++++++++++
 arch/arm64/configs/defconfig |  4 ++++
 2 files changed, 22 insertions(+)
arch/arm64/Kconfig +8 -0
index 1b8e973..f7af379 100644
@@ -177,6 +177,24 @@ config ARCH_MEDIATEK
 	help
 	  Support for Mediatek MT65xx & MT81xx ARMv8 SoCs
 
+config ARCH_QCOM
+	bool "Qualcomm Platforms"
+	select ARCH_REQUIRE_GPIOLIB
+	select COMMON_CLK_QCOM
+	select PINCTRL
+	select SOC_BUS
+	help
+	  This enables support for the ARMv8 based Qualcomm chipsets.

arch/arm64/Kconfig config ARCH_MEDIATEK · line 197

Quoted 10 lines
arch/arm64/Kconfig +10 -0
+
+config ARCH_QCOM_MSM8916
+	bool "Enable Support for Qualcomm MSM8916"
+	depends on ARCH_QCOM
+	select MSM_GCC_8916
+	select PINCTRL_MSM8916
+	help
+	  This enables support for the MSM8916 chipset. If you dont
+	  know what do here, say N
+

In [0] for a similar situation Arnd said

"I would rather see only one Kconfig option per SoC family and use ARCH_MEDIATEK without any MACH_* options. We can have other options for e.g. networking chips from Mediatek that are not closely related but I would group all the phone and tablet chips under one option here. Same for the other vendors of course."

[0] https://lkml.org/lkml/2015/2/25/150