zephyr,w1-gpio

Description

These nodes are “w1” bus nodes.

Zephyr W1 GPIO node

This defines a one-wire driver through GPIO bit-banging.

Implementation details:
  - Most drivers require the selected gpio to support open drain, this enables onewire
    devices to lower the signal when the SOC set the signal high.
  - Ensure pullup is strong enough (4.7K according to the specification). Standard pullup in
    SOC are usually weak, and may not be strong enough.

Examples

/ {
      w1: w1 {
               compatible = "zephyr,w1-gpio";
               /* Configure pin as open-drain with internal pull-up resistor. */
               gpios = <&gpio0 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN | GPIO_PULL_UP)>;
       };
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

gpios

phandle-array

This property is required.

active-pullup

boolean

Enable the active pullup for the 1-Wire bus.