Skip to content

Commit 40e58a8

Browse files
tq-steinagregkh
authored andcommitted
dt-bindings: usb: Add binding for TI USB8041 hub controller
The TI USB8041 is a USB 3.0 hub controller with 4 ports. This initial version of the binding only describes USB related aspects of the USB8041, it does not cover the option of connecting the controller as an i2c slave. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> Link: https://lore.kernel.org/r/20220727093801.687361-1-alexander.stein@ew.tq-group.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 76e9605 commit 40e58a8

1 file changed

Lines changed: 67 additions & 0 deletions

File tree

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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+
7+
title: Binding for the TI USB8041 USB 3.0 hub controller
8+
9+
maintainers:
10+
- Alexander Stein <alexander.stein@ew.tq-group.com>
11+
12+
allOf:
13+
- $ref: usb-device.yaml#
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- usb451,8140
19+
- usb451,8142
20+
21+
reg: true
22+
23+
reset-gpios:
24+
items:
25+
- description: GPIO specifier for GRST# pin.
26+
27+
vdd-supply:
28+
description:
29+
VDD power supply to the hub
30+
31+
peer-hub:
32+
$ref: /schemas/types.yaml#/definitions/phandle
33+
description:
34+
phandle to the peer hub on the controller.
35+
36+
required:
37+
- compatible
38+
- reg
39+
- peer-hub
40+
41+
additionalProperties: false
42+
43+
examples:
44+
- |
45+
#include <dt-bindings/gpio/gpio.h>
46+
47+
usb {
48+
dr_mode = "host";
49+
#address-cells = <1>;
50+
#size-cells = <0>;
51+
52+
/* 2.0 hub on port 1 */
53+
hub_2_0: hub@1 {
54+
compatible = "usb451,8142";
55+
reg = <1>;
56+
peer-hub = <&hub_3_0>;
57+
reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
58+
};
59+
60+
/* 3.0 hub on port 2 */
61+
hub_3_0: hub@2 {
62+
compatible = "usb451,8140";
63+
reg = <2>;
64+
peer-hub = <&hub_2_0>;
65+
reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
66+
};
67+
};

0 commit comments

Comments
 (0)