Path: blob/master/Documentation/devicetree/bindings/extcon/extcon-ptn5150.yaml
26308 views
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause1%YAML 1.22---3$id: http://devicetree.org/schemas/extcon/extcon-ptn5150.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: PTN5150 CC (Configuration Channel) Logic device78maintainers:9- Krzysztof Kozlowski <krzk@kernel.org>1011description: |12PTN5150 is a small thin low power CC logic chip supporting the USB Type-C13connector application with CC control logic detection and indication14functions. It is interfaced to the host controller using an I2C interface.1516properties:17compatible:18const: nxp,ptn51501920int-gpios:21maxItems: 122deprecated: true23description:24GPIO pin (input) connected to the PTN5150's INTB pin.25Use "interrupts" instead.2627interrupts:28maxItems: 12930reg:31maxItems: 13233vbus-gpios:34maxItems: 135description:36GPIO pin (output) used to control VBUS. If skipped, no such control37takes place.3839port:40$ref: /schemas/graph.yaml#/properties/port41description:42A port node to link the usb controller for the dual role switch.4344required:45- compatible46- interrupts47- reg4849additionalProperties: false5051examples:52- |53#include <dt-bindings/gpio/gpio.h>54#include <dt-bindings/interrupt-controller/irq.h>55i2c {56#address-cells = <1>;57#size-cells = <0>;5859ptn5150@1d {60compatible = "nxp,ptn5150";61reg = <0x1d>;62interrupt-parent = <&msmgpio>;63interrupts = <78 IRQ_TYPE_LEVEL_HIGH>;64vbus-gpios = <&msmgpio 148 GPIO_ACTIVE_HIGH>;6566port {67endpoint {68remote-endpoint = <&usb1_drd_sw>;69};70};71};72};737475