realtek: add new i2c-gpio-shared driver for shared SCL lines
authorMarkus Stockhausen <[email protected]>
Fri, 13 Jun 2025 08:29:52 +0000 (04:29 -0400)
committerRobert Marko <[email protected]>
Tue, 17 Jun 2025 08:52:42 +0000 (10:52 +0200)
commitacd7ecc9ed8907c9e44e4ed243ef0884abdac81a
tree5883828695c3ae403a82968e23aaabbb24a6dee6
parent2f85dc277b0ff5747b3c8b992908105943e66877
realtek: add new i2c-gpio-shared driver for shared SCL lines

Some Realtek switches have been designed with I2C busses that share a
single SCL line. The clock line is used for 2 or more busses. This cannot
be used with the standard i2c-gpio driver that relies on distinct SDA
and SCL pairs.

Provide a derived i2c-gpio-shared driver that can be used instead. This
driver can handle up to 4 busses with only a single clock line.

Signed-off-by: Markus Stockhausen <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/18737
Signed-off-by: Robert Marko <[email protected]>
target/linux/realtek/files-6.12/Documentation/devicetree/bindings/i2c/i2c-gpio-shared.yaml [new file with mode: 0644]
target/linux/realtek/files-6.12/drivers/i2c/busses/i2c-gpio-shared.c [new file with mode: 0644]
target/linux/realtek/patches-6.12/805-add-i2c-gpio-shared-driver.patch [new file with mode: 0644]