Merge tag 'tty-6.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / usb / ti,tps6598x.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/usb/ti,tps6598x.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Texas Instruments 6598x Type-C Port Switch and Power Delivery controller
8
9 maintainers:
10   - Bryan O'Donoghue <bryan.odonoghue@linaro.org>
11
12 description: |
13   Texas Instruments 6598x Type-C Port Switch and Power Delivery controller
14
15   A variant of this controller known as Apple CD321x or Apple ACE is also
16   present on hardware with Apple SoCs such as the M1.
17
18 properties:
19   compatible:
20     enum:
21       - ti,tps6598x
22       - apple,cd321x
23   reg:
24     maxItems: 1
25
26   wakeup-source: true
27
28   interrupts:
29     maxItems: 1
30
31   interrupt-names:
32     items:
33       - const: irq
34
35   connector:
36     $ref: /schemas/connector/usb-connector.yaml#
37
38 required:
39   - compatible
40   - reg
41
42 additionalProperties: false
43
44 examples:
45   - |
46     #include <dt-bindings/interrupt-controller/irq.h>
47     i2c {
48         #address-cells = <1>;
49         #size-cells = <0>;
50
51         tps6598x: tps6598x@38 {
52             compatible = "ti,tps6598x";
53             reg = <0x38>;
54             wakeup-source;
55
56             interrupt-parent = <&msmgpio>;
57             interrupts = <107 IRQ_TYPE_LEVEL_LOW>;
58             interrupt-names = "irq";
59
60             pinctrl-names = "default";
61             pinctrl-0 = <&typec_pins>;
62
63             typec_con: connector {
64                 compatible = "usb-c-connector";
65                 label = "USB-C";
66                 port {
67                     typec_ep: endpoint {
68                         remote-endpoint = <&otg_ep>;
69                     };
70                 };
71             };
72         };
73     };
74 ...