xref: /freebsd/sys/contrib/device-tree/Bindings/w1/w1-gpio.yaml (revision 8cc087a1eee9ec1ca9f7ac1e63ad51bdb5a682eb)
1*8cc087a1SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2*8cc087a1SEmmanuel Vadot%YAML 1.2
3*8cc087a1SEmmanuel Vadot---
4*8cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/w1/w1-gpio.yaml#
5*8cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8cc087a1SEmmanuel Vadot
7*8cc087a1SEmmanuel Vadottitle: Bitbanged GPIO 1-Wire Bus Device Tree Bindings
8*8cc087a1SEmmanuel Vadot
9*8cc087a1SEmmanuel Vadotmaintainers:
10*8cc087a1SEmmanuel Vadot  - Daniel Mack <zonque@gmail.com>
11*8cc087a1SEmmanuel Vadot
12*8cc087a1SEmmanuel Vadotproperties:
13*8cc087a1SEmmanuel Vadot  compatible:
14*8cc087a1SEmmanuel Vadot    const: w1-gpio
15*8cc087a1SEmmanuel Vadot
16*8cc087a1SEmmanuel Vadot  gpios:
17*8cc087a1SEmmanuel Vadot    minItems: 1
18*8cc087a1SEmmanuel Vadot    items:
19*8cc087a1SEmmanuel Vadot      - description: Data I/O pin
20*8cc087a1SEmmanuel Vadot      - description: Enable pin for an external pull-up resistor
21*8cc087a1SEmmanuel Vadot
22*8cc087a1SEmmanuel Vadot  linux,open-drain:
23*8cc087a1SEmmanuel Vadot    type: boolean
24*8cc087a1SEmmanuel Vadot    description: >
25*8cc087a1SEmmanuel Vadot      If specified, the data pin is considered in open-drain mode.
26*8cc087a1SEmmanuel Vadot
27*8cc087a1SEmmanuel Vadotrequired:
28*8cc087a1SEmmanuel Vadot  - compatible
29*8cc087a1SEmmanuel Vadot  - gpios
30*8cc087a1SEmmanuel Vadot
31*8cc087a1SEmmanuel VadotadditionalProperties:
32*8cc087a1SEmmanuel Vadot  type: object
33*8cc087a1SEmmanuel Vadot
34*8cc087a1SEmmanuel Vadotexamples:
35*8cc087a1SEmmanuel Vadot  - |
36*8cc087a1SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
37*8cc087a1SEmmanuel Vadot
38*8cc087a1SEmmanuel Vadot    onewire {
39*8cc087a1SEmmanuel Vadot        compatible = "w1-gpio";
40*8cc087a1SEmmanuel Vadot        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
41*8cc087a1SEmmanuel Vadot    };
42*8cc087a1SEmmanuel Vadot
43*8cc087a1SEmmanuel Vadot...
44