From dd7079e79a94fdde2e0ff4c1d6f428f3b115211c Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Sun, 18 Dec 2016 13:54:17 +0100 Subject: brcm63xx: implement gpio_to_irq for bcm63xx-gpio Add support for mapping some GPIO lines to IRQs. GPIO to IRQ mappings were found out through experimentation, helped by having the GPIO as output still toggling the IRQ input. Based-on: http://patchwork.ozlabs.org/patch/660534/ Signed-off-by: Jonas Gorski --- target/linux/brcm63xx/dts/bcm6362.dtsi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'target/linux/brcm63xx/dts/bcm6362.dtsi') diff --git a/target/linux/brcm63xx/dts/bcm6362.dtsi b/target/linux/brcm63xx/dts/bcm6362.dtsi index 40f6b9ec29..a6a5c1f1d0 100644 --- a/target/linux/brcm63xx/dts/bcm6362.dtsi +++ b/target/linux/brcm63xx/dts/bcm6362.dtsi @@ -80,6 +80,11 @@ gpio-controller; #gpio-cells = <2>; + + interrupt-parent = <&ext_intc>; + interrupts = <0 0>, <1 0>, <2 0>, <3 0>; + interrupt-names = "gpio24", "gpio25", + "gpio26", "gpio27"; }; }; }; -- cgit v1.2.3