Documentation/devicetree/bindings/i2c/spacemit,k1-i2c.yaml | 3 +++ arch/riscv/boot/dts/spacemit/k1.dtsi | 8 ++++++++ drivers/i2c/busses/i2c-k1.c | 7 +++++++ 3 files changed, 18 insertions(+)
Add reset support for the K1 I2C driver. A reset ensures that the
controller starts in a clean and known state.
Reset ensures that the I2C hardware is in a clean state. We cannot assume
that no program used I2C before the kernel booted.
Signed-off-by: Encrow Thorne <jyc0019@gmail.com>
---
Changes in v2:
- Replace reset property in dt-bindings.
- Use devm_reset_control_get_optional_exclusive_deasserted() instead.
- Rebase to v6.19-rc1.
- Link to v1: https://lore.kernel.org/r/20251119-i2c-k1_reset-support-v1-0-0e9e82bf9b65@gmail.com
---
Encrow Thorne (3):
dt-bindings: i2c: spacemit: add optional resets
i2c: k1: add reset support
riscv: dts: spacemit: add reset property
Documentation/devicetree/bindings/i2c/spacemit,k1-i2c.yaml | 3 +++
arch/riscv/boot/dts/spacemit/k1.dtsi | 8 ++++++++
drivers/i2c/busses/i2c-k1.c | 7 +++++++
3 files changed, 18 insertions(+)
---
base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20251218-i2c-reset-a7be139213de
Best regards,
--
Encrow Thorne <jyc0019@gmail.com>
On 19/12/2025 08:42, Encrow Thorne wrote: > Add reset support for the K1 I2C driver. A reset ensures that the > controller starts in a clean and known state. > > Reset ensures that the I2C hardware is in a clean state. We cannot assume > that no program used I2C before the kernel booted. > > Signed-off-by: Encrow Thorne <jyc0019@gmail.com> > --- > Changes in v2: > - Replace reset property in dt-bindings. Replace with what? I don't see anything else there - you still have reset property. Best regards, Krzysztof
On Fri, Dec 19, 2025 at 4:03 PM Krzysztof Kozlowski <krzk@kernel.org> wrote: > > On 19/12/2025 08:42, Encrow Thorne wrote: > > Add reset support for the K1 I2C driver. A reset ensures that the > > controller starts in a clean and known state. > > > > Reset ensures that the I2C hardware is in a clean state. We cannot assume > > that no program used I2C before the kernel booted. > > > > Signed-off-by: Encrow Thorne <jyc0019@gmail.com> > > --- > > Changes in v2: > > - Replace reset property in dt-bindings. > > Replace with what? I don't see anything else there - you still have > reset property. It looks like a phrasing issue. By 'replace,' I guess, Encrow meant that the resets property was moved (reordered, put into a different 'place') within the file, not that it was swapped for a different property. Encow, Would you please correct your changelog description in the next version with something like 'Reorder the placement of the resets property in the dt-binding file.' BR, Guodong > > > Best regards, > Krzysztof
On Sun, Dec 28, 2025 at 07:53:52AM +0800, Guodong Xu wrote: > On Fri, Dec 19, 2025 at 4:03 PM Krzysztof Kozlowski <krzk@kernel.org> wrote: > > > > On 19/12/2025 08:42, Encrow Thorne wrote: > > > Add reset support for the K1 I2C driver. A reset ensures that the > > > controller starts in a clean and known state. > > > > > > Reset ensures that the I2C hardware is in a clean state. We cannot assume > > > that no program used I2C before the kernel booted. > > > > > > Signed-off-by: Encrow Thorne <jyc0019@gmail.com> > > > --- > > > Changes in v2: > > > - Replace reset property in dt-bindings. > > > > Replace with what? I don't see anything else there - you still have > > reset property. > > It looks like a phrasing issue. By 'replace,' I guess, Encrow meant that > the resets property was moved (reordered, put into a different 'place') > within the file, not that it was swapped for a different property. > > Encow, > > Would you please correct your changelog description > in the next version with something like > 'Reorder the placement of the resets property in the dt-binding file.' > > BR, > Guodong > Thank you for your suggestion, Guodong. I will modify it in the next version. - Encrow > > > > > > Best regards, > > Krzysztof
© 2016 - 2026 Red Hat, Inc.