xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/w1/w1-gpio.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunw1-gpio devicetree bindings
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun
5*4882a593Smuzhiyun - compatible: "w1-gpio"
6*4882a593Smuzhiyun - gpios: one or two GPIO specs:
7*4882a593Smuzhiyun		- the first one is used as data I/O pin
8*4882a593Smuzhiyun		- the second one is optional. If specified, it is used as
9*4882a593Smuzhiyun		  enable pin for an external pin pullup.
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunOptional properties:
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun - linux,open-drain: if specified, the data pin is considered in
14*4882a593Smuzhiyun		     open-drain mode.
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunAlso refer to the generic w1.txt document.
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunExamples:
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun	onewire {
21*4882a593Smuzhiyun		compatible = "w1-gpio";
22*4882a593Smuzhiyun		gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun		battery {
25*4882a593Smuzhiyun			// ...
26*4882a593Smuzhiyun		};
27*4882a593Smuzhiyun	};
28