xref: /freebsd/sys/contrib/device-tree/Bindings/usb/nxp,ptn5110.yaml (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
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 Typec Port Cotroller
8
9maintainers:
10  - Li Jun <jun.li@nxp.com>
11
12properties:
13  compatible:
14    const: nxp,ptn5110
15
16  reg:
17    maxItems: 1
18
19  interrupts:
20    maxItems: 1
21
22  connector:
23    type: object
24    $ref: /schemas/connector/usb-connector.yaml#
25    unevaluatedProperties: false
26
27required:
28  - compatible
29  - reg
30  - interrupts
31  - connector
32
33additionalProperties: false
34
35examples:
36  - |
37    #include <dt-bindings/interrupt-controller/arm-gic.h>
38    #include <dt-bindings/usb/pd.h>
39    i2c {
40        #address-cells = <1>;
41        #size-cells = <0>;
42
43        tcpci@50 {
44            compatible = "nxp,ptn5110";
45            reg = <0x50>;
46            interrupt-parent = <&gpio3>;
47            interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
48
49            usb_con: connector {
50                compatible = "usb-c-connector";
51                label = "USB-C";
52                data-role = "dual";
53                power-role = "dual";
54                try-power-role = "sink";
55                source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
56                sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM) PDO_VAR(5000, 12000, 2000)>;
57                op-sink-microwatt = <10000000>;
58
59                ports {
60                    #address-cells = <1>;
61                    #size-cells = <0>;
62
63                    port@0 {
64                       reg = <0>;
65                       typec1_dr_sw: endpoint {
66                           remote-endpoint = <&usb1_drd_sw>;
67                       };
68                    };
69                };
70            };
71        };
72    };
73