xref: /linux/Documentation/devicetree/bindings/usb/nxp,ptn5110.yaml (revision fc2d791a43d3880496d1c729b8bd74d2c19cb4e7)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/usb/nxp,ptn5110.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NXP PTN5110 Type-C Port Controller
8
9maintainers:
10  - Li Jun <jun.li@nxp.com>
11
12properties:
13  compatible:
14    items:
15      - const: nxp,ptn5110
16      - const: tcpci
17
18  reg:
19    maxItems: 1
20
21  interrupts:
22    maxItems: 1
23
24  connector:
25    type: object
26    $ref: /schemas/connector/usb-connector.yaml#
27    unevaluatedProperties: false
28
29  orientation-gpios:
30    maxItems: 1
31    description: Optional orientation select control
32
33required:
34  - compatible
35  - reg
36  - interrupts
37  - connector
38
39additionalProperties: false
40
41examples:
42  - |
43    #include <dt-bindings/interrupt-controller/arm-gic.h>
44    #include <dt-bindings/usb/pd.h>
45    i2c {
46        #address-cells = <1>;
47        #size-cells = <0>;
48
49        tcpci@50 {
50            compatible = "nxp,ptn5110", "tcpci";
51            reg = <0x50>;
52            interrupt-parent = <&gpio3>;
53            interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
54
55            usb_con: connector {
56                compatible = "usb-c-connector";
57                label = "USB-C";
58                data-role = "dual";
59                power-role = "dual";
60                try-power-role = "sink";
61                source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
62                sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM) PDO_VAR(5000, 12000, 2000)>;
63                op-sink-microwatt = <10000000>;
64
65                ports {
66                    #address-cells = <1>;
67                    #size-cells = <0>;
68
69                    port@0 {
70                       reg = <0>;
71                       typec1_dr_sw: endpoint {
72                           remote-endpoint = <&usb1_drd_sw>;
73                       };
74                    };
75                };
76            };
77        };
78    };
79