summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/phy/bcm-ns-usb2-phy.yaml
blob: 426101530a21ee9abe8f5ea0a69dcfab00855a9e (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
66
67
68
69
70
71
72
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/phy/bcm-ns-usb2-phy.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Broadcom Northstar USB 2.0 PHY

description: >
  To initialize USB 2.0 PHY driver needs to setup PLL correctly.
  To do this it requires passing phandle to the USB PHY reference clock.

maintainers:
  - Rafał Miłecki <rafal@milecki.pl>

properties:
  compatible:
    const: brcm,ns-usb2-phy

  reg:
    anyOf:
      - maxItems: 1
        description: PHY control register
      - maxItems: 1
        description: iomem address range of DMU (Device Management Unit)
        deprecated: true

  reg-names:
    items:
      - const: dmu

  brcm,syscon-clkset:
    description: phandle to syscon for clkset register
    $ref: /schemas/types.yaml#/definitions/phandle

  clocks:
    items:
      - description: USB PHY reference clock

  clock-names:
    items:
      - const: phy-ref-clk

  "#phy-cells":
    const: 0

required:
  - compatible
  - reg
  - clocks
  - clock-names
  - "#phy-cells"

oneOf:
  - required:
      - brcm,syscon-clkset
  - required:
      - reg-names

additionalProperties: false

examples:
  - |
    #include <dt-bindings/clock/bcm-nsp.h>
    phy@1800c164 {
        compatible = "brcm,ns-usb2-phy";
        reg = <0x1800c164 0x4>;
        brcm,syscon-clkset = <&clkset>;
        clocks = <&genpll BCM_NSP_GENPLL_USB_PHY_REF_CLK>;
        clock-names = "phy-ref-clk";
        #phy-cells = <0>;
    };