[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251226-k1-i2c-ilcr-v5-0-b5807b7dd0e6@linux.spacemit.com>
Date: Fri, 26 Dec 2025 16:31:58 +0800
From: Troy Mitchell <troy.mitchell@...ux.spacemit.com>
To: Andi Shyti <andi.shyti@...nel.org>, Yixun Lan <dlan@...too.org>,
Alex Elder <elder@...cstar.com>
Cc: linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org, spacemit@...ts.linux.dev,
Troy Mitchell <troy.mitchell@...ux.spacemit.com>
Subject: [PATCH v5 0/3] i2c: spacemit: improve clock handling and cleanups
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@...ux.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@...ux.spacemit.com>
Powered by blists - more mailing lists