summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/phy/brcm,sr-usb-combo-phy.yaml
blob: 6224ba0f29907225139a521f0b123467dc8c2c8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/phy/brcm,sr-usb-combo-phy.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Broadcom Stingray USB PHY

maintainers:
  - Ray Jui <rjui@broadcom.com>
  - Scott Branden <sbranden@broadcom.com>

properties:
  compatible:
    enum:
      - brcm,sr-usb-combo-phy
      - brcm,sr-usb-hs-phy

  reg:
    maxItems: 1

  '#phy-cells':
    description: PHY cell count indicating PHY type
    enum: [ 0, 1 ]

required:
  - compatible
  - reg
  - '#phy-cells'

allOf:
  - if:
      properties:
        compatible:
          contains:
            const: brcm,sr-usb-combo-phy
    then:
      properties:
        '#phy-cells':
          const: 1
  - if:
      properties:
        compatible:
          contains:
            const: brcm,sr-usb-hs-phy
    then:
      properties:
        '#phy-cells':
          const: 0

additionalProperties: false

examples:
  - |
    usb-phy@0 {
        compatible = "brcm,sr-usb-combo-phy";
        reg = <0x00000000 0x100>;
        #phy-cells = <1>;
    };
  - |
    usb-phy@20000 {
        compatible = "brcm,sr-usb-hs-phy";
        reg = <0x00020000 0x100>;
        #phy-cells = <0>;
    };