dt-bindings: clock: Add YAML schemas for the QCOM MSS clock bindings
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/3 dt-bindings: clock: Add YAML schemas for the QCOM MSS clock bindings
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
@@ -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.
Rob Herring
maintainerQuoted 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.
Signed-off-by Taniya Das <[email protected]>--- .../devicetree/bindings/clock/qcom,mss.yaml | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,mss.yamlDocumentation/devicetree/bindings/clock/qcom,mss.yaml new file +0
-0
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.
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.
Signed-off-by Taniya Das <[email protected]>--- .../devicetree/bindings/clock/qcom,mss.yaml | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+)create mode 100644
Documentation/devicetree/bindings/clock/qcom,mss.yamlDocumentation/devicetree/bindings/clock/qcom,mss.yaml new file +0
-0Documentation/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-onlyDual 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-sc7180Normal 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. --
PATCH 2/3 dt-bindings: clock: Introduce QCOM Modem clock bindings
In reply to a message not in the archiveAdd 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
@@ -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
@@ -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.
Re: [PATCH v1 2/3] dt-bindings: clock: Introduce QCOM Modem clock bindings
Quoted 10 lines · Taniya Das
Add device tree bindings for modem clock controller for Qualcomm Technology Inc's SC7180 SoCs.
Signed-off-by Taniya Das <[email protected]>--- 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
PATCH 3/3 clk: qcom: Add modem clock controller driver for SC7180
In reply to a message not in the archiveAdd 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
@@ -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
@@ -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.
Stephen Boyd
maintainerRe: [PATCH v1 0/3] Add modem Clock controller (MSS CC) driver for SC7180
In reply to a message not in the archiveQuoting 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.
Re: [PATCH v1 0/3] Add modem Clock controller (MSS CC) driver for SC7180
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. --