diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README index 7f5fda92d62305..d0a1ed1c1021ce 100644 --- a/arch/arm/boot/dts/overlays/README +++ b/arch/arm/boot/dts/overlays/README @@ -2811,6 +2811,10 @@ Params: gpiopin Gpio pin connected to the INTA output of the mcp23008 Configure an MCP23008 instead. noints Disable the interrupt GPIO line. + i2c0 Choose the I2C0 bus on GPIOs 0&1 + + i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45 + Name: mcp23s17 Info: Configures the MCP23S08/17 SPI GPIO expanders. diff --git a/arch/arm/boot/dts/overlays/mcp23017-overlay.dts b/arch/arm/boot/dts/overlays/mcp23017-overlay.dts index c546d8ba7e6d27..0d552e1ac6e760 100644 --- a/arch/arm/boot/dts/overlays/mcp23017-overlay.dts +++ b/arch/arm/boot/dts/overlays/mcp23017-overlay.dts @@ -7,7 +7,7 @@ compatible = "brcm,bcm2835"; fragment@0 { - target = <&i2c1>; + target = <&i2cbus>; __overlay__ { status = "okay"; }; @@ -24,7 +24,7 @@ }; fragment@2 { - target = <&i2c1>; + target = <&i2cbus>; __overlay__ { #address-cells = <1>; #size-cells = <0>; @@ -57,6 +57,12 @@ microchip,irq-mirror; }; }; + frag100: fragment@100 { + target = <&i2c_arm>; + i2cbus: __overlay__ { + status = "okay"; + }; + }; __overrides__ { gpiopin = <&mcp23017_pins>,"brcm,pins:0", @@ -64,6 +70,9 @@ addr = <&mcp23017>,"reg:0", <&mcp23017_pins>,"reg:0"; mcp23008 = <0>,"=3"; noints = <0>,"!1!4"; + i2c0 = <&frag100>, "target:0=",<&i2c0>; + i2c_csi_dsi = <&frag100>, "target:0=",<&i2c_csi_dsi>; }; }; +