Add ums512 clocks and relative bindings file
Subsystems (4)
v6 cover Add ums512 clocks and relative bindings file
From: Cixi Geng <[email protected]>
This patchset is add the UMS512 clocks support
v2 changes:
adjust description and add the "sprd,ums512-glbregs,syscon,simple-mfd" compatibles to fix match failed logs in the dt_binding_check. add the property license and copyright notice.
v3 changes:
fix wrong indentation and hint: "maxItems" is not needed with an "items" list when use the latest dtschema.
v4 changes:
move the syscon bindins from clk to glbreg yaml file by pickup chunyan's patch for global registers bindings
fix the comments from Krzysztof in v3 patchset
add the Acked-by: Krzysztof in patch v4 3/4
fix the warning Prefer "GPL" over "GPL v2"
v5 changes:
Add review tags.
fix the comments in ums512-glbreg.yaml.
v6 changes:
No more send the patch 1/4 and 3/4 in V5 for applied by Stephen change GPL to GPL v2 license
fix the lack of space in some "{" and "}"
add check error for sprd_clk_regmap_init.
Chunyan Zhang (1):
dt-bindings: mfd: sprd: Add bindings for ums512 global registers
Cixi Geng (1):
clk: sprd: Add clocks support for UMS512
.../bindings/mfd/sprd,ums512-glbreg.yaml | 68 + drivers/clk/sprd/Kconfig | 6 + drivers/clk/sprd/Makefile | 1 + drivers/clk/sprd/ums512-clk.c | 2202 +++++++++++++++++ 4 files changed, 2277 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/sprd,ums512-glbreg.yaml create mode 100644 drivers/clk/sprd/ums512-clk.c
Signature · 1 line
2.25.1
PATCH v6 1/2 dt-bindings: mfd: sprd: Add bindings for ums512 global registers
From: Chunyan Zhang <[email protected]>
Add bindings for Unisoc system global register which provide register map for clocks.
--- .../bindings/mfd/sprd,ums512-glbreg.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/sprd,ums512-glbreg.yaml
Documentation/devicetree/bindings/mfd/sprd,ums512-glbreg.yaml new file +68 -0
@@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright 2022 Unisoc Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/sprd,ums512-glbreg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Unisoc System Global Register + +maintainers: + - Orson Zhai <[email protected]> + - Baolin Wang <[email protected]> + - Chunyan Zhang <[email protected]> + +description: + Unisoc system global registers provide register map + for clocks and some multimedia modules of the SoC. + +properties: + compatible: + items: + - const: sprd,ums512-glbregs + - const: syscon + - const: simple-mfd + + "#address-cells": true + "#size-cells": true + + ranges: + maxItems: 1 + + reg: + maxItems: 1 + +patternProperties: + "^clock-controller@[0-9a-f]+$": + type: object + $ref: "../clock/sprd,ums512-clk.yaml" + description: + Clock controller for the SoC clocks. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + ap_apb_regs: syscon@71000000 { + compatible = "sprd,ums512-glbregs", "syscon", "simple-mfd"; + reg = <0x71000000 0x3000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x71000000 0x3000>; + + clock-controller@0 { + compatible = "sprd,ums512-apahb-gate"; + reg = <0x0 0x2000>; + #clock-cells = <1>; + }; + }; + + - | + ap_intc5_regs: syscon@32360000 { + compatible = "sprd,ums512-glbregs", "syscon", "simple-mfd"; + reg = <0x32360000 0x1000>; + };
Signature · 1 line
2.25.1
PATCH v6 2/2 clk: sprd: Add clocks support for UMS512
In reply to Cixi GengFrom: Cixi Geng <[email protected]>
Add the list of clocks for the Unisoc UMS512, along with clock initialization.
--- drivers/clk/sprd/Kconfig | 6 + drivers/clk/sprd/Makefile | 1 + drivers/clk/sprd/ums512-clk.c | 2202 +++++++++++++++++++++++++++++++++ 3 files changed, 2209 insertions(+) create mode 100644 drivers/clk/sprd/ums512-clk.c
drivers/clk/sprd/Kconfig +6 -0
@@ -21,4 +21,10 @@ config SPRD_SC9863A_CLK help Support for the global clock controller on sc9863a devices. Say Y if you want to use peripheral devices on sc9863a SoC. + +config SPRD_UMS512_CLK + tristate "Support for the Spreadtrum UMS512 clocks" + help + Support for the global clock controller on ums512 devices. + Say Y if you want to use peripheral devices on ums512 SoC. endif
drivers/clk/sprd/Makefile +1 -0
@@ -11,3 +11,4 @@ clk-sprd-y += pll.o ## SoC support obj-$(CONFIG_SPRD_SC9860_CLK) += sc9860-clk.o obj-$(CONFIG_SPRD_SC9863A_CLK) += sc9863a-clk.o +obj-$(CONFIG_SPRD_UMS512_CLK) += ums512-clk.o
drivers/clk/sprd/ums512-clk.c new file +2202 -0
2,202 lines not on this page · raw message
Signature · 1 line
2.25.1
Rob Herring
maintainerRe: [PATCH V6 1/2] dt-bindings: mfd: sprd: Add bindings for ums512 global registers
In reply to Cixi GengQuoted 5 lines · Cixi Geng
From: Chunyan Zhang <[email protected]>
Add bindings for Unisoc system global register which provide register map for clocks.
Quoted 8 lines
Signed-off-by Chunyan Zhang <[email protected]>Signed-off-by Cixi Geng <[email protected]>Reviewed-by Rob Herring <[email protected]>--- .../bindings/mfd/sprd,ums512-glbreg.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/sprd,ums512-glbreg.yaml
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:./Documentation/devicetree/bindings/mfd/sprd,ums512-glbreg.yaml: Unable to find schema file matching $id: http://devicetree.org/schemas/clock/sprd,ums512-clk.yaml
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/mfd/sprd,ums512-glbreg.example.dtb: syscon@71000000: clock-controller@0: False schema does not allow {'compatible': ['sprd,ums512-apahb-gate'], 'reg': [[0, 8192]], '#clock-cells': [[1]]}
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/mfd/sprd,ums512-glbreg.yamlDocumentation/devicetree/bindings/mfd/sprd,ums512-glbreg.example.dtb:0:0: /example-0/syscon@71000000/clock-controller@0: failed to match any schema with compatible: ['sprd,ums512-apahb-gate']
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/patch/
This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.
If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
pip3 install dtschema --upgrade
Please check and re-submit.
Re: [PATCH V6 1/2] dt-bindings: mfd: sprd: Add bindings for ums512 global registers
In reply to Cixi GengQuoted 47 lines · Cixi Geng
From: Chunyan Zhang <[email protected]>
Add bindings for Unisoc system global register which provide register map for clocks.
Signed-off-by Chunyan Zhang <[email protected]>Signed-off-by Cixi Geng <[email protected]>Reviewed-by Rob Herring <[email protected]>--- .../bindings/mfd/sprd,ums512-glbreg.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/sprd,ums512-glbreg.yamlDocumentation/devicetree/bindings/mfd/sprd,ums512-glbreg.yaml new file +28
-0@@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright 2022 Unisoc Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/sprd,ums512-glbreg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Unisoc System Global Register + +maintainers: + - Orson Zhai <[email protected]> + - Baolin Wang <[email protected]> + - Chunyan Zhang <[email protected]> + +description: + Unisoc system global registers provide register map + for clocks and some multimedia modules of the SoC. + +properties: + compatible: + items: + - const: sprd,ums512-glbregs + - const: syscon + - const: simple-mfd + + "#address-cells": true + "#size-cells": true +
Documentation/devicetree/bindings/mfd/sprd,ums512-glbreg.yaml line 38
Quoted 10 lines
Documentation/devicetree/bindings/mfd/sprd,ums512-glbreg.yaml new file +10
-0+ ranges: + maxItems: 1 + + reg: + maxItems: 1 + +patternProperties: + "^clock-controller@[0-9a-f]+$": + type: object + $ref: "../clock/sprd,ums512-clk.yaml"
Absolute path (without quotes):
/schemas/clock/sprd,ums512-clk.yaml
Best regards,
Krzysztof
Quoted 24 lines · Cixi Geng
From: Cixi Geng <[email protected]>
This patchset is add the UMS512 clocks support
v2 changes:
adjust description and add the "sprd,ums512-glbregs,syscon,simple-mfd" compatibles to fix match failed logs in thedt_binding_check. add the property license and copyright notice.v3 changes:
fix wrong indentation and hint: "maxItems" is not needed with an "items" list when use the latest dtschema.v4 changes:
move the syscon bindins from clk to glbreg yaml file by pickup chunyan's patch for global registers bindings
fix the comments from Krzysztof in v3 patchset
add the Acked-by: Krzysztof in patch v4 3/4
fix the warning Prefer "GPL" over "GPL v2"v5 changes:
Add review tags.
fix the comments inums512-glbreg.yaml.
Quoted 5 lines
v6 changes:
No more send the patch 1/4 and 3/4 in V5 for applied by Stephen change GPL to GPL v2 license
fix the lack of space in some "{" and "}"
add check error forsprd_clk_regmap_init.
That's not good. That was a dependency here (for MFD bindings). You must describe the dependencies in cover letter so maintainers know how to do it.
Your MFD patch is not applicable now...
Best regards,
Krzysztof
Re: [PATCH V6 1/2] dt-bindings: mfd: sprd: Add bindings for ums512 global registers
In reply to Cixi GengQuoted 5 lines · Cixi Geng
From: Chunyan Zhang <[email protected]>
Add bindings for Unisoc system global register which provide register map for clocks.
Quoted 8 lines
Signed-off-by Chunyan Zhang <[email protected]>Signed-off-by Cixi Geng <[email protected]>Reviewed-by Rob Herring <[email protected]>--- .../bindings/mfd/sprd,ums512-glbreg.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/sprd,ums512-glbreg.yaml
The patch depends on patch in clk tree, so either it goes via clk tree, there is cross-tree merge or it must wait for v5.20-rc1.
Best regards,
Krzysztof
Re: [PATCH V6 1/2] dt-bindings: mfd: sprd: Add bindings for ums512 global registers
Quoted 16 lines · Krzysztof Kozlowski <[email protected]> 于2022年7月27日周三 01:48写道:
Quoted 5 lines · Cixi Geng
From: Chunyan Zhang <[email protected]>
Add bindings for Unisoc system global register which provide register map for clocks.
Quoted 8 lines
Signed-off-by Chunyan Zhang <[email protected]>Signed-off-by Cixi Geng <[email protected]>Reviewed-by Rob Herring <[email protected]>--- .../bindings/mfd/sprd,ums512-glbreg.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/sprd,ums512-glbreg.yaml
Quoted 2 lines
The patch depends on patch in clk tree, so either it goes via clk tree, there is cross-tree merge or it must wait for v5.20-rc1.
ok, I will resend this patchset after v5.20-rc1.thanks
Quoted 4 lines
Best regards,
Krzysztof