* [PATCH 1/2] ARM: dts: imx5: Fix the CCM interrupts description
@ 2025-01-12 12:29 Fabio Estevam
2025-01-12 12:29 ` [PATCH 2/2] dt-bindings: clock: " Fabio Estevam
2025-01-13 15:26 ` [PATCH 1/2] ARM: dts: " Rob Herring (Arm)
0 siblings, 2 replies; 4+ messages in thread
From: Fabio Estevam @ 2025-01-12 12:29 UTC (permalink / raw)
To: shawnguo
Cc: robh, krzk+dt, conor+dt, kernel, devicetree, imx,
linux-arm-kernel, Fabio Estevam
From: Fabio Estevam <festevam@denx.de>
On the i.MX5 chips the peripheral interrupts are represented directly only
by their interrupt numbers.
The CCM nodes are not following this format and cause the following
dt-schema warnings:
ccm@73fd4000: interrupts: [[0], [71], [4], [0], [72], [4]] is too long
Fix it by passing only the two interrupt numbers.
Run-time tested in on an imx53-qsb board.
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
arch/arm/boot/dts/nxp/imx/imx50.dtsi | 2 +-
arch/arm/boot/dts/nxp/imx/imx51.dtsi | 2 +-
arch/arm/boot/dts/nxp/imx/imx53.dtsi | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boot/dts/nxp/imx/imx50.dtsi b/arch/arm/boot/dts/nxp/imx/imx50.dtsi
index 1b6f444443dd..f0b12a70f614 100644
--- a/arch/arm/boot/dts/nxp/imx/imx50.dtsi
+++ b/arch/arm/boot/dts/nxp/imx/imx50.dtsi
@@ -338,7 +338,7 @@ src: reset-controller@53fd0000 {
clks: ccm@53fd4000 {
compatible = "fsl,imx50-ccm";
reg = <0x53fd4000 0x4000>;
- interrupts = <0 71 0x04 0 72 0x04>;
+ interrupts = <71 72>;
#clock-cells = <1>;
};
diff --git a/arch/arm/boot/dts/nxp/imx/imx51.dtsi b/arch/arm/boot/dts/nxp/imx/imx51.dtsi
index cc88da4d7785..2bfb6baa67fc 100644
--- a/arch/arm/boot/dts/nxp/imx/imx51.dtsi
+++ b/arch/arm/boot/dts/nxp/imx/imx51.dtsi
@@ -458,7 +458,7 @@ src: reset-controller@73fd0000 {
clks: ccm@73fd4000 {
compatible = "fsl,imx51-ccm";
reg = <0x73fd4000 0x4000>;
- interrupts = <0 71 0x04 0 72 0x04>;
+ interrupts = <71 72>;
#clock-cells = <1>;
};
};
diff --git a/arch/arm/boot/dts/nxp/imx/imx53.dtsi b/arch/arm/boot/dts/nxp/imx/imx53.dtsi
index 845e2bf8460a..b7147cc7a316 100644
--- a/arch/arm/boot/dts/nxp/imx/imx53.dtsi
+++ b/arch/arm/boot/dts/nxp/imx/imx53.dtsi
@@ -598,7 +598,7 @@ src: reset-controller@53fd0000 {
clks: ccm@53fd4000 {
compatible = "fsl,imx53-ccm";
reg = <0x53fd4000 0x4000>;
- interrupts = <0 71 0x04 0 72 0x04>;
+ interrupts = <71 72>;
#clock-cells = <1>;
};
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH 2/2] dt-bindings: clock: imx5: Fix the CCM interrupts description
2025-01-12 12:29 [PATCH 1/2] ARM: dts: imx5: Fix the CCM interrupts description Fabio Estevam
@ 2025-01-12 12:29 ` Fabio Estevam
2025-01-12 13:36 ` Rob Herring (Arm)
2025-01-13 15:26 ` [PATCH 1/2] ARM: dts: " Rob Herring (Arm)
1 sibling, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2025-01-12 12:29 UTC (permalink / raw)
To: shawnguo
Cc: robh, krzk+dt, conor+dt, kernel, devicetree, imx,
linux-arm-kernel, Fabio Estevam
From: Fabio Estevam <festevam@denx.de>
On the i.MX5 chips the peripheral interrupts are represented directly only
by their interrupt numbers.
Make the CCM nodes to follow this format.
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
Documentation/devicetree/bindings/clock/imx5-clock.yaml | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/clock/imx5-clock.yaml b/Documentation/devicetree/bindings/clock/imx5-clock.yaml
index 423c0142c1d3..ad03c0a13e64 100644
--- a/Documentation/devicetree/bindings/clock/imx5-clock.yaml
+++ b/Documentation/devicetree/bindings/clock/imx5-clock.yaml
@@ -46,13 +46,11 @@ additionalProperties: false
examples:
- |
#include <dt-bindings/clock/imx5-clock.h>
- #include <dt-bindings/interrupt-controller/arm-gic.h>
clock-controller@53fd4000{
compatible = "fsl,imx53-ccm";
reg = <0x53fd4000 0x4000>;
- interrupts = <0 71 IRQ_TYPE_LEVEL_HIGH>,
- <0 72 IRQ_TYPE_LEVEL_HIGH>;
+ interrupts = <71 72>;
#clock-cells = <1>;
};
...
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 2/2] dt-bindings: clock: imx5: Fix the CCM interrupts description
2025-01-12 12:29 ` [PATCH 2/2] dt-bindings: clock: " Fabio Estevam
@ 2025-01-12 13:36 ` Rob Herring (Arm)
0 siblings, 0 replies; 4+ messages in thread
From: Rob Herring (Arm) @ 2025-01-12 13:36 UTC (permalink / raw)
To: Fabio Estevam
Cc: krzk+dt, devicetree, conor+dt, shawnguo, imx, linux-arm-kernel,
Fabio Estevam, kernel
On Sun, 12 Jan 2025 09:29:39 -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> On the i.MX5 chips the peripheral interrupts are represented directly only
> by their interrupt numbers.
>
> Make the CCM nodes to follow this format.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
> Documentation/devicetree/bindings/clock/imx5-clock.yaml | 4 +---
> 1 file changed, 1 insertion(+), 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/clock/imx5-clock.example.dtb: clock-controller@53fd4000: interrupts: [[71, 72]] is too short
from schema $id: http://devicetree.org/schemas/clock/imx5-clock.yaml#
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20250112122939.988309-2-festevam@gmail.com
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] ARM: dts: imx5: Fix the CCM interrupts description
2025-01-12 12:29 [PATCH 1/2] ARM: dts: imx5: Fix the CCM interrupts description Fabio Estevam
2025-01-12 12:29 ` [PATCH 2/2] dt-bindings: clock: " Fabio Estevam
@ 2025-01-13 15:26 ` Rob Herring (Arm)
1 sibling, 0 replies; 4+ messages in thread
From: Rob Herring (Arm) @ 2025-01-13 15:26 UTC (permalink / raw)
To: Fabio Estevam
Cc: krzk+dt, devicetree, imx, shawnguo, kernel, linux-arm-kernel,
conor+dt, Fabio Estevam
On Sun, 12 Jan 2025 09:29:38 -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> On the i.MX5 chips the peripheral interrupts are represented directly only
> by their interrupt numbers.
>
> The CCM nodes are not following this format and cause the following
> dt-schema warnings:
>
> ccm@73fd4000: interrupts: [[0], [71], [4], [0], [72], [4]] is too long
>
> Fix it by passing only the two interrupt numbers.
>
> Run-time tested in on an imx53-qsb board.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
> arch/arm/boot/dts/nxp/imx/imx50.dtsi | 2 +-
> arch/arm/boot/dts/nxp/imx/imx51.dtsi | 2 +-
> arch/arm/boot/dts/nxp/imx/imx53.dtsi | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
My bot found new DTB warnings on the .dts files added or changed in this
series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:
pip3 install dtschema --upgrade
New warnings running 'make CHECK_DTBS=y for arch/arm/boot/dts/nxp/' for 20250112122939.988309-1-festevam@gmail.com:
arch/arm/boot/dts/nxp/vf/vf610-zii-cfu1.dtb: /soc/bus@40000000/iomuxc@40048000: failed to match any schema with compatible: ['fsl,vf610-iomuxc']
arch/arm/boot/dts/nxp/ls/ls1021a-tsn.dtb: /soc/ethernet@2d90000: failed to match any schema with compatible: ['fsl,etsec2']
arch/arm/boot/dts/nxp/ls/ls1021a-qds.dtb: /soc/mdio@2d24000: failed to match any schema with compatible: ['gianfar']
arch/arm/boot/dts/nxp/ls/ls1021a-qds.dtb: /soc/ethernet@2d10000: failed to match any schema with compatible: ['fsl,etsec2']
arch/arm/boot/dts/nxp/imx/imx6qp-yapp4-pegasus-plus.dtb: /soc/bus@2100000/vdoa@21e4000: failed to match any schema with compatible: ['fsl,imx6q-vdoa']
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-01-13 15:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-12 12:29 [PATCH 1/2] ARM: dts: imx5: Fix the CCM interrupts description Fabio Estevam
2025-01-12 12:29 ` [PATCH 2/2] dt-bindings: clock: " Fabio Estevam
2025-01-12 13:36 ` Rob Herring (Arm)
2025-01-13 15:26 ` [PATCH 1/2] ARM: dts: " Rob Herring (Arm)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.