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