* [PATCH v2 0/2] ath79 misc irq controller
@ 2015-09-09 9:16 Alexander Couzens
2015-09-09 9:16 ` [PATCH v2 1/2] MIPS: ath79: set missing irq ack handler for ar7100-misc-intc irq chip Alexander Couzens
2015-09-09 9:16 ` [PATCH v2 2/2] MIPS: ath79: add irq chip ar7240-misc-intc Alexander Couzens
0 siblings, 2 replies; 5+ messages in thread
From: Alexander Couzens @ 2015-09-09 9:16 UTC (permalink / raw)
To: linux-mips-6z/3iImG2C8G8FEW9MqTrA
Cc: Ralf Baechle, Alban Bedel, Rob Herring, Pawel Moll, Mark Rutland,
Ian Campbell, Kumar Gala, devicetree-u79uwXL29TY76Z2rM5mHXA,
Alexander Couzens
v3:
remove log line when setup ar7100 misc irq controller
doc: write out {ar7100,ar7240} into two seperate lines
v2:
move new IRQ_DECLARE just behind the new init for ar7100
don't remove newline
add log line when setup ar7100 misc irq controller
improve commit message for missing irq ack handler
Alexander Couzens (2):
MIPS: ath79: set missing irq ack handler for ar7100-misc-intc irq chip
MIPS: ath79: add irq chip ar7240-misc-intc
.../interrupt-controller/qca,ath79-misc-intc.txt | 20 ++++++++++++++++++--
arch/mips/ath79/irq.c | 22 ++++++++++++++++++++--
2 files changed, 38 insertions(+), 4 deletions(-)
--
2.4.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH v2 1/2] MIPS: ath79: set missing irq ack handler for ar7100-misc-intc irq chip 2015-09-09 9:16 [PATCH v2 0/2] ath79 misc irq controller Alexander Couzens @ 2015-09-09 9:16 ` Alexander Couzens [not found] ` <1441790178-9573-2-git-send-email-lynxis-qyMx1GtpvWw@public.gmane.org> 2015-09-09 9:16 ` [PATCH v2 2/2] MIPS: ath79: add irq chip ar7240-misc-intc Alexander Couzens 1 sibling, 1 reply; 5+ messages in thread From: Alexander Couzens @ 2015-09-09 9:16 UTC (permalink / raw) To: linux-mips Cc: Ralf Baechle, Alban Bedel, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree, Alexander Couzens The irq ack handler was forgotten while introducing OF support. Only ar71xx and ar933x based devices require it. Signed-off-by: Alexander Couzens <lynxis@fe80.eu> --- arch/mips/ath79/irq.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/mips/ath79/irq.c b/arch/mips/ath79/irq.c index afb0096..c9c0124 100644 --- a/arch/mips/ath79/irq.c +++ b/arch/mips/ath79/irq.c @@ -308,8 +308,16 @@ static int __init ath79_misc_intc_of_init( return 0; } -IRQCHIP_DECLARE(ath79_misc_intc, "qca,ar7100-misc-intc", - ath79_misc_intc_of_init); + +static int __init ar7100_misc_intc_of_init( + struct device_node *node, struct device_node *parent) +{ + ath79_misc_irq_chip.irq_mask_ack = ar71xx_misc_irq_mask; + return ath79_misc_intc_of_init(node, parent); +} + +IRQCHIP_DECLARE(ar7100_misc_intc, "qca,ar7100-misc-intc", + ar7100_misc_intc_of_init); static int __init ar79_cpu_intc_of_init( struct device_node *node, struct device_node *parent) -- 2.4.0 ^ permalink raw reply related [flat|nested] 5+ messages in thread
[parent not found: <1441790178-9573-2-git-send-email-lynxis-qyMx1GtpvWw@public.gmane.org>]
* Re: [PATCH v2 1/2] MIPS: ath79: set missing irq ack handler for ar7100-misc-intc irq chip [not found] ` <1441790178-9573-2-git-send-email-lynxis-qyMx1GtpvWw@public.gmane.org> @ 2015-09-09 13:53 ` Alban 0 siblings, 0 replies; 5+ messages in thread From: Alban @ 2015-09-09 13:53 UTC (permalink / raw) To: Alexander Couzens Cc: Alban, linux-mips-6z/3iImG2C8G8FEW9MqTrA, Ralf Baechle, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree-u79uwXL29TY76Z2rM5mHXA On Wed, 9 Sep 2015 11:16:17 +0200 Alexander Couzens <lynxis-qyMx1GtpvWw@public.gmane.org> wrote: > The irq ack handler was forgotten while introducing OF support. > Only ar71xx and ar933x based devices require it. > > Signed-off-by: Alexander Couzens <lynxis-qyMx1GtpvWw@public.gmane.org> > --- > arch/mips/ath79/irq.c | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) > > diff --git a/arch/mips/ath79/irq.c b/arch/mips/ath79/irq.c > index afb0096..c9c0124 100644 > --- a/arch/mips/ath79/irq.c > +++ b/arch/mips/ath79/irq.c > @@ -308,8 +308,16 @@ static int __init ath79_misc_intc_of_init( > > return 0; > } > -IRQCHIP_DECLARE(ath79_misc_intc, "qca,ar7100-misc-intc", > - ath79_misc_intc_of_init); > + > +static int __init ar7100_misc_intc_of_init( > + struct device_node *node, struct device_node *parent) > +{ > + ath79_misc_irq_chip.irq_mask_ack = ar71xx_misc_irq_mask; > + return ath79_misc_intc_of_init(node, parent); > +} > + > +IRQCHIP_DECLARE(ar7100_misc_intc, "qca,ar7100-misc-intc", > + ar7100_misc_intc_of_init); > > static int __init ar79_cpu_intc_of_init( > struct device_node *node, struct device_node *parent) Acked-by: Alban Bedel <albeu-GANU6spQydw@public.gmane.org> -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 2/2] MIPS: ath79: add irq chip ar7240-misc-intc 2015-09-09 9:16 [PATCH v2 0/2] ath79 misc irq controller Alexander Couzens 2015-09-09 9:16 ` [PATCH v2 1/2] MIPS: ath79: set missing irq ack handler for ar7100-misc-intc irq chip Alexander Couzens @ 2015-09-09 9:16 ` Alexander Couzens [not found] ` <1441790178-9573-3-git-send-email-lynxis-qyMx1GtpvWw@public.gmane.org> 1 sibling, 1 reply; 5+ messages in thread From: Alexander Couzens @ 2015-09-09 9:16 UTC (permalink / raw) To: linux-mips Cc: Ralf Baechle, Alban Bedel, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree, Alexander Couzens The ar7240 misc irq chip use ack handler instead of ack_mask handler. All new ath79 chips use the ar7240 misc irq chip Signed-off-by: Alexander Couzens <lynxis@fe80.eu> --- .../interrupt-controller/qca,ath79-misc-intc.txt | 20 ++++++++++++++++++-- arch/mips/ath79/irq.c | 10 ++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/qca,ath79-misc-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/qca,ath79-misc-intc.txt index 391717a..ec96b1f 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/qca,ath79-misc-intc.txt +++ b/Documentation/devicetree/bindings/interrupt-controller/qca,ath79-misc-intc.txt @@ -4,8 +4,8 @@ The MISC interrupt controller is a secondary controller for lower priority interrupt. Required Properties: -- compatible: has to be "qca,<soctype>-cpu-intc", "qca,ar7100-misc-intc" - as fallback +- compatible: has to be "qca,<soctype>-cpu-intc", "qca,ar7100-misc-intc" or + "qca,<soctype>-cpu-intc", "qca,ar7240-misc-intc" - reg: Base address and size of the controllers memory area - interrupt-parent: phandle of the parent interrupt controller. - interrupts: Interrupt specifier for the controllers interrupt. @@ -13,6 +13,9 @@ Required Properties: - #interrupt-cells : Specifies the number of cells needed to encode interrupt source, should be 1 +Compatible fallback depends on the SoC. Use ar7100 for ar71xx and ar913x, +use ar7240 for all other SoCs. + Please refer to interrupts.txt in this directory for details of the common Interrupt Controllers bindings used by client devices. @@ -28,3 +31,16 @@ Example: interrupt-controller; #interrupt-cells = <1>; }; + +Another example: + + interrupt-controller@18060010 { + compatible = "qca,ar9331-misc-intc", qca,ar7240-misc-intc"; + reg = <0x18060010 0x4>; + + interrupt-parent = <&cpuintc>; + interrupts = <6>; + + interrupt-controller; + #interrupt-cells = <1>; + }; diff --git a/arch/mips/ath79/irq.c b/arch/mips/ath79/irq.c index c9c0124..fd58f8b 100644 --- a/arch/mips/ath79/irq.c +++ b/arch/mips/ath79/irq.c @@ -319,6 +319,16 @@ static int __init ar7100_misc_intc_of_init( IRQCHIP_DECLARE(ar7100_misc_intc, "qca,ar7100-misc-intc", ar7100_misc_intc_of_init); +static int __init ar7240_misc_intc_of_init( + struct device_node *node, struct device_node *parent) +{ + ath79_misc_irq_chip.irq_ack = ar724x_misc_irq_ack; + return ath79_misc_intc_of_init(node, parent); +} + +IRQCHIP_DECLARE(ar7240_misc_intc, "qca,ar7240-misc-intc", + ar7240_misc_intc_of_init); + static int __init ar79_cpu_intc_of_init( struct device_node *node, struct device_node *parent) { -- 2.4.0 ^ permalink raw reply related [flat|nested] 5+ messages in thread
[parent not found: <1441790178-9573-3-git-send-email-lynxis-qyMx1GtpvWw@public.gmane.org>]
* Re: [PATCH v2 2/2] MIPS: ath79: add irq chip ar7240-misc-intc [not found] ` <1441790178-9573-3-git-send-email-lynxis-qyMx1GtpvWw@public.gmane.org> @ 2015-09-09 13:54 ` Alban 0 siblings, 0 replies; 5+ messages in thread From: Alban @ 2015-09-09 13:54 UTC (permalink / raw) To: Alexander Couzens Cc: Alban, linux-mips-6z/3iImG2C8G8FEW9MqTrA, Ralf Baechle, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree-u79uwXL29TY76Z2rM5mHXA On Wed, 9 Sep 2015 11:16:18 +0200 Alexander Couzens <lynxis-qyMx1GtpvWw@public.gmane.org> wrote: > The ar7240 misc irq chip use ack handler > instead of ack_mask handler. All new ath79 chips use > the ar7240 misc irq chip > > Signed-off-by: Alexander Couzens <lynxis-qyMx1GtpvWw@public.gmane.org> > --- > .../interrupt-controller/qca,ath79-misc-intc.txt | 20 ++++++++++++++++++-- > arch/mips/ath79/irq.c | 10 ++++++++++ > 2 files changed, 28 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/qca,ath79-misc-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/qca,ath79-misc-intc.txt > index 391717a..ec96b1f 100644 > --- a/Documentation/devicetree/bindings/interrupt-controller/qca,ath79-misc-intc.txt > +++ b/Documentation/devicetree/bindings/interrupt-controller/qca,ath79-misc-intc.txt > @@ -4,8 +4,8 @@ The MISC interrupt controller is a secondary controller for lower priority > interrupt. > > Required Properties: > -- compatible: has to be "qca,<soctype>-cpu-intc", "qca,ar7100-misc-intc" > - as fallback > +- compatible: has to be "qca,<soctype>-cpu-intc", "qca,ar7100-misc-intc" or > + "qca,<soctype>-cpu-intc", "qca,ar7240-misc-intc" > - reg: Base address and size of the controllers memory area > - interrupt-parent: phandle of the parent interrupt controller. > - interrupts: Interrupt specifier for the controllers interrupt. > @@ -13,6 +13,9 @@ Required Properties: > - #interrupt-cells : Specifies the number of cells needed to encode interrupt > source, should be 1 > > +Compatible fallback depends on the SoC. Use ar7100 for ar71xx and ar913x, > +use ar7240 for all other SoCs. > + > Please refer to interrupts.txt in this directory for details of the common > Interrupt Controllers bindings used by client devices. > > @@ -28,3 +31,16 @@ Example: > interrupt-controller; > #interrupt-cells = <1>; > }; > + > +Another example: > + > + interrupt-controller@18060010 { > + compatible = "qca,ar9331-misc-intc", qca,ar7240-misc-intc"; > + reg = <0x18060010 0x4>; > + > + interrupt-parent = <&cpuintc>; > + interrupts = <6>; > + > + interrupt-controller; > + #interrupt-cells = <1>; > + }; > diff --git a/arch/mips/ath79/irq.c b/arch/mips/ath79/irq.c > index c9c0124..fd58f8b 100644 > --- a/arch/mips/ath79/irq.c > +++ b/arch/mips/ath79/irq.c > @@ -319,6 +319,16 @@ static int __init ar7100_misc_intc_of_init( > IRQCHIP_DECLARE(ar7100_misc_intc, "qca,ar7100-misc-intc", > ar7100_misc_intc_of_init); > > +static int __init ar7240_misc_intc_of_init( > + struct device_node *node, struct device_node *parent) > +{ > + ath79_misc_irq_chip.irq_ack = ar724x_misc_irq_ack; > + return ath79_misc_intc_of_init(node, parent); > +} > + > +IRQCHIP_DECLARE(ar7240_misc_intc, "qca,ar7240-misc-intc", > + ar7240_misc_intc_of_init); > + > static int __init ar79_cpu_intc_of_init( > struct device_node *node, struct device_node *parent) > { Acked-by: Alban Bedel <albeu-GANU6spQydw@public.gmane.org> -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-09-09 13:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-09 9:16 [PATCH v2 0/2] ath79 misc irq controller Alexander Couzens
2015-09-09 9:16 ` [PATCH v2 1/2] MIPS: ath79: set missing irq ack handler for ar7100-misc-intc irq chip Alexander Couzens
[not found] ` <1441790178-9573-2-git-send-email-lynxis-qyMx1GtpvWw@public.gmane.org>
2015-09-09 13:53 ` Alban
2015-09-09 9:16 ` [PATCH v2 2/2] MIPS: ath79: add irq chip ar7240-misc-intc Alexander Couzens
[not found] ` <1441790178-9573-3-git-send-email-lynxis-qyMx1GtpvWw@public.gmane.org>
2015-09-09 13:54 ` Alban
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).