A
A
Alexey Kuznetsov2018-01-28 16:54:42
linux
Alexey Kuznetsov, 2018-01-28 16:54:42

How to enable 1-wire support on orange pi on ~4.13 kernel?

On new Linux kernels, OS Armbian uses Device Tree .
The official manual, as well as the Armbian forum for the Mainline kernel, suggests enabling (or configuring) the 1-wire driver by editing DTB files.
Device Tree - turned out to be a dark forest, in general, little was found about it:
https://linux-sunxi.org/1-Wire
https://forum.armbian.com/topic/4040-enable-1-wire...
https ://habrahabr.ru/company/metrotek/blog/271983/
I myself have an Orange PI Zero, I try to enable 1-wire according to the manuals, the driver is activated, the device is created, but I don’t understand which pin is assigned to:
The instructions assume that the pin is set by the directive in DTS file:

gpios = <&pio 3 2 GPIO_ACTIVE_HIGH>; /* PD2 */

I just can’t recalculate this entry into a specific pin on the GPIO comb.
Tell me, whoever knows the values ​​\u200b\u200bof the corresponding GPIO comb?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Kuznetsov, 2018-01-28
@Poison48

Thank you so much PAR-N-GO
https://trytoguide.me/post/41

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question