ARM: dts: bcm2711-rpi: Add pinctrl-based multiplexing for I2C0
authorUwe Kleine-König <uwe@kleine-koenig.org>
Tue, 2 Apr 2024 00:04:14 +0000 (03:04 +0300)
committerFlorian Fainelli <florian.fainelli@broadcom.com>
Thu, 4 Apr 2024 16:49:35 +0000 (09:49 -0700)
commit84b1d6cc3e4cc49f04aaacc5e0094c221a772cf0
tree9dfbef0bd908bf42e2b1644833ff8133c04bf01e
parentf702475b839cad900cc08ddf29dd7a9e43c5976a
ARM: dts: bcm2711-rpi: Add pinctrl-based multiplexing for I2C0

BCM2711-based Raspberry Pi boards (4B, CM4 and 400) multiplex the I2C0
controller over two sets of pins, GPIO0+1 and GPIO44+45. The former is
exposed on the 40-pin header, while the latter is used for the CSI and
DSI connectors.

Add a pinctrl-based I2C bus multiplexer to bcm2711-rpi.dtsi to model
this multiplexing. The two child buses are named i2c0_0 and i2c0_1.

Note that if you modified the dts before to add devices to the i2c bus
appearing on pins gpio0 + gpio1 (either directly in the dts or using an
overlay), you have to put these into the i2c0_0 node introduced here
now.

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://lore.kernel.org/r/20240402000424.4650-8-laurent.pinchart@ideasonboard.com
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
arch/arm/boot/dts/broadcom/bcm2711-rpi.dtsi