brcm2708: rename target to bcm27xx
[openwrt/staging/wigyori.git] / target / linux / bcm27xx / patches-4.19 / 950-0689-overlays-mcp23017-rename-the-GPIO-pins-node-with-the.patch
1 From 9802671acf4250d6541d175ba599da03cee8acc1 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Thu, 5 Sep 2019 17:36:38 +0100
4 Subject: [PATCH] overlays: mcp23017: rename the GPIO pins node with
5 the device
6
7 In order to allow the overlay to be loaded multiple times the
8 GPIO node for the interrupt line needs to be unique.
9 Rename it based on the MCP23017 I2C address
10
11 https://github.com/raspberrypi/linux/issues/3207
12
13 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
14 ---
15 arch/arm/boot/dts/overlays/mcp23017-overlay.dts | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
17
18 --- a/arch/arm/boot/dts/overlays/mcp23017-overlay.dts
19 +++ b/arch/arm/boot/dts/overlays/mcp23017-overlay.dts
20 @@ -16,7 +16,7 @@
21 fragment@1 {
22 target = <&gpio>;
23 __overlay__ {
24 - mcp23017_pins: mcp23017_pins {
25 + mcp23017_pins: mcp23017_pins@20 {
26 brcm,pins = <4>;
27 brcm,function = <0>;
28 };
29 @@ -55,7 +55,7 @@
30 __overrides__ {
31 gpiopin = <&mcp23017_pins>,"brcm,pins:0",
32 <&mcp23017>,"interrupts:0";
33 - addr = <&mcp23017>,"reg:0";
34 + addr = <&mcp23017>,"reg:0", <&mcp23017_pins>,"reg:0";
35 mcp23008 = <0>,"=3";
36 };
37 };