Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1636709

Re: [PATCH v2] powerpc/8xx: Adding support of IRQ in MPC8xx GPIO

From Rob Herring <robh@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2] powerpc/8xx: Adding support of IRQ in MPC8xx GPIO
Date 2017-05-05 22:20 +0200
Message-ID <tDRRL-6Av-9@gated-at.bofh.it> (permalink)
References <tCefM-6cu-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, May 01, 2017 at 09:38:13AM +0200, Christophe Leroy wrote:
> This patch allows the use of IRQ to notify the change of GPIO status
> on MPC8xx CPM IO ports. This then allows to associate IRQs to GPIOs
> in the Device Tree.

Wow, that's an old part.

> Ex:
> 	CPM1_PIO_C: gpio-controller@960 {
> 		#gpio-cells = <2>;
> 		compatible = "fsl,cpm1-pario-bank-c";
> 		reg = <0x960 0x10>;
> 		fsl,cpm1-gpio-irq-mask = <0x0fff>;
> 		interrupts = <1 2 6 9 10 11 14 15 23 24 26 31>;
> 		interrupt-parent = <&CPM_PIC>;
> 		gpio-controller;
> 	};
> 
> The property 'fsl,cpm1-gpio-irq-mask' defines which of the 16 GPIOs
> have the associated interrupts defined in the 'interrupts' property.
> 
> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
> ---
>  v2: Updated the binding ; changed property 'interrupt-mask' to 'fsl,cpm1-gpio-irq-mask'
> 
>  .../devicetree/bindings/soc/fsl/cpm_qe/gpio.txt    | 21 +++++++++++++++++-

Acked-by: Rob Herring <robh@kernel.org>

>  arch/powerpc/include/asm/cpm1.h                    |  2 ++
>  arch/powerpc/sysdev/cpm1.c                         | 25 ++++++++++++++++++++++
>  3 files changed, 47 insertions(+), 1 deletion(-)

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2] powerpc/8xx: Adding support of IRQ in MPC8xx GPIO Christophe Leroy <christophe.leroy@c-s.fr> - 2017-05-01 09:50 +0200
  Re: [PATCH v2] powerpc/8xx: Adding support of IRQ in MPC8xx GPIO Rob Herring <robh@kernel.org> - 2017-05-05 22:20 +0200

csiph-web