Documentation / devicetree / bindings / usb / realtek,rtd-dwc3.yaml


Based on kernel version 6.11. Page generated on 2024-09-24 08:21 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
# Copyright 2023 Realtek Semiconductor Corporation
%YAML 1.2
---
$id: http://devicetree.org/schemas/usb/realtek,rtd-dwc3.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Realtek DWC3 USB SoC Controller Glue

maintainers:
  - Stanley Chang <stanley_chang@realtek.com>

description:
  The Realtek DHC SoC embeds a DWC3 USB IP Core configured for USB 2.0
  and USB 3.0 in host or dual-role mode.

properties:
  compatible:
    items:
      - enum:
          - realtek,rtd1295-dwc3
          - realtek,rtd1315e-dwc3
          - realtek,rtd1319-dwc3
          - realtek,rtd1319d-dwc3
          - realtek,rtd1395-dwc3
          - realtek,rtd1619-dwc3
          - realtek,rtd1619b-dwc3
      - const: realtek,rtd-dwc3

  reg:
    items:
      - description: Address and length of register set for wrapper of dwc3 core.
      - description: Address and length of register set for pm control.
 
  '#address-cells':
    const: 1
 
  '#size-cells':
    const: 1

  ranges: true

patternProperties:
  "^usb@[0-9a-f]+$":
    $ref: snps,dwc3.yaml#
    description: Required child node

required:
  - compatible
  - reg
  - "#address-cells"
  - "#size-cells"
  - ranges

additionalProperties: false

examples:
  - |
    usb@98013e00 {
        compatible = "realtek,rtd1319d-dwc3", "realtek,rtd-dwc3";
        reg = <0x98013e00 0x140>, <0x98013f60 0x4>;
        #address-cells = <1>;
        #size-cells = <1>;
        ranges;
 
        usb@98050000 {
            compatible = "snps,dwc3";
            reg = <0x98050000 0x9000>;
            interrupts = <0 94 4>;
            phys = <&usb2phy &usb3phy>;
            phy-names = "usb2-phy", "usb3-phy";
            dr_mode = "otg";
            usb-role-switch;
            role-switch-default-mode = "host";
            snps,dis_u2_susphy_quirk;
            snps,parkmode-disable-ss-quirk;
            snps,parkmode-disable-hs-quirk;
            maximum-speed = "high-speed";
        };
    };