1728776d7SKunihiko Hayashi# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2728776d7SKunihiko Hayashi%YAML 1.2
3728776d7SKunihiko Hayashi---
4728776d7SKunihiko Hayashi$id: http://devicetree.org/schemas/phy/socionext,uniphier-ahci-phy.yaml#
5728776d7SKunihiko Hayashi$schema: http://devicetree.org/meta-schemas/core.yaml#
6728776d7SKunihiko Hayashi
7728776d7SKunihiko Hayashititle: Socionext UniPhier AHCI PHY
8728776d7SKunihiko Hayashi
9728776d7SKunihiko Hayashidescription: |
10728776d7SKunihiko Hayashi  This describes the deivcetree bindings for PHY interfaces built into
11728776d7SKunihiko Hayashi  AHCI controller implemented on Socionext UniPhier SoCs.
12728776d7SKunihiko Hayashi
13728776d7SKunihiko Hayashimaintainers:
14728776d7SKunihiko Hayashi  - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
15728776d7SKunihiko Hayashi
16728776d7SKunihiko Hayashiproperties:
17728776d7SKunihiko Hayashi  compatible:
18728776d7SKunihiko Hayashi    enum:
1934f92b67SKunihiko Hayashi      - socionext,uniphier-pro4-ahci-phy
20728776d7SKunihiko Hayashi      - socionext,uniphier-pxs2-ahci-phy
21728776d7SKunihiko Hayashi      - socionext,uniphier-pxs3-ahci-phy
22728776d7SKunihiko Hayashi
23728776d7SKunihiko Hayashi  reg:
240499220dSRob Herring    maxItems: 1
25728776d7SKunihiko Hayashi
26728776d7SKunihiko Hayashi  "#phy-cells":
27728776d7SKunihiko Hayashi    const: 0
28728776d7SKunihiko Hayashi
29728776d7SKunihiko Hayashi  clocks:
3034f92b67SKunihiko Hayashi    minItems: 1
31728776d7SKunihiko Hayashi    maxItems: 2
32728776d7SKunihiko Hayashi
33728776d7SKunihiko Hayashi  clock-names:
34728776d7SKunihiko Hayashi    oneOf:
35728776d7SKunihiko Hayashi      - items:          # for PXs2
36728776d7SKunihiko Hayashi          - const: link
3734f92b67SKunihiko Hayashi      - items:          # for Pro4
3834f92b67SKunihiko Hayashi          - const: link
3934f92b67SKunihiko Hayashi          - const: gio
40728776d7SKunihiko Hayashi      - items:          # for others
41728776d7SKunihiko Hayashi          - const: link
42728776d7SKunihiko Hayashi          - const: phy
43728776d7SKunihiko Hayashi
44728776d7SKunihiko Hayashi  resets:
4534f92b67SKunihiko Hayashi    minItems: 2
46*fccd2f32SKunihiko Hayashi    maxItems: 6
47728776d7SKunihiko Hayashi
48728776d7SKunihiko Hayashi  reset-names:
4934f92b67SKunihiko Hayashi    oneOf:
5034f92b67SKunihiko Hayashi      - items:          # for Pro4
5134f92b67SKunihiko Hayashi          - const: link
5234f92b67SKunihiko Hayashi          - const: gio
53*fccd2f32SKunihiko Hayashi          - const: phy
5434f92b67SKunihiko Hayashi          - const: pm
5534f92b67SKunihiko Hayashi          - const: tx
5634f92b67SKunihiko Hayashi          - const: rx
5734f92b67SKunihiko Hayashi      - items:          # for others
58728776d7SKunihiko Hayashi          - const: link
59728776d7SKunihiko Hayashi          - const: phy
60728776d7SKunihiko Hayashi
61728776d7SKunihiko Hayashirequired:
62728776d7SKunihiko Hayashi  - compatible
63728776d7SKunihiko Hayashi  - reg
64728776d7SKunihiko Hayashi  - "#phy-cells"
65728776d7SKunihiko Hayashi  - clocks
66728776d7SKunihiko Hayashi  - clock-names
67728776d7SKunihiko Hayashi  - resets
68728776d7SKunihiko Hayashi  - reset-names
69728776d7SKunihiko Hayashi
70728776d7SKunihiko HayashiadditionalProperties: false
71728776d7SKunihiko Hayashi
72728776d7SKunihiko Hayashiexamples:
73728776d7SKunihiko Hayashi  - |
74728776d7SKunihiko Hayashi    ahci-glue@65700000 {
75728776d7SKunihiko Hayashi        compatible = "socionext,uniphier-pxs3-ahci-glue",
76728776d7SKunihiko Hayashi                     "simple-mfd";
77728776d7SKunihiko Hayashi        #address-cells = <1>;
78728776d7SKunihiko Hayashi        #size-cells = <1>;
79728776d7SKunihiko Hayashi        ranges = <0 0x65700000 0x100>;
80728776d7SKunihiko Hayashi
81728776d7SKunihiko Hayashi        ahci_phy: phy@10 {
82728776d7SKunihiko Hayashi            compatible = "socionext,uniphier-pxs3-ahci-phy";
83728776d7SKunihiko Hayashi            reg = <0x10 0x10>;
84728776d7SKunihiko Hayashi            #phy-cells = <0>;
85728776d7SKunihiko Hayashi            clock-names = "link", "phy";
86728776d7SKunihiko Hayashi            clocks = <&sys_clk 28>, <&sys_clk 30>;
87728776d7SKunihiko Hayashi            reset-names = "link", "phy";
88728776d7SKunihiko Hayashi            resets = <&sys_rst 28>, <&sys_rst 30>;
89728776d7SKunihiko Hayashi        };
90728776d7SKunihiko Hayashi    };
91