18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 28cc087a1SEmmanuel Vadot%YAML 1.2 38cc087a1SEmmanuel Vadot--- 48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/w1/w1-gpio.yaml# 58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68cc087a1SEmmanuel Vadot 7*7ef62cebSEmmanuel Vadottitle: Bitbanged GPIO 1-Wire Bus 88cc087a1SEmmanuel Vadot 98cc087a1SEmmanuel Vadotmaintainers: 108cc087a1SEmmanuel Vadot - Daniel Mack <zonque@gmail.com> 118cc087a1SEmmanuel Vadot 128cc087a1SEmmanuel Vadotproperties: 138cc087a1SEmmanuel Vadot compatible: 148cc087a1SEmmanuel Vadot const: w1-gpio 158cc087a1SEmmanuel Vadot 168cc087a1SEmmanuel Vadot gpios: 178cc087a1SEmmanuel Vadot minItems: 1 188cc087a1SEmmanuel Vadot items: 198cc087a1SEmmanuel Vadot - description: Data I/O pin 208cc087a1SEmmanuel Vadot - description: Enable pin for an external pull-up resistor 218cc087a1SEmmanuel Vadot 228cc087a1SEmmanuel Vadot linux,open-drain: 238cc087a1SEmmanuel Vadot type: boolean 248cc087a1SEmmanuel Vadot description: > 258cc087a1SEmmanuel Vadot If specified, the data pin is considered in open-drain mode. 268cc087a1SEmmanuel Vadot 278cc087a1SEmmanuel Vadotrequired: 288cc087a1SEmmanuel Vadot - compatible 298cc087a1SEmmanuel Vadot - gpios 308cc087a1SEmmanuel Vadot 318cc087a1SEmmanuel VadotadditionalProperties: 328cc087a1SEmmanuel Vadot type: object 338cc087a1SEmmanuel Vadot 348cc087a1SEmmanuel Vadotexamples: 358cc087a1SEmmanuel Vadot - | 368cc087a1SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 378cc087a1SEmmanuel Vadot 388cc087a1SEmmanuel Vadot onewire { 398cc087a1SEmmanuel Vadot compatible = "w1-gpio"; 408cc087a1SEmmanuel Vadot gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; 418cc087a1SEmmanuel Vadot }; 428cc087a1SEmmanuel Vadot 438cc087a1SEmmanuel Vadot... 44