Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/usb/realtek,rts5411.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Binding for the Realtek RTS5411 USB 3.0 hub controller
0008 
0009 maintainers:
0010   - Matthias Kaehlcke <mka@chromium.org>
0011 
0012 allOf:
0013   - $ref: usb-device.yaml#
0014 
0015 properties:
0016   compatible:
0017     items:
0018       - enum:
0019           - usbbda,5411
0020           - usbbda,411
0021 
0022   reg: true
0023 
0024   vdd-supply:
0025     description:
0026       phandle to the regulator that provides power to the hub.
0027 
0028   peer-hub:
0029     $ref: '/schemas/types.yaml#/definitions/phandle'
0030     description:
0031       phandle to the peer hub on the controller.
0032 
0033 required:
0034   - peer-hub
0035   - compatible
0036   - reg
0037 
0038 additionalProperties: false
0039 
0040 examples:
0041   - |
0042     usb {
0043         dr_mode = "host";
0044         #address-cells = <1>;
0045         #size-cells = <0>;
0046 
0047         /* 2.0 hub on port 1 */
0048         hub_2_0: hub@1 {
0049             compatible = "usbbda,5411";
0050             reg = <1>;
0051             vdd-supply = <&pp3300_hub>;
0052             peer-hub = <&hub_3_0>;
0053         };
0054 
0055         /* 3.0 hub on port 2 */
0056         hub_3_0: hub@2 {
0057             compatible = "usbbda,411";
0058             reg = <2>;
0059             vdd-supply = <&pp3300_hub>;
0060             peer-hub = <&hub_2_0>;
0061         };
0062     };