All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] i2c/clk: spacemit: k1: fix bus configuration and clock handling
@ 2026-08-14  1:46 Junhui Liu
  2026-08-14  1:46 ` [PATCH 1/2] i2c: k1: fix wrong bus speed setting Junhui Liu
  2026-08-14  1:46 ` [PATCH 2/2] i2c: k1: enable all clocks for I2C controllers Junhui Liu
  0 siblings, 2 replies; 5+ messages in thread
From: Junhui Liu @ 2026-08-14  1:46 UTC (permalink / raw)
  To: Guodong Xu, Heiko Schocher, u-boot-spacemit, u-boot
  Cc: Huan Zhou, Guodong Xu, Tom Rini, Raymond Mao, Lukasz Majewski,
	Yixun Lan, Troy Mitchell, Junhui Liu

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 <junhui.liu@pigmoral.tech>
---
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 <junhui.liu@pigmoral.tech>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-08-14 12:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-14  1:46 [PATCH 0/2] i2c/clk: spacemit: k1: fix bus configuration and clock handling Junhui Liu
2026-08-14  1:46 ` [PATCH 1/2] i2c: k1: fix wrong bus speed setting Junhui Liu
2026-08-14  9:32   ` Heiko Schocher via U-Boot
2026-08-14  1:46 ` [PATCH 2/2] i2c: k1: enable all clocks for I2C controllers Junhui Liu
2026-08-14  8:38   ` Yixun Lan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.