PTN5150 CC (Configuration Channel) Logic device
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