xref: /freebsd/sys/contrib/device-tree/Bindings/phy/brcm,bcm63xx-usbh-phy.yaml (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
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    items:
32      - const: usbh
33      - const: usb_ref
34
35  resets:
36    maxItems: 1
37
38  "#phy-cells":
39    const: 1
40
41additionalProperties: false
42
43required:
44  - compatible
45  - reg
46  - clocks
47  - clock-names
48  - resets
49  - "#phy-cells"
50
51if:
52  properties:
53    compatible:
54      enum:
55        - brcm,bcm6318-usbh-phy
56        - brcm,bcm6328-usbh-phy
57        - brcm,bcm6362-usbh-phy
58        - brcm,bcm63268-usbh-phy
59then:
60  properties:
61    power-domains:
62      maxItems: 1
63  required:
64    - power-domains
65else:
66  properties:
67    power-domains: false
68
69examples:
70  - |
71    usbh: usb-phy@10001700 {
72      compatible = "brcm,bcm6368-usbh-phy";
73      reg = <0x10001700 0x38>;
74      clocks = <&periph_clk 15>;
75      clock-names = "usbh";
76      resets = <&periph_rst 12>;
77      #phy-cells = <1>;
78    };
79