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,am62-usb.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: TI's AM62 wrapper module for the Synopsys USBSS-DRD controller
0008
0009 maintainers:
0010 - Aswath Govindraju <a-govindraju@ti.com>
0011
0012 properties:
0013 compatible:
0014 const: ti,am62-usb
0015
0016 reg:
0017 maxItems: 1
0018
0019 ranges: true
0020
0021 power-domains:
0022 description:
0023 PM domain provider node and an args specifier containing
0024 the USB ISO device id value. See,
0025 Documentation/devicetree/bindings/soc/ti/sci-pm-domain.yaml
0026 maxItems: 1
0027
0028 clocks:
0029 description: Clock phandle to usb2_refclk
0030 maxItems: 1
0031
0032 clock-names:
0033 items:
0034 - const: ref
0035
0036 ti,vbus-divider:
0037 description:
0038 Should be present if USB VBUS line is connected to the
0039 VBUS pin of the SoC via a 1/3 voltage divider.
0040 type: boolean
0041
0042 ti,syscon-phy-pll-refclk:
0043 $ref: /schemas/types.yaml#/definitions/phandle-array
0044 items:
0045 - items:
0046 - description: Phandle to the SYSCON entry
0047 - description: USB phy control register offset within SYSCON
0048 description:
0049 Specifier for conveying frequency of ref clock input, for the
0050 operation of USB2PHY.
0051
0052 '#address-cells':
0053 const: 2
0054
0055 '#size-cells':
0056 const: 2
0057
0058 patternProperties:
0059 "^usb@[0-9a-f]+$":
0060 $ref: snps,dwc3.yaml#
0061 description: Required child node
0062
0063 required:
0064 - compatible
0065 - reg
0066 - power-domains
0067 - clocks
0068 - clock-names
0069 - ti,syscon-phy-pll-refclk
0070
0071 additionalProperties: false
0072
0073 examples:
0074 - |
0075 #include <dt-bindings/soc/ti,sci_pm_domain.h>
0076 #include <dt-bindings/interrupt-controller/arm-gic.h>
0077 #include <dt-bindings/gpio/gpio.h>
0078
0079 bus {
0080 #address-cells = <2>;
0081 #size-cells = <2>;
0082
0083 usbss1: usb@f910000 {
0084 compatible = "ti,am62-usb";
0085 reg = <0x00 0x0f910000 0x00 0x800>;
0086 clocks = <&k3_clks 162 3>;
0087 clock-names = "ref";
0088 ti,syscon-phy-pll-refclk = <&wkup_conf 0x4018>;
0089 power-domains = <&k3_pds 179 TI_SCI_PD_EXCLUSIVE>;
0090 #address-cells = <2>;
0091 #size-cells = <2>;
0092
0093 usb@31100000 {
0094 compatible = "snps,dwc3";
0095 reg =<0x00 0x31100000 0x00 0x50000>;
0096 interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>, /* irq.0 */
0097 <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>; /* irq.0 */
0098 interrupt-names = "host", "peripheral";
0099 maximum-speed = "high-speed";
0100 dr_mode = "otg";
0101 };
0102 };
0103 };