xref: /freebsd/sys/contrib/device-tree/Bindings/usb/analogix,anx7411.yaml (revision 01950c46b8155250f64374fb72fc11faa44bf099)
1b97ee269SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2b97ee269SEmmanuel Vadot%YAML 1.2
3b97ee269SEmmanuel Vadot---
4b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/usb/analogix,anx7411.yaml#
5b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6b97ee269SEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: Analogix ANX7411 Type-C controller
8b97ee269SEmmanuel Vadot
9b97ee269SEmmanuel Vadotmaintainers:
10b97ee269SEmmanuel Vadot  - Xin Ji <xji@analogixsemi.com>
11b97ee269SEmmanuel Vadot
12b97ee269SEmmanuel Vadotproperties:
13b97ee269SEmmanuel Vadot  compatible:
14b97ee269SEmmanuel Vadot    enum:
15b97ee269SEmmanuel Vadot      - analogix,anx7411
16b97ee269SEmmanuel Vadot
17b97ee269SEmmanuel Vadot  reg:
18b97ee269SEmmanuel Vadot    maxItems: 1
19b97ee269SEmmanuel Vadot
20b97ee269SEmmanuel Vadot  interrupts:
21b97ee269SEmmanuel Vadot    maxItems: 1
22b97ee269SEmmanuel Vadot
23b97ee269SEmmanuel Vadot  connector:
24b97ee269SEmmanuel Vadot    type: object
25b97ee269SEmmanuel Vadot    $ref: ../connector/usb-connector.yaml
26b97ee269SEmmanuel Vadot
27b97ee269SEmmanuel Vadot    properties:
28b97ee269SEmmanuel Vadot      compatible:
29b97ee269SEmmanuel Vadot        const: usb-c-connector
30b97ee269SEmmanuel Vadot
31b97ee269SEmmanuel Vadotrequired:
32b97ee269SEmmanuel Vadot  - compatible
33b97ee269SEmmanuel Vadot  - reg
34b97ee269SEmmanuel Vadot  - connector
35b97ee269SEmmanuel Vadot
36b97ee269SEmmanuel VadotadditionalProperties: false
37b97ee269SEmmanuel Vadot
38b97ee269SEmmanuel Vadotexamples:
39b97ee269SEmmanuel Vadot  - |
40b97ee269SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
41b97ee269SEmmanuel Vadot    i2c {
42b97ee269SEmmanuel Vadot        #address-cells = <1>;
43b97ee269SEmmanuel Vadot        #size-cells = <0>;
44b97ee269SEmmanuel Vadot
45b97ee269SEmmanuel Vadot        typec@2c {
46b97ee269SEmmanuel Vadot            compatible = "analogix,anx7411";
47b97ee269SEmmanuel Vadot            reg = <0x2c>;
48b97ee269SEmmanuel Vadot            interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
49b97ee269SEmmanuel Vadot            interrupt-parent = <&gpio0>;
50b97ee269SEmmanuel Vadot
51b97ee269SEmmanuel Vadot            typec_con: connector {
52b97ee269SEmmanuel Vadot                compatible = "usb-c-connector";
53b97ee269SEmmanuel Vadot                power-role = "dual";
54b97ee269SEmmanuel Vadot                data-role = "dual";
55b97ee269SEmmanuel Vadot                try-power-role = "source";
56b97ee269SEmmanuel Vadot
57b97ee269SEmmanuel Vadot                ports {
58b97ee269SEmmanuel Vadot                    #address-cells = <1>;
59b97ee269SEmmanuel Vadot                    #size-cells = <0>;
60b97ee269SEmmanuel Vadot                    port@0 {
61b97ee269SEmmanuel Vadot                        reg = <0>;
62b97ee269SEmmanuel Vadot                        typec_con_ep: endpoint {
63b97ee269SEmmanuel Vadot                            remote-endpoint = <&usbotg_hs_ep>;
64b97ee269SEmmanuel Vadot                        };
65b97ee269SEmmanuel Vadot                    };
66b97ee269SEmmanuel Vadot                };
67b97ee269SEmmanuel Vadot            };
68b97ee269SEmmanuel Vadot        };
69b97ee269SEmmanuel Vadot    };
70b97ee269SEmmanuel Vadot...
71