Documentation / devicetree / bindings / w1 / w1-gpio.txt


Based on kernel version 5.15. Page generated on 2021-11-01 09:19 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
w1-gpio devicetree bindings

Required properties:

 - compatible: "w1-gpio"
 - gpios: one or two GPIO specs:
		- the first one is used as data I/O pin
		- the second one is optional. If specified, it is used as
		  enable pin for an external pin pullup.

Optional properties:

 - linux,open-drain: if specified, the data pin is considered in
		     open-drain mode.

Also refer to the generic w1.txt document.

Examples:

	onewire {
		compatible = "w1-gpio";
		gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;

		battery {
			// ...
		};
	};