kernel: bump 4.14 to 4.14.86
[openwrt/staging/wigyori.git] / target / linux / ramips / patches-4.14 / 0029-gpio-ralink-Add-support-for-GPIO-as-interrupt-contro.patch
1 From 57fa7f2f4ef6f78ce1d30509c0d111aa3791b524 Mon Sep 17 00:00:00 2001
2 From: Daniel Santos <daniel.santos@pobox.com>
3 Date: Sun, 4 Nov 2018 20:24:32 -0600
4 Subject: gpio-ralink: Add support for GPIO as interrupt-controller
5
6 Signed-off-by: Daniel Santos <daniel.santos@pobox.com>
7 ---
8 Documentation/devicetree/bindings/gpio/gpio-ralink.txt | 6 ++++++
9 drivers/gpio/gpio-ralink.c | 2 +-
10 2 files changed, 7 insertions(+), 1 deletion(-)
11
12 --- a/Documentation/devicetree/bindings/gpio/gpio-ralink.txt
13 +++ b/Documentation/devicetree/bindings/gpio/gpio-ralink.txt
14 @@ -17,6 +17,9 @@ Required properties:
15
16 Optional properties:
17 - ralink,gpio-base : Specify the GPIO chips base number
18 +- interrupt-controller : marks this as an interrupt controller
19 +- #interrupt-cells : a standard two-cell interrupt flag, see
20 + interrupt-controller/interrupts.txt
21
22 Example:
23
24 @@ -28,6 +31,9 @@ Example:
25
26 reg = <0x600 0x34>;
27
28 + interrupt-controller;
29 + #interrupt-cells = <2>;
30 +
31 interrupt-parent = <&intc>;
32 interrupts = <6>;
33
34 --- a/drivers/gpio/gpio-ralink.c
35 +++ b/drivers/gpio/gpio-ralink.c
36 @@ -220,7 +220,7 @@ static int gpio_map(struct irq_domain *d
37 }
38
39 static const struct irq_domain_ops irq_domain_ops = {
40 - .xlate = irq_domain_xlate_onecell,
41 + .xlate = irq_domain_xlate_twocell,
42 .map = gpio_map,
43 };
44