brintos

brintos / linux-shallow public Read only

0
0
Text · 2.6 KiB · 6577a61 Raw
119 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---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 controller8 9maintainers:10  - Matthias Kaehlcke <mka@chromium.org>11 12allOf:13  - $ref: usb-device.yaml#14 15properties:16  compatible:17    items:18      - enum:19          - usbbda,541120          - usbbda,41121 22  reg: true23 24  '#address-cells':25    const: 126 27  '#size-cells':28    const: 029 30  vdd-supply:31    description:32      phandle to the regulator that provides power to the hub.33 34  peer-hub:35    $ref: /schemas/types.yaml#/definitions/phandle36    description:37      phandle to the peer hub on the controller.38 39  ports:40    $ref: /schemas/graph.yaml#/properties/ports41 42    properties:43      port@1:44        $ref: /schemas/graph.yaml#/properties/port45        description:46          1st downstream facing USB port47 48      port@2:49        $ref: /schemas/graph.yaml#/properties/port50        description:51          2nd downstream facing USB port52 53      port@3:54        $ref: /schemas/graph.yaml#/properties/port55        description:56          3rd downstream facing USB port57 58      port@4:59        $ref: /schemas/graph.yaml#/properties/port60        description:61          4th downstream facing USB port62 63patternProperties:64  '^.*@[1-4]$':65    description: The hard wired USB devices66    type: object67    $ref: /schemas/usb/usb-device.yaml68    additionalProperties: true69 70required:71  - peer-hub72  - compatible73  - reg74 75additionalProperties: false76 77examples:78  - |79    usb {80        dr_mode = "host";81        #address-cells = <1>;82        #size-cells = <0>;83 84        /* 2.0 hub on port 1 */85        hub_2_0: hub@1 {86            compatible = "usbbda,5411";87            reg = <1>;88            vdd-supply = <&pp3300_hub>;89            peer-hub = <&hub_3_0>;90            #address-cells = <1>;91            #size-cells = <0>;92            /* USB 2.0 device on port 2 */93            device@2 {94                compatible = "usb123,4567";95                reg = <2>;96            };97        };98 99        /* 3.0 hub on port 2 */100        hub_3_0: hub@2 {101            compatible = "usbbda,411";102            reg = <2>;103            vdd-supply = <&pp3300_hub>;104            peer-hub = <&hub_2_0>;105 106            ports {107                #address-cells = <1>;108                #size-cells = <0>;109                /* Type-A connector on port 4 */110                port@4 {111                    reg = <4>;112                    endpoint {113                      remote-endpoint = <&usb_a0_ss>;114                    };115                };116            };117        };118    };119