clk: qcom: Add APQ8084 Global Clock Controller support
Subsystems (5)
v3 cover clk: qcom: Add APQ8084 Global Clock Controller support
This patchset adds support for the global clock controller found on the APQ8084 based platforms.
Applies to clk-next.
Changes from v2:
- Removed resets not belonging to gcc. (suggested by Stephen Boyd)
- Split the DT patches into separate patchset. (suggested by Kumar Gala)
Changes from v1:
- Moved APQ8084 clocks into a separate file and under separate Kconfig entry. Dropped the override function patch from v1.
- Added the missing information about resets (suggested by Kumar Gala).
- Made the UART DT node "disabled" in dtsi and "okay" in dts (suggested by Kumar Gala)
Georgi Djakov (2):
clk: qcom: Add APQ8084 Global Clock Controller documentation
clk: qcom: Add APQ8084 Global Clock Controller support
.../devicetree/bindings/clock/qcom,gcc.txt | 1 + drivers/clk/qcom/Kconfig | 8 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/gcc-apq8084.c | 2944 ++++++++++++++++++++ include/dt-bindings/clock/qcom,gcc-apq8084.h | 337 +++ include/dt-bindings/reset/qcom,gcc-apq8084.h | 109 + 6 files changed, 3400 insertions(+) create mode 100644 drivers/clk/qcom/gcc-apq8084.c create mode 100644 include/dt-bindings/clock/qcom,gcc-apq8084.h create mode 100644 include/dt-bindings/reset/qcom,gcc-apq8084.h
Signature · 1 line
1.7.9.5
PATCH v3 1/2 clk: qcom: Add APQ8084 Global Clock Controller documentation
Add the compatible string for the APQ8084 global clock controller to the clock binding documentation.
--- .../devicetree/bindings/clock/qcom,gcc.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/clock/qcom,gcc.txt +1 -0
@@ -5,6 +5,7 @@ Required properties : - compatible : shall contain only one of the following: "qcom,gcc-apq8064" + "qcom,gcc-apq8084" "qcom,gcc-msm8660" "qcom,gcc-msm8960" "qcom,gcc-msm8974"
Signature · 1 line
1.7.9.5
PATCH v3 2/2 clk: qcom: Add APQ8084 Global Clock Controller support
In reply to Georgi DjakovThis patch adds support for the global clock controller found on the APQ8084 based devices. This includes UART, I2C, SPI etc.
--- drivers/clk/qcom/Kconfig | 8 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/gcc-apq8084.c | 2944 ++++++++++++++++++++++++++ include/dt-bindings/clock/qcom,gcc-apq8084.h | 337 +++ include/dt-bindings/reset/qcom,gcc-apq8084.h | 109 + 5 files changed, 3399 insertions(+) create mode 100644 drivers/clk/qcom/gcc-apq8084.c create mode 100644 include/dt-bindings/clock/qcom,gcc-apq8084.h create mode 100644 include/dt-bindings/reset/qcom,gcc-apq8084.h
drivers/clk/qcom/Kconfig +8 -0
@@ -4,6 +4,14 @@ config COMMON_CLK_QCOM select REGMAP_MMIO select RESET_CONTROLLER +config APQ_GCC_8084 + tristate "APQ8084 Global Clock Controller" + depends on COMMON_CLK_QCOM + help + Support for the global clock controller on apq8084 devices. + Say Y if you want to use peripheral devices such as UART, SPI, + i2c, USB, SD/eMMC, SATA, PCIe, etc. + config MSM_GCC_8660 tristate "MSM8660 Global Clock Controller" depends on COMMON_CLK_QCOM
drivers/clk/qcom/Makefile +1 -0
@@ -8,6 +8,7 @@ clk-qcom-y += clk-rcg2.o clk-qcom-y += clk-branch.o clk-qcom-y += reset.o +obj-$(CONFIG_APQ_GCC_8084) += gcc-apq8084.o obj-$(CONFIG_MSM_GCC_8660) += gcc-msm8660.o obj-$(CONFIG_MSM_GCC_8960) += gcc-msm8960.o obj-$(CONFIG_MSM_GCC_8974) += gcc-msm8974.o
drivers/clk/qcom/gcc-apq8084.c new file +2944 -0
2,944 lines not on this page · raw message
include/dt-bindings/clock/qcom,gcc-apq8084.h new file +337 -0
35 lines not on this page · raw message
include/dt-bindings/reset/qcom,gcc-apq8084.h new file +109 -0
109 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.9.5
Part of the diff is not shown here. View the raw message.