[PATCH v6 0/2] i2c: spacemit: improve clock handling and cleanups
Troy Mitchell
troy.mitchell at linux.spacemit.com
Wed Apr 29 00:48:55 PDT 2026
This patch series contains a set of small improvements and cleanups for
the SpacemiT I2C controller driver.
The main change in this series is to improve SCL frequency accuracy by
configuring the ILCR register based on the requested clock rate, rather
than relying on the hardware reset defaults.
The ILCR is exposed as a managed clock via the Common Clock Framework,
allowing the driver to program appropriate divider values for standard
and fast modes.
In addition, the series removes a spurious warning when the optional
clock-frequency DT property is absent.
Signed-off-by: Troy Mitchell <troy.mitchell at linux.spacemit.com>
---
Troy Mitchell (2):
i2c: spacemit: configure ILCR/IWCR for accurate SCL frequency
i2c: spacemit: drop warning when clock-frequency property is absent
drivers/i2c/busses/Kconfig | 2 +-
drivers/i2c/busses/i2c-k1.c | 164 +++++++++++++++++++++++++++++++++++++++++---
2 files changed, 154 insertions(+), 12 deletions(-)
---
base-commit: 9b45dba17a6b3cede80706d287d8d2fb9087bfa9
change-id: 20251017-k1-i2c-ilcr-c928d50e407f
Best regards,
--
Troy Mitchell <troy.mitchell at linux.spacemit.com>
More information about the linux-riscv
mailing list