Access to i2c-gpio bus in /dev/ ?

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

Access to i2c-gpio bus in /dev/ ?

2,457 次查看
lucviala
Contributor I

Hello nxp community,

I try to implement i2c-gpio on imx6ul via device-tree.

I already patch device-tree with the following lines and it compile nicely:

+#include <dt-bindings/gpio/gpio.h>

+/ {
+       i2c-device@0 {
+               compatible = "i2c-gpio";
+               sda-gpios = <&gpio1 9>;
+               scl-gpios = <&gpio1 1>;
+               i2c-gpio,sda-open-drain;
+               i2c-gpio,scl-open-drain;
+               i2c-gpio,delay-us = <120>;
+       };
+};

but i2c-gpio char device is missing in /dev/ folder when I boot up the target.

I also already compile kernel with i2c-gpio driver checked with menuconfig.

How I can access to i2c-gpio bus, or there is something missing in my devicetree patch ?

Thank you in advance for your advices.

Best Regards,

Luc

标签 (3)
0 项奖励
回复
1 回复

1,930 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Luc

please look at i2c device-tree documentation:

I2C 

i.MX6 Device Tree customization - Boundary Devices 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复