Bidirectional GPIO pin on iMX7 for oneWire

Hey!
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.
https://linux-sunxi.org/1-Wire

the driver for driver for fsl-imx:
http://git.toradex.com/cgit/linux-toradex.git/tree/Documentation/devicetree/bindings/w1/fsl-imx-owire.txt?h=toradex_5.4-2.1.x-imx

and the GPIO onewire binding:
http://git.toradex.com/cgit/linux-toradex.git/tree/Documentation/devicetree/bindings/w1/w1-gpio.txt?h=toradex_5.4-2.1.x-imx
http://git.toradex.com/cgit/linux-toradex.git/tree/Documentation/devicetree/bindings/w1/w1.txt?h=toradex_5.4-2.1.x-imx

Best Regards,

Matthias