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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: usb: Add downstream facing ports to realtek binding

Add a graph with 4 output endpoints to this hub binding to support the
scenario where a downstream facing port is connected to a device that
isn't a connector or a USB device with a VID:PID. This will be used to
connect downstream facing ports to USB type-c switches so the USB
superspeed and high speed lanes can be put onto USB connectors.

Cc: Rob Herring <robh+dt@kernel.org>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: Conor Dooley <conor+dt@kernel.org>
Cc: Matthias Kaehlcke <mka@chromium.org>
Cc: linux-usb@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: Pin-yen Lin <treapking@chromium.org>
Cc: maciek swiech <drmasquatch@google.com>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20240223005823.3074029-2-swboyd@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Stephen Boyd and committed by
Greg Kroah-Hartman
c44d9dab 966bf794

+55
+55
Documentation/devicetree/bindings/usb/realtek,rts5411.yaml
··· 21 21 22 22 reg: true 23 23 24 + '#address-cells': 25 + const: 1 26 + 27 + '#size-cells': 28 + const: 0 29 + 24 30 vdd-supply: 25 31 description: 26 32 phandle to the regulator that provides power to the hub. ··· 35 29 $ref: /schemas/types.yaml#/definitions/phandle 36 30 description: 37 31 phandle to the peer hub on the controller. 32 + 33 + ports: 34 + $ref: /schemas/graph.yaml#/properties/ports 35 + 36 + properties: 37 + port@1: 38 + $ref: /schemas/graph.yaml#/properties/port 39 + description: 40 + 1st downstream facing USB port 41 + 42 + port@2: 43 + $ref: /schemas/graph.yaml#/properties/port 44 + description: 45 + 2nd downstream facing USB port 46 + 47 + port@3: 48 + $ref: /schemas/graph.yaml#/properties/port 49 + description: 50 + 3rd downstream facing USB port 51 + 52 + port@4: 53 + $ref: /schemas/graph.yaml#/properties/port 54 + description: 55 + 4th downstream facing USB port 56 + 57 + patternProperties: 58 + '^.*@[1-4]$': 59 + description: The hard wired USB devices 60 + type: object 61 + $ref: /schemas/usb/usb-device.yaml 38 62 39 63 required: 40 64 - peer-hub ··· 86 50 reg = <1>; 87 51 vdd-supply = <&pp3300_hub>; 88 52 peer-hub = <&hub_3_0>; 53 + #address-cells = <1>; 54 + #size-cells = <0>; 55 + /* USB 2.0 device on port 2 */ 56 + device@2 { 57 + compatible = "usb123,4567"; 58 + reg = <2>; 59 + }; 89 60 }; 90 61 91 62 /* 3.0 hub on port 2 */ ··· 101 58 reg = <2>; 102 59 vdd-supply = <&pp3300_hub>; 103 60 peer-hub = <&hub_2_0>; 61 + 62 + ports { 63 + #address-cells = <1>; 64 + #size-cells = <0>; 65 + /* Type-A connector on port 4 */ 66 + port@4 { 67 + reg = <4>; 68 + endpoint { 69 + remote-endpoint = <&usb_a0_ss>; 70 + }; 71 + }; 72 + }; 104 73 }; 105 74 };