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 <dave.stevenson@raspberrypi.org>
fragment@1 {
target = <&gpio>;
__overlay__ {
- mcp23017_pins: mcp23017_pins {
+ mcp23017_pins: mcp23017_pins@20 {
brcm,pins = <4>;
brcm,function = <0>;
};
__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";
};
};