From: Dave Stevenson Date: Thu, 5 Sep 2019 16:36:38 +0000 (+0100) Subject: overlays: mcp23017: rename the GPIO pins node with the device X-Git-Tag: accepted/tizen/unified/20191111.065916~335 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c501f92ccb41b55f55e32dca1aea9ebdb28e991;p=platform%2Fkernel%2Flinux-rpi.git overlays: mcp23017: rename the GPIO pins node with the device In order to allow the overlay to be loaded multiple times the GPIO node for the interrupt line needs to be unique. Rename it based on the MCP23017 I2C address https://github.com/raspberrypi/linux/issues/3207 Signed-off-by: Dave Stevenson --- diff --git a/arch/arm/boot/dts/overlays/mcp23017-overlay.dts b/arch/arm/boot/dts/overlays/mcp23017-overlay.dts index f6421bd..b5148ba 100644 --- a/arch/arm/boot/dts/overlays/mcp23017-overlay.dts +++ b/arch/arm/boot/dts/overlays/mcp23017-overlay.dts @@ -16,7 +16,7 @@ fragment@1 { target = <&gpio>; __overlay__ { - mcp23017_pins: mcp23017_pins { + mcp23017_pins: mcp23017_pins@20 { brcm,pins = <4>; brcm,function = <0>; }; @@ -55,7 +55,7 @@ __overrides__ { gpiopin = <&mcp23017_pins>,"brcm,pins:0", <&mcp23017>,"interrupts:0"; - addr = <&mcp23017>,"reg:0"; + addr = <&mcp23017>,"reg:0", <&mcp23017_pins>,"reg:0"; mcp23008 = <0>,"=3"; }; };