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/ti,keystone-dwc3.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: TI Keystone Soc USB Controller
0008 
0009 maintainers:
0010   - Roger Quadros <rogerq@kernel.org>
0011 
0012 properties:
0013   compatible:
0014     items:
0015       - enum:
0016           - ti,keystone-dwc3
0017           - ti,am654-dwc3
0018 
0019   reg:
0020     maxItems: 1
0021 
0022   '#address-cells':
0023     const: 1
0024 
0025   '#size-cells':
0026     const: 1
0027 
0028   ranges: true
0029 
0030   interrupts:
0031     maxItems: 1
0032 
0033   clocks:
0034     minItems: 1
0035     maxItems: 2
0036 
0037   assigned-clocks:
0038     minItems: 1
0039     maxItems: 2
0040 
0041   assigned-clock-parents:
0042     minItems: 1
0043     maxItems: 2
0044 
0045   power-domains:
0046     maxItems: 1
0047     description: Should contain a phandle to a PM domain provider node
0048       and an args specifier containing the USB device id
0049       value. This property is as per the binding,
0050       Documentation/devicetree/bindings/soc/ti/sci-pm-domain.yaml
0051 
0052   phys:
0053     maxItems: 1
0054     description:
0055       PHY specifier for the USB3.0 PHY. Some SoCs need the USB3.0 PHY
0056       to be turned on before the controller.
0057       Documentation/devicetree/bindings/phy/phy-bindings.txt
0058 
0059   phy-names:
0060     items:
0061       - const: usb3-phy
0062 
0063   dma-coherent: true
0064 
0065   dma-ranges: true
0066 
0067 patternProperties:
0068   "usb@[a-f0-9]+$":
0069     $ref: snps,dwc3.yaml#
0070 
0071 required:
0072   - compatible
0073   - reg
0074   - "#address-cells"
0075   - "#size-cells"
0076   - ranges
0077   - interrupts
0078 
0079 additionalProperties: false
0080 
0081 examples:
0082   - |
0083     #include <dt-bindings/interrupt-controller/arm-gic.h>
0084 
0085     dwc3@2680000 {
0086       compatible = "ti,keystone-dwc3";
0087       #address-cells = <1>;
0088       #size-cells = <1>;
0089       reg = <0x2680000 0x10000>;
0090       clocks = <&clkusb>;
0091       interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;
0092       ranges;
0093 
0094       usb@2690000 {
0095         compatible = "snps,dwc3";
0096         reg = <0x2690000 0x70000>;
0097         interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;
0098         usb-phy = <&usb_phy>, <&usb_phy>;
0099       };
0100     };