xref: /freebsd/sys/contrib/device-tree/Bindings/phy/brcm,cygnus-pcie-phy.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1e67e8565SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2e67e8565SEmmanuel Vadot%YAML 1.2
3e67e8565SEmmanuel Vadot---
4e67e8565SEmmanuel Vadot$id: http://devicetree.org/schemas/phy/brcm,cygnus-pcie-phy.yaml#
5e67e8565SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6e67e8565SEmmanuel Vadot
7e67e8565SEmmanuel Vadottitle: Broadcom Cygnus PCIe PHY
8e67e8565SEmmanuel Vadot
9e67e8565SEmmanuel Vadotmaintainers:
10e67e8565SEmmanuel Vadot  - Ray Jui <ray.jui@broadcom.com>
11e67e8565SEmmanuel Vadot  - Scott Branden <scott.branden@broadcom.com>
12e67e8565SEmmanuel Vadot
13e67e8565SEmmanuel Vadotproperties:
14e67e8565SEmmanuel Vadot  $nodename:
15e67e8565SEmmanuel Vadot    pattern: "^pcie[-|_]phy(@.*)?$"
16e67e8565SEmmanuel Vadot
17e67e8565SEmmanuel Vadot  compatible:
18e67e8565SEmmanuel Vadot    items:
19e67e8565SEmmanuel Vadot      - const: brcm,cygnus-pcie-phy
20e67e8565SEmmanuel Vadot
21e67e8565SEmmanuel Vadot  reg:
22e67e8565SEmmanuel Vadot    maxItems: 1
23e67e8565SEmmanuel Vadot    description: >
24e67e8565SEmmanuel Vadot      Base address and length of the PCIe PHY block
25e67e8565SEmmanuel Vadot
26e67e8565SEmmanuel Vadot  "#address-cells":
27e67e8565SEmmanuel Vadot    const: 1
28e67e8565SEmmanuel Vadot
29e67e8565SEmmanuel Vadot  "#size-cells":
30e67e8565SEmmanuel Vadot    const: 0
31e67e8565SEmmanuel Vadot
32e67e8565SEmmanuel VadotpatternProperties:
33e67e8565SEmmanuel Vadot  "^pcie-phy@[0-9]+$":
34e67e8565SEmmanuel Vadot    type: object
35*7ef62cebSEmmanuel Vadot    additionalProperties: false
36e67e8565SEmmanuel Vadot    description: >
37e67e8565SEmmanuel Vadot      PCIe PHY child nodes
38e67e8565SEmmanuel Vadot
39e67e8565SEmmanuel Vadot    properties:
40e67e8565SEmmanuel Vadot      reg:
41e67e8565SEmmanuel Vadot        maxItems: 1
42e67e8565SEmmanuel Vadot        description: >
43e67e8565SEmmanuel Vadot          The PCIe PHY port number
44e67e8565SEmmanuel Vadot
45e67e8565SEmmanuel Vadot      "#phy-cells":
46e67e8565SEmmanuel Vadot        const: 0
47e67e8565SEmmanuel Vadot
48e67e8565SEmmanuel Vadot    required:
49e67e8565SEmmanuel Vadot      - reg
50e67e8565SEmmanuel Vadot      - "#phy-cells"
51e67e8565SEmmanuel Vadot
52e67e8565SEmmanuel Vadotrequired:
53e67e8565SEmmanuel Vadot  - compatible
54e67e8565SEmmanuel Vadot  - reg
55e67e8565SEmmanuel Vadot  - "#address-cells"
56e67e8565SEmmanuel Vadot  - "#size-cells"
57e67e8565SEmmanuel Vadot
58e67e8565SEmmanuel VadotadditionalProperties: false
59e67e8565SEmmanuel Vadot
60e67e8565SEmmanuel Vadotexamples:
61e67e8565SEmmanuel Vadot  - |
62e67e8565SEmmanuel Vadot    pcie_phy: pcie_phy@301d0a0 {
63e67e8565SEmmanuel Vadot      compatible = "brcm,cygnus-pcie-phy";
64e67e8565SEmmanuel Vadot      reg = <0x0301d0a0 0x14>;
65e67e8565SEmmanuel Vadot      #address-cells = <1>;
66e67e8565SEmmanuel Vadot      #size-cells = <0>;
67e67e8565SEmmanuel Vadot
68e67e8565SEmmanuel Vadot      pcie0_phy: pcie-phy@0 {
69e67e8565SEmmanuel Vadot          reg = <0>;
70e67e8565SEmmanuel Vadot          #phy-cells = <0>;
71e67e8565SEmmanuel Vadot      };
72e67e8565SEmmanuel Vadot
73e67e8565SEmmanuel Vadot      pcie1_phy: pcie-phy@1 {
74e67e8565SEmmanuel Vadot          reg = <1>;
75e67e8565SEmmanuel Vadot          #phy-cells = <0>;
76e67e8565SEmmanuel Vadot      };
77e67e8565SEmmanuel Vadot    };
78