]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/8xx: Adding support of IRQ in MPC8xx GPIO
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 1 May 2017 07:38:13 +0000 (09:38 +0200)
committerScott Wood <oss@buserror.net>
Wed, 3 May 2017 03:35:00 +0000 (22:35 -0500)
commite45c82460afab95cc67b3a04f1ad6e9ff6cafab2
tree1df7f57b9804aeeaa2a9d4fb89a131c9a23b6cfb
parent2a2c3249c2cefd8969beebed86bc6b95207a7bbf
powerpc/8xx: Adding support of IRQ in MPC8xx GPIO

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.

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>
Signed-off-by: Scott Wood <oss@buserror.net>
Documentation/devicetree/bindings/soc/fsl/cpm_qe/gpio.txt
arch/powerpc/include/asm/cpm1.h
arch/powerpc/sysdev/cpm1.c