xref: /freebsd/sys/contrib/device-tree/Bindings/phy/mediatek,mt7628-usbphy.yaml (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1*84943d6fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*84943d6fSEmmanuel Vadot%YAML 1.2
3*84943d6fSEmmanuel Vadot---
4*84943d6fSEmmanuel Vadot$id: http://devicetree.org/schemas/phy/mediatek,mt7628-usbphy.yaml#
5*84943d6fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*84943d6fSEmmanuel Vadot
7*84943d6fSEmmanuel Vadottitle: Mediatek/Ralink USB PHY
8*84943d6fSEmmanuel Vadot
9*84943d6fSEmmanuel Vadotmaintainers:
10*84943d6fSEmmanuel Vadot  - Sergio Paracuellos <sergio.paracuellos@gmail.com>
11*84943d6fSEmmanuel Vadot
12*84943d6fSEmmanuel Vadotproperties:
13*84943d6fSEmmanuel Vadot  compatible:
14*84943d6fSEmmanuel Vadot    enum:
15*84943d6fSEmmanuel Vadot      - mediatek,mt7620-usbphy
16*84943d6fSEmmanuel Vadot      - mediatek,mt7628-usbphy
17*84943d6fSEmmanuel Vadot      - ralink,rt3352-usbphy
18*84943d6fSEmmanuel Vadot
19*84943d6fSEmmanuel Vadot  reg:
20*84943d6fSEmmanuel Vadot    maxItems: 1
21*84943d6fSEmmanuel Vadot
22*84943d6fSEmmanuel Vadot  "#phy-cells":
23*84943d6fSEmmanuel Vadot    const: 0
24*84943d6fSEmmanuel Vadot
25*84943d6fSEmmanuel Vadot  ralink,sysctl:
26*84943d6fSEmmanuel Vadot    description:
27*84943d6fSEmmanuel Vadot      phandle to a ralink syscon register region.
28*84943d6fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
29*84943d6fSEmmanuel Vadot
30*84943d6fSEmmanuel Vadot  resets:
31*84943d6fSEmmanuel Vadot    items:
32*84943d6fSEmmanuel Vadot      - description: USB Host reset controller
33*84943d6fSEmmanuel Vadot      - description: USB Device reset controller
34*84943d6fSEmmanuel Vadot
35*84943d6fSEmmanuel Vadot  reset-names:
36*84943d6fSEmmanuel Vadot    items:
37*84943d6fSEmmanuel Vadot      - const: host
38*84943d6fSEmmanuel Vadot      - const: device
39*84943d6fSEmmanuel Vadot
40*84943d6fSEmmanuel Vadotrequired:
41*84943d6fSEmmanuel Vadot  - compatible
42*84943d6fSEmmanuel Vadot  - "#phy-cells"
43*84943d6fSEmmanuel Vadot  - ralink,sysctl
44*84943d6fSEmmanuel Vadot  - resets
45*84943d6fSEmmanuel Vadot  - reset-names
46*84943d6fSEmmanuel Vadot
47*84943d6fSEmmanuel VadotallOf:
48*84943d6fSEmmanuel Vadot  - if:
49*84943d6fSEmmanuel Vadot      properties:
50*84943d6fSEmmanuel Vadot        compatible:
51*84943d6fSEmmanuel Vadot          contains:
52*84943d6fSEmmanuel Vadot            const: mediatek,mt7628-usbphy
53*84943d6fSEmmanuel Vadot    then:
54*84943d6fSEmmanuel Vadot      required:
55*84943d6fSEmmanuel Vadot        - reg
56*84943d6fSEmmanuel Vadot    else:
57*84943d6fSEmmanuel Vadot      properties:
58*84943d6fSEmmanuel Vadot        reg: false
59*84943d6fSEmmanuel Vadot
60*84943d6fSEmmanuel VadotadditionalProperties: false
61*84943d6fSEmmanuel Vadot
62*84943d6fSEmmanuel Vadotexamples:
63*84943d6fSEmmanuel Vadot  - |
64*84943d6fSEmmanuel Vadot    phy@10120000 {
65*84943d6fSEmmanuel Vadot      compatible = "mediatek,mt7628-usbphy";
66*84943d6fSEmmanuel Vadot      reg = <0x10120000 0x1000>;
67*84943d6fSEmmanuel Vadot      #phy-cells = <0>;
68*84943d6fSEmmanuel Vadot      ralink,sysctl = <&sysc>;
69*84943d6fSEmmanuel Vadot      resets = <&rstctrl 22>,
70*84943d6fSEmmanuel Vadot               <&rstctrl 25>;
71*84943d6fSEmmanuel Vadot      reset-names = "host", "device";
72*84943d6fSEmmanuel Vadot    };
73*84943d6fSEmmanuel Vadot
74*84943d6fSEmmanuel Vadot...
75