xref: /freebsd/sys/contrib/device-tree/Bindings/phy/socionext,uniphier-pcie-phy.yaml (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/phy/socionext,uniphier-pcie-phy.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Socionext UniPhier PCIe PHY
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotdescription: |
10c66ec88fSEmmanuel Vadot  This describes the devicetree bindings for PHY interface built into
11c66ec88fSEmmanuel Vadot  PCIe controller implemented on Socionext UniPhier SoCs.
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadotmaintainers:
14c66ec88fSEmmanuel Vadot  - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadotproperties:
17c66ec88fSEmmanuel Vadot  compatible:
18c66ec88fSEmmanuel Vadot    enum:
19c66ec88fSEmmanuel Vadot      - socionext,uniphier-pro5-pcie-phy
20c66ec88fSEmmanuel Vadot      - socionext,uniphier-ld20-pcie-phy
21c66ec88fSEmmanuel Vadot      - socionext,uniphier-pxs3-pcie-phy
22e67e8565SEmmanuel Vadot      - socionext,uniphier-nx1-pcie-phy
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadot  reg:
255def4c47SEmmanuel Vadot    maxItems: 1
26c66ec88fSEmmanuel Vadot
27c66ec88fSEmmanuel Vadot  "#phy-cells":
28c66ec88fSEmmanuel Vadot    const: 0
29c66ec88fSEmmanuel Vadot
30c66ec88fSEmmanuel Vadot  clocks:
31c66ec88fSEmmanuel Vadot    minItems: 1
32c66ec88fSEmmanuel Vadot    maxItems: 2
33c66ec88fSEmmanuel Vadot
34*d5b0e70fSEmmanuel Vadot  clock-names: true
35c66ec88fSEmmanuel Vadot
36c66ec88fSEmmanuel Vadot  resets:
37c66ec88fSEmmanuel Vadot    minItems: 1
38c66ec88fSEmmanuel Vadot    maxItems: 2
39c66ec88fSEmmanuel Vadot
40*d5b0e70fSEmmanuel Vadot  reset-names: true
41c66ec88fSEmmanuel Vadot
42c66ec88fSEmmanuel Vadot  socionext,syscon:
43c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
44c66ec88fSEmmanuel Vadot    description: A phandle to system control to set configurations for phy
45c66ec88fSEmmanuel Vadot
46*d5b0e70fSEmmanuel VadotallOf:
47*d5b0e70fSEmmanuel Vadot  - if:
48*d5b0e70fSEmmanuel Vadot      properties:
49*d5b0e70fSEmmanuel Vadot        compatible:
50*d5b0e70fSEmmanuel Vadot          contains:
51*d5b0e70fSEmmanuel Vadot            const: socionext,uniphier-pro5-pcie-phy
52*d5b0e70fSEmmanuel Vadot    then:
53*d5b0e70fSEmmanuel Vadot      properties:
54*d5b0e70fSEmmanuel Vadot        clocks:
55*d5b0e70fSEmmanuel Vadot          minItems: 2
56*d5b0e70fSEmmanuel Vadot          maxItems: 2
57*d5b0e70fSEmmanuel Vadot        clock-names:
58*d5b0e70fSEmmanuel Vadot          items:
59*d5b0e70fSEmmanuel Vadot            - const: gio
60*d5b0e70fSEmmanuel Vadot            - const: link
61*d5b0e70fSEmmanuel Vadot        resets:
62*d5b0e70fSEmmanuel Vadot          minItems: 2
63*d5b0e70fSEmmanuel Vadot          maxItems: 2
64*d5b0e70fSEmmanuel Vadot        reset-names:
65*d5b0e70fSEmmanuel Vadot          items:
66*d5b0e70fSEmmanuel Vadot            - const: gio
67*d5b0e70fSEmmanuel Vadot            - const: link
68*d5b0e70fSEmmanuel Vadot    else:
69*d5b0e70fSEmmanuel Vadot      properties:
70*d5b0e70fSEmmanuel Vadot        clocks:
71*d5b0e70fSEmmanuel Vadot          maxItems: 1
72*d5b0e70fSEmmanuel Vadot        clock-names:
73*d5b0e70fSEmmanuel Vadot          const: link
74*d5b0e70fSEmmanuel Vadot        resets:
75*d5b0e70fSEmmanuel Vadot          maxItems: 1
76*d5b0e70fSEmmanuel Vadot        reset-names:
77*d5b0e70fSEmmanuel Vadot          const: link
78*d5b0e70fSEmmanuel Vadot
79c66ec88fSEmmanuel Vadotrequired:
80c66ec88fSEmmanuel Vadot  - compatible
81c66ec88fSEmmanuel Vadot  - reg
82c66ec88fSEmmanuel Vadot  - "#phy-cells"
83c66ec88fSEmmanuel Vadot  - clocks
84c66ec88fSEmmanuel Vadot  - clock-names
85c66ec88fSEmmanuel Vadot  - resets
86c66ec88fSEmmanuel Vadot  - reset-names
87c66ec88fSEmmanuel Vadot
88c66ec88fSEmmanuel VadotadditionalProperties: false
89c66ec88fSEmmanuel Vadot
90c66ec88fSEmmanuel Vadotexamples:
91c66ec88fSEmmanuel Vadot  - |
92c66ec88fSEmmanuel Vadot    pcie_phy: phy@66038000 {
93c66ec88fSEmmanuel Vadot        compatible = "socionext,uniphier-ld20-pcie-phy";
94c66ec88fSEmmanuel Vadot        reg = <0x66038000 0x4000>;
95c66ec88fSEmmanuel Vadot        #phy-cells = <0>;
96c66ec88fSEmmanuel Vadot        clock-names = "link";
97c66ec88fSEmmanuel Vadot        clocks = <&sys_clk 24>;
98c66ec88fSEmmanuel Vadot        reset-names = "link";
99c66ec88fSEmmanuel Vadot        resets = <&sys_rst 24>;
100c66ec88fSEmmanuel Vadot        socionext,syscon = <&soc_glue>;
101c66ec88fSEmmanuel Vadot    };
102