xref: /linux/Documentation/devicetree/bindings/phy/socionext,uniphier-pcie-phy.yaml (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
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
2221db1010SKunihiko 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
34*45a4237bSKrzysztof Kozlowski  clock-names:
35*45a4237bSKrzysztof Kozlowski    minItems: 1
36*45a4237bSKrzysztof Kozlowski    maxItems: 2
37b36a2472SKunihiko Hayashi
38b36a2472SKunihiko Hayashi  resets:
39b36a2472SKunihiko Hayashi    minItems: 1
40b36a2472SKunihiko Hayashi    maxItems: 2
41b36a2472SKunihiko Hayashi
42*45a4237bSKrzysztof Kozlowski  reset-names:
43*45a4237bSKrzysztof Kozlowski    minItems: 1
44*45a4237bSKrzysztof Kozlowski    maxItems: 2
45b36a2472SKunihiko Hayashi
46b36a2472SKunihiko Hayashi  socionext,syscon:
47b36a2472SKunihiko Hayashi    $ref: /schemas/types.yaml#/definitions/phandle
48b36a2472SKunihiko Hayashi    description: A phandle to system control to set configurations for phy
49b36a2472SKunihiko Hayashi
5009cc358aSKunihiko HayashiallOf:
5109cc358aSKunihiko Hayashi  - if:
5209cc358aSKunihiko Hayashi      properties:
5309cc358aSKunihiko Hayashi        compatible:
5409cc358aSKunihiko Hayashi          contains:
5509cc358aSKunihiko Hayashi            const: socionext,uniphier-pro5-pcie-phy
5609cc358aSKunihiko Hayashi    then:
5709cc358aSKunihiko Hayashi      properties:
5809cc358aSKunihiko Hayashi        clocks:
5909cc358aSKunihiko Hayashi          minItems: 2
6009cc358aSKunihiko Hayashi          maxItems: 2
6109cc358aSKunihiko Hayashi        clock-names:
6209cc358aSKunihiko Hayashi          items:
6309cc358aSKunihiko Hayashi            - const: gio
6409cc358aSKunihiko Hayashi            - const: link
6509cc358aSKunihiko Hayashi        resets:
6609cc358aSKunihiko Hayashi          minItems: 2
6709cc358aSKunihiko Hayashi          maxItems: 2
6809cc358aSKunihiko Hayashi        reset-names:
6909cc358aSKunihiko Hayashi          items:
7009cc358aSKunihiko Hayashi            - const: gio
7109cc358aSKunihiko Hayashi            - const: link
7209cc358aSKunihiko Hayashi    else:
7309cc358aSKunihiko Hayashi      properties:
7409cc358aSKunihiko Hayashi        clocks:
7509cc358aSKunihiko Hayashi          maxItems: 1
7609cc358aSKunihiko Hayashi        clock-names:
7709cc358aSKunihiko Hayashi          const: link
7809cc358aSKunihiko Hayashi        resets:
7909cc358aSKunihiko Hayashi          maxItems: 1
8009cc358aSKunihiko Hayashi        reset-names:
8109cc358aSKunihiko Hayashi          const: link
8209cc358aSKunihiko Hayashi
83b36a2472SKunihiko Hayashirequired:
84b36a2472SKunihiko Hayashi  - compatible
85b36a2472SKunihiko Hayashi  - reg
86b36a2472SKunihiko Hayashi  - "#phy-cells"
87b36a2472SKunihiko Hayashi  - clocks
88b36a2472SKunihiko Hayashi  - clock-names
89b36a2472SKunihiko Hayashi  - resets
90b36a2472SKunihiko Hayashi  - reset-names
91b36a2472SKunihiko Hayashi
92b36a2472SKunihiko HayashiadditionalProperties: false
93b36a2472SKunihiko Hayashi
94b36a2472SKunihiko Hayashiexamples:
95b36a2472SKunihiko Hayashi  - |
96b36a2472SKunihiko Hayashi    pcie_phy: phy@66038000 {
97b36a2472SKunihiko Hayashi        compatible = "socionext,uniphier-ld20-pcie-phy";
98b36a2472SKunihiko Hayashi        reg = <0x66038000 0x4000>;
99b36a2472SKunihiko Hayashi        #phy-cells = <0>;
100b36a2472SKunihiko Hayashi        clock-names = "link";
101b36a2472SKunihiko Hayashi        clocks = <&sys_clk 24>;
102b36a2472SKunihiko Hayashi        reset-names = "link";
103b36a2472SKunihiko Hayashi        resets = <&sys_rst 24>;
104b36a2472SKunihiko Hayashi        socionext,syscon = <&soc_glue>;
105b36a2472SKunihiko Hayashi    };
106