USB GPIO Extcon device
Schema identifier ($id): "http://devicetree.org/schemas/extcon/linux,extcon-usb-gpio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
This is a virtual device used to generate USB cable states from the USB ID pin connected to a GPIO pin.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "linux,extcon-usb-gpio"
id-gpios — not listed as required here #
gpio for USB ID pin. See gpio binding.
vbus-gpios — not listed as required here #
gpio for USB VBUS pin.
Required in this object (required): "compatible"
At least one of these rules must match (anyOf) #
Rule 1 #
Rule 2 #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
extcon_usb1 {
compatible = "linux,extcon-usb-gpio";
id-gpios = <&gpio6 1 GPIO_ACTIVE_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)