pic64gx clk kconfig/binding changes
Subsystems (4)
cover pic64gx clk kconfig/binding changes
From: Conor Dooley <[email protected]>
Mostly this is stuff that PH did last year, but rebased on top of current work, now that the clock driver rework patches have been applied.
Conor Dooley (1):
clk: microchip: drop POLARFIRE from ARCH_MICROCHIP_POLARFIRE
Pierre-Henry Moussay (2):
dt-bindings: clock: mpfs-ccc: Add pic64gx compatibility
dt-bindings: clock: mpfs-clkcfg: Add pic64gx compatibility
.../bindings/clock/microchip,mpfs-ccc.yaml | 6 +++++- .../bindings/clock/microchip,mpfs-clkcfg.yaml | 15 ++++++++++++++- drivers/clk/microchip/Kconfig | 4 ++-- 3 files changed, 21 insertions(+), 4 deletions(-)
Signature · 1 line
2.51.0
PATCH 1/3 clk: microchip: drop POLARFIRE from ARCH_MICROCHIP_POLARFIRE
From: Conor Dooley <[email protected]>
This driver is used by non-polarfire devices now, and the ARCH_MICROCHIP symbol has been defined for some time on RISCV so drop it without any functional change.
--- drivers/clk/microchip/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/microchip/Kconfig +2 -2
@@ -5,8 +5,8 @@ config COMMON_CLK_PIC32 config MCHP_CLK_MPFS bool "Clk driver for PolarFire SoC" - depends on ARCH_MICROCHIP_POLARFIRE || COMPILE_TEST - default ARCH_MICROCHIP_POLARFIRE + depends on ARCH_MICROCHIP || COMPILE_TEST + default y depends on MFD_SYSCON select AUXILIARY_BUS select COMMON_CLK_DIVIDER_REGMAP
Signature · 1 line
2.51.0
Re: [PATCH v1 1/3] clk: microchip: drop POLARFIRE from ARCH_MICROCHIP_POLARFIRE
Hi, Conor,
Quoted 16 lines · Conor Dooley
From: Conor Dooley <[email protected]>
This driver is used by non-polarfire devices now, and the
ARCH_MICROCHIPsymbol has been defined for some time on RISCV so drop it without any functional change.Signed-off-by Conor Dooley <[email protected]>--- drivers/clk/microchip/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/clk/microchip/Kconfig +0
-0
drivers/clk/microchip/Kconfig config COMMON_CLK_PIC32 · line 12
Quoted 10 lines
drivers/clk/microchip/Kconfig +2
-2@@ -5,8 +5,8 @@ config COMMON_CLK_PIC32 config MCHP_CLK_MPFS bool "Clk driver for PolarFire SoC" - depends on ARCH_MICROCHIP_POLARFIRE || COMPILE_TEST - default ARCH_MICROCHIP_POLARFIRE + depends on ARCH_MICROCHIP || COMPILE_TEST + default y depends on MFD_SYSCON select AUXILIARY_BUS select COMMON_CLK_DIVIDER_REGMAP
This doesn't apply on top of the current at91-next. Maybe rebase it once 6.19-rc1 is out.
Thank you,
Claudiu
PATCH 2/3 dt-bindings: clock: mpfs-ccc: Add pic64gx compatibility
In reply to Conor DooleyFrom: Pierre-Henry Moussay <[email protected]>
pic64gx SoC Clock Conditioning Circuitry is compatibles with the Polarfire SoC
--- .../devicetree/bindings/clock/microchip,mpfs-ccc.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/clock/microchip,mpfs-ccc.yaml +5 -1
@@ -17,7 +17,11 @@ description: | properties: compatible: - const: microchip,mpfs-ccc + oneOf: + - items: + - const: microchip,pic64gx-ccc + - const: microchip,mpfs-ccc + - const: microchip,mpfs-ccc reg: items:
Signature · 1 line
2.51.0
Re: [PATCH v1 2/3] dt-bindings: clock: mpfs-ccc: Add pic64gx compatibility
Quoted 5 lines · Conor Dooley
From: Pierre-Henry Moussay <[email protected]>
pic64gx SoC Clock Conditioning Circuitry is compatibles with the Polarfire SoC
Quoted 7 lines
Signed-off-by Pierre-Henry Moussay <[email protected]>Acked-by Conor Dooley <[email protected]>Signed-off-by Conor Dooley <[email protected]>--- .../devicetree/bindings/clock/microchip,mpfs-ccc.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
PATCH 3/3 dt-bindings: clock: mpfs-clkcfg: Add pic64gx compatibility
In reply to Conor DooleyFrom: Pierre-Henry Moussay <[email protected]>
pic64gx has a clock controller compatible with mpfs-clkcfg. Don't permit the deprecated configuration that was never supported for this SoC.
--- .../bindings/clock/microchip,mpfs-clkcfg.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/clock/microchip,mpfs-clkcfg.yaml +14 -1
@@ -19,7 +19,11 @@ description: | properties: compatible: - const: microchip,mpfs-clkcfg + oneOf: + - items: + - const: microchip,pic64gx-clkcfg + - const: microchip,mpfs-clkcfg + - const: microchip,mpfs-clkcfg reg: oneOf:
@@ -69,6 +73,15 @@ required: - clocks - '#clock-cells' +if: + properties: + compatible: + contains: + const: microchip,pic64gx-clkcfg +then: + reg: + maxItems: 1 + additionalProperties: false examples:
Signature · 1 line
2.51.0
Rob Herring (Arm)
maintainerRe: [PATCH v1 3/3] dt-bindings: clock: mpfs-clkcfg: Add pic64gx compatibility
Quoted 5 lines · Conor Dooley
From: Pierre-Henry Moussay <[email protected]>
pic64gx has a clock controller compatible with mpfs-clkcfg. Don't permit the deprecated configuration that was never supported for this SoC.
Quoted 7 lines
Signed-off-by Pierre-Henry Moussay <[email protected]>Co-developed-by Conor Dooley <[email protected]>Signed-off-by Conor Dooley <[email protected]>--- .../bindings/clock/microchip,mpfs-clkcfg.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/clock/microchip,mpfs-clkcfg.yaml: then: 'anyOf' conditional failed, one must be fixed:
'reg' is not one of ['$ref', 'additionalItems', 'additionalProperties', 'allOf', 'anyOf', 'const', 'contains', 'default', 'dependencies', 'dependentRequired', 'dependentSchemas', 'deprecated', 'description', 'else', 'enum', 'exclusiveMaximum', 'exclusiveMinimum', 'items', 'if', 'minItems', 'minimum', 'maxItems', 'maximum', 'multipleOf', 'not', 'oneOf', 'pattern', 'patternProperties', 'properties', 'required', 'then', 'typeSize', 'unevaluatedProperties', 'uniqueItems'] 'type' was expected
from schema $id: http://devicetree.org/meta-schemas/keywords.yaml
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20251117-depth-sage-ee0829c71c25@spud
The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch.
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 after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
Re: [PATCH v1 3/3] dt-bindings: clock: mpfs-clkcfg: Add pic64gx compatibility
Quoted 17 lines · Rob Herring (Arm)
Quoted 5 lines · Conor Dooley
From: Pierre-Henry Moussay <[email protected]>
pic64gx has a clock controller compatible with mpfs-clkcfg. Don't permit the deprecated configuration that was never supported for this SoC.
Quoted 7 lines
Signed-off-by Pierre-Henry Moussay <[email protected]>Co-developed-by Conor Dooley <[email protected]>Signed-off-by Conor Dooley <[email protected]>--- .../bindings/clock/microchip,mpfs-clkcfg.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)My bot found errors running 'make
dt_binding_check' on your patch:
Quoted 7 lines
yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/clock/microchip,mpfs-clkcfg.yaml: then: 'anyOf' conditional failed, one must be fixed:
'reg' is not one of ['$ref', 'additionalItems', 'additionalProperties', 'allOf', 'anyOf', 'const', 'contains', 'default', 'dependencies', 'dependentRequired', 'dependentSchemas', 'deprecated', 'description', 'else', 'enum', 'exclusiveMaximum', 'exclusiveMinimum', 'items', 'if', 'minItems', 'minimum', 'maxItems', 'maximum', 'multipleOf', 'not', 'oneOf', 'pattern', 'patternProperties', 'properties', 'required', 'then', 'typeSize', 'unevaluatedProperties', 'uniqueItems'] 'type' was expected
from schema $id: http://devicetree.org/meta-schemas/keywords.yaml
Huh. I think the bot is right here, it's this hunk:
@@ -69,6 +73,15 @@ required:
- clocks
- '#clock-cells'
+if:
+ properties:
+ compatible:
+ contains:
+ const: microchip,pic64gx-clkcfg
+then:
+ reg:
+ maxItems: 1
+
additionalProperties: false
examples:
But I need to go figure out why I did not see this.