1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/extcon/linu 4 $id: http://devicetree.org/schemas/extcon/linux,extcon-usb-gpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: USB GPIO Extcon device 7 title: USB GPIO Extcon device 8 8 9 maintainers: 9 maintainers: 10 - Frank Li <Frank.Li@nxp.com> 10 - Frank Li <Frank.Li@nxp.com> 11 11 12 description: 12 description: 13 This is a virtual device used to generate US 13 This is a virtual device used to generate USB cable states from the USB ID pin 14 connected to a GPIO pin. 14 connected to a GPIO pin. 15 15 16 properties: 16 properties: 17 compatible: 17 compatible: 18 const: linux,extcon-usb-gpio 18 const: linux,extcon-usb-gpio 19 19 20 id-gpios: 20 id-gpios: 21 description: gpio for USB ID pin. See gpio 21 description: gpio for USB ID pin. See gpio binding. 22 vbus-gpios: 22 vbus-gpios: 23 description: gpio for USB VBUS pin. 23 description: gpio for USB VBUS pin. 24 24 25 required: 25 required: 26 - compatible 26 - compatible 27 27 28 additionalProperties: false 28 additionalProperties: false 29 29 30 examples: 30 examples: 31 - | 31 - | 32 #include <dt-bindings/gpio/gpio.h> 32 #include <dt-bindings/gpio/gpio.h> 33 33 34 extcon_usb1 { 34 extcon_usb1 { 35 compatible = "linux,extcon-usb-gpio"; 35 compatible = "linux,extcon-usb-gpio"; 36 id-gpios = <&gpio6 1 GPIO_ACTIVE_HIGH> 36 id-gpios = <&gpio6 1 GPIO_ACTIVE_HIGH>; 37 }; 37 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.