1# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/usb/realtek,rts5411.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Realtek RTS5411 USB 3.0 hub controller
8
9maintainers:
10  - Matthias Kaehlcke <mka@chromium.org>
11
12allOf:
13  - $ref: usb-device.yaml#
14
15properties:
16  compatible:
17    items:
18      - enum:
19          - usbbda,5411
20          - usbbda,411
21
22  reg: true
23
24  vdd-supply:
25    description:
26      phandle to the regulator that provides power to the hub.
27
28  peer-hub:
29    $ref: /schemas/types.yaml#/definitions/phandle
30    description:
31      phandle to the peer hub on the controller.
32
33required:
34  - peer-hub
35  - compatible
36  - reg
37
38additionalProperties: false
39
40examples:
41  - |
42    usb {
43        dr_mode = "host";
44        #address-cells = <1>;
45        #size-cells = <0>;
46
47        /* 2.0 hub on port 1 */
48        hub_2_0: hub@1 {
49            compatible = "usbbda,5411";
50            reg = <1>;
51            vdd-supply = <&pp3300_hub>;
52            peer-hub = <&hub_3_0>;
53        };
54
55        /* 3.0 hub on port 2 */
56        hub_3_0: hub@2 {
57            compatible = "usbbda,411";
58            reg = <2>;
59            vdd-supply = <&pp3300_hub>;
60            peer-hub = <&hub_2_0>;
61        };
62    };
63