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 <[email protected]>
  • Loading branch information
Phil Elwell authored and popcornmix committed Jan 24, 2019
1 parent 62cf24d commit 30287a1
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 @@ -1186,6 +1186,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 30287a1

Please sign in to comment.