xref: /linux/Documentation/devicetree/bindings/usb/richtek,rt1719.yaml (revision 03c601927b673a243c9595e1ecc9e8adfdd02438)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/usb/richtek,rt1719.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Richtek RT1719 sink-only Type-C PD controller
8
9maintainers:
10  - ChiYuan Huang <cy_huang@richtek.com>
11
12description: |
13  The RT1719 is a sink-only USB Type-C contoller that complies with the latest
14  USB Type-C and PD standards. It does the USB Type-C detection including attach
15  and orientation. It integrates the physical layer of the USB BMC power
16  delivery protocol to allow up to 100W of power. The BMC PD block enables full
17  support for alternative interfaces of the Type-C specification.
18
19properties:
20  compatible:
21    enum:
22      - richtek,rt1719
23
24  reg:
25    maxItems: 1
26
27  interrupts:
28    maxItems: 1
29
30  wakeup-source:
31    description: enable IRQ remote wakeup, see power/wakeup-source.txt
32    type: boolean
33
34  connector:
35    type: object
36    $ref: ../connector/usb-connector.yaml#
37    description:
38      Properties for usb c connector.
39
40additionalProperties: false
41
42required:
43  - compatible
44  - reg
45  - connector
46  - interrupts
47
48examples:
49  - |
50    #include <dt-bindings/interrupt-controller/irq.h>
51    i2c {
52      #address-cells = <1>;
53      #size-cells = <0>;
54
55      rt1719@43 {
56        compatible = "richtek,rt1719";
57        reg = <0x43>;
58        interrupts-extended = <&gpio26 2 IRQ_TYPE_LEVEL_LOW>;
59        wakeup-source;
60
61        connector {
62          compatible = "usb-c-connector";
63          label = "USB-C";
64
65          ports {
66            #address-cells = <1>;
67            #size-cells = <0>;
68
69            port@0 {
70              reg = <0>;
71              endpoint {
72                remote-endpoint = <&usb_hs>;
73              };
74            };
75            port@1 {
76              reg = <1>;
77              endpoint {
78                remote-endpoint = <&usb_ss>;
79              };
80            };
81          };
82        };
83      };
84    };
85...
86