1875290_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

1875290_en-US

1875290_en-US

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.

LinuxRe: Expose the i3c device to the linux /dev directory

I am also interested for the patch.

Re: Expose the i3c device to the linux /dev directory

Hello, can you send me the patch file add_i3c_device_to_dev.patch?

タグ(1)
評価なし
バージョン履歴
最終更新日:
‎11-19-2025 12:48 PM
更新者: