Extcon bindings
Single-page view · as markdown
PTN5150 CC (Configuration Channel) Logic device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Extcon bindings
Schema identifier ($id): "http://devicetree.org/schemas/extcon/extcon-ptn5150.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
PTN5150 is a small thin low power CC logic chip supporting the USB Type-C connector application with CC control logic detection and indication functions. It is interfaced to the host controller using an I2C interface.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nxp,ptn5150"
int-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Deprecated (deprecated): true
GPIO pin (input) connected to the PTN5150's INTB pin. Use "interrupts" instead.
interrupts — required here #
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
vbus-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO pin (output) used to control VBUS. If skipped, no such control takes place.
port — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
A port node to link the usb controller for the dual role switch.
Required in this object (required): "compatible", "interrupts", "reg"
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>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
ptn5150@1d {
compatible = "nxp,ptn5150";
reg = <0x1d>;
interrupt-parent = <&msmgpio>;
interrupts = <78 IRQ_TYPE_LEVEL_HIGH>;
vbus-gpios = <&msmgpio 148 GPIO_ACTIVE_HIGH>;
port {
endpoint {
remote-endpoint = <&usb1_drd_sw>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
ChromeOS EC USB Type-C cable and accessories detection
Peios Kernel / Hardware and drivers / Device-tree binding reference / Extcon bindings
Schema identifier ($id): "http://devicetree.org/schemas/extcon/extcon-usbc-cros-ec.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Benson Leung <bleung@chromium.org>"
On ChromeOS systems with USB Type C ports, the ChromeOS Embedded Controller is able to detect the state of external accessories such as display adapters or USB devices when said accessories are attached or detached. The node for this device must be under a cros-ec node like google,cros-ec-spi or google,cros-ec-i2c.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "google,extcon-usbc-cros-ec"
google,usb-port-id — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
the port id
Minimum value (minimum): 0
Maximum value (maximum): 255
Required in this object (required): "compatible", "google,usb-port-id"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
cros-ec@0 {
compatible = "google,cros-ec-spi";
reg = <0>;
interrupts = <44 0>;
usbc_extcon0: extcon0 {
compatible = "google,extcon-usbc-cros-ec";
google,usb-port-id = <0>;
};
usbc_extcon1: extcon1 {
compatible = "google,extcon-usbc-cros-ec";
google,usb-port-id = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
TI TUSB320 USB Type-C CC Logic controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Extcon bindings
Schema identifier ($id): "http://devicetree.org/schemas/extcon/extcon-usbc-tusb320.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Auchter <michael.auchter@ni.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,tusb320", "ti,tusb320l"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
tusb320@61 {
compatible = "ti,tusb320";
reg = <0x61>;
interrupt-parent = <&gpio>;
interrupts = <27 1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Fairchild Semiconductor FSA880, FSA9480 and compatibles
Peios Kernel / Hardware and drivers / Device-tree binding reference / Extcon bindings
Schema identifier ($id): "http://devicetree.org/schemas/extcon/fcs,fsa880.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
The FSA880 and FSA9480 are USB port accessory detectors and switches. The switch is fully controlled using I2C and enables USB data, stereo and mono audio, video, microphone, and UART data to use a common connector port. Compatible switches exist from other manufacturers.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "fcs,fsa880", "fcs,fsa9480", "ti,tsu6111"
reg — required here #
Maximum number of items (maxItems): 1
The I2C address for an FSA880 compatible device is usually 0x25.
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
usb-switch@25 {
compatible = "fcs,fsa880";
reg = <0x25>;
interrupt-parent = <&gpio>;
interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
USB GPIO Extcon device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Extcon bindings
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)
Maxim MAX14526 MicroUSB Integrated Circuit (MUIC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Extcon bindings
Schema identifier ($id): "http://devicetree.org/schemas/extcon/maxim,max14526.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Svyatoslav Ryhel <clamor95@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "maxim,max14526"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
connector — required here #
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
port — required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Required in this object (required): "compatible", "reg", "interrupts", "connector", "port"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
muic@44 {
compatible = "maxim,max14526";
reg = <0x44>;
interrupt-parent = <&gpio>;
interrupts = <72 IRQ_TYPE_EDGE_FALLING>;
connector {
compatible = "usb-b-connector";
label = "micro-USB";
type = "micro";
};
port {
#address-cells = <1>;
#size-cells = <0>;
muic_to_charger: endpoint@0 {
reg = <0>;
remote-endpoint = <&charger_input>;
};
muic_to_usb: endpoint@1 {
reg = <1>;
remote-endpoint = <&usb_input>;
};
muic_to_mhl: endpoint@2 {
reg = <2>;
remote-endpoint = <&mhl_input>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Maxim MAX77843 MicroUSB and Companion Power Management IC Extcon
Peios Kernel / Hardware and drivers / Device-tree binding reference / Extcon bindings
Schema identifier ($id): "http://devicetree.org/schemas/extcon/maxim,max77843.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chanwoo Choi <cw00.choi@samsung.com>", "Krzysztof Kozlowski <krzk@kernel.org>"
This is a part of device tree bindings for Maxim MAX77843 MicroUSB Integrated Circuit (MUIC).
See also Documentation/devicetree/bindings/mfd/maxim,max77843.yaml for additional information and example.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "maxim,max77843-muic"
connector — required here #
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
Any connector to the data bus of this controller should be modelled using the OF graph bindings specified
Properties and child nodes (properties) #
port — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Required in this object (required): "compatible", "connector"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Qualcomm Technologies, Inc. PM8941 USB ID Extcon device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Extcon bindings
Schema identifier ($id): "http://devicetree.org/schemas/extcon/qcom,pm8941-misc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Guru Das Srinagesh <quic_gurus@quicinc.com>"
Some Qualcomm PMICs have a "misc" module that can be used to detect when the USB ID pin has been pulled low or high.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"qcom,pm8941-misc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — required here #
Minimum number of items (minItems): 1
At least one of these rules must match (anyOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"usb_id"Item 2
Exact value (
const):"usb_vbus"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"usb_id"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"usb_vbus"
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
pmic {
#address-cells = <1>;
#size-cells = <0>;
interrupt-controller;
#interrupt-cells = <4>;
usb_id: usb-detect@900 {
compatible = "qcom,pm8941-misc";
reg = <0x900>;
interrupts = <0x0 0x9 0 IRQ_TYPE_EDGE_BOTH>;
interrupt-names = "usb_id";
};
};
usb-controller {
extcon = <&usb_id>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Richtek RT8973A MUIC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Extcon bindings
Schema identifier ($id): "http://devicetree.org/schemas/extcon/richtek,rt8973a-muic.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chanwoo Choi <cw00.choi@samsung.com>"
The Richtek RT8973A is Micro USB Switch with OVP and I2C interface. The RT8973A is a USB port accessory detector and switch that is optimized to protect low voltage system from abnormal high input voltage (up to 28V) and supports high speed USB operation. Also, RT8973A support 'auto-configuration' mode. If auto-configuration mode is enabled, RT8973A would control internal h/w patch for USB D-/D+ switching.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "richtek,rt8973a-muic"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
usb-switch@14 {
compatible = "richtek,rt8973a-muic";
reg = <0x14>;
interrupt-parent = <&gpio>;
interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
SM5502/SM5504 MUIC (Micro-USB Interface Controller) device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Extcon bindings
Schema identifier ($id): "http://devicetree.org/schemas/extcon/siliconmitus,sm5502-muic.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chanwoo Choi <cw00.choi@samsung.com>"
The Silicon Mitus SM5502 is a MUIC (Micro-USB Interface Controller) device which can detect the state of external accessory when external accessory is attached or detached and button is pressed or released. It is interfaced to the host controller using an I2C interface.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "siliconmitus,sm5502-muic", "siliconmitus,sm5504-muic", "siliconmitus,sm5703-muic"
reg — required here #
Maximum number of items (maxItems): 1
I2C slave address of the device. Usually 0x25 for SM5502 and SM5703, 0x14 for SM5504.
connector — not listed as required here #
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
extcon@25 {
compatible = "siliconmitus,sm5502-muic";
reg = <0x25>;
interrupt-parent = <&msmgpio>;
interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Extcon bindings
Schema identifier ($id): "http://devicetree.org/schemas/extcon/wlf,arizona.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "patches@opensource.cirrus.com"
These devices are audio SoCs with extensive digital capabilities and a range of analogue I/O.
This document lists Extcon specific bindings, see the primary binding document ../mfd/arizona.yaml
Properties and child nodes (properties) #
wlf,hpdet-channel — not listed as required here #
Headphone detection channel. ARIZONA_ACCDET_MODE_HPL/1 sets the headphone detect mode to HPDETL, ARIZONA_ACCDET_MODE_HPR/2 sets it to HPDETR. If this node is not included or if the value is unknown, then headphone detection mode is set to HPDETL.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 2
wlf,use-jd2 — not listed as required here #
Use the additional JD input along with JD1 for dual pin jack detection.
Value type (type): "boolean"
wlf,use-jd2-nopull — not listed as required here #
Internal pull on JD2 is disabled when used for jack detection.
Value type (type): "boolean"
wlf,jd-invert — not listed as required here #
Invert the polarity of the jack detection switch.
Value type (type): "boolean"
wlf,micd-software-compare — not listed as required here #
Use a software comparison to determine mic presence.
Value type (type): "boolean"
wlf,micd-detect-debounce — not listed as required here #
Additional software microphone detection debounce specified in milliseconds.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
wlf,micd-pol-gpio — not listed as required here #
GPIO specifier for the GPIO controlling the headset polarity if one exists.
Maximum number of items (maxItems): 1
wlf,micd-bias-start-time — not listed as required here #
Time allowed for MICBIAS to startup prior to performing microphone detection, specified as per the ARIZONA_MICD_TIME_XXX defines.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 12
wlf,micd-rate — not listed as required here #
Delay between successive microphone detection measurements, specified as per the ARIZONA_MICD_TIME_XXX defines.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 12
wlf,micd-dbtime — not listed as required here #
Microphone detection hardware debounces specified as the number of measurements to take.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
wlf,micd-timeout-ms — not listed as required here #
Timeout for microphone detection, specified in milliseconds.
wlf,micd-force-micbias — not listed as required here #
Force MICBIAS continuously on during microphone detection.
Value type (type): "boolean"
wlf,micd-configs — not listed as required here #
Headset polarity configurations (generally used for detection of CTIA / OMTP headsets), the field can be of variable length but should always be a multiple of 3 cells long, each three cell group represents one polarity configuration.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix
Array item rules (items) #
Array item rules (
items)Item 1
The first cell defines the accessory detection pin, zero will use MICDET1 and 0x2000 will use MICDET2.
Item 2
The second cell represents the MICBIAS to be used. Zero will use MICVDD, 1-3 will use MICBIASx.
Minimum value (
minimum):0Maximum value (
maximum):3Item 3
The third cell represents the value of the micd-pol-gpio pin.
Minimum value (
minimum):0Maximum value (
maximum):1
wlf,gpsw — not listed as required here #
Settings for the general purpose switch, set as one of the ARIZONA_GPSW_XXX defines.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 3
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause