1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (c) 2020 Facebook Inc.
5 $id: http://devicetree.org/schemas/usb/aspeed,usb-vhub.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: ASPEED USB 2.0 Virtual Hub Controller
11 - Benjamin Herrenschmidt <benh@kernel.crashing.org>
14 The ASPEED USB 2.0 Virtual Hub Controller implements 1 set of USB Hub
15 register and several sets of Device and Endpoint registers to support
16 the Virtual Hub's downstream USB devices.
18 Supported number of devices and endpoints vary depending on hardware
19 revisions. AST2400 and AST2500 Virtual Hub supports 5 downstream devices
20 and 15 generic endpoints, while AST2600 Virtual Hub supports 7 downstream
21 devices and 21 generic endpoints.
26 - aspeed,ast2400-usb-vhub
27 - aspeed,ast2500-usb-vhub
28 - aspeed,ast2600-usb-vhub
39 aspeed,vhub-downstream-ports:
40 description: Number of downstream ports supported by the Virtual Hub
41 $ref: /schemas/types.yaml#/definitions/uint32
46 aspeed,vhub-generic-endpoints:
47 description: Number of generic endpoints supported by the Virtual Hub
48 $ref: /schemas/types.yaml#/definitions/uint32
54 description: vhub Vendor ID
56 - $ref: /schemas/types.yaml#/definitions/uint32
60 description: vhub Product ID
62 - $ref: /schemas/types.yaml#/definitions/uint32
66 description: vhub Device Revision in binary-coded decimal
68 - $ref: /schemas/types.yaml#/definitions/uint32
84 description: string descriptors of the specific language
89 description: 16-bit Language Identifier defined by USB-IF
92 description: vhub manufacturer
94 - $ref: /schemas/types.yaml#/definitions/string
97 description: vhub product name
99 - $ref: /schemas/types.yaml#/definitions/string
102 description: vhub device serial number
104 - $ref: /schemas/types.yaml#/definitions/string
111 - aspeed,vhub-downstream-ports
112 - aspeed,vhub-generic-endpoints
114 additionalProperties: false
118 #include <dt-bindings/clock/aspeed-clock.h>
119 vhub: usb-vhub@1e6a0000 {
120 compatible = "aspeed,ast2500-usb-vhub";
121 reg = <0x1e6a0000 0x300>;
123 clocks = <&syscon ASPEED_CLK_GATE_USBPORT1CLK>;
124 aspeed,vhub-downstream-ports = <5>;
125 aspeed,vhub-generic-endpoints = <15>;
126 pinctrl-names = "default";
127 pinctrl-0 = <&pinctrl_usb2ad_default>;
129 vhub-vendor-id = <0x1d6b>;
130 vhub-product-id = <0x0107>;
131 vhub-device-revision = <0x0100>;
133 #address-cells = <1>;
138 manufacturer = "ASPEED";
139 product = "USB Virtual Hub";
140 serial-number = "0000";