xref: /freebsd-src/sys/contrib/device-tree/Bindings/usb/aspeed,ast2600-udc.yaml (revision b97ee269eae3cbaf35c18f51a459aea581c2a7dc)
1*b97ee269SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*b97ee269SEmmanuel Vadot# Copyright (c) 2020 Facebook Inc.
3*b97ee269SEmmanuel Vadot%YAML 1.2
4*b97ee269SEmmanuel Vadot---
5*b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/usb/aspeed,ast2600-udc.yaml#
6*b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7*b97ee269SEmmanuel Vadot
8*b97ee269SEmmanuel Vadottitle: ASPEED USB 2.0 Device Controller
9*b97ee269SEmmanuel Vadot
10*b97ee269SEmmanuel Vadotmaintainers:
11*b97ee269SEmmanuel Vadot  - Neal Liu <neal_liu@aspeedtech.com>
12*b97ee269SEmmanuel Vadot
13*b97ee269SEmmanuel Vadotdescription: |+
14*b97ee269SEmmanuel Vadot  The ASPEED USB 2.0 Device Controller implements 1 control endpoint and
15*b97ee269SEmmanuel Vadot  4 generic endpoints for AST260x.
16*b97ee269SEmmanuel Vadot
17*b97ee269SEmmanuel Vadot  Supports independent DMA channel for each generic endpoint.
18*b97ee269SEmmanuel Vadot  Supports 32/256 stages descriptor mode for all generic endpoints.
19*b97ee269SEmmanuel Vadot
20*b97ee269SEmmanuel Vadotproperties:
21*b97ee269SEmmanuel Vadot  compatible:
22*b97ee269SEmmanuel Vadot    enum:
23*b97ee269SEmmanuel Vadot      - aspeed,ast2600-udc
24*b97ee269SEmmanuel Vadot
25*b97ee269SEmmanuel Vadot  reg:
26*b97ee269SEmmanuel Vadot    maxItems: 1
27*b97ee269SEmmanuel Vadot
28*b97ee269SEmmanuel Vadot  clocks:
29*b97ee269SEmmanuel Vadot    maxItems: 1
30*b97ee269SEmmanuel Vadot
31*b97ee269SEmmanuel Vadot  interrupts:
32*b97ee269SEmmanuel Vadot    maxItems: 1
33*b97ee269SEmmanuel Vadot
34*b97ee269SEmmanuel Vadotrequired:
35*b97ee269SEmmanuel Vadot  - compatible
36*b97ee269SEmmanuel Vadot  - reg
37*b97ee269SEmmanuel Vadot  - clocks
38*b97ee269SEmmanuel Vadot  - interrupts
39*b97ee269SEmmanuel Vadot
40*b97ee269SEmmanuel VadotadditionalProperties: false
41*b97ee269SEmmanuel Vadot
42*b97ee269SEmmanuel Vadotexamples:
43*b97ee269SEmmanuel Vadot  - |
44*b97ee269SEmmanuel Vadot    #include <dt-bindings/clock/aspeed-clock.h>
45*b97ee269SEmmanuel Vadot    udc: usb@1e6a2000 {
46*b97ee269SEmmanuel Vadot        compatible = "aspeed,ast2600-udc";
47*b97ee269SEmmanuel Vadot        reg = <0x1e6a2000 0x300>;
48*b97ee269SEmmanuel Vadot        interrupts = <9>;
49*b97ee269SEmmanuel Vadot        clocks = <&syscon ASPEED_CLK_GATE_USBPORT2CLK>;
50*b97ee269SEmmanuel Vadot        pinctrl-names = "default";
51*b97ee269SEmmanuel Vadot        pinctrl-0 = <&pinctrl_usb2bd_default>;
52*b97ee269SEmmanuel Vadot    };
53