Skip to contentSkip to conversation

clk: qcom: Add support for QCS404

PATCH Applied Vinod Koul 3 participants 6 messages Oct 10, 2018 – Oct 16, 2018

Subsystems (4)
lore
Share & tools
lore

Vinod Koul

author
#0 lore raw

v2 cover clk: qcom: Add support for QCS404

Add the clock driver for QCS404 SoC. This needs to export clk_alpha_pll_configure() so first patch does that

Changes in v2:
- Fix comments provided by Stephen & Taniya

Bjorn Andersson (1):
clk: qcom: Export clk_alpha_pll_configure()

Shefali Jain (1):
clk: qcom: gcc: Add global clock controller driver for QCS404

 .../devicetree/bindings/clock/qcom,gcc.txt         |    1 +
 drivers/clk/qcom/Kconfig                           |    8 +
 drivers/clk/qcom/Makefile                          |    1 +
 drivers/clk/qcom/clk-alpha-pll.c                   |    1 +
 drivers/clk/qcom/gcc-qcs404.c                      | 2744 ++++++++++++++++++++
 include/dt-bindings/clock/qcom,gcc-qcs404.h        |  165 ++
 6 files changed, 2920 insertions(+)
 create mode 100644 drivers/clk/qcom/gcc-qcs404.c
 create mode 100644 include/dt-bindings/clock/qcom,gcc-qcs404.h
Signature · 1 line
2.14.4
author
#1 lore raw

PATCH v2 1/2 clk: qcom: Export clk_alpha_pll_configure()

From: Bjorn Andersson <[email protected]>

This is used by the QCS404 GCC driver, export it to allow that driver to be compiled as a module..

---
 drivers/clk/qcom/clk-alpha-pll.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/qcom/clk-alpha-pll.c +1 -0
index a91d97cecbad..0ced4a5a9a17 100644
@@ -220,6 +220,7 @@ void clk_alpha_pll_configure(struct clk_alpha_pll *pll, struct regmap *regmap,
 	if (pll->flags & SUPPORTS_FSM_MODE)
 		qcom_pll_set_fsm_mode(regmap, PLL_MODE(pll), 6, 0);
 }
+EXPORT_SYMBOL_GPL(clk_alpha_pll_configure);
 
 static int clk_alpha_pll_hwfsm_enable(struct clk_hw *hw)
 {
Signature · 1 line
2.14.4
author
#3 lore raw

PATCH v2 2/2 clk: qcom: gcc: Add global clock controller driver for QCS404

In reply to Vinod Koul

From: Shefali Jain <[email protected]>

Add the clocks supported in global clock controller which clock the peripherals like BLSPs, SDCC, USB, MDSS etc. Register all the clocks to the clock framework for the clients to be able to request for them.

[bamse, vkoul: rebase and tidyup for upstream]
---
 .../devicetree/bindings/clock/qcom,gcc.txt         |    1 +
 drivers/clk/qcom/Kconfig                           |    8 +
 drivers/clk/qcom/Makefile                          |    1 +
 drivers/clk/qcom/gcc-qcs404.c                      | 2744 ++++++++++++++++++++
 include/dt-bindings/clock/qcom,gcc-qcs404.h        |  165 ++
 5 files changed, 2919 insertions(+)
 create mode 100644 drivers/clk/qcom/gcc-qcs404.c
 create mode 100644 include/dt-bindings/clock/qcom,gcc-qcs404.h
Documentation/devicetree/bindings/clock/qcom,gcc.txt +1 -0
index 664ea1fd6c76..69fa8603b5ab 100644
@@ -19,6 +19,7 @@ Required properties :
 			"qcom,gcc-msm8996"
 			"qcom,gcc-msm8998"
 			"qcom,gcc-mdm9615"
+			"qcom,gcc-qcs404"
 			"qcom,gcc-sdm845"
 
 - reg : shall contain base register location and length
drivers/clk/qcom/Kconfig +8 -0
index 064768699fe7..13dbfa3d9698 100644
@@ -235,6 +235,14 @@ config MSM_GCC_8998
 	  Say Y if you want to use peripheral devices such as UART, SPI,
 	  i2c, USB, UFS, SD/eMMC, PCIe, etc.
 
+config QCS_GCC_404
+	tristate "QCS404 Global Clock Controller"
+	depends on COMMON_CLK_QCOM
+	help
+	  Support for the global clock controller on QCS404 devices.
+	  Say Y if you want to use multimedia devices or peripheral
+	  devices such as UART, SPI, I2C, USB, SD/eMMC, PCIe etc.
+
 config SDM_GCC_845
 	tristate "SDM845 Global Clock Controller"
 	select QCOM_GDSC
drivers/clk/qcom/Makefile +1 -0
index 21a45035930d..37197b90ddf5 100644
@@ -40,6 +40,7 @@ obj-$(CONFIG_QCOM_CLK_RPM) += clk-rpm.o
 obj-$(CONFIG_QCOM_CLK_RPMH) += clk-rpmh.o
 obj-$(CONFIG_QCOM_CLK_SMD_RPM) += clk-smd-rpm.o
 obj-$(CONFIG_SDM_DISPCC_845) += dispcc-sdm845.o
+obj-$(CONFIG_QCS_GCC_404) += gcc-qcs404.o
 obj-$(CONFIG_SDM_GCC_845) += gcc-sdm845.o
 obj-$(CONFIG_SDM_VIDEOCC_845) += videocc-sdm845.o
 obj-$(CONFIG_SPMI_PMIC_CLKDIV) += clk-spmi-pmic-div.o
drivers/clk/qcom/gcc-qcs404.c new file +2744 -0

2,744 lines not on this page · raw message

include/dt-bindings/clock/qcom,gcc-qcs404.h new file +165 -0

165 lines not on this page · raw message

Signature · 1 line
2.14.4
maintainer Acked-by on v2 2/2
#4 lore raw

Re: [PATCH v2 2/2] clk: qcom: gcc: Add global clock controller driver for QCS404

Quoted 13 lines · Vinod Koul

From: Shefali Jain <[email protected]>

Add the clocks supported in global clock controller which clock the peripherals like BLSPs, SDCC, USB, MDSS etc. Register all the clocks to the clock framework for the clients to be able to request for them.

[bamse, vkoul: rebase and tidyup for upstream]
Quoted 9 lines
---
 .../devicetree/bindings/clock/qcom,gcc.txt         |    1 +
 drivers/clk/qcom/Kconfig                           |    8 +
 drivers/clk/qcom/Makefile                          |    1 +
 drivers/clk/qcom/gcc-qcs404.c                      | 2744 ++++++++++++++++++++
 include/dt-bindings/clock/qcom,gcc-qcs404.h        |  165 ++
 5 files changed, 2919 insertions(+)
 create mode 100644 drivers/clk/qcom/gcc-qcs404.c
 create mode 100644 include/dt-bindings/clock/qcom,gcc-qcs404.h

For the DT bits,

maintainer Applied
#5 lore raw

Re: [PATCH v2 2/2] clk: qcom: gcc: Add global clock controller driver for QCS404

In reply to Vinod Koul

Quoting Vinod Koul (2018-10-10 07:51:38)

Quoted 6 lines

From: Shefali Jain <[email protected]>

Add the clocks supported in global clock controller which clock the peripherals like BLSPs, SDCC, USB, MDSS etc. Register all the clocks to the clock framework for the clients to be able to request for them.

Quoted 8 lines
[bamse, vkoul: rebase and tidyup for upstream]

---

Applied to clk-next with some minor cosmetic touches.