[PATCH v5 0/3] i2c: spacemit: improve clock handling and cleanups
Troy Mitchell
troy.mitchell at linux.spacemit.com
Fri Dec 26 00:31:58 PST 2025
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, and performs minor whitespace
cleanup in the driver source.
Signed-off-by: Troy Mitchell <troy.mitchell at linux.spacemit.com>
---
Troy Mitchell (3):
i2c: spacemit: drop useless spaces
i2c: spacemit: configure ILCR 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 | 162 +++++++++++++++++++++++++++++++++++++++-----
2 files changed, 146 insertions(+), 18 deletions(-)
---
base-commit: 138e17a35265a036c4cbf7d4a6afcaf69e5d8b2e
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