1b36a2472SKunihiko Hayashi# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2b36a2472SKunihiko Hayashi%YAML 1.2
3b36a2472SKunihiko Hayashi---
4b36a2472SKunihiko Hayashi$id: http://devicetree.org/schemas/phy/socionext,uniphier-pcie-phy.yaml#
5b36a2472SKunihiko Hayashi$schema: http://devicetree.org/meta-schemas/core.yaml#
6b36a2472SKunihiko Hayashi
7b36a2472SKunihiko Hayashititle: Socionext UniPhier PCIe PHY
8b36a2472SKunihiko Hayashi
9b36a2472SKunihiko Hayashidescription: |
10b36a2472SKunihiko Hayashi  This describes the devicetree bindings for PHY interface built into
11b36a2472SKunihiko Hayashi  PCIe controller implemented on Socionext UniPhier SoCs.
12b36a2472SKunihiko Hayashi
13b36a2472SKunihiko Hayashimaintainers:
14b36a2472SKunihiko Hayashi  - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
15b36a2472SKunihiko Hayashi
16b36a2472SKunihiko Hayashiproperties:
17b36a2472SKunihiko Hayashi  compatible:
18b36a2472SKunihiko Hayashi    enum:
19b36a2472SKunihiko Hayashi      - socionext,uniphier-pro5-pcie-phy
20b36a2472SKunihiko Hayashi      - socionext,uniphier-ld20-pcie-phy
21b36a2472SKunihiko Hayashi      - socionext,uniphier-pxs3-pcie-phy
22*21db1010SKunihiko Hayashi      - socionext,uniphier-nx1-pcie-phy
23b36a2472SKunihiko Hayashi
24b36a2472SKunihiko Hayashi  reg:
250499220dSRob Herring    maxItems: 1
26b36a2472SKunihiko Hayashi
27b36a2472SKunihiko Hayashi  "#phy-cells":
28b36a2472SKunihiko Hayashi    const: 0
29b36a2472SKunihiko Hayashi
30b36a2472SKunihiko Hayashi  clocks:
31b36a2472SKunihiko Hayashi    minItems: 1
32b36a2472SKunihiko Hayashi    maxItems: 2
33b36a2472SKunihiko Hayashi
34b36a2472SKunihiko Hayashi  clock-names:
35b36a2472SKunihiko Hayashi    oneOf:
36b36a2472SKunihiko Hayashi      - items:            # for Pro5
37b36a2472SKunihiko Hayashi          - const: gio
38b36a2472SKunihiko Hayashi          - const: link
39b36a2472SKunihiko Hayashi      - const: link       # for others
40b36a2472SKunihiko Hayashi
41b36a2472SKunihiko Hayashi  resets:
42b36a2472SKunihiko Hayashi    minItems: 1
43b36a2472SKunihiko Hayashi    maxItems: 2
44b36a2472SKunihiko Hayashi
45b36a2472SKunihiko Hayashi  reset-names:
46b36a2472SKunihiko Hayashi    oneOf:
47b36a2472SKunihiko Hayashi      - items:            # for Pro5
48b36a2472SKunihiko Hayashi          - const: gio
49b36a2472SKunihiko Hayashi          - const: link
50b36a2472SKunihiko Hayashi      - const: link       # for others
51b36a2472SKunihiko Hayashi
52b36a2472SKunihiko Hayashi  socionext,syscon:
53b36a2472SKunihiko Hayashi    $ref: /schemas/types.yaml#/definitions/phandle
54b36a2472SKunihiko Hayashi    description: A phandle to system control to set configurations for phy
55b36a2472SKunihiko Hayashi
56b36a2472SKunihiko Hayashirequired:
57b36a2472SKunihiko Hayashi  - compatible
58b36a2472SKunihiko Hayashi  - reg
59b36a2472SKunihiko Hayashi  - "#phy-cells"
60b36a2472SKunihiko Hayashi  - clocks
61b36a2472SKunihiko Hayashi  - clock-names
62b36a2472SKunihiko Hayashi  - resets
63b36a2472SKunihiko Hayashi  - reset-names
64b36a2472SKunihiko Hayashi
65b36a2472SKunihiko HayashiadditionalProperties: false
66b36a2472SKunihiko Hayashi
67b36a2472SKunihiko Hayashiexamples:
68b36a2472SKunihiko Hayashi  - |
69b36a2472SKunihiko Hayashi    pcie_phy: phy@66038000 {
70b36a2472SKunihiko Hayashi        compatible = "socionext,uniphier-ld20-pcie-phy";
71b36a2472SKunihiko Hayashi        reg = <0x66038000 0x4000>;
72b36a2472SKunihiko Hayashi        #phy-cells = <0>;
73b36a2472SKunihiko Hayashi        clock-names = "link";
74b36a2472SKunihiko Hayashi        clocks = <&sys_clk 24>;
75b36a2472SKunihiko Hayashi        reset-names = "link";
76b36a2472SKunihiko Hayashi        resets = <&sys_rst 24>;
77b36a2472SKunihiko Hayashi        socionext,syscon = <&soc_glue>;
78b36a2472SKunihiko Hayashi    };
79