16be33864SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 26be33864SEmmanuel Vadot%YAML 1.2 36be33864SEmmanuel Vadot--- 46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/extcon/extcon-ptn5150.yaml# 56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 66be33864SEmmanuel Vadot 76be33864SEmmanuel Vadottitle: PTN5150 CC (Configuration Channel) Logic device 86be33864SEmmanuel Vadot 96be33864SEmmanuel Vadotmaintainers: 106be33864SEmmanuel Vadot - Krzysztof Kozlowski <krzk@kernel.org> 116be33864SEmmanuel Vadot 126be33864SEmmanuel Vadotdescription: | 136be33864SEmmanuel Vadot PTN5150 is a small thin low power CC logic chip supporting the USB Type-C 146be33864SEmmanuel Vadot connector application with CC control logic detection and indication 156be33864SEmmanuel Vadot functions. It is interfaced to the host controller using an I2C interface. 166be33864SEmmanuel Vadot 176be33864SEmmanuel Vadotproperties: 186be33864SEmmanuel Vadot compatible: 196be33864SEmmanuel Vadot const: nxp,ptn5150 206be33864SEmmanuel Vadot 216be33864SEmmanuel Vadot int-gpios: 22*5def4c47SEmmanuel Vadot maxItems: 1 236be33864SEmmanuel Vadot deprecated: true 246be33864SEmmanuel Vadot description: 256be33864SEmmanuel Vadot GPIO pin (input) connected to the PTN5150's INTB pin. 266be33864SEmmanuel Vadot Use "interrupts" instead. 276be33864SEmmanuel Vadot 286be33864SEmmanuel Vadot interrupts: 296be33864SEmmanuel Vadot maxItems: 1 306be33864SEmmanuel Vadot 316be33864SEmmanuel Vadot reg: 326be33864SEmmanuel Vadot maxItems: 1 336be33864SEmmanuel Vadot 346be33864SEmmanuel Vadot vbus-gpios: 35*5def4c47SEmmanuel Vadot maxItems: 1 366be33864SEmmanuel Vadot description: 376be33864SEmmanuel Vadot GPIO pin (output) used to control VBUS. If skipped, no such control 386be33864SEmmanuel Vadot takes place. 396be33864SEmmanuel Vadot 406be33864SEmmanuel Vadotrequired: 416be33864SEmmanuel Vadot - compatible 426be33864SEmmanuel Vadot - interrupts 436be33864SEmmanuel Vadot - reg 446be33864SEmmanuel Vadot 456be33864SEmmanuel VadotadditionalProperties: false 466be33864SEmmanuel Vadot 476be33864SEmmanuel Vadotexamples: 486be33864SEmmanuel Vadot - | 496be33864SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 506be33864SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 516be33864SEmmanuel Vadot i2c { 526be33864SEmmanuel Vadot #address-cells = <1>; 536be33864SEmmanuel Vadot #size-cells = <0>; 546be33864SEmmanuel Vadot 556be33864SEmmanuel Vadot ptn5150@1d { 566be33864SEmmanuel Vadot compatible = "nxp,ptn5150"; 576be33864SEmmanuel Vadot reg = <0x1d>; 586be33864SEmmanuel Vadot interrupt-parent = <&msmgpio>; 596be33864SEmmanuel Vadot interrupts = <78 IRQ_TYPE_LEVEL_HIGH>; 606be33864SEmmanuel Vadot vbus-gpios = <&msmgpio 148 GPIO_ACTIVE_HIGH>; 616be33864SEmmanuel Vadot }; 626be33864SEmmanuel Vadot }; 63