Expose the i3c device to the linux /dev directory

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Expose the i3c device to the linux /dev directory

Expose the i3c device to the linux /dev directory

 

Some customers want to expose their i3c device on the /dev, In order to develop their i3c APP or operation the i3c device like I2C. But in our default BSP code, we do not support this feature for I3C device, This article will introduce how to make the i3c device expose to the user space.

Board : i.MX 93 EVK

BSP Version : lf-6.1.55-2.2.0

I3C device : LSM6DSOXTR

Step 1 : Rework the i.MX93 EVK Board, Install the R1010. 

pengyong_zhang_0-1716793370445.png

 

 

Step 2 : Apply the add_i3c_device_to_dev.patch file to the linux kernel code

             Command : git apply add_i3c_device_to_dev.patch

Step 3 : Re-compile the kernel Image file.

             Command : make imx_v8_defconfig

                                 make

Step 4 : Boot your board with "imx93-11x11-evk-i3c.dtb" file and see if you can see the I3C device on the /dev directory.

Result : We can see the i3c device is appeared in /dev directory, The i2c-8 is an i2c device mounted to the i3c bus. The i3c is backward compatible with i2c device. It will simulate the I2C signal loading i2c device.

             

pengyong_zhang_1-1716793370452.png

 

PS : You can also use the i2ctool detect i2c-8 device. As shown in the following picture:

pengyong_zhang_2-1716793370465.png

 

Note : If you need the patch file, Please contact me any time for free.

标签 (1)
无评分
版本历史
最后更新:
‎06-03-2024 10:39 PM
更新人: