xref: /freebsd/sys/contrib/device-tree/Bindings/usb/usb-uhci.yaml (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1*7d0873ebSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*7d0873ebSEmmanuel Vadot%YAML 1.2
3*7d0873ebSEmmanuel Vadot---
4*7d0873ebSEmmanuel Vadot$id: http://devicetree.org/schemas/usb/usb-uhci.yaml#
5*7d0873ebSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*7d0873ebSEmmanuel Vadot
7*7d0873ebSEmmanuel Vadottitle: Generic Platform UHCI Controller
8*7d0873ebSEmmanuel Vadot
9*7d0873ebSEmmanuel Vadotmaintainers:
10*7d0873ebSEmmanuel Vadot  - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
11*7d0873ebSEmmanuel Vadot
12*7d0873ebSEmmanuel Vadotproperties:
13*7d0873ebSEmmanuel Vadot  compatible:
14*7d0873ebSEmmanuel Vadot    oneOf:
15*7d0873ebSEmmanuel Vadot      - const: generic-uhci
16*7d0873ebSEmmanuel Vadot      - const: platform-uhci
17*7d0873ebSEmmanuel Vadot        deprecated: true
18*7d0873ebSEmmanuel Vadot      - items:
19*7d0873ebSEmmanuel Vadot          - enum:
20*7d0873ebSEmmanuel Vadot              - aspeed,ast2400-uhci
21*7d0873ebSEmmanuel Vadot              - aspeed,ast2500-uhci
22*7d0873ebSEmmanuel Vadot              - aspeed,ast2600-uhci
23*7d0873ebSEmmanuel Vadot          - const: generic-uhci
24*7d0873ebSEmmanuel Vadot
25*7d0873ebSEmmanuel Vadot  reg:
26*7d0873ebSEmmanuel Vadot    maxItems: 1
27*7d0873ebSEmmanuel Vadot
28*7d0873ebSEmmanuel Vadot  interrupts:
29*7d0873ebSEmmanuel Vadot    maxItems: 1
30*7d0873ebSEmmanuel Vadot
31*7d0873ebSEmmanuel Vadot  '#ports':
32*7d0873ebSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
33*7d0873ebSEmmanuel Vadot
34*7d0873ebSEmmanuel Vadot  clocks:
35*7d0873ebSEmmanuel Vadot    maxItems: 1
36*7d0873ebSEmmanuel Vadot
37*7d0873ebSEmmanuel Vadotrequired:
38*7d0873ebSEmmanuel Vadot  - compatible
39*7d0873ebSEmmanuel Vadot  - reg
40*7d0873ebSEmmanuel Vadot  - interrupts
41*7d0873ebSEmmanuel Vadot
42*7d0873ebSEmmanuel VadotallOf:
43*7d0873ebSEmmanuel Vadot  - $ref: usb-hcd.yaml
44*7d0873ebSEmmanuel Vadot  - if:
45*7d0873ebSEmmanuel Vadot      properties:
46*7d0873ebSEmmanuel Vadot        compatible:
47*7d0873ebSEmmanuel Vadot          contains:
48*7d0873ebSEmmanuel Vadot            const: generic-uhci
49*7d0873ebSEmmanuel Vadot    then:
50*7d0873ebSEmmanuel Vadot      required:
51*7d0873ebSEmmanuel Vadot        - clocks
52*7d0873ebSEmmanuel Vadot
53*7d0873ebSEmmanuel VadotunevaluatedProperties: false
54*7d0873ebSEmmanuel Vadot
55*7d0873ebSEmmanuel Vadotexamples:
56*7d0873ebSEmmanuel Vadot  - |
57*7d0873ebSEmmanuel Vadot    #include <dt-bindings/clock/aspeed-clock.h>
58*7d0873ebSEmmanuel Vadot
59*7d0873ebSEmmanuel Vadot    usb@d8007b00 {
60*7d0873ebSEmmanuel Vadot        compatible = "generic-uhci";
61*7d0873ebSEmmanuel Vadot        reg = <0xd8007b00 0x200>;
62*7d0873ebSEmmanuel Vadot        interrupts = <43>;
63*7d0873ebSEmmanuel Vadot        clocks = <&syscon ASPEED_CLK_GATE_USBUHCICLK>;
64*7d0873ebSEmmanuel Vadot    };
65*7d0873ebSEmmanuel Vadot  - |
66*7d0873ebSEmmanuel Vadot    #include <dt-bindings/clock/aspeed-clock.h>
67*7d0873ebSEmmanuel Vadot
68*7d0873ebSEmmanuel Vadot    usb@1e6b0000 {
69*7d0873ebSEmmanuel Vadot        compatible = "aspeed,ast2500-uhci", "generic-uhci";
70*7d0873ebSEmmanuel Vadot        reg = <0x1e6b0000 0x100>;
71*7d0873ebSEmmanuel Vadot        interrupts = <14>;
72*7d0873ebSEmmanuel Vadot        #ports = <2>;
73*7d0873ebSEmmanuel Vadot        clocks = <&syscon ASPEED_CLK_GATE_USBUHCICLK>;
74*7d0873ebSEmmanuel Vadot    };
75*7d0873ebSEmmanuel Vadot...
76