summaryrefslogtreecommitdiff
path: root/components/drivers/i2c
AgeCommit message (Collapse)Author
2026-06-08[feat][soft_i2c]:change soft i2c default bus nameCYFS
2026-03-12feat[i2c]: add bus configuration and max-hz controlwdfk-prog
2026-02-13chore: fix typo in components and libcputheqengineer
2026-02-04rename i2c mutexcopilot-swe-agent[bot]
Co-authored-by: BernardXiong <[email protected]>
2026-01-20[drivers] Fix OFW bus conflict and prevent duplicate device creationlhxj
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->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->bus, dev), which violates the API contract (requires dev->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->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->dev during scan to prevent platform bus from duplicating I2C client devices. 3. components/drivers/spi/dev_spi_bus.c: Mark spi_dev_np->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 <[email protected]>
2025-12-04[DM/I2C] Update I2C for DMGuEe-GUI
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 <[email protected]>
2025-01-08[drivers] merge the software i2c driverkurisaw
2024-10-04[components][i2c] 修改为debug等级打印wdfk-prog
2024-08-23[device] add dev_ prefix for file namesCXSforHPU
2024-06-16[components] [drivers ] [Kconfig] 整理 components/drivers 的 Kconfig (#9054)sp-cai
整理 components/drivers 的 Kconfig
2024-04-29[i2c] adjust the timing for I2C initializationLZerro
2024-04-07[components][drivers]add ofw support i2czms123456
2023-11-26soft_i2c: Loop iteration variable: Conform to C89Raman Gopalan
2023-10-17[components][i2c]增加通用的软件模拟 I2C (#7850)sp-cai
2023-07-13[components][i2c] 优化 controt 接口格式,增加可用命令 (#7806)sp-cai
原来 rt_i2c_control 只能执行 RT_I2C_DEV_CTRL_CLK 单一命令,通过此修改可以支持更多可用命令
2023-05-09[i2c] fix the return value of rt_i2c_master_send/recvWayne
fix the related PR: #7029
2023-04-17[HUST CSE] Fix many abnormal symbols in annotations and format code7YZ7
2023-03-10[i2c] fix the i2c device return error code (#7035)Man, Jianting (Meco)
* [i2c] fix the i2c device return error code
2023-03-09[device]修改i2c读写函数返回类型为rt_ssize_t (#7029)Zxy
2023-02-07rt_device_write/read return data type as rt_ssize_tMeco Man
rt_ssize_t can give negative error code, which follows the unix style correctly
2022-12-05[fix]修复模拟i2c驱动延时bugjaffer
Signed-off-by: jaffer <[email protected]>
2022-09-20[fix] Fix simulator compilation warnings (#6438)Tangyuxin
* [fix] Fix simulator compilation warnings * Update bsp/simulator/rtconfig_project.h Co-authored-by: Man, Jianting (Meco) <[email protected]>
2022-08-02Fix some compilation warning (#5744)dongly
* Fix some compilation warning * 补充修正一些数据类型的使用错误 Co-authored-by: Meco Man <[email protected]>
2021-12-17[drivers/i2c] optimize i2c driver frameworkchenyingchun0312
2021-11-17[mutex] use RT_IPC_FLAG_PRIO to replace RT_IPC_FLAG_FIFOMeco Man
2021-04-20add I2C bus control apiRiceChen
2021-03-08[compoenets] auto & manual formattedMeco Man
2021-02-28Return when i2c transfer 0 messagesHoward Su
msg->flags is accessed without proper intialized msg variable.
2020-09-23[dirver/i2c] i2c driver support bus lock, STOP controlxieyangrun
2019-11-26[Device/I2C] Chang debug message print way to uloga1012112796
2019-09-06fix i2c flags buglinch
2019-06-18fix kernel and framework no cast type errortyustli
2019-05-29[DeviceDrivers][i2c] Remove the fm24clxx driver in i2c.armink
2018-10-14[license] Change license to Apache.Bernard Xiong
2018-06-10[Kernel] Add device ops feature.Bernard Xiong
2018-05-03fix an i2c debug print bugZHANG Jinglong
2017-10-15[DeviceDrivers] change cmd type.bernard
1. Change 'rt_uint8_t' type of cmd to 'int'; 2. Add waitqueue; 3. Split device ipc header files;
2017-08-20Merge pull request #816 from SummerGGift/masterBernard Xiong
[Device Drivers] delete an useless %s.
2017-08-19delete a useless %s.SummerGift
2017-07-20[Components] driver i2c add fm24clxx drvAubr.Cool
2017-02-20Update i2c_core.cBluebear233
修复I2C读写函数,I2C传输失败时返回成功的问题
2014-11-01[DeviceDriver] Remove i2c_core_lock.bernard
2014-08-03[DeviceDrivers] Fix compiling warning.bernard
2013-07-24add initialization debug codebernard
2013-06-28Embedded GPLv2 license in driversyiyue.fang
2013-01-08Re-normalizing the repoMing, Bai
2012-11-22fixed the coding style in the components/drivers[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2431 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-06-25correct the path for I2C device driver framework[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2181 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-06-14fixed a eclipse compiling warning.wuyangyong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2163 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-06-13update I2C driver, which now just use small memory[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2159 bbd45198-f89e-11dd-88c7-29a3b14d5316