Skip to contentSkip to conversation

clk: qcom: Add MSM8976/56 Global Clock Controller (GCC) driver

PATCH In review AngeloGioacchino Del Regno 3 participants 3 messages Jan 12, 2019 – Jan 24, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: qcom: Add MSM8976/56 Global Clock Controller (GCC) driver

Quoted 1 line

From 50465f2a4454625aac622bb84dbecdeaf5a50904 Mon Sep 17 00:00:00 2001

From: "Angelo G. Del Regno" <[email protected]>
Date: Sat, 12 Jan 2019 10:52:18 +0100
Subject: [PATCH] clk: qcom: Add MSM8976/56 Global Clock Controller (GCC)
driver

Add support for the global clock controller found on MSM8976 and MSM8976 SoCs.
Since the multimedia clocks are actually in the GCC on these SoCs, this will allow drivers to probe and control basically all the required clocks.

---
 .../devicetree/bindings/clock/qcom,gcc.txt    |    1 +
 drivers/clk/qcom/Kconfig                      |    8 +
 drivers/clk/qcom/Makefile                     |    1 +
 drivers/clk/qcom/gcc-msm8976.c                | 4208 +++++++++++++++++
 include/dt-bindings/clock/qcom,gcc-msm8976.h  |  293 ++
 5 files changed, 4511 insertions(+)
 create mode 100644 drivers/clk/qcom/gcc-msm8976.c
 create mode 100644 include/dt-bindings/clock/qcom,gcc-msm8976.h
Documentation/devicetree/bindings/clock/qcom,gcc.txt +1 -0
index 8661c3cd3ccf..b4abf62a3f6b 100644
@@ -15,6 +15,7 @@ Required properties :
 			"qcom,gcc-msm8974"
 			"qcom,gcc-msm8974pro"
 			"qcom,gcc-msm8974pro-ac"
+			"qcom,gcc-msm8976"
 			"qcom,gcc-msm8994"
 			"qcom,gcc-msm8996"
 			"qcom,gcc-msm8998"
drivers/clk/qcom/Kconfig +8 -0
index 1b1ba54e33dd..b75a32ba8f1e 100644
@@ -189,6 +189,14 @@ config MSM_MMCC_8974
 	  Say Y if you want to support multimedia devices such as display,
 	  graphics, video encode/decode, camera, etc.
 
+config MSM_GCC_8976
+	tristate "MSM8956/76 Global Clock Controller"
+	select QCOM_GDSC
+	help
+	  Support for the global clock controller on msm8956/76 devices.
+	  Say Y if you want to use peripheral devices such as UART, SPI,
+	  i2c, USB, SD/eMMC, SATA, PCIe, etc.
+
 config MSM_GCC_8994
 	tristate "MSM8994 Global Clock Controller"
 	help
drivers/clk/qcom/Makefile +1 -0
index ee8d0698e370..3314b5d99e44 100644
@@ -29,6 +29,7 @@ obj-$(CONFIG_MSM_GCC_8660) += gcc-msm8660.o
 obj-$(CONFIG_MSM_GCC_8916) += gcc-msm8916.o
 obj-$(CONFIG_MSM_GCC_8960) += gcc-msm8960.o
 obj-$(CONFIG_MSM_GCC_8974) += gcc-msm8974.o
+obj-$(CONFIG_MSM_GCC_8976) += gcc-msm8976.o
 obj-$(CONFIG_MSM_GCC_8994) += gcc-msm8994.o
 obj-$(CONFIG_MSM_GCC_8996) += gcc-msm8996.o
 obj-$(CONFIG_MSM_LCC_8960) += lcc-msm8960.o
drivers/clk/qcom/gcc-msm8976.c new file +4208 -0

2,972 lines not on this page · raw message

include/dt-bindings/clock/qcom,gcc-msm8976.h new file +293 -0

293 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.19.1

Part of the diff is not shown here. View the raw message.

maintainer
#1 lore raw
Quoted 5 lines · AngeloGioacchino Del Regno

From 50465f2a4454625aac622bb84dbecdeaf5a50904 Mon Sep 17 00:00:00 2001
From: "Angelo G. Del Regno" <[email protected]>
Date: Sat, 12 Jan 2019 10:52:18 +0100
Subject: [PATCH] clk: qcom: Add MSM8976/56 Global Clock Controller (GCC)
driver

Looks like your patch is corrupted.

Quoted 7 lines

Add support for the global clock controller found on MSM8976 and MSM8976 SoCs.
Since the multimedia clocks are actually in the GCC on these SoCs, this will allow drivers to probe and control basically all the required clocks.

Quoted 7 lines
---
 .../devicetree/bindings/clock/qcom,gcc.txt    |    1 +
 drivers/clk/qcom/Kconfig                      |    8 +
 drivers/clk/qcom/Makefile                     |    1 +
 drivers/clk/qcom/gcc-msm8976.c                | 4208 +++++++++++++++++
 include/dt-bindings/clock/qcom,gcc-msm8976.h  |  293 ++

The binding doc and this header should be in a separate patch.

Quoted 3 lines
 5 files changed, 4511 insertions(+)
 create mode 100644 drivers/clk/qcom/gcc-msm8976.c
 create mode 100644 include/dt-bindings/clock/qcom,gcc-msm8976.h
maintainer
#2 lore raw
In reply to AngeloGioacchino Del Regno

Quoting AngeloGioacchino Del Regno (2019-01-12 07:03:18)

Quoted 6 lines

From 50465f2a4454625aac622bb84dbecdeaf5a50904 Mon Sep 17 00:00:00 2001
From: "Angelo G. Del Regno" <[email protected]>
Date: Sat, 12 Jan 2019 10:52:18 +0100
Subject: [PATCH] clk: qcom: Add MSM8976/56 Global Clock Controller (GCC)
driver

Quoted 7 lines

Add support for the global clock controller found on MSM8976 and MSM8976 SoCs.
Since the multimedia clocks are actually in the GCC on these SoCs, this will allow drivers to probe and control basically all the required clocks.

Are you going to send out DTS bits and provide platform support? I'm not interested in merging the clk bits and then having to support a driver that never gets used.

Also, is this copy/pasted from some downstream kernel sources? Would be good to have a pointer to that so we can compare and see if you've changed anything.