Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v5.6 27 lines 529 B view raw
1w1-gpio devicetree bindings 2 3Required properties: 4 5 - compatible: "w1-gpio" 6 - gpios: one or two GPIO specs: 7 - the first one is used as data I/O pin 8 - the second one is optional. If specified, it is used as 9 enable pin for an external pin pullup. 10 11Optional properties: 12 13 - linux,open-drain: if specified, the data pin is considered in 14 open-drain mode. 15 16Also refer to the generic w1.txt document. 17 18Examples: 19 20 onewire { 21 compatible = "w1-gpio"; 22 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; 23 24 battery { 25 // ... 26 }; 27 };