Skip to content

Commit 0d6b092

Browse files
Phil Elwellpopcornmix
Phil Elwell
authored andcommitted
overlays: mcp23017: Support the MCP23008
Add an 'mcp23008' parameter to enable support for the MCP23008 device. See: #2818 Signed-off-by: Phil Elwell <[email protected]>
1 parent 2a28f41 commit 0d6b092

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,6 +1186,8 @@ Params: gpiopin Gpio pin connected to the INTA output of the
11861186

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

1189+
mcp23008 Configure an MCP23008 instead.
1190+
11891191

11901192
Name: mcp23s17
11911193
Info: Configures the MCP23S08/17 SPI GPIO expanders.

arch/arm/boot/dts/overlays/mcp23017-overlay.dts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,19 @@
4444
};
4545
};
4646
};
47-
47+
48+
fragment@3 {
49+
target = <&mcp23017>;
50+
__dormant__ {
51+
compatible = "microchip,mcp23008";
52+
};
53+
};
54+
4855
__overrides__ {
4956
gpiopin = <&mcp23017_pins>,"brcm,pins:0",
5057
<&mcp23017>,"interrupts:0";
5158
addr = <&mcp23017>,"reg:0";
59+
mcp23008 = <0>,"=3";
5260
};
5361
};
5462

0 commit comments

Comments
 (0)