0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/w1/w1-gpio.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Bitbanged GPIO 1-Wire Bus Device Tree Bindings
0008
0009 maintainers:
0010 - Daniel Mack <zonque@gmail.com>
0011
0012 properties:
0013 compatible:
0014 const: w1-gpio
0015
0016 gpios:
0017 minItems: 1
0018 items:
0019 - description: Data I/O pin
0020 - description: Enable pin for an external pull-up resistor
0021
0022 linux,open-drain:
0023 type: boolean
0024 description: >
0025 If specified, the data pin is considered in open-drain mode.
0026
0027 required:
0028 - compatible
0029 - gpios
0030
0031 additionalProperties:
0032 type: object
0033
0034 examples:
0035 - |
0036 #include <dt-bindings/gpio/gpio.h>
0037
0038 onewire {
0039 compatible = "w1-gpio";
0040 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
0041 };
0042
0043 ...