<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/i2c/k1_i2c.c, branch next</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/i2c/k1_i2c.c?h=next</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/i2c/k1_i2c.c?h=next'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2026-08-25T06:22:24Z</updated>
<entry>
<title>i2c: k1: enable both functional and bus clocks</title>
<updated>2026-08-25T06:22:24Z</updated>
<author>
<name>Junhui Liu</name>
<email>junhui.liu@pigmoral.tech</email>
</author>
<published>2026-08-15T03:40:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=febfffd338e0be62d28c280ae779fd7bb88fe17c'/>
<id>urn:sha1:febfffd338e0be62d28c280ae779fd7bb88fe17c</id>
<content type='text'>
The K1 I2C controller requires both its functional clock and APB bus
clock to operate. The device tree provides them as "func" and "bus", but
the driver currently acquires and enables only the first clock.

Acquire both clocks by name and enable them during probe. Use explicit
named lookups instead of the bulk clock API to align with the K1 Linux
driver and keep the roles of the two clocks clear if functional clock
rate configuration is needed later.

Fixes: 271546fb8e54 ("i2c: k1: add I2C driver support")
Reviewed-by: Heiko Schocher &lt;hs@nabladev.com&gt;
Reviewed-by: Yao Zi &lt;me@ziyao.cc&gt;
Signed-off-by: Junhui Liu &lt;junhui.liu@pigmoral.tech&gt;
</content>
</entry>
<entry>
<title>i2c: k1: fix wrong bus speed setting</title>
<updated>2026-08-25T06:22:24Z</updated>
<author>
<name>Junhui Liu</name>
<email>junhui.liu@pigmoral.tech</email>
</author>
<published>2026-08-15T03:40:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=cfe0012e12d7e3889b5d245f14b4ed3bf73f033a'/>
<id>urn:sha1:cfe0012e12d7e3889b5d245f14b4ed3bf73f033a</id>
<content type='text'>
The controller bus mode should be selected according to the requested
I2C bus speed. However, the driver currently passes the functional clock
rate to k1_i2c_set_bus_speed(), so the selected mode does not reflect
the requested bus speed.

Fix this by reading the clock-frequency property from the Device Tree,
defaulting to standard speed, and drop the unused clk_rate field.

Fixes: 271546fb8e54 ("i2c: k1: add I2C driver support")
Reviewed-by: Heiko Schocher &lt;hs@nabladev.com&gt;
Reviewed-by: Yao Zi &lt;me@ziyao.cc&gt;
Signed-off-by: Junhui Liu &lt;junhui.liu@pigmoral.tech&gt;
</content>
</entry>
<entry>
<title>i2c: k1: add I2C driver support</title>
<updated>2026-07-21T08:57:13Z</updated>
<author>
<name>Raymond Mao</name>
<email>raymond.mao@riscstar.com</email>
</author>
<published>2026-06-30T01:19:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=271546fb8e547231323503410a6e11f016da1f5e'/>
<id>urn:sha1:271546fb8e547231323503410a6e11f016da1f5e</id>
<content type='text'>
Add I2C driver support on Spacemit K1 SoC using driver model.

Signed-off-by: Raymond Mao &lt;raymond.mao@riscstar.com&gt;
Signed-off-by: Guodong Xu &lt;guodong@riscstar.com&gt;
Reviewed-by: Heiko Schocher &lt;hs@nabladev.com&gt;
Tested-by: Songsong Zhang &lt;sszhang@vsit.ai&gt;
</content>
</entry>
</feed>
