| 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 |
|
| 7 |
title: Realtek RTS5411 USB 3.0 hub controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Matthias Kaehlcke <[email protected]> |
| 11 |
|
| 12 |
allOf: |
| 13 |
- $ref: usb-hub.yaml# |
| 14 |
|
| 15 |
properties: |
| 16 |
compatible: |
| 17 |
items: |
| 18 |
- enum: |
| 19 |
- usbbda,5411 |
| 20 |
- usbbda,411 |
| 21 |
|
| 22 |
vdd-supply: |
| 23 |
description: |
| 24 |
phandle to the regulator that provides power to the hub. |
| 25 |
|
| 26 |
peer-hub: true |
| 27 |
|
| 28 |
ports: |
| 29 |
$ref: /schemas/graph.yaml#/properties/ports |
| 30 |
|
| 31 |
patternProperties: |
| 32 |
'^port@': |
| 33 |
$ref: /schemas/graph.yaml#/properties/port |
| 34 |
|
| 35 |
properties: |
| 36 |
reg: |
| 37 |
minimum: 1 |
| 38 |
maximum: 4 |
| 39 |
|
| 40 |
additionalProperties: |
| 41 |
properties: |
| 42 |
reg: |
| 43 |
minimum: 1 |
| 44 |
maximum: 4 |
| 45 |
|
| 46 |
required: |
| 47 |
- peer-hub |
| 48 |
- compatible |
| 49 |
- reg |
| 50 |
|
| 51 |
examples: |
| 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 = "usbbda,5411"; |
| 61 |
reg = <1>; |
| 62 |
vdd-supply = <&pp3300_hub>; |
| 63 |
peer-hub = <&hub_3_0>; |
| 64 |
#address-cells = <1>; |
| 65 |
#size-cells = <0>; |
| 66 |
/* USB 2.0 device on port 2 */ |
| 67 |
device@2 { |
| 68 |
compatible = "usb123,4567"; |
| 69 |
reg = <2>; |
| 70 |
}; |
| 71 |
}; |
| 72 |
|
| 73 |
/* 3.0 hub on port 2 */ |
| 74 |
hub_3_0: hub@2 { |
| 75 |
compatible = "usbbda,411"; |
| 76 |
reg = <2>; |
| 77 |
vdd-supply = <&pp3300_hub>; |
| 78 |
peer-hub = <&hub_2_0>; |
| 79 |
|
| 80 |
ports { |
| 81 |
#address-cells = <1>; |
| 82 |
#size-cells = <0>; |
| 83 |
/* Type-A connector on port 4 */ |
| 84 |
port@4 { |
| 85 |
reg = <4>; |
| 86 |
endpoint { |
| 87 |
remote-endpoint = <&usb_a0_ss>; |
| 88 |
}; |
| 89 |
}; |
| 90 |
}; |
| 91 |
}; |
| 92 |
}; |