Bidirectional GPIO pin on iMX7 for oneWire

I would like to use the M4 CPU to communicate via oneWire with an temperature sensor.
Problem is that i don’t know how to configure a GPIO pin bidirectional so that I can read and write on and from the pin. The pin that I would like to use is the SODIMM 45 pin.
Therefore I ask you how to configure that?
Thanks in advance :slight_smile:

Hello Zimart,

use w1-gpio in the device tree.
here is some information how to do it.

the driver for driver for fsl-imx:

and the GPIO onewire binding:

Best Regards,