<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/components/drivers/i2c, branch copilot/fix-riscv-none-job-failure</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/components/drivers/i2c?h=copilot%2Ffix-riscv-none-job-failure</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/components/drivers/i2c?h=copilot%2Ffix-riscv-none-job-failure'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2026-07-29T03:11:10Z</updated>
<entry>
<title>[dm][i2c] port to the pinctrl for EP</title>
<updated>2026-07-29T03:11:10Z</updated>
<author>
<name>GuEe-GUI</name>
<email>2991707448@qq.com</email>
</author>
<published>2026-07-28T15:26:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=36f52133ec2e8f7d5c53358bcbd96f2b0e5ac132'/>
<id>urn:sha1:36f52133ec2e8f7d5c53358bcbd96f2b0e5ac132</id>
<content type='text'>
Signed-off-by: GuEe-GUI &lt;2991707448@qq.com&gt;
</content>
</entry>
<entry>
<title>[bsp][drivers][soft_i2c] unify the software I2C driver</title>
<updated>2026-07-16T05:19:57Z</updated>
<author>
<name>CYFS</name>
<email>2805686936@qq.com</email>
</author>
<published>2026-07-15T09:54:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=414ff7f3710168dbf99a398e18b2a4ff8448b005'/>
<id>urn:sha1:414ff7f3710168dbf99a398e18b2a4ff8448b005</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[feat][soft_i2c]:change soft i2c default bus name</title>
<updated>2026-06-08T07:13:11Z</updated>
<author>
<name>CYFS</name>
<email>2805686936@qq.com</email>
</author>
<published>2026-05-17T14:18:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=baed882d37fc7072d43b6b635ce37389a8c1db4c'/>
<id>urn:sha1:baed882d37fc7072d43b6b635ce37389a8c1db4c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat[i2c]: add bus configuration and max-hz control</title>
<updated>2026-03-12T07:15:02Z</updated>
<author>
<name>wdfk-prog</name>
<email>1425075683@qq.com</email>
</author>
<published>2026-03-09T00:48:55Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=b0af22a96ff58458aac3169c9b0f6834db547d94'/>
<id>urn:sha1:b0af22a96ff58458aac3169c9b0f6834db547d94</id>
<content type='text'>
</content>
</entry>
<entry>
<title>chore: fix typo in components and libcpu</title>
<updated>2026-02-13T13:54:59Z</updated>
<author>
<name>theqengineer</name>
<email>zyrhqu@gmail.com</email>
</author>
<published>2026-02-13T07:04:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=85b656b14dcfe8a3ab27c819e168dde082ab39ef'/>
<id>urn:sha1:85b656b14dcfe8a3ab27c819e168dde082ab39ef</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rename i2c mutex</title>
<updated>2026-02-04T01:47:00Z</updated>
<author>
<name>copilot-swe-agent[bot]</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2026-02-02T09:45:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=5e04105723f6de5ffcd5e6b843b489f52cdc679b'/>
<id>urn:sha1:5e04105723f6de5ffcd5e6b843b489f52cdc679b</id>
<content type='text'>
Co-authored-by: BernardXiong &lt;1241087+BernardXiong@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>[drivers] Fix OFW bus conflict and prevent duplicate device creation</title>
<updated>2026-01-20T14:05:28Z</updated>
<author>
<name>lhxj</name>
<email>2743257167@qq.com</email>
</author>
<published>2025-12-25T09:56:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=7641ef68855601bc73252546bf41a96d6078444e'/>
<id>urn:sha1:7641ef68855601bc73252546bf41a96d6078444e</id>
<content type='text'>
Problem:
When enumerating device tree nodes, platform bus and native buses (I2C/SPI)
may create duplicate devices for the same OFW node, causing cross-bus conflicts.
This triggers assertion failure '(dev-&gt;bus != new_bus)' in
rt_bus_reload_driver_device() during boot on minimal DM-enabled systems.

Root Cause:
1. Platform bus tries to reload devices that already belong to other buses
   by calling rt_bus_reload_driver_device(dev-&gt;bus, dev), which violates
   the API contract (requires dev-&gt;bus != new_bus).
2. Native buses (I2C/SPI) do not mark OFW nodes as occupied, so platform
   bus creates duplicate platform devices for I2C/SPI client nodes.

Solution:
1. components/drivers/core/platform_ofw.c: Return RT_EOK when np-&gt;dev exists,
   letting the native bus handle device lifecycle instead of cross-bus reload.
2. components/drivers/i2c/dev_i2c_bus.c: Mark i2c_client_np-&gt;dev during scan
   to prevent platform bus from duplicating I2C client devices.
3. components/drivers/spi/dev_spi_bus.c: Mark spi_dev_np-&gt;dev during scan
   to prevent platform bus from duplicating SPI devices.

Tested on Spacemit K1 RISC-V platform with minimal DM configuration.

Signed-off-by: lhxj &lt;2743257167@qq.com&gt;
</content>
</entry>
<entry>
<title>[DM/I2C] Update I2C for DM</title>
<updated>2025-12-04T08:00:13Z</updated>
<author>
<name>GuEe-GUI</name>
<email>2991707448@qq.com</email>
</author>
<published>2025-12-01T08:46:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=798c84647c7a8959fb0d50a97f63e7e74c0e7119'/>
<id>urn:sha1:798c84647c7a8959fb0d50a97f63e7e74c0e7119</id>
<content type='text'>
1. Add get id match data API.
2. Set I2C device name default before adding to bus.
3. Add Kconfig import for DM.

Signed-off-by: GuEe-GUI &lt;2991707448@qq.com&gt;
</content>
</entry>
<entry>
<title>[drivers] merge the software i2c driver</title>
<updated>2025-01-09T03:07:03Z</updated>
<author>
<name>kurisaw</name>
<email>2053731441@qq.com</email>
</author>
<published>2025-01-09T02:05:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=1b76eccb37de8e01cf50a7c507de423c07f309ad'/>
<id>urn:sha1:1b76eccb37de8e01cf50a7c507de423c07f309ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[components][i2c] 修改为debug等级打印</title>
<updated>2024-10-04T22:02:36Z</updated>
<author>
<name>wdfk-prog</name>
<email>1425075683@qq.com</email>
</author>
<published>2024-10-04T08:57:45Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=f28b84aa1fbe683cf52caaffbe7de76a8565bfb3'/>
<id>urn:sha1:f28b84aa1fbe683cf52caaffbe7de76a8565bfb3</id>
<content type='text'>
</content>
</entry>
</feed>
