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
22b36a2472SKunihiko Hayashi
23b36a2472SKunihiko Hayashi  reg:
24*0499220dSRob Herring    maxItems: 1
25b36a2472SKunihiko Hayashi
26b36a2472SKunihiko Hayashi  "#phy-cells":
27b36a2472SKunihiko Hayashi    const: 0
28b36a2472SKunihiko Hayashi
29b36a2472SKunihiko Hayashi  clocks:
30b36a2472SKunihiko Hayashi    minItems: 1
31b36a2472SKunihiko Hayashi    maxItems: 2
32b36a2472SKunihiko Hayashi
33b36a2472SKunihiko Hayashi  clock-names:
34b36a2472SKunihiko Hayashi    oneOf:
35b36a2472SKunihiko Hayashi      - items:            # for Pro5
36b36a2472SKunihiko Hayashi          - const: gio
37b36a2472SKunihiko Hayashi          - const: link
38b36a2472SKunihiko Hayashi      - const: link       # for others
39b36a2472SKunihiko Hayashi
40b36a2472SKunihiko Hayashi  resets:
41b36a2472SKunihiko Hayashi    minItems: 1
42b36a2472SKunihiko Hayashi    maxItems: 2
43b36a2472SKunihiko Hayashi
44b36a2472SKunihiko Hayashi  reset-names:
45b36a2472SKunihiko Hayashi    oneOf:
46b36a2472SKunihiko Hayashi      - items:            # for Pro5
47b36a2472SKunihiko Hayashi          - const: gio
48b36a2472SKunihiko Hayashi          - const: link
49b36a2472SKunihiko Hayashi      - const: link       # for others
50b36a2472SKunihiko Hayashi
51b36a2472SKunihiko Hayashi  socionext,syscon:
52b36a2472SKunihiko Hayashi    $ref: /schemas/types.yaml#/definitions/phandle
53b36a2472SKunihiko Hayashi    description: A phandle to system control to set configurations for phy
54b36a2472SKunihiko Hayashi
55b36a2472SKunihiko Hayashirequired:
56b36a2472SKunihiko Hayashi  - compatible
57b36a2472SKunihiko Hayashi  - reg
58b36a2472SKunihiko Hayashi  - "#phy-cells"
59b36a2472SKunihiko Hayashi  - clocks
60b36a2472SKunihiko Hayashi  - clock-names
61b36a2472SKunihiko Hayashi  - resets
62b36a2472SKunihiko Hayashi  - reset-names
63b36a2472SKunihiko Hayashi
64b36a2472SKunihiko HayashiadditionalProperties: false
65b36a2472SKunihiko Hayashi
66b36a2472SKunihiko Hayashiexamples:
67b36a2472SKunihiko Hayashi  - |
68b36a2472SKunihiko Hayashi    pcie_phy: phy@66038000 {
69b36a2472SKunihiko Hayashi        compatible = "socionext,uniphier-ld20-pcie-phy";
70b36a2472SKunihiko Hayashi        reg = <0x66038000 0x4000>;
71b36a2472SKunihiko Hayashi        #phy-cells = <0>;
72b36a2472SKunihiko Hayashi        clock-names = "link";
73b36a2472SKunihiko Hayashi        clocks = <&sys_clk 24>;
74b36a2472SKunihiko Hayashi        reset-names = "link";
75b36a2472SKunihiko Hayashi        resets = <&sys_rst 24>;
76b36a2472SKunihiko Hayashi        socionext,syscon = <&soc_glue>;
77b36a2472SKunihiko Hayashi    };
78