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