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