linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] Enable clock controllers on MSM
@ 2013-10-28 18:01 Stephen Boyd
  2013-10-28 18:01 ` [PATCH 1/6] ARM: dts: msm: Add MSM8960 GCC DT node Stephen Boyd
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Stephen Boyd @ 2013-10-28 18:01 UTC (permalink / raw)
  To: David Brown; +Cc: linux-kernel, linux-arm-msm, linux-arm-kernel

This patchset enables the clock controller hardware on some DT based
MSM devices. It also hooks up the 8974 SoC's serial device to the
clock controller so that we can get a serial console.

This patchset is based on Rohit's 8974 patches[1] and my follow up
dts update patches[2]. For it to be fully functional you'll also need
to apply the MSM clock driver patches[3] or wait for them to land in
linux-next.

Stephen Boyd (6):
  ARM: dts: msm: Add MSM8960 GCC DT node
  ARM: dts: msm: Add MSM8960 MMCC DT node
  ARM: dts: msm: Add clock entries for MSM8960 uart device
  ARM: dts: msm: Add MSM8974 GCC node
  ARM: dts: msm: Add MSM8974 serial device node
  ARM: msm_defconfig: Enable MSM clock drivers

 arch/arm/boot/dts/qcom-msm8960-cdp.dts | 18 ++++++++++++++++++
 arch/arm/boot/dts/qcom-msm8974.dtsi    | 17 +++++++++++++++++
 arch/arm/configs/msm_defconfig         |  3 +++
 3 files changed, 38 insertions(+)

[1] https://lkml.org/lkml/2013/10/17/520
[2] https://lkml.org/lkml/2013/10/18/406
[3] http://www.mail-archive.com/linux-arm-msm@vger.kernel.org/msg06742.html
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation


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

* [PATCH 1/6] ARM: dts: msm: Add MSM8960 GCC DT node
  2013-10-28 18:01 [PATCH 0/6] Enable clock controllers on MSM Stephen Boyd
@ 2013-10-28 18:01 ` Stephen Boyd
  2013-10-28 18:02 ` [PATCH 2/6] ARM: dts: msm: Add MSM8960 MMCC " Stephen Boyd
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Stephen Boyd @ 2013-10-28 18:01 UTC (permalink / raw)
  To: David Brown; +Cc: linux-kernel, linux-arm-msm, linux-arm-kernel

Add the necessary DT node to probe the global clock controller
on MSM8960 devices.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
 arch/arm/boot/dts/qcom-msm8960-cdp.dts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-msm8960-cdp.dts b/arch/arm/boot/dts/qcom-msm8960-cdp.dts
index 93e8789..7234253 100644
--- a/arch/arm/boot/dts/qcom-msm8960-cdp.dts
+++ b/arch/arm/boot/dts/qcom-msm8960-cdp.dts
@@ -53,6 +53,13 @@
 		reg = <0x800000 0x4000>;
 	};
 
+	gcc: clock-controller@900000 {
+		compatible = "qcom,gcc-8960", "qcom,gcc";
+		#clock-cells = <1>;
+		#reset-cells = <1>;
+		reg = <0x900000 0x4000>;
+	};
+
 	kpss@2088000 {
 		compatible = "qcom,kpss";
 		reg = <0x02088000 0x1000
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation


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

* [PATCH 2/6] ARM: dts: msm: Add MSM8960 MMCC DT node
  2013-10-28 18:01 [PATCH 0/6] Enable clock controllers on MSM Stephen Boyd
  2013-10-28 18:01 ` [PATCH 1/6] ARM: dts: msm: Add MSM8960 GCC DT node Stephen Boyd
@ 2013-10-28 18:02 ` Stephen Boyd
  2013-10-28 18:02 ` [PATCH 3/6] ARM: dts: msm: Add clock entries for MSM8960 uart device Stephen Boyd
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Stephen Boyd @ 2013-10-28 18:02 UTC (permalink / raw)
  To: David Brown; +Cc: linux-kernel, linux-arm-msm, linux-arm-kernel

Add the necessary DT node to probe the multimedia clock controller
on MSM8960 devices.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
 arch/arm/boot/dts/qcom-msm8960-cdp.dts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-msm8960-cdp.dts b/arch/arm/boot/dts/qcom-msm8960-cdp.dts
index 7234253..cf8ecc5 100644
--- a/arch/arm/boot/dts/qcom-msm8960-cdp.dts
+++ b/arch/arm/boot/dts/qcom-msm8960-cdp.dts
@@ -60,6 +60,13 @@
 		reg = <0x900000 0x4000>;
 	};
 
+	clock-controller@4000000 {
+		compatible = "qcom,mmcc-8960", "qcom,mmcc";
+		reg = <0x4000000 0x1000>;
+		#clock-cells = <1>;
+		#reset-cells = <1>;
+	};
+
 	kpss@2088000 {
 		compatible = "qcom,kpss";
 		reg = <0x02088000 0x1000
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation


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

* [PATCH 3/6] ARM: dts: msm: Add clock entries for MSM8960 uart device
  2013-10-28 18:01 [PATCH 0/6] Enable clock controllers on MSM Stephen Boyd
  2013-10-28 18:01 ` [PATCH 1/6] ARM: dts: msm: Add MSM8960 GCC DT node Stephen Boyd
  2013-10-28 18:02 ` [PATCH 2/6] ARM: dts: msm: Add MSM8960 MMCC " Stephen Boyd
@ 2013-10-28 18:02 ` Stephen Boyd
  2013-10-28 18:02 ` [PATCH 4/6] ARM: dts: msm: Add MSM8974 GCC node Stephen Boyd
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Stephen Boyd @ 2013-10-28 18:02 UTC (permalink / raw)
  To: David Brown; +Cc: linux-kernel, linux-arm-msm, linux-arm-kernel

Hook up the clock controller to the msm8960 uart device so the
uart device can be probed.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
 arch/arm/boot/dts/qcom-msm8960-cdp.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-msm8960-cdp.dts b/arch/arm/boot/dts/qcom-msm8960-cdp.dts
index cf8ecc5..faef5b9 100644
--- a/arch/arm/boot/dts/qcom-msm8960-cdp.dts
+++ b/arch/arm/boot/dts/qcom-msm8960-cdp.dts
@@ -2,6 +2,8 @@
 
 /include/ "skeleton.dtsi"
 
+#include <dt-bindings/clk/msm-gcc-8960.h>
+
 / {
 	model = "Qualcomm MSM8960 CDP";
 	compatible = "qcom,msm8960-cdp", "qcom,msm8960";
@@ -78,6 +80,8 @@
 		reg = <0x16440000 0x1000>,
 		      <0x16400000 0x1000>;
 		interrupts = <0 154 0x0>;
+		clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>;
+		clock-names = "core", "iface";
 	};
 
 	qcom,ssbi@500000 {
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation


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

* [PATCH 4/6] ARM: dts: msm: Add MSM8974 GCC node
  2013-10-28 18:01 [PATCH 0/6] Enable clock controllers on MSM Stephen Boyd
                   ` (2 preceding siblings ...)
  2013-10-28 18:02 ` [PATCH 3/6] ARM: dts: msm: Add clock entries for MSM8960 uart device Stephen Boyd
@ 2013-10-28 18:02 ` Stephen Boyd
  2013-10-28 18:02 ` [PATCH 5/6] ARM: dts: msm: Add MSM8974 serial device node Stephen Boyd
  2013-10-28 18:02 ` [PATCH 6/6] ARM: msm_defconfig: Enable MSM clock drivers Stephen Boyd
  5 siblings, 0 replies; 7+ messages in thread
From: Stephen Boyd @ 2013-10-28 18:02 UTC (permalink / raw)
  To: David Brown; +Cc: linux-kernel, linux-arm-msm, linux-arm-kernel

Add the necessary DT node to probe the global clock controller on
MSM8974 devices.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
 arch/arm/boot/dts/qcom-msm8974.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi
index 6ac9496..c013037 100644
--- a/arch/arm/boot/dts/qcom-msm8974.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8974.dtsi
@@ -93,5 +93,13 @@
 			compatible = "qcom,pshold";
 			reg = <0xfc4ab000 0x4>;
 		};
+
+		gcc: clock-controller@fc400000 {
+			compatible = "qcom,gcc-8974", "qcom,gcc";
+			#clock-cells = <1>;
+			#reset-cells = <1>;
+			reg = <0xfc400000 0x4000>;
+		};
+
 	};
 };
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation


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

* [PATCH 5/6] ARM: dts: msm: Add MSM8974 serial device node
  2013-10-28 18:01 [PATCH 0/6] Enable clock controllers on MSM Stephen Boyd
                   ` (3 preceding siblings ...)
  2013-10-28 18:02 ` [PATCH 4/6] ARM: dts: msm: Add MSM8974 GCC node Stephen Boyd
@ 2013-10-28 18:02 ` Stephen Boyd
  2013-10-28 18:02 ` [PATCH 6/6] ARM: msm_defconfig: Enable MSM clock drivers Stephen Boyd
  5 siblings, 0 replies; 7+ messages in thread
From: Stephen Boyd @ 2013-10-28 18:02 UTC (permalink / raw)
  To: David Brown; +Cc: linux-kernel, linux-arm-msm, linux-arm-kernel

Describe the uart device used for the serial console on MSM8974
based platforms.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
 arch/arm/boot/dts/qcom-msm8974.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi
index c013037..152879d 100644
--- a/arch/arm/boot/dts/qcom-msm8974.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8974.dtsi
@@ -2,6 +2,8 @@
 
 #include "skeleton.dtsi"
 
+#include <dt-bindings/clk/msm-gcc-8974.h>
+
 / {
 	model = "Qualcomm MSM8974";
 	compatible = "qcom,msm8974";
@@ -101,5 +103,12 @@
 			reg = <0xfc400000 0x4000>;
 		};
 
+		serial@f991e000 {
+			compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
+			reg = <0xf991e000 0x1000>;
+			interrupts = <0 108 0x0>;
+			clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
+			clock-names = "core", "iface";
+		};
 	};
 };
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation


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

* [PATCH 6/6] ARM: msm_defconfig: Enable MSM clock drivers
  2013-10-28 18:01 [PATCH 0/6] Enable clock controllers on MSM Stephen Boyd
                   ` (4 preceding siblings ...)
  2013-10-28 18:02 ` [PATCH 5/6] ARM: dts: msm: Add MSM8974 serial device node Stephen Boyd
@ 2013-10-28 18:02 ` Stephen Boyd
  5 siblings, 0 replies; 7+ messages in thread
From: Stephen Boyd @ 2013-10-28 18:02 UTC (permalink / raw)
  To: David Brown; +Cc: linux-kernel, linux-arm-msm, linux-arm-kernel

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
 arch/arm/configs/msm_defconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/configs/msm_defconfig b/arch/arm/configs/msm_defconfig
index c5698b7..44c1657 100644
--- a/arch/arm/configs/msm_defconfig
+++ b/arch/arm/configs/msm_defconfig
@@ -117,6 +117,9 @@ CONFIG_USB_GADGET_VBUS_DRAW=500
 CONFIG_NEW_LEDS=y
 CONFIG_RTC_CLASS=y
 CONFIG_STAGING=y
+CONFIG_COMMON_CLK_MSM=y
+CONFIG_MSM_MMCC_8960=y
+CONFIG_MSM_GCC_8974=y
 CONFIG_MSM_IOMMU=y
 CONFIG_EXT2_FS=y
 CONFIG_EXT2_FS_XATTR=y
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation


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

end of thread, other threads:[~2013-10-28 18:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-28 18:01 [PATCH 0/6] Enable clock controllers on MSM Stephen Boyd
2013-10-28 18:01 ` [PATCH 1/6] ARM: dts: msm: Add MSM8960 GCC DT node Stephen Boyd
2013-10-28 18:02 ` [PATCH 2/6] ARM: dts: msm: Add MSM8960 MMCC " Stephen Boyd
2013-10-28 18:02 ` [PATCH 3/6] ARM: dts: msm: Add clock entries for MSM8960 uart device Stephen Boyd
2013-10-28 18:02 ` [PATCH 4/6] ARM: dts: msm: Add MSM8974 GCC node Stephen Boyd
2013-10-28 18:02 ` [PATCH 5/6] ARM: dts: msm: Add MSM8974 serial device node Stephen Boyd
2013-10-28 18:02 ` [PATCH 6/6] ARM: msm_defconfig: Enable MSM clock drivers Stephen Boyd

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