Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: usb: Add binding for Realtek RTS5411 hub controller

The Realtek RTS5411 is a USB 3.0 hub controller with 4 ports.

This initial version of the binding only describes USB related
aspects of the RTS5411, it does not cover the option of
connecting the controller as an i2c slave.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Link: https://lore.kernel.org/r/20210609150159.v12.1.I248292623d3d0f6a4f0c5bc58478ca3c0062b49a@changeid
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Matthias Kaehlcke and committed by
Greg Kroah-Hartman
80ee6fc2 cd59ea91

+62
+62
Documentation/devicetree/bindings/usb/realtek,rts5411.yaml
··· 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: Binding for the Realtek RTS5411 USB 3.0 hub controller 8 + 9 + maintainers: 10 + - Matthias Kaehlcke <mka@chromium.org> 11 + 12 + allOf: 13 + - $ref: usb-device.yaml# 14 + 15 + properties: 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 + companion-hub: 29 + $ref: '/schemas/types.yaml#/definitions/phandle' 30 + description: 31 + phandle to the companion hub on the controller. 32 + 33 + required: 34 + - companion-hub 35 + - compatible 36 + - reg 37 + 38 + additionalProperties: false 39 + 40 + examples: 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 + companion-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 + companion-hub = <&hub_2_0>; 61 + }; 62 + };