blob: 5a582448e40c2d45055aa5daa59622ecee0eeb31 [file] [log] [blame]
Eugen Hristeve1721ba2018-09-18 10:35:26 +03001W1 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