0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 # Copyright (c) 2020 Facebook Inc.
0003 %YAML 1.2
0004 ---
0005 $id: http://devicetree.org/schemas/usb/aspeed,ast2600-udc.yaml#
0006 $schema: http://devicetree.org/meta-schemas/core.yaml#
0007
0008 title: ASPEED USB 2.0 Device Controller
0009
0010 maintainers:
0011 - Neal Liu <neal_liu@aspeedtech.com>
0012
0013 description: |+
0014 The ASPEED USB 2.0 Device Controller implements 1 control endpoint and
0015 4 generic endpoints for AST260x.
0016
0017 Supports independent DMA channel for each generic endpoint.
0018 Supports 32/256 stages descriptor mode for all generic endpoints.
0019
0020 properties:
0021 compatible:
0022 enum:
0023 - aspeed,ast2600-udc
0024
0025 reg:
0026 maxItems: 1
0027
0028 clocks:
0029 maxItems: 1
0030
0031 interrupts:
0032 maxItems: 1
0033
0034 required:
0035 - compatible
0036 - reg
0037 - clocks
0038 - interrupts
0039
0040 additionalProperties: false
0041
0042 examples:
0043 - |
0044 #include <dt-bindings/clock/aspeed-clock.h>
0045 udc: usb@1e6a2000 {
0046 compatible = "aspeed,ast2600-udc";
0047 reg = <0x1e6a2000 0x300>;
0048 interrupts = <9>;
0049 clocks = <&syscon ASPEED_CLK_GATE_USBPORT2CLK>;
0050 pinctrl-names = "default";
0051 pinctrl-0 = <&pinctrl_usb2bd_default>;
0052 };