dt-bindings: pct: Convert to dtschema
Subsystems (2)
PATCH 1/1 dt-bindings: pct: Convert to dtschema
convert the PCT Arc Performance Counter bindings to DT schema
--- .../devicetree/bindings/arc/pct.yaml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/arc/pct.yaml
Documentation/devicetree/bindings/arc/pct.yaml new file +36 -0
@@ -0,0 +1,36 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pct.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ARC Performance Counters + +maintainers: + - Vineet Gupta <[email protected]> + - Rob Herring <[email protected]> + - Krzysztof Kozlowski <[email protected]> + +description: | + The ARC700 can be configured with a pipeline performance monitor for counting + CPU and cache events like cache misses and hits. Like conventional PCT there + are 100+ hardware conditions dynamically mapped to up to 32 counters + +properties: + compatible: + const: "snps,arc700-pct" + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + pmu { + compatible = "snps,arc700-pct"; + };
--
2.25.1
Rob Herring
maintainerQuoted 8 lines · Dorine Tipo
convert the PCT Arc Performance Counter bindings to DT schema
Signed-off-by Dorine Tipo <[email protected]>--- .../devicetree/bindings/arc/pct.yaml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/arc/pct.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:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/arc/pct.example.dtb: pmu: 'reg' is a required property
from schema $id: http://devicetree.org/schemas/pct.yaml#
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/[email protected]
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.
Quoted 1 line · Dorine Tipo
convert the PCT Arc Performance Counter bindings to DT schema
There is no conversion here!
Quoted 15 lines
Signed-off-by Dorine Tipo <[email protected]>--- .../devicetree/bindings/arc/pct.yaml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/arc/pct.yamlDocumentation/devicetree/bindings/arc/pct.yaml new file +2
-0@@ -0,0 +1,36 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2
Documentation/devicetree/bindings/arc/pct.yaml line 12
Quoted 10 lines
Documentation/devicetree/bindings/arc/pct.yaml new file +10
-0+--- +$id: http://devicetree.org/schemas/pct.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ARC Performance Counters + +maintainers: + - Vineet Gupta <[email protected]> + - Rob Herring <[email protected]> + - Krzysztof Kozlowski <[email protected]>
No, neither me nor Rob have anything to do with Arc. Please choose someone from the ARC maintainers, if there is no specific device maintainer.
Documentation/devicetree/bindings/arc/pct.yaml line 21
Quoted 11 lines
Documentation/devicetree/bindings/arc/pct.yaml new file +9
-0+ +description: | + The ARC700 can be configured with a pipeline performance monitor for counting + CPU and cache events like cache misses and hits. Like conventional PCT there + are 100+ hardware conditions dynamically mapped to up to 32 counters + +properties: + compatible: + const: "snps,arc700-pct"
Drop quotes. I have doubts that you tested it.
Documentation/devicetree/bindings/arc/pct.yaml line 30
Quoted 9 lines
Documentation/devicetree/bindings/arc/pct.yaml new file +9
-0+ + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false
This must be additionalProperties instead. See example schema.
Documentation/devicetree/bindings/arc/pct.yaml line 35
Quoted 5 lines
Documentation/devicetree/bindings/arc/pct.yaml new file +5
-0+ +examples: + - | + pmu { + compatible = "snps,arc700-pct";
NAK, test your patches.
Quoted 1 line
Best regards,
Krzysztof