Skip to content

Commit

Permalink
overlays: mcp23017: Support the MCP23008
Browse files Browse the repository at this point in the history
Add an 'mcp23008' parameter to enable support for the MCP23008 device.

See: #2818

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  • Loading branch information
Phil Elwell authored and popcornmix committed Feb 24, 2019
1 parent d989649 commit 17f9e3a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,8 @@ Params: gpiopin Gpio pin connected to the INTA output of the

addr I2C address of the MCP23017 (default: 0x20)

mcp23008 Configure an MCP23008 instead.


Name: mcp23s17
Info: Configures the MCP23S08/17 SPI GPIO expanders.
Expand Down
10 changes: 9 additions & 1 deletion arch/arm/boot/dts/overlays/mcp23017-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,19 @@
};
};
};


fragment@3 {
target = <&mcp23017>;
__dormant__ {
compatible = "microchip,mcp23008";
};
};

__overrides__ {
gpiopin = <&mcp23017_pins>,"brcm,pins:0",
<&mcp23017>,"interrupts:0";
addr = <&mcp23017>,"reg:0";
mcp23008 = <0>,"=3";
};
};

0 comments on commit 17f9e3a

Please sign in to comment.