ARM: dts: am437x boards: Correct tps65218 irq type
cover ARM: dts: am437x boards: Correct tps65218 irq type
Hi,
In linux-next I started to see: https://pastebin.com/wrDdptzh
[ 2.813985] ------------[ cut here ]------------ [ 2.818746] WARNING: CPU: 0 PID: 19 at /home/ujfalusi/work/kernel/github.omap-audio.linux-audio/drivers/irqchip/irq-gic.c:1016 gic_irq_domain_translate+0xd4/0xec [ 2.833311] Modules linked in: [ 2.836417] CPU: 0 PID: 19 Comm: kworker/0:2 Not tainted 4.17.0-rc1-next-20180420-00057-gffd03ee19b9b #182 [ 2.846113] Hardware name: Generic AM43 (Flattened Device Tree) [ 2.852073] Workqueue: events deferred_probe_work_func
...
Becasue most of the am437x boards had IRQ_TYPE_NONE for tps65218.
According to the datasheet [1] the interrult line is low active, so fix up the board DTS files.
Interestingly the am437x-sk-evm had IRQ_TYPE_LEVEL_HIGH, which is not matching with the datasheet.
[1] http://www.ti.com/lit/ds/symlink/tps65218.pdf, page 8.
Regards,
Peter
---
Peter Ujfalusi (4):
ARM: dts: am437x-gp-evm: Correct tps65218 irq type
ARM: dts: am437x-cm-t43: Correct tps65218 irq type
ARM: dts: am437x-epos-evm: Correct tps65218 irq type
ARM: dts: am437x-sk-evm: Correct tps65218 irq type
arch/arm/boot/dts/am437x-cm-t43.dts | 2 +- arch/arm/boot/dts/am437x-gp-evm.dts | 2 +- arch/arm/boot/dts/am437x-sk-evm.dts | 2 +- arch/arm/boot/dts/am43x-epos-evm.dts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
Signature · 4 lines
Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
PATCH 1/4 ARM: dts: am437x-gp-evm: Correct tps65218 irq type
According to the documentation the interrupt line is active low.
The patch will silence the warning from gic_irq_domain_translate():
"Make it clear that broken DTs are... broken"
--- arch/arm/boot/dts/am437x-gp-evm.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/am437x-gp-evm.dts +1 -1
@@ -543,7 +543,7 @@ tps65218: tps65218@24 { reg = <0x24>; compatible = "ti,tps65218"; - interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* NMIn */ + interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_LOW>; /* NMIn */ interrupt-controller; #interrupt-cells = <2>;
Signature · 4 lines
Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
PATCH 2/4 ARM: dts: am437x-cm-t43: Correct tps65218 irq type
In reply to Peter UjfalusiAccording to the documentation the interrupt line is active low.
The patch will silence the warning from gic_irq_domain_translate():
"Make it clear that broken DTs are... broken"
--- arch/arm/boot/dts/am437x-cm-t43.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/am437x-cm-t43.dts +1 -1
@@ -203,7 +203,7 @@ tps65218: tps65218@24 { compatible = "ti,tps65218"; reg = <0x24>; - interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* NMIn */ + interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_LOW>; /* NMIn */ interrupt-parent = <&gic>; interrupt-controller; #interrupt-cells = <2>;
Signature · 4 lines
Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
PATCH 3/4 ARM: dts: am437x-epos-evm: Correct tps65218 irq type
In reply to Peter UjfalusiAccording to the documentation the interrupt line is active low.
The patch will silence the warning from gic_irq_domain_translate():
"Make it clear that broken DTs are... broken"
--- arch/arm/boot/dts/am43x-epos-evm.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/am43x-epos-evm.dts +1 -1
@@ -595,7 +595,7 @@ tps65218: tps65218@24 { reg = <0x24>; compatible = "ti,tps65218"; - interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* NMIn */ + interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_LOW>; /* NMIn */ interrupt-controller; #interrupt-cells = <2>;
Signature · 4 lines
Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
PATCH 4/4 ARM: dts: am437x-sk-evm: Correct tps65218 irq type
In reply to Peter UjfalusiAccording to the documentation the interrupt line is active low.
The patch will silence the warning from gic_irq_domain_translate():
"Make it clear that broken DTs are... broken"
--- arch/arm/boot/dts/am437x-sk-evm.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/am437x-sk-evm.dts +1 -1
@@ -429,7 +429,7 @@ tps@24 { compatible = "ti,tps65218"; reg = <0x24>; - interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; + interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_LOW>; interrupt-controller; #interrupt-cells = <2>;
Signature · 4 lines
Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Quoted 13 lines · Peter Ujfalusi
Hi,
In linux-next I started to see: https://pastebin.com/wrDdptzh
[ 2.813985] ------------[ cut here ]------------ [ 2.818746] WARNING: CPU: 0 PID: 19 at /home/ujfalusi/work/kernel/github.omap-audio.linux-audio/drivers/irqchip/irq-gic.c:1016 gic_irq_domain_translate+0xd4/0xec [ 2.833311] Modules linked in: [ 2.836417] CPU: 0 PID: 19 Comm: kworker/0:2 Not tainted 4.17.0-rc1-next-20180420-00057-gffd03ee19b9b #182 [ 2.846113] Hardware name: Generic AM43 (Flattened Device Tree) [ 2.852073] Workqueue: events deferred_probe_work_func...
Becasue most of the am437x boards had
IRQ_TYPE_NONEfor tps65218.
Quoted 7 lines
According to the datasheet [1] the interrult line is low active, so fix up the board DTS files.
Interestingly the am437x-sk-evm had
IRQ_TYPE_LEVEL_HIGH, which is not matching with the datasheet.[1] http://www.ti.com/lit/ds/symlink/tps65218.pdf, page 8.
For the series:
Also Boot tested on AM437X-GP-EVM with the patch 1 of the series and i do not see the error above.
Quoted 16 lines
Regards,
Peter
---
Peter Ujfalusi (4):
ARM: dts: am437x-gp-evm: Correct tps65218 irq type
ARM: dts: am437x-cm-t43: Correct tps65218 irq type
ARM: dts: am437x-epos-evm: Correct tps65218 irq type
ARM: dts: am437x-sk-evm: Correct tps65218 irq typearch/arm/boot/dts/am437x-cm-t43.dts | 2 +- arch/arm/boot/dts/am437x-gp-evm.dts | 2 +- arch/arm/boot/dts/am437x-sk-evm.dts | 2 +- arch/arm/boot/dts/am43x-epos-evm.dts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
Quoted 22 lines · Keerthy
Quoted 19 lines · Peter Ujfalusi
Hi,
In linux-next I started to see: https://pastebin.com/wrDdptzh
[ 2.813985] ------------[ cut here ]------------ [ 2.818746] WARNING: CPU: 0 PID: 19 at /home/ujfalusi/work/kernel/github.omap-audio.linux-audio/drivers/irqchip/irq-gic.c:1016 gic_irq_domain_translate+0xd4/0xec [ 2.833311] Modules linked in: [ 2.836417] CPU: 0 PID: 19 Comm: kworker/0:2 Not tainted 4.17.0-rc1-next-20180420-00057-gffd03ee19b9b #182 [ 2.846113] Hardware name: Generic AM43 (Flattened Device Tree) [ 2.852073] Workqueue: events deferred_probe_work_func...
Becasue most of the am437x boards had
IRQ_TYPE_NONEfor tps65218.According to the datasheet [1] the interrult line is low active, so fix up the board DTS files.
Interestingly the am437x-sk-evm had
IRQ_TYPE_LEVEL_HIGH, which is not matching with the datasheet.
Quoted 8 lines
Quoted 1 line
[1] http://www.ti.com/lit/ds/symlink/tps65218.pdf, page 8.
For the series:
Reviewed-by Keerthy <[email protected]>Also Boot tested on AM437X-GP-EVM with the patch 1 of the series and i do not see the error above.
Thanks applying all into omap-for-v4.18/dt.
Tony