Skip to contentSkip to conversation

Add display clock controller driver for SC7180

PATCH New Taniya Das 1 participant 4 messages Nov 15, 2019

Subsystems (4)
lore
Share & tools
lore

Taniya Das

author
#0 lore raw

cover Add display clock controller driver for SC7180

Add support for the display clock controller found on SC7180 based devices. This would allow display drivers to probe and control their clocks.

This driver depends on the display port clock ops support
https://patchwork.kernel.org/patch/11069087/

Taniya Das (3):
dt-bindings: clock: Add YAML schemas for the QCOM DISPCC clock
bindings
dt-bindings: clock: Introduce QCOM Display clock bindings
clk: qcom: Add display clock controller driver for SC7180

 .../devicetree/bindings/clock/qcom,dispcc.txt      |  19 -
 .../devicetree/bindings/clock/qcom,dispcc.yaml     |  67 ++
 drivers/clk/qcom/Kconfig                           |   9 +
 drivers/clk/qcom/Makefile                          |   1 +
 drivers/clk/qcom/dispcc-sc7180.c                   | 776 +++++++++++++++++++++
 include/dt-bindings/clock/qcom,dispcc-sc7180.h     |  46 ++
 6 files changed, 899 insertions(+), 19 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/clock/qcom,dispcc.txt
 create mode 100644 Documentation/devicetree/bindings/clock/qcom,dispcc.yaml
 create mode 100644 drivers/clk/qcom/dispcc-sc7180.c
 create mode 100644 include/dt-bindings/clock/qcom,dispcc-sc7180.h

--
Qualcomm INDIA, on behalf of Qualcomm Innovation Center, Inc.is a member of the Code Aurora Forum, hosted by the Linux Foundation.

author
#1 lore raw

PATCH 1/3 dt-bindings: clock: Add YAML schemas for the QCOM DISPCC clock bindings

The DISPCC clock provider have a bunch of generic properties that are needed in a device tree. Add a YAML schemas for those.

---
 .../devicetree/bindings/clock/qcom,dispcc.txt      | 19 -------
 .../devicetree/bindings/clock/qcom,dispcc.yaml     | 66 ++++++++++++++++++++++
 2 files changed, 66 insertions(+), 19 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/clock/qcom,dispcc.txt
 create mode 100644 Documentation/devicetree/bindings/clock/qcom,dispcc.yaml
Documentation/devicetree/bindings/clock/qcom,dispcc.txt deleted +0 -19
deleted file mode 100644
index d639e18..0000000
@@ -1,19 +0,0 @@
-Qualcomm Technologies, Inc. Display Clock Controller Binding
-------------------------------------------------------------
-
-Required properties :
-
-- compatible : shall contain "qcom,sdm845-dispcc"
-- reg : shall contain base register location and length.
-- #clock-cells : from common clock binding, shall contain 1.
-- #reset-cells : from common reset binding, shall contain 1.
-- #power-domain-cells : from generic power domain binding, shall contain 1.
-
-Example:
-	dispcc: clock-controller@af00000 {
-		compatible = "qcom,sdm845-dispcc";
-		reg = <0xaf00000 0x100000>;
-		#clock-cells = <1>;
-		#reset-cells = <1>;
-		#power-domain-cells = <1>;
-	};
Documentation/devicetree/bindings/clock/qcom,dispcc.yaml new file +66 -0

66 lines not on this page · raw message

--
Qualcomm INDIA, on behalf of Qualcomm Innovation Center, Inc.is a member of the Code Aurora Forum, hosted by the Linux Foundation.

author
#2 lore raw

PATCH 2/3 dt-bindings: clock: Introduce QCOM Display clock bindings

In reply to Taniya Das

Add device tree bindings for display clock controller for Qualcomm Technology Inc's SC7180 SoCs.

---
 .../devicetree/bindings/clock/qcom,dispcc.yaml     |  1 +
 include/dt-bindings/clock/qcom,dispcc-sc7180.h     | 46 ++++++++++++++++++++++
 2 files changed, 47 insertions(+)
 create mode 100644 include/dt-bindings/clock/qcom,dispcc-sc7180.h
Documentation/devicetree/bindings/clock/qcom,dispcc.yaml +1 -0
index 1185e49..9c58e02 100644
@@ -16,6 +16,7 @@ description: |
 properties:
   compatible:
     enum:
+      - qcom,sc7180-dispcc
       - qcom,sdm845-dispcc
 
   clocks:
include/dt-bindings/clock/qcom,dispcc-sc7180.h new file +46 -0

46 lines not on this page · raw message

--
Qualcomm INDIA, on behalf of Qualcomm Innovation Center, Inc.is a member of the Code Aurora Forum, hosted by the Linux Foundation.

author
#3 lore raw

PATCH 3/3 clk: qcom: Add display clock controller driver for SC7180

In reply to Taniya Das

Add support for the display clock controller found on SC7180 based devices. This would allow display drivers to probe and control their clocks.

---
 drivers/clk/qcom/Kconfig         |   9 +
 drivers/clk/qcom/Makefile        |   1 +
 drivers/clk/qcom/dispcc-sc7180.c | 776 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 786 insertions(+)
 create mode 100644 drivers/clk/qcom/dispcc-sc7180.c
drivers/clk/qcom/Kconfig +9 -0
index 8f0ebbc..7d06390 100644
@@ -237,6 +237,15 @@ config QCS_GCC_404
 	  Say Y if you want to use multimedia devices or peripheral
 	  devices such as UART, SPI, I2C, USB, SD/eMMC, PCIe etc.
 
+config SC_DISPCC_7180
+	tristate "SC7180 Display Clock Controller"
+	select SC_GCC_7180
+	help
+	  Support for the display clock controller on Qualcomm Technologies, Inc
+	  SC7180 devices.
+	  Say Y if you want to support display devices and functionality such as
+	  splash screen.
+
 config SC_GCC_7180
 	tristate "SC7180 Global Clock Controller"
 	select QCOM_GDSC
drivers/clk/qcom/Makefile +1 -0
index 4cdd08f..ff353d3 100644
@@ -45,6 +45,7 @@ obj-$(CONFIG_QCOM_CLK_SMD_RPM) += clk-smd-rpm.o
 obj-$(CONFIG_QCS_GCC_404) += gcc-qcs404.o
 obj-$(CONFIG_QCS_Q6SSTOP_404) += q6sstop-qcs404.o
 obj-$(CONFIG_QCS_TURING_404) += turingcc-qcs404.o
+obj-$(CONFIG_SC_DISPCC_7180) += dispcc-sc7180.o
 obj-$(CONFIG_SC_GCC_7180) += gcc-sc7180.o
 obj-$(CONFIG_SC_GPUCC_7180) += gpucc-sc7180.o
 obj-$(CONFIG_SC_VIDEOCC_7180) += videocc-sc7180.o
drivers/clk/qcom/dispcc-sc7180.c new file +776 -0

776 lines not on this page · raw message

--
Qualcomm INDIA, on behalf of Qualcomm Innovation Center, Inc.is a member of the Code Aurora Forum, hosted by the Linux Foundation.