Skip to contentSkip to conversation

ARM: dts: imx27-eukrea-mbimxsd27: Fix ADS7846 interrupt

PATCH In review Fabio Estevam 2 participants 2 messages Dec 12, 2024

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 ARM: dts: imx27-eukrea-mbimxsd27: Fix ADS7846 interrupt

From: Fabio Estevam <[email protected]>

According to ti,ads7843.yaml the ADS7846 interrupt should be described via interrupt-parent and interrupts properties.

Do it accordingly to fix the following dt-schema warning:

ads7846@0: interrupts: [[9], [25], [8]] is too long

---
 arch/arm/boot/dts/nxp/imx/imx27-eukrea-mbimxsd27-baseboard.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/nxp/imx/imx27-eukrea-mbimxsd27-baseboard.dts +2 -1
index d78793601306..7ee1e8c3bb08 100644
@@ -76,7 +76,8 @@ ads7846@0 {
 		pinctrl-names = "default";
 		pinctrl-0 = <&pinctrl_touch>;
 		reg = <0>;
-		interrupts = <&gpio4 25 IRQ_TYPE_LEVEL_LOW>;
+		interrupt-parent = <&gpio4>;
+		interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
 		spi-cpol;
 		spi-max-frequency = <1500000>;
 		ti,keep-vref-on;
Signature · 1 line
2.34.1
#1 lore raw
Quoted 3 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

According to ti,ads7843.yaml the ADS7846 interrupt should be described

That's not true. Above binding does not tell it at all. Nothing about parent.

Quoted 5 lines

via interrupt-parent and interrupts properties.

Do it accordingly to fix the following dt-schema warning:

ads7846@0: interrupts: [[9], [25], [8]] is too long

Not entirely. Your reasons are just not correct. There is different error there - wrong interrupt specifier because you have some specific interrupt controller (GPIO). Author probably wanted interrupts extended.

Best regards,
Krzysztof