Commit a9e96b88 authored by Phil Elwell's avatar Phil Elwell
Browse files

overlays: mcp23017: Support the MCP23008

Add an 'mcp23008' parameter to enable support for the MCP23008 device.

See: https://github.com/raspberrypi/linux/issues/2818



Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.org>
parent 01269567
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1202,6 +1202,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.
+9 −1
Original line number Diff line number Diff line
@@ -45,10 +45,18 @@
		};
	};

	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";
	};
};