1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*b2d2a78aSEmmanuel Vadot%YAML 1.2 3*b2d2a78aSEmmanuel Vadot--- 4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/extcon/linux,extcon-usb-gpio.yaml# 5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*b2d2a78aSEmmanuel Vadot 7*b2d2a78aSEmmanuel Vadottitle: USB GPIO Extcon device 8*b2d2a78aSEmmanuel Vadot 9*b2d2a78aSEmmanuel Vadotmaintainers: 10*b2d2a78aSEmmanuel Vadot - Frank Li <Frank.Li@nxp.com> 11*b2d2a78aSEmmanuel Vadot 12*b2d2a78aSEmmanuel Vadotdescription: 13*b2d2a78aSEmmanuel Vadot This is a virtual device used to generate USB cable states from the USB ID pin 14*b2d2a78aSEmmanuel Vadot connected to a GPIO pin. 15*b2d2a78aSEmmanuel Vadot 16*b2d2a78aSEmmanuel Vadotproperties: 17*b2d2a78aSEmmanuel Vadot compatible: 18*b2d2a78aSEmmanuel Vadot const: linux,extcon-usb-gpio 19*b2d2a78aSEmmanuel Vadot 20*b2d2a78aSEmmanuel Vadot id-gpios: 21*b2d2a78aSEmmanuel Vadot description: gpio for USB ID pin. See gpio binding. 22*b2d2a78aSEmmanuel Vadot vbus-gpios: 23*b2d2a78aSEmmanuel Vadot description: gpio for USB VBUS pin. 24*b2d2a78aSEmmanuel Vadot 25*b2d2a78aSEmmanuel Vadotrequired: 26*b2d2a78aSEmmanuel Vadot - compatible 27*b2d2a78aSEmmanuel Vadot 28*b2d2a78aSEmmanuel VadotadditionalProperties: false 29*b2d2a78aSEmmanuel Vadot 30*b2d2a78aSEmmanuel Vadotexamples: 31*b2d2a78aSEmmanuel Vadot - | 32*b2d2a78aSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 33*b2d2a78aSEmmanuel Vadot 34*b2d2a78aSEmmanuel Vadot extcon_usb1 { 35*b2d2a78aSEmmanuel Vadot compatible = "linux,extcon-usb-gpio"; 36*b2d2a78aSEmmanuel Vadot id-gpios = <&gpio6 1 GPIO_ACTIVE_HIGH>; 37*b2d2a78aSEmmanuel Vadot }; 38