dt-bindings: interrupt-controller: Add arm,armv7m-nvic and fix #interrupt-cells
Subsystems (3)
Frank Li
maintainerPATCH 1/1 dt-bindings: interrupt-controller: Add arm,armv7m-nvic and fix #interrupt-cells
According to existed dts arch/arm/boot/dts/armv7-m.dtsi, compatible string should be arm,armv7m-nvic, #interrupt-cells is 1 and arm,num-irq-priority-bits is optional property.
Fix below CHECK_DTB warning:
arch/arm/boot/dts/nxp/vf/vf610m4-cosmic.dtb: /interrupt-controller@e000e100:
failed to match any schema with compatible: ['arm,armv7m-nvic']
--- .../devicetree/bindings/interrupt-controller/arm,nvic.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/interrupt-controller/arm,nvic.yaml +3 -3
@@ -17,6 +17,7 @@ description: properties: compatible: enum: + - arm,armv7m-nvic - arm,v6m-nvic - arm,v7m-nvic - arm,v8m-nvic
@@ -30,10 +31,10 @@ properties: interrupt-controller: true '#interrupt-cells': - const: 2 + const: 1 description: | Number of cells to encode an interrupt source: - first = interrupt number, second = priority. + first = interrupt number. arm,num-irq-priority-bits: description: Number of priority bits implemented by the SoC
@@ -45,7 +46,6 @@ required: - reg - interrupt-controller - '#interrupt-cells' - - arm,num-irq-priority-bits additionalProperties: false
Signature · 1 line
2.34.1
Rob Herring (Arm)
maintainerQuoted 6 lines · Frank Li
According to existed dts
arch/arm/boot/dts/armv7-m.dtsi, compatible string should be arm,armv7m-nvic, #interrupt-cells is 1 and arm,num-irq-priority-bits is optional property.Fix below
CHECK_DTBwarning:
Quoted 8 lines
arch/arm/boot/dts/nxp/vf/vf610m4-cosmic.dtb: /interrupt-controller@e000e100:
failed to match any schema with compatible: ['arm,armv7m-nvic']Signed-off-by Frank Li <[email protected]>--- .../devicetree/bindings/interrupt-controller/arm,nvic.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
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/interrupt-controller/arm,nvic.example.dtb: interrupt-controller@e000e100 (arm,v7m-nvic): #interrupt-cells: 1 was expected
from schema $id: http://devicetree.org/schemas/interrupt-controller/arm,nvic.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 · Frank Li
According to existed dts
arch/arm/boot/dts/armv7-m.dtsi, compatible string
and drivers... more important btw.
Quoted 18 lines
should be arm,armv7m-nvic, #interrupt-cells is 1 and arm,num-irq-priority-bits is optional property.
Fix below
CHECK_DTBwarning:
arch/arm/boot/dts/nxp/vf/vf610m4-cosmic.dtb: /interrupt-controller@e000e100:
failed to match any schema with compatible: ['arm,armv7m-nvic']Signed-off-by Frank Li <[email protected]>--- .../devicetree/bindings/interrupt-controller/arm,nvic.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)Documentation/devicetree/bindings/interrupt-controller/arm,nvic.yaml +0
-0
Documentation/devicetree/bindings/interrupt-controller/arm,nvic.yaml description: · line 22
Quoted 6 lines
Documentation/devicetree/bindings/interrupt-controller/arm,nvic.yaml +1
-0@@ -17,6 +17,7 @@ description: properties: compatible: enum: + - arm,armv7m-nvic - arm,v6m-nvic - arm,v7m-nvic
You need to drop (or deprecate if it is used) old compatible.
Best regards,
Krzysztof