1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: "http://devicetree.org/schemas/phy/brcm,bcm63xx-usbh-phy.yaml#"
5$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6
7title: BCM63xx USBH PHY
8
9maintainers:
10  - Álvaro Fernández Rojas <noltari@gmail.com>
11
12properties:
13  compatible:
14    enum:
15      - brcm,bcm6318-usbh-phy
16      - brcm,bcm6328-usbh-phy
17      - brcm,bcm6358-usbh-phy
18      - brcm,bcm6362-usbh-phy
19      - brcm,bcm6368-usbh-phy
20      - brcm,bcm63268-usbh-phy
21
22  reg:
23    maxItems: 1
24
25  clocks:
26    minItems: 1
27    maxItems: 2
28
29  clock-names:
30    minItems: 1
31    maxItems: 2
32    items:
33      - const: usbh
34      - const: usb_ref
35
36  resets:
37    maxItems: 1
38
39  "#phy-cells":
40    const: 1
41
42additionalProperties: false
43
44required:
45  - compatible
46  - reg
47  - clocks
48  - clock-names
49  - resets
50  - "#phy-cells"
51
52if:
53  properties:
54    compatible:
55      enum:
56        - brcm,bcm6318-usbh-phy
57        - brcm,bcm6328-usbh-phy
58        - brcm,bcm6362-usbh-phy
59        - brcm,bcm63268-usbh-phy
60then:
61  properties:
62    power-domains:
63      maxItems: 1
64  required:
65    - power-domains
66else:
67  properties:
68    power-domains: false
69
70examples:
71  - |
72    usbh: usb-phy@10001700 {
73      compatible = "brcm,bcm6368-usbh-phy";
74      reg = <0x10001700 0x38>;
75      clocks = <&periph_clk 15>;
76      clock-names = "usbh";
77      resets = <&periph_rst 12>;
78      #phy-cells = <1>;
79    };
80