Bitbanged GPIO 1-Wire Bus
Schema identifier ($id): "http://devicetree.org/schemas/w1/w1-gpio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Daniel Mack <zonque@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "w1-gpio"
gpios — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Data I/O pin
Item 2
Enable pin for an external pull-up resistor
linux,open-drain — not listed as required here #
Value type (type): "boolean"
If specified, the data pin is considered in open-drain mode.
Required in this object (required): "compatible", "gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
Value type (
type):"object"
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
onewire {
compatible = "w1-gpio";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0