Add Q6SSTOP clock controller for QCS404
v2 cover Add Q6SSTOP clock controller for QCS404
Add support for the Q6SSTOP clock control used on qcs404 based devices. This would allow wcss remoteproc driver to control the required WCSS Q6SSTOP clock/reset controls to bring the subsystem out of reset and shutdown the WCSS Q6DSP.
Govind Singh (2):
dt-bindings: clock: qcom: Add QCOM Q6SSTOP clock controller bindings
clk: qcom: Add Q6SSTOP clock controller for QCS404
.../bindings/clock/qcom,q6sstopcc.yaml | 45 ++++ drivers/clk/qcom/Kconfig | 8 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/q6sstop-qcs404.c | 223 ++++++++++++++++++ .../dt-bindings/clock/qcom,q6sstopcc-qcs404.h | 18 ++ 5 files changed, 295 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml create mode 100644 drivers/clk/qcom/q6sstop-qcs404.c create mode 100644 include/dt-bindings/clock/qcom,q6sstopcc-qcs404.h
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
PATCH v2 1/2 dt-bindings: clock: qcom: Add QCOM Q6SSTOP clock controller bindings
Add devicetree binding for the Q6SSTOP clock controller found in QCS404.
--- .../bindings/clock/qcom,q6sstopcc.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +45 -0
@@ -0,0 +1,45 @@ +# SPDX-License-Identifier: BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,osm-l3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Q6SSTOP clock Controller + +maintainers: + - Govind Singh <[email protected]> + +description: + Q6SSTOP clock controller is used by WCSS remoteproc driver + to bring WDSP out of reset. + +properties: + compatible: + const: "qcom,qcs404-q6sstopcc" + + reg: + maxItems: 2 + description: Q6SSTOP clocks register region + description: Q6SSTOP_TCSR register region + + clocks: + items: + - description: ahb clock for the q6sstopCC + + '#clock-cells': + const: 1 + +required: + - compatible + - reg + - clocks + - '#clock-cells' + +examples: + - | + q6sstopcc: clock-controller@7500000 { + compatible = "qcom,qcs404-q6sstopcc"; + reg = <0x07500000 0x4e000>, <0x07550000 0x10000>; + clocks = <&gcc GCC_WCSS_Q6_AHB_CLK>; + #clock-cells = <1>; + };
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
PATCH v2 2/2 clk: qcom: Add Q6SSTOP clock controller for QCS404
In reply to Govind SinghAdd support for the Q6SSTOP clock control used on qcs404 based devices. This would allow wcss remoteproc driver to control the required WCSS Q6SSTOP clock/reset controls to bring the subsystem out of reset and shutdown the WCSS Q6DSP.
--- drivers/clk/qcom/Kconfig | 8 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/q6sstop-qcs404.c | 223 ++++++++++++++++++ .../dt-bindings/clock/qcom,q6sstopcc-qcs404.h | 18 ++ 4 files changed, 250 insertions(+) create mode 100644 drivers/clk/qcom/q6sstop-qcs404.c create mode 100644 include/dt-bindings/clock/qcom,q6sstopcc-qcs404.h
drivers/clk/qcom/Kconfig +8 -0
@@ -250,6 +250,14 @@ config QCS_TURING_404 Support for the Turing Clock Controller on QCS404, provides clocks and resets for the Turing subsystem. +config QCS_Q6SSTOP_404 + tristate "QCS404 Q6SSTOP Clock Controller" + select QCS_GCC_404 + help + Support for the Q6SSTOP clock controller on QCS404 devices. + Say Y if you want to use the Q6SSTOP branch clocks of the WCSS clock + controller to reset the Q6SSTOP subsystem. + config SDM_GCC_845 tristate "SDM845 Global Clock Controller" select QCOM_GDSC
drivers/clk/qcom/Makefile +1 -0
@@ -43,6 +43,7 @@ obj-$(CONFIG_QCOM_CLK_RPMH) += clk-rpmh.o obj-$(CONFIG_QCOM_CLK_SMD_RPM) += clk-smd-rpm.o obj-$(CONFIG_QCS_GCC_404) += gcc-qcs404.o obj-$(CONFIG_QCS_TURING_404) += turingcc-qcs404.o +obj-$(CONFIG_QCS_Q6SSTOP_404) += q6sstop-qcs404.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/q6sstop-qcs404.c new file +223 -0
223 lines not on this page · raw message
include/dt-bindings/clock/qcom,q6sstopcc-qcs404.h new file +18 -0
@@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (c) 2018, The Linux Foundation. All rights reserved. +*/ + +#ifndef _DT_BINDINGS_CLK_Q6SSTOP_QCS404_H +#define _DT_BINDINGS_CLK_Q6SSTOP_QCS404_H + +#define LCC_AHBFABRIC_CBC_CLK 0 +#define LCC_Q6SS_AHBS_CBC_CLK 1 +#define LCC_Q6SS_TCM_SLAVE_CBC_CLK 2 +#define LCC_Q6SS_AHBM_CBC_CLK 3 +#define LCC_Q6SS_AXIM_CBC_CLK 4 +#define LCC_Q6SS_BCR_SLEEP_CLK 5 +#define TCSR_Q6SS_LCC_CBCR_CLK 6 + +#define Q6SSTOP_BCR_RESET 1 +#endif
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Rob Herring
maintainerRe: [v2 1/2] dt-bindings: clock: qcom: Add QCOM Q6SSTOP clock controller bindings
In reply to Govind SinghQuoted 2 lines · Govind Singh
Add devicetree binding for the Q6SSTOP clock controller found in QCS404.
You need to test this with 'make dt_binding_check' and fix the errors.
Quoted 13 lines
Signed-off-by Govind Singh <[email protected]>--- .../bindings/clock/qcom,q6sstopcc.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yamlDocumentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +0
-0
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml line 1
Quoted 1 line
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +1
-0@@ -0,0 +1,45 @@ +# SPDX-License-Identifier: BSD-2-Clause
GPL-2.0-only OR BSD-2-Clause
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml line 4
Quoted 3 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +3
-0+%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,osm-l3.yaml#
needs updating
Quoted 9 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +9
-0+$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Q6SSTOP clock Controller + +maintainers: + - Govind Singh <[email protected]> + +description: + Q6SSTOP clock controller is used by WCSS remoteproc driver
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml line 23
Quoted 10 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +10
-0+ to bring WDSP out of reset. + +properties: + compatible: + const: "qcom,qcs404-q6sstopcc" + + reg: + maxItems: 2 + description: Q6SSTOP clocks register region + description: Q6SSTOP_TCSR register region
Not valid json-schema
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml line 27
Quoted 4 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +4
-0+ + clocks: + items: + - description: ahb clock for the q6sstopCC
Single item just needs 'maxItems: 1'
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml line 36
Quoted 9 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +9
-0+ + '#clock-cells': + const: 1 + +required: + - compatible + - reg + - clocks + - '#clock-cells'
Should have an 'additionalProperties: false' here.
Quoted 13 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +9
-1+ +examples: + - | + q6sstopcc: clock-controller@7500000 { + compatible = "qcom,qcs404-q6sstopcc"; + reg = <0x07500000 0x4e000>, <0x07550000 0x10000>; + clocks = <&gcc GCC_WCSS_Q6_AHB_CLK>; + #clock-cells = <1>; + }; --The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Stephen Boyd
maintainerQuoting Govind Singh (2019-08-13 06:09:44)
Quoted 4 lines
Add support for the Q6SSTOP clock control used on qcs404 based devices. This would allow wcss remoteproc driver to control the required WCSS Q6SSTOP clock/reset controls to bring the subsystem out of reset and shutdown the WCSS Q6DSP.
What changed from v1? Please include a changelog so we know what happened.
Re: [v2 1/2] dt-bindings: clock: qcom: Add QCOM Q6SSTOP clock controller bindings
In reply to Rob HerringQuoted 13 lines · Rob Herring
Quoted 2 lines · Govind Singh
Add devicetree binding for the Q6SSTOP clock controller found in QCS404.
You need to test this with 'make
dt_binding_check' and fix the errors.Quoted 7 lines
Signed-off-by Govind Singh <[email protected]>--- .../bindings/clock/qcom,q6sstopcc.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml
Quoted 10 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml line 1
Quoted 7 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +1
-0@@ -0,0 +1,45 @@ +# SPDX-License-Identifier: BSD-2-ClauseGPL-2.0-only OR BSD-2-Clause
Is this a requirement of the devicetree project? Wouldn't the BSD license alone be sufficient for the type of interoperability that we're striving for?
Regards,
Bjorn
Rob Herring
maintainerRe: [v2 1/2] dt-bindings: clock: qcom: Add QCOM Q6SSTOP clock controller bindings
Quoted 27 lines · Bjorn Andersson
Quoted 13 lines · Rob Herring
Quoted 2 lines · Govind Singh
Add devicetree binding for the Q6SSTOP clock controller found in QCS404.
You need to test this with 'make
dt_binding_check' and fix the errors.Quoted 7 lines
Signed-off-by Govind Singh <[email protected]>--- .../bindings/clock/qcom,q6sstopcc.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yamlQuoted 10 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml line 1
Quoted 7 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +1
-0@@ -0,0 +1,45 @@ +# SPDX-License-Identifier: BSD-2-ClauseGPL-2.0-only OR BSD-2-Clause
Quoted 1 line
Is this a requirement of the devicetree project?
More like my preference.
Quoted 3 lines
Wouldn't the BSD
license alone be sufficient for the type of interoperability that we're striving for?
Yes. However, folks like to copy and paste and forget to pay attention to the license. So we'll end up with GPL licensed code copied into BSD licensed code. Dual license doesn't completely solve that, but helps somewhat IMO.
Rob
Re: [v2 1/2] dt-bindings: clock: qcom: Add QCOM Q6SSTOP clock controller bindings
In reply to Rob HerringHi Rob,
Quoted 6 lines · Rob Herring
Quoted 2 lines · Govind Singh
Add devicetree binding for the Q6SSTOP clock controller found in QCS404.
You need to test this with 'make
dt_binding_check' and fix the errors.
Fixed in v3.
Quoted 9 lines
Quoted 9 lines
Signed-off-by Govind Singh <[email protected]>--- .../bindings/clock/qcom,q6sstopcc.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml
Quoted 10 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml line 1
Quoted 7 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +1
-0@@ -0,0 +1,45 @@ +# SPDX-License-Identifier: BSD-2-ClauseGPL-2.0-only OR BSD-2-Clause
I have kept BSD-2-Clause as its new binding.
Quoted 6 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml line 4
Quoted 3 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +3
-0+%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,osm-l3.yaml#needs updating
Fixed in V3.
Quoted 13 lines
Quoted 13 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +13
-0+$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Q6SSTOP clock Controller + +maintainers: + - Govind Singh <[email protected]> + +description: + Q6SSTOP clock controller is used by WCSS remoteproc driver + to bring WDSP out of reset. + +properties: + compatible:
Quoted 9 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml line 23
Quoted 6 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +6
-0+ const: "qcom,qcs404-q6sstopcc" + + reg: + maxItems: 2 + description: Q6SSTOP clocks register region + description: Q6SSTOP_TCSR register regionNot valid json-schema
Fixed in V3.
Quoted 7 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml line 27
Quoted 4 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +4
-0+ + clocks: + items: + - description: ahb clock for the q6sstopCCSingle item just needs 'maxItems: 1'
Quoted 12 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml line 36
Quoted 9 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +9
-0+ + '#clock-cells': + const: 1 + +required: + - compatible + - reg + - clocks + - '#clock-cells'Should have an 'additionalProperties: false' here.
Fixed in v3.
Quoted 5 lines
Quoted 5 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +5
-0+ +examples: + - | + q6sstopcc: clock-controller@7500000 { + compatible = "qcom,qcs404-q6sstopcc";
Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/clock/qcom,q6sstopcc.yaml new file +4
-1+ reg = <0x07500000 0x4e000>, <0x07550000 0x10000>; + clocks = <&gcc GCC_WCSS_Q6_AHB_CLK>; + #clock-cells = <1>; + }; --The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
BR,
Govind