xref: /openbmc/u-boot/doc/device-tree-bindings/w1/w1-gpio.txt (revision c882163b09b8a2c52e3dd8acd7d296d6d06d1f2e)
1W1 gpio device binding - one wire protocol over bitbanged gpio
2=======================
3
4
5Child nodes are required in device tree. The driver will detect
6the devices serial number and then search in the child nodes in the device tree
7for the proper node and try to match it with the device.
8
9Also check doc/device-tree-bindings/w1-eeprom for possible child nodes drivers
10
11Driver:
12- drivers/w1/w1-gpio.c
13
14Software w1 device-tree node properties:
15Required:
16* compatible = "w1-gpio";
17* gpios = <...>;
18	This is the gpio used for one wire protocol, using bitbanging
19
20Optional:
21* none
22
23Example:
24
25onewire_tm: onewire {
26		compatible = "w1-gpio";
27		gpios = <&pioA 32 0>;
28};
29
30Example with child:
31
32onewire_tm: onewire {
33		compatible = "w1-gpio";
34		gpios = <&pioA 32 0>;
35
36		eeprom1: eeprom@0 {
37			compatible = "maxim,ds24xxx";
38		}
39};
40
41