* [PATCH 0/2] irqchip/meson-gpio: Add support for Meson-G12A SoC @ 2018-12-03 6:13 Xingyu Chen 2018-12-03 6:13 ` [PATCH 1/2] dt-bindings: interrupt-controller: New binding " Xingyu Chen 2018-12-03 6:13 ` [PATCH 2/2] irqchip/meson-gpio: Add support " Xingyu Chen 0 siblings, 2 replies; 8+ messages in thread From: Xingyu Chen @ 2018-12-03 6:13 UTC (permalink / raw) To: Marc Zyngier, Jason Cooper, Thomas Gleixner, Kevin Hilman Cc: Rob Herring, Jianxin Pan, devicetree, linux-kernel, linux-arm-kernel, Carlo Caione, linux-amlogic, Jerome Brunet, Xingyu Chen, Heiner Kallweit This series try to add GPIO interrupt controller support for Meson-G12A SoCs. Although the total number of pins is the same as the Meson-AXG SoC, the gpio banks and irq numbers are different. To avoid confusion on use, i think the new compatible string is needed. Xingyu Chen (2): dt-bindings: interrupt-controller: New binding for Meson-G12A SoC irqchip/meson-gpio: Add support for Meson-G12A SoC .../interrupt-controller/amlogic,meson-gpio-intc.txt | 1 + drivers/irqchip/irq-meson-gpio.c | 5 +++++ 2 files changed, 6 insertions(+) -- 2.19.2 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] dt-bindings: interrupt-controller: New binding for Meson-G12A SoC 2018-12-03 6:13 [PATCH 0/2] irqchip/meson-gpio: Add support for Meson-G12A SoC Xingyu Chen @ 2018-12-03 6:13 ` Xingyu Chen 2018-12-19 14:21 ` Rob Herring 2018-12-03 6:13 ` [PATCH 2/2] irqchip/meson-gpio: Add support " Xingyu Chen 1 sibling, 1 reply; 8+ messages in thread From: Xingyu Chen @ 2018-12-03 6:13 UTC (permalink / raw) To: Marc Zyngier, Jason Cooper, Thomas Gleixner, Kevin Hilman Cc: Rob Herring, Jianxin Pan, devicetree, linux-kernel, linux-arm-kernel, Carlo Caione, linux-amlogic, Jerome Brunet, Xingyu Chen, Heiner Kallweit Update the dt-binding document to support new compatible string for the GPIO interrupt controller which found in Amlogic's Meson-G12A SoC. Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com> Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com> --- .../bindings/interrupt-controller/amlogic,meson-gpio-intc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt index 1502a51548bb..7d531d5fff29 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt +++ b/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt @@ -15,6 +15,7 @@ Required properties: "amlogic,meson-gxbb-gpio-intc" for GXBB SoCs (S905) or "amlogic,meson-gxl-gpio-intc" for GXL SoCs (S905X, S912) "amlogic,meson-axg-gpio-intc" for AXG SoCs (A113D, A113X) + "amlogic,meson-g12a-gpio-intc" for G12A SoCs (S905D2, S905X2, S905Y2) - reg : Specifies base physical address and size of the registers. - interrupt-controller : Identifies the node as an interrupt controller. - #interrupt-cells : Specifies the number of cells needed to encode an -- 2.19.2 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] dt-bindings: interrupt-controller: New binding for Meson-G12A SoC 2018-12-03 6:13 ` [PATCH 1/2] dt-bindings: interrupt-controller: New binding " Xingyu Chen @ 2018-12-19 14:21 ` Rob Herring 0 siblings, 0 replies; 8+ messages in thread From: Rob Herring @ 2018-12-19 14:21 UTC (permalink / raw) To: Xingyu Chen Cc: devicetree, Jason Cooper, Jianxin Pan, Marc Zyngier, Kevin Hilman, linux-kernel, linux-arm-kernel, Carlo Caione, linux-amlogic, Thomas Gleixner, Heiner Kallweit, Xingyu Chen, Jerome Brunet On Mon, 3 Dec 2018 14:13:23 +0800, Xingyu Chen wrote: > Update the dt-binding document to support new compatible string for the > GPIO interrupt controller which found in Amlogic's Meson-G12A SoC. > > Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com> > Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com> > --- > .../bindings/interrupt-controller/amlogic,meson-gpio-intc.txt | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Rob Herring <robh@kernel.org> _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] irqchip/meson-gpio: Add support for Meson-G12A SoC 2018-12-03 6:13 [PATCH 0/2] irqchip/meson-gpio: Add support for Meson-G12A SoC Xingyu Chen 2018-12-03 6:13 ` [PATCH 1/2] dt-bindings: interrupt-controller: New binding " Xingyu Chen @ 2018-12-03 6:13 ` Xingyu Chen 2018-12-03 9:19 ` Jerome Brunet 1 sibling, 1 reply; 8+ messages in thread From: Xingyu Chen @ 2018-12-03 6:13 UTC (permalink / raw) To: Marc Zyngier, Jason Cooper, Thomas Gleixner, Kevin Hilman Cc: Rob Herring, Jianxin Pan, linux-kernel, linux-arm-kernel, Carlo Caione, linux-amlogic, Jerome Brunet, Xingyu Chen, Heiner Kallweit The Meson-G12A SoC uses the same GPIO interrupt controller IP block as the other Meson SoCs, A totle of 100 pins can be spied on, which is the sum of: - 223:100 undefined (no interrupt) - 99:97 3 pins on bank GPIOE - 96:77 20 pins on bank GPIOX - 76:61 16 pins on bank GPIOA - 60:53 8 pins on bank GPIOC - 52:37 16 pins on bank BOOT - 36:28 9 pins on bank GPIOH - 27:12 16 pins on bank GPIOZ - 11:0 12 pins in the AO domain Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com> Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com> --- drivers/irqchip/irq-meson-gpio.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c index 7b531fd075b8..971e8dea069a 100644 --- a/drivers/irqchip/irq-meson-gpio.c +++ b/drivers/irqchip/irq-meson-gpio.c @@ -67,12 +67,17 @@ static const struct meson_gpio_irq_params axg_params = { .nr_hwirq = 100, }; +static const struct meson_gpio_irq_params g12a_params = { + .nr_hwirq = 100, +}; + static const struct of_device_id meson_irq_gpio_matches[] = { { .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params }, { .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params }, { .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params }, { .compatible = "amlogic,meson-gxl-gpio-intc", .data = &gxl_params }, { .compatible = "amlogic,meson-axg-gpio-intc", .data = &axg_params }, + { .compatible = "amlogic,meson-g12a-gpio-intc", .data = &g12a_params }, { } }; -- 2.19.2 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] irqchip/meson-gpio: Add support for Meson-G12A SoC 2018-12-03 6:13 ` [PATCH 2/2] irqchip/meson-gpio: Add support " Xingyu Chen @ 2018-12-03 9:19 ` Jerome Brunet 2018-12-03 9:28 ` Xingyu Chen 0 siblings, 1 reply; 8+ messages in thread From: Jerome Brunet @ 2018-12-03 9:19 UTC (permalink / raw) To: Xingyu Chen, Marc Zyngier, Jason Cooper, Thomas Gleixner, Kevin Hilman Cc: Rob Herring, Jianxin Pan, linux-kernel, Carlo Caione, linux-amlogic, linux-arm-kernel, Heiner Kallweit On Mon, 2018-12-03 at 14:13 +0800, Xingyu Chen wrote: > The Meson-G12A SoC uses the same GPIO interrupt controller IP block as the > other Meson SoCs, A totle of 100 pins can be spied on, which is the sum of: > > - 223:100 undefined (no interrupt) > - 99:97 3 pins on bank GPIOE > - 96:77 20 pins on bank GPIOX > - 76:61 16 pins on bank GPIOA > - 60:53 8 pins on bank GPIOC > - 52:37 16 pins on bank BOOT > - 36:28 9 pins on bank GPIOH > - 27:12 16 pins on bank GPIOZ > - 11:0 12 pins in the AO domain > > Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com> > Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com> > --- > drivers/irqchip/irq-meson-gpio.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson- > gpio.c > index 7b531fd075b8..971e8dea069a 100644 > --- a/drivers/irqchip/irq-meson-gpio.c > +++ b/drivers/irqchip/irq-meson-gpio.c > @@ -67,12 +67,17 @@ static const struct meson_gpio_irq_params axg_params = { > .nr_hwirq = 100, > }; > > +static const struct meson_gpio_irq_params g12a_params = { > + .nr_hwirq = 100, > +}; > + Same comment as on i2c, the g12 seems compatible with the axg. Is this patchset patchset really necessary ? > static const struct of_device_id meson_irq_gpio_matches[] = { > { .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params }, > { .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params > }, > { .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params > }, > { .compatible = "amlogic,meson-gxl-gpio-intc", .data = &gxl_params }, > { .compatible = "amlogic,meson-axg-gpio-intc", .data = &axg_params }, > + { .compatible = "amlogic,meson-g12a-gpio-intc", .data = &g12a_params > }, > { } > }; > _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] irqchip/meson-gpio: Add support for Meson-G12A SoC 2018-12-03 9:19 ` Jerome Brunet @ 2018-12-03 9:28 ` Xingyu Chen 2018-12-03 10:06 ` Neil Armstrong 0 siblings, 1 reply; 8+ messages in thread From: Xingyu Chen @ 2018-12-03 9:28 UTC (permalink / raw) To: Jerome Brunet, Marc Zyngier, Jason Cooper, Thomas Gleixner, Kevin Hilman Cc: Rob Herring, Jianxin Pan, linux-kernel, Carlo Caione, linux-amlogic, linux-arm-kernel, Heiner Kallweit On 2018/12/3 17:19, Jerome Brunet wrote: > On Mon, 2018-12-03 at 14:13 +0800, Xingyu Chen wrote: >> The Meson-G12A SoC uses the same GPIO interrupt controller IP block as the >> other Meson SoCs, A totle of 100 pins can be spied on, which is the sum of: >> >> - 223:100 undefined (no interrupt) >> - 99:97 3 pins on bank GPIOE >> - 96:77 20 pins on bank GPIOX >> - 76:61 16 pins on bank GPIOA >> - 60:53 8 pins on bank GPIOC >> - 52:37 16 pins on bank BOOT >> - 36:28 9 pins on bank GPIOH >> - 27:12 16 pins on bank GPIOZ >> - 11:0 12 pins in the AO domain >> >> Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com> >> Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com> >> --- >> drivers/irqchip/irq-meson-gpio.c | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson- >> gpio.c >> index 7b531fd075b8..971e8dea069a 100644 >> --- a/drivers/irqchip/irq-meson-gpio.c >> +++ b/drivers/irqchip/irq-meson-gpio.c >> @@ -67,12 +67,17 @@ static const struct meson_gpio_irq_params axg_params = { >> .nr_hwirq = 100, >> }; >> >> +static const struct meson_gpio_irq_params g12a_params = { >> + .nr_hwirq = 100, >> +}; >> + > > Same comment as on i2c, the g12 seems compatible with the axg. > Is this patchset patchset really necessary ? > Although the total number of pins is the same as the Meson-AXG SoC, the gpio banks and irq numbers are different. To avoid confusion on use, i think the new compatible string is needed. >> static const struct of_device_id meson_irq_gpio_matches[] = { >> { .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params }, >> { .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params >> }, >> { .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params >> }, >> { .compatible = "amlogic,meson-gxl-gpio-intc", .data = &gxl_params }, >> { .compatible = "amlogic,meson-axg-gpio-intc", .data = &axg_params }, >> + { .compatible = "amlogic,meson-g12a-gpio-intc", .data = &g12a_params >> }, >> { } >> }; >> > > > . > _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] irqchip/meson-gpio: Add support for Meson-G12A SoC 2018-12-03 9:28 ` Xingyu Chen @ 2018-12-03 10:06 ` Neil Armstrong 2018-12-04 1:51 ` Xingyu Chen 0 siblings, 1 reply; 8+ messages in thread From: Neil Armstrong @ 2018-12-03 10:06 UTC (permalink / raw) To: Xingyu Chen, Jerome Brunet, Marc Zyngier, Jason Cooper, Thomas Gleixner, Kevin Hilman Cc: Rob Herring, Jianxin Pan, linux-kernel, Carlo Caione, linux-amlogic, linux-arm-kernel, Heiner Kallweit On 03/12/2018 10:28, Xingyu Chen wrote: > > > On 2018/12/3 17:19, Jerome Brunet wrote: >> On Mon, 2018-12-03 at 14:13 +0800, Xingyu Chen wrote: >>> The Meson-G12A SoC uses the same GPIO interrupt controller IP block as the >>> other Meson SoCs, A totle of 100 pins can be spied on, which is the sum of: >>> >>> - 223:100 undefined (no interrupt) >>> - 99:97 3 pins on bank GPIOE >>> - 96:77 20 pins on bank GPIOX >>> - 76:61 16 pins on bank GPIOA >>> - 60:53 8 pins on bank GPIOC >>> - 52:37 16 pins on bank BOOT >>> - 36:28 9 pins on bank GPIOH >>> - 27:12 16 pins on bank GPIOZ >>> - 11:0 12 pins in the AO domain >>> >>> Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com> >>> Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com> >>> --- >>> drivers/irqchip/irq-meson-gpio.c | 5 +++++ >>> 1 file changed, 5 insertions(+) >>> >>> diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson- >>> gpio.c >>> index 7b531fd075b8..971e8dea069a 100644 >>> --- a/drivers/irqchip/irq-meson-gpio.c >>> +++ b/drivers/irqchip/irq-meson-gpio.c >>> @@ -67,12 +67,17 @@ static const struct meson_gpio_irq_params axg_params = { >>> .nr_hwirq = 100, >>> }; >>> +static const struct meson_gpio_irq_params g12a_params = { >>> + .nr_hwirq = 100, >>> +}; >>> + >> >> Same comment as on i2c, the g12 seems compatible with the axg. >> Is this patchset patchset really necessary ? >> > Although the total number of pins is the same as the Meson-AXG SoC, the gpio banks and irq numbers are different. To avoid confusion on use, i think the new compatible string is needed. OK for the new compatible, but you can re-use the same struct like for i2c. Neil >>> static const struct of_device_id meson_irq_gpio_matches[] = { >>> { .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params }, >>> { .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params >>> }, >>> { .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params >>> }, >>> { .compatible = "amlogic,meson-gxl-gpio-intc", .data = &gxl_params }, >>> { .compatible = "amlogic,meson-axg-gpio-intc", .data = &axg_params }, >>> + { .compatible = "amlogic,meson-g12a-gpio-intc", .data = &g12a_params >>> }, >>> { } >>> }; >>> >> >> >> . >> > > _______________________________________________ > linux-amlogic mailing list > linux-amlogic@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-amlogic _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] irqchip/meson-gpio: Add support for Meson-G12A SoC 2018-12-03 10:06 ` Neil Armstrong @ 2018-12-04 1:51 ` Xingyu Chen 0 siblings, 0 replies; 8+ messages in thread From: Xingyu Chen @ 2018-12-04 1:51 UTC (permalink / raw) To: Neil Armstrong, Jerome Brunet, Marc Zyngier, Jason Cooper, Thomas Gleixner, Kevin Hilman Cc: Rob Herring, Jianxin Pan, linux-kernel, Carlo Caione, linux-amlogic, linux-arm-kernel, Heiner Kallweit On 2018/12/3 18:06, Neil Armstrong wrote: > On 03/12/2018 10:28, Xingyu Chen wrote: >> >> >> On 2018/12/3 17:19, Jerome Brunet wrote: >>> On Mon, 2018-12-03 at 14:13 +0800, Xingyu Chen wrote: >>>> The Meson-G12A SoC uses the same GPIO interrupt controller IP block as the >>>> other Meson SoCs, A totle of 100 pins can be spied on, which is the sum of: >>>> >>>> - 223:100 undefined (no interrupt) >>>> - 99:97 3 pins on bank GPIOE >>>> - 96:77 20 pins on bank GPIOX >>>> - 76:61 16 pins on bank GPIOA >>>> - 60:53 8 pins on bank GPIOC >>>> - 52:37 16 pins on bank BOOT >>>> - 36:28 9 pins on bank GPIOH >>>> - 27:12 16 pins on bank GPIOZ >>>> - 11:0 12 pins in the AO domain >>>> >>>> Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com> >>>> Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com> >>>> --- >>>> drivers/irqchip/irq-meson-gpio.c | 5 +++++ >>>> 1 file changed, 5 insertions(+) >>>> >>>> diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson- >>>> gpio.c >>>> index 7b531fd075b8..971e8dea069a 100644 >>>> --- a/drivers/irqchip/irq-meson-gpio.c >>>> +++ b/drivers/irqchip/irq-meson-gpio.c >>>> @@ -67,12 +67,17 @@ static const struct meson_gpio_irq_params axg_params = { >>>> .nr_hwirq = 100, >>>> }; >>>> +static const struct meson_gpio_irq_params g12a_params = { >>>> + .nr_hwirq = 100, >>>> +}; >>>> + >>> >>> Same comment as on i2c, the g12 seems compatible with the axg. >>> Is this patchset patchset really necessary ? >>> >> Although the total number of pins is the same as the Meson-AXG SoC, the gpio banks and irq numbers are different. To avoid confusion on use, i think the new compatible string is needed. > > OK for the new compatible, but you can re-use the same struct like for i2c. > > Neil > Thanks for your comment, I will fix it in the next version. >>>> static const struct of_device_id meson_irq_gpio_matches[] = { >>>> { .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params }, >>>> { .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params >>>> }, >>>> { .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params >>>> }, >>>> { .compatible = "amlogic,meson-gxl-gpio-intc", .data = &gxl_params }, >>>> { .compatible = "amlogic,meson-axg-gpio-intc", .data = &axg_params }, >>>> + { .compatible = "amlogic,meson-g12a-gpio-intc", .data = &g12a_params >>>> }, >>>> { } >>>> }; >>>> >>> >>> >>> . >>> >> >> _______________________________________________ >> linux-amlogic mailing list >> linux-amlogic@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-amlogic > > . > _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2018-12-19 14:22 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2018-12-03 6:13 [PATCH 0/2] irqchip/meson-gpio: Add support for Meson-G12A SoC Xingyu Chen 2018-12-03 6:13 ` [PATCH 1/2] dt-bindings: interrupt-controller: New binding " Xingyu Chen 2018-12-19 14:21 ` Rob Herring 2018-12-03 6:13 ` [PATCH 2/2] irqchip/meson-gpio: Add support " Xingyu Chen 2018-12-03 9:19 ` Jerome Brunet 2018-12-03 9:28 ` Xingyu Chen 2018-12-03 10:06 ` Neil Armstrong 2018-12-04 1:51 ` Xingyu Chen
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).