xref: /linux/Documentation/devicetree/bindings/usb/ti,usb8041.yaml (revision 53597deca0e38c30e6cd4ba2114fa42d2bcd85bb)
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,usb8041.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: TI USB8041 and USB8044 USB 3.0 hub controllers
8
9maintainers:
10  - Alexander Stein <alexander.stein@ew.tq-group.com>
11
12allOf:
13  - $ref: usb-device.yaml#
14  - $ref: usb-hub.yaml#
15
16properties:
17  compatible:
18    enum:
19      - usb451,8140
20      - usb451,8142
21      - usb451,8440
22      - usb451,8442
23
24  reg: true
25
26  reset-gpios:
27    items:
28      - description: GPIO specifier for GRST# pin.
29
30  vdd-supply:
31    description:
32      VDD power supply to the hub
33
34  peer-hub: true
35
36patternProperties:
37  '^.*@[1-9a-f][0-9a-f]*$':
38    description: The hard wired USB devices
39    type: object
40    $ref: /schemas/usb/usb-device.yaml
41    additionalProperties: true
42
43required:
44  - compatible
45  - reg
46
47unevaluatedProperties: false
48
49examples:
50  - |
51    #include <dt-bindings/gpio/gpio.h>
52
53    usb {
54        dr_mode = "host";
55        #address-cells = <1>;
56        #size-cells = <0>;
57
58        /* 2.0 hub on port 1 */
59        hub_2_0: hub@1 {
60            compatible = "usb451,8142";
61            reg = <1>;
62            peer-hub = <&hub_3_0>;
63            #address-cells = <1>;
64            #size-cells = <0>;
65            reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
66
67            hub@1 {
68              compatible = "usb123,4567";
69              reg = <1>;
70            };
71        };
72
73        /* 3.0 hub on port 2 */
74        hub_3_0: hub@2 {
75            compatible = "usb451,8140";
76            reg = <2>;
77            peer-hub = <&hub_2_0>;
78            reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
79        };
80    };
81