realtek: Add support for RTL9300/RTL9310 I2C multiplexing
authorBirger Koblitz <git@birger-koblitz.de>
Sat, 11 Dec 2021 19:25:37 +0000 (20:25 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 17 Feb 2022 15:21:46 +0000 (15:21 +0000)
commitf4bdb7fdccdfe3fa382abe77f72a16c2f2e6add0
treeb692a21fde7e19338a667bec8ad5a713907fdaed
parent63a0a4d85bc900464c5b046b13808a582345f8c8
realtek: Add support for RTL9300/RTL9310 I2C multiplexing

The RTL9300/RTL9310 I2C controllers have support for 2 independent I2C
masters, each with a fixed SCL pin, that cannot be changed. Each of these
masters can use 8 (RTL9300) or 16 (RTL9310) different pins for SDA.
This multiplexer directly controls the two masters and their shared
IO configuration registers to allow multiplexing between any of these
busses. The two masters cannot be used in parallel as the multiplex
is protected by a standard multiplex lock.

Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
target/linux/realtek/config-5.10
target/linux/realtek/files-5.10/drivers/i2c/busses/i2c-rtl9300.c
target/linux/realtek/files-5.10/drivers/i2c/muxes/i2c-mux-rtl9300.c [new file with mode: 0644]
target/linux/realtek/patches-5.10/311-add-i2c-mux-rtl9300-support.patch [new file with mode: 0644]