1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2*4882a593Smuzhiyun%YAML 1.2 3*4882a593Smuzhiyun--- 4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/extcon/extcon-ptn5150.yaml# 5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml# 6*4882a593Smuzhiyun 7*4882a593Smuzhiyuntitle: PTN5150 CC (Configuration Channel) Logic device 8*4882a593Smuzhiyun 9*4882a593Smuzhiyunmaintainers: 10*4882a593Smuzhiyun - Krzysztof Kozlowski <krzk@kernel.org> 11*4882a593Smuzhiyun 12*4882a593Smuzhiyundescription: | 13*4882a593Smuzhiyun PTN5150 is a small thin low power CC logic chip supporting the USB Type-C 14*4882a593Smuzhiyun connector application with CC control logic detection and indication 15*4882a593Smuzhiyun functions. It is interfaced to the host controller using an I2C interface. 16*4882a593Smuzhiyun 17*4882a593Smuzhiyunproperties: 18*4882a593Smuzhiyun compatible: 19*4882a593Smuzhiyun const: nxp,ptn5150 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun int-gpios: 22*4882a593Smuzhiyun deprecated: true 23*4882a593Smuzhiyun description: 24*4882a593Smuzhiyun GPIO pin (input) connected to the PTN5150's INTB pin. 25*4882a593Smuzhiyun Use "interrupts" instead. 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun interrupts: 28*4882a593Smuzhiyun maxItems: 1 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun reg: 31*4882a593Smuzhiyun maxItems: 1 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun vbus-gpios: 34*4882a593Smuzhiyun description: 35*4882a593Smuzhiyun GPIO pin (output) used to control VBUS. If skipped, no such control 36*4882a593Smuzhiyun takes place. 37*4882a593Smuzhiyun 38*4882a593Smuzhiyunrequired: 39*4882a593Smuzhiyun - compatible 40*4882a593Smuzhiyun - interrupts 41*4882a593Smuzhiyun - reg 42*4882a593Smuzhiyun 43*4882a593SmuzhiyunadditionalProperties: false 44*4882a593Smuzhiyun 45*4882a593Smuzhiyunexamples: 46*4882a593Smuzhiyun - | 47*4882a593Smuzhiyun #include <dt-bindings/gpio/gpio.h> 48*4882a593Smuzhiyun #include <dt-bindings/interrupt-controller/irq.h> 49*4882a593Smuzhiyun i2c { 50*4882a593Smuzhiyun #address-cells = <1>; 51*4882a593Smuzhiyun #size-cells = <0>; 52*4882a593Smuzhiyun 53*4882a593Smuzhiyun ptn5150@1d { 54*4882a593Smuzhiyun compatible = "nxp,ptn5150"; 55*4882a593Smuzhiyun reg = <0x1d>; 56*4882a593Smuzhiyun interrupt-parent = <&msmgpio>; 57*4882a593Smuzhiyun interrupts = <78 IRQ_TYPE_LEVEL_HIGH>; 58*4882a593Smuzhiyun vbus-gpios = <&msmgpio 148 GPIO_ACTIVE_HIGH>; 59*4882a593Smuzhiyun }; 60*4882a593Smuzhiyun }; 61