1 From b37ac8c50684c3517fb9c6f737e7ea444a7d7405 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Thu, 5 Sep 2019 17:41:46 +0100
4 Subject: [PATCH 792/806] overlays: mcp23017: Add option for not connecting the
7 The interrupt GPIO is optional to the driver, therefore add an
8 option to not configure it.
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
12 arch/arm/boot/dts/overlays/README | 1 +
13 .../boot/dts/overlays/mcp23017-overlay.dts | 21 +++++++++++++------
14 2 files changed, 16 insertions(+), 6 deletions(-)
16 --- a/arch/arm/boot/dts/overlays/README
17 +++ b/arch/arm/boot/dts/overlays/README
18 @@ -1427,6 +1427,7 @@ Params: gpiopin Gpio pin
19 addr I2C address of the MCP23017 (default: 0x20)
21 mcp23008 Configure an MCP23008 instead.
22 + noints Disable the interrupt GPIO line.
26 --- a/arch/arm/boot/dts/overlays/mcp23017-overlay.dts
27 +++ b/arch/arm/boot/dts/overlays/mcp23017-overlay.dts
32 - #interrupt-cells=<2>;
33 - interrupt-parent = <&gpio>;
35 - interrupt-controller;
36 - microchip,irq-mirror;
47 + mcp23017_irq: mcp@20 {
48 + #interrupt-cells=<2>;
49 + interrupt-parent = <&gpio>;
51 + interrupt-controller;
52 + microchip,irq-mirror;
58 gpiopin = <&mcp23017_pins>,"brcm,pins:0",
59 - <&mcp23017>,"interrupts:0";
60 + <&mcp23017_irq>,"interrupts:0";
61 addr = <&mcp23017>,"reg:0", <&mcp23017_pins>,"reg:0";
63 + noints = <0>,"!1!4";