Skip to contentSkip to conversation

dt-bindings: clock: Add YAML schemas for the QCOM MSS clock bindings

PATCH Superseded Taniya Das 3 participants 8 messages Dec 4, 2019 – Dec 27, 2019 1 message not in the archive

Subsystems (4)

v1 of 7 Superseded Latest is v7 →

lore
Share & tools
lore

Taniya Das

author
#1 lore raw

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

In reply to a message not in the archive

The MSS 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,mss.yaml        | 40 ++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/qcom,mss.yaml
Documentation/devicetree/bindings/clock/qcom,mss.yaml new file +40 -0
new file mode 100644
index 0000000..4494a6b
@@ -0,0 +1,40 @@
+# SPDX-License-Identifier: GPL-2.0-only
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/bindings/clock/qcom,mss.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Modem Clock Controller Binding
+
+maintainers:
+  - Taniya Das <[email protected]>
+
+description: |
+  Qualcomm modem clock control module which supports the clocks.
+
+properties:
+  compatible :
+    enum:
+       - qcom,mss-sc7180
+
+  '#clock-cells':
+    const: 1
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - '#clock-cells'
+
+examples:
+  # Example of MSS with clock nodes properties for SC7180:
+  - |
+    clock-controller@41aa000 {
+      compatible = "qcom,sc7180-mss";
+      reg = <0x041aa000 0x100>;
+      reg-names = "cc";
+      #clock-cells = <1>;
+    };
+...

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

author
#4 lore raw

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

In reply to a message not in the archive

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

---
 include/dt-bindings/clock/qcom,gcc-sc7180.h |  5 +++++
 include/dt-bindings/clock/qcom,mss-sc7180.h | 12 ++++++++++++
 2 files changed, 17 insertions(+)
 create mode 100644 include/dt-bindings/clock/qcom,mss-sc7180.h
include/dt-bindings/clock/qcom,gcc-sc7180.h +5 -0
index e8029b2e..08c1a7b 100644
@@ -132,6 +132,11 @@
 #define GCC_VIDEO_GPLL0_DIV_CLK_SRC				122
 #define GCC_VIDEO_THROTTLE_AXI_CLK				123
 #define GCC_VIDEO_XO_CLK					124
+#define GCC_MSS_CFG_AHB_CBCR					125
+#define GCC_MSS_MFAB_AXIS_CBCR					126
+#define GCC_MSS_NAV_AXI_CBCR					127
+#define GCC_MSS_Q6_MEMNOC_AXI_CBCR				128
+#define GCC_MSS_SNOC_AXI_CBCR					129
 
 /* GCC resets */
 #define GCC_QUSB2PHY_PRIM_BCR					0
include/dt-bindings/clock/qcom,mss-sc7180.h new file +12 -0
new file mode 100644
index 0000000..8ad63ed
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright (c) 2019, The Linux Foundation. All rights reserved.
+ */
+
+#ifndef _DT_BINDINGS_CLK_QCOM_MSS_SC7180_H
+#define _DT_BINDINGS_CLK_QCOM_MSS_SC7180_H
+
+#define MSS_AXI_CRYPTO_CLK	0
+#define MSS_AXI_NAV_CLK		1
+
+#endif

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

author
#6 lore raw

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

In reply to a message not in the archive

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

---
 drivers/clk/qcom/Kconfig      |  9 +++++
 drivers/clk/qcom/Makefile     |  1 +
 drivers/clk/qcom/gcc-sc7180.c | 70 ++++++++++++++++++++++++++++++++
 drivers/clk/qcom/mss-sc7180.c | 93 +++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 173 insertions(+)
 create mode 100644 drivers/clk/qcom/mss-sc7180.c
drivers/clk/qcom/Kconfig +9 -0
index 3b33ef1..5d4b6e5 100644
@@ -245,6 +245,15 @@ config SC_GCC_7180
 	  Say Y if you want to use peripheral devices such as UART, SPI,
 	  I2C, USB, UFS, SDCC, etc.
 
+config SC_MSS_7180
+	tristate "SC7180 MSS Clock Controller"
+	select SC_GCC_7180
+	help
+	  Support for the MSS clock controller on Qualcomm Technologies, Inc
+	  SC7180 devices.
+	  Say Y if you want to use the MSS branch clocks of the MSS clock
+	  controller to reset the MSS subsystem.
+
 config SDM_CAMCC_845
 	tristate "SDM845 Camera Clock Controller"
 	select SDM_GCC_845
drivers/clk/qcom/Makefile +1 -0
index d899661..0e66bc6 100644
@@ -46,6 +46,7 @@ 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_GCC_7180) += gcc-sc7180.o
+obj-$(CONFIG_SC_MSS_7180) += mss-sc7180.o
 obj-$(CONFIG_SDM_CAMCC_845) += camcc-sdm845.o
 obj-$(CONFIG_SDM_DISPCC_845) += dispcc-sdm845.o
 obj-$(CONFIG_SDM_GCC_660) += gcc-sdm660.o
drivers/clk/qcom/gcc-sc7180.c +70 -0

82 lines not on this page · raw message

drivers/clk/qcom/mss-sc7180.c new file +93 -0

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

maintainer Reviewed-by on v1 2/3
#5 lore raw

Re: [PATCH v1 2/3] dt-bindings: clock: Introduce QCOM Modem clock bindings

In reply to Taniya Das
Quoted 10 lines · Taniya Das

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

---
 include/dt-bindings/clock/qcom,gcc-sc7180.h |  5 +++++
 include/dt-bindings/clock/qcom,mss-sc7180.h | 12 ++++++++++++
 2 files changed, 17 insertions(+)
 create mode 100644 include/dt-bindings/clock/qcom,mss-sc7180.h
maintainer
#2 lore raw
In reply to Taniya Das
Quoted 15 lines · Taniya Das

The MSS 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,mss.yaml        | 40 ++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/qcom,mss.yaml
Documentation/devicetree/bindings/clock/qcom,mss.yaml new file +0 -0
new file mode 100644
index 0000000..4494a6b

Documentation/devicetree/bindings/clock/qcom,mss.yaml line 1

Quoted 1 line
Documentation/devicetree/bindings/clock/qcom,mss.yaml new file +1 -0
@@ -0,0 +1,40 @@
+# SPDX-License-Identifier: GPL-2.0-only

Dual license new bindings please:

(GPL-2.0-only OR BSD-2-Clause)

Quoted 7 lines
Documentation/devicetree/bindings/clock/qcom,mss.yaml new file +7 -0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/bindings/clock/qcom,mss.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Modem Clock Controller Binding
+

Documentation/devicetree/bindings/clock/qcom,mss.yaml line 18

Quoted 10 lines
Documentation/devicetree/bindings/clock/qcom,mss.yaml new file +10 -0
+maintainers:
+  - Taniya Das <[email protected]>
+
+description: |
+  Qualcomm modem clock control module which supports the clocks.
+
+properties:
+  compatible :
+    enum:
+       - qcom,mss-sc7180

Normal order is 'qcom,sc7180-mss'.

Documentation/devicetree/bindings/clock/qcom,mss.yaml line 29

Quoted 11 lines
Documentation/devicetree/bindings/clock/qcom,mss.yaml new file +11 -0
+
+  '#clock-cells':
+    const: 1
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - '#clock-cells'

Add:

additionalItems: false

Documentation/devicetree/bindings/clock/qcom,mss.yaml line 37

Quoted 8 lines
Documentation/devicetree/bindings/clock/qcom,mss.yaml new file +8 -0
+
+examples:
+  # Example of MSS with clock nodes properties for SC7180:
+  - |
+    clock-controller@41aa000 {
+      compatible = "qcom,sc7180-mss";
+      reg = <0x041aa000 0x100>;
+      reg-names = "cc";

Not documented, nor necessary.

Quoted 7 lines
Documentation/devicetree/bindings/clock/qcom,mss.yaml new file +3 -1
+      #clock-cells = <1>;
+    };
+...
--

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

maintainer
#7 lore raw

Re: [PATCH v1 0/3] Add modem Clock controller (MSS CC) driver for SC7180

In reply to a message not in the archive

Quoting Taniya Das (2019-12-04 00:21:24)

Quoted 5 lines

Add driver support for Modem clock controller for SC7180 and also update device tree bindings for the various clocks supported in the clock controller.

Can you resend this? I got duplicate emails and I think it's resolved now on your end.

author
#3 lore raw
In reply to Rob Herring

Hello Rob,

Thanks for the review comments.

Quoted 20 lines · Rob Herring
Quoted 15 lines · Taniya Das

The MSS 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,mss.yaml        | 40 ++++++++++++++++++++++
  1 file changed, 40 insertions(+)

create mode 100644 Documentation/devicetree/bindings/clock/qcom,mss.yaml

Documentation/devicetree/bindings/clock/qcom,mss.yaml new file +0 -0
new file mode 100644
index 0000000..4494a6b

Documentation/devicetree/bindings/clock/qcom,mss.yaml line 1

Quoted 1 line
Documentation/devicetree/bindings/clock/qcom,mss.yaml new file +1 -0
@@ -0,0 +1,40 @@
+# SPDX-License-Identifier: GPL-2.0-only

Dual license new bindings please:

Quoted 2 lines

(GPL-2.0-only OR BSD-2-Clause)

Will update the license.

Quoted 11 lines
Quoted 11 lines
Documentation/devicetree/bindings/clock/qcom,mss.yaml new file +11 -0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/bindings/clock/qcom,mss.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Modem Clock Controller Binding
+
+maintainers:
+  - Taniya Das <[email protected]>
+
+description: |
Quoted 9 lines

Documentation/devicetree/bindings/clock/qcom,mss.yaml line 18

Quoted 6 lines
Documentation/devicetree/bindings/clock/qcom,mss.yaml new file +6 -0
+  Qualcomm modem clock control module which supports the clocks.
+
+properties:
+  compatible :
+    enum:
+       - qcom,mss-sc7180

Normal order is 'qcom,sc7180-mss'.

My bad.

Quoted 14 lines

Documentation/devicetree/bindings/clock/qcom,mss.yaml line 29

Quoted 11 lines
Documentation/devicetree/bindings/clock/qcom,mss.yaml new file +11 -0
+
+  '#clock-cells':
+    const: 1
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - '#clock-cells'

Add:

Quoted 2 lines

additionalItems: false

Will add it in the next patch.

Quoted 11 lines

Documentation/devicetree/bindings/clock/qcom,mss.yaml line 37

Quoted 8 lines
Documentation/devicetree/bindings/clock/qcom,mss.yaml new file +8 -0
+
+examples:
+  # Example of MSS with clock nodes properties for SC7180:
+  - |
+    clock-controller@41aa000 {
+      compatible = "qcom,sc7180-mss";
+      reg = <0x041aa000 0x100>;
+      reg-names = "cc";

Not documented, nor necessary.

Will remove this.

Quoted 7 lines
Quoted 7 lines
Documentation/devicetree/bindings/clock/qcom,mss.yaml new file +3 -1
+      #clock-cells = <1>;
+    };
+...
--

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

Signature · 4 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation.

--
author
#8 lore raw

Re: [PATCH v1 0/3] Add modem Clock controller (MSS CC) driver for SC7180

In reply to Stephen Boyd

Hello Stephen,

Quoted 10 lines · Stephen Boyd

Quoting Taniya Das (2019-12-04 00:21:24)

Quoted 5 lines

Add driver support for Modem clock controller for SC7180 and also update device tree bindings for the various clocks supported in the clock controller.

Can you resend this? I got duplicate emails and I think it's resolved now on your end.

Will resend the patches.

Signature · 4 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation.

--