Fix two issues in the SpacemiT K1 I2C driver and clock provider. The first patch configures the controller bus mode using the requested I2C bus speed from the device tree, instead of incorrectly using the functional clock rate.
The second patch separates the functional and bus clocks in the K1 clock provider and updates the I2C driver to enable all clocks described by the device tree. It also adds the clock dependencies required by TWSI2 and TWSI8 in SPL. Signed-off-by: Junhui Liu <[email protected]> --- Junhui Liu (2): i2c: k1: fix wrong bus speed setting i2c: k1: enable all clocks for I2C controllers drivers/clk/spacemit/clk-k1.c | 41 +++++++++++++++++++++++++++++++++-------- drivers/i2c/k1_i2c.c | 19 ++++++++++--------- 2 files changed, 43 insertions(+), 17 deletions(-) --- base-commit: 527115ef6783cec49e5610c523c124b399011361 change-id: 20260814-k1-i2c-fix-04dc9e3fd45a Best regards, -- Junhui Liu <[email protected]>
