Tx2 tegra_i2c_gpio

Hi, all:

It have “arb lost” error on tx2, the bus clear is not use. I want set the sda and scl to gpio pin and set the scl-gpio produce 9 clocks.
I found there are have tegra_i2c_gpio_xxx functions in the file “i2c-tegra.c”.
could you tell me how should I do to use the tegra_i2c_gpio_xxx correctly.


hello cxl824158933,

please check https://elinux.org/Jetson/Tutorials/GPIO for Tutorials,
you might also refer to https://github.com/NVIDIA/jetson-gpio, which is a Python library that enables the use of Jetson’s GPIOs.