on my custom carrier board i like to use i2c on imx7d
i modified imx7-colibri-eval-v3.dts to enable i2c2, 3
pinctrl-names = “default”;
pinctrl-0 = <&pinctrl_i2c2>;
status = “okay”;
pinctrl-names = default;
|pinctrl-0 = <&pinctrl_i2c3>;
status = "okay"
i don’t change any things on kernel and kernel config ,
but after boot i can’t see i2c3
root@colibri-imx7:/sys/devices/soc0# ls /dev/i2c*
/dev/i2c-0 /dev/i2c-1 /dev/i2c-3
what do i miss ?
thanks in advance
Thanks for contacting Toradex Community.
Regarding your query, could you please share more details such as bsp, kernel, image and pin details you are using here.
Also to use other i2c, one needs to modify pin mux for same. Make sure the pins used for sda and scl defined in pinctrl_i2c3 and pinctrl_i2c2 are not being used by any other node in device tree. Due to this pins can conflict while loading driver. You can check quickly using dmesg | grep -i i2c command and check for any error or conflict log.
Let me know if you have any queries.
Thanks & Best Regards
i found my mistake , the pin which i used for i2c was used by iomux for gpio
there were error messages when kernel booted but i did n’t catch it
i thought pin mux is overwritten by i2c pin assingment, so i did n’t carefully see other pin assignment
thank you so much