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:
19*34f92b67SKunihiko 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:
30*34f92b67SKunihiko 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
37*34f92b67SKunihiko Hayashi      - items:          # for Pro4
38*34f92b67SKunihiko Hayashi          - const: link
39*34f92b67SKunihiko Hayashi          - const: gio
40728776d7SKunihiko Hayashi      - items:          # for others
41728776d7SKunihiko Hayashi          - const: link
42728776d7SKunihiko Hayashi          - const: phy
43728776d7SKunihiko Hayashi
44728776d7SKunihiko Hayashi  resets:
45*34f92b67SKunihiko Hayashi    minItems: 2
46*34f92b67SKunihiko Hayashi    maxItems: 5
47728776d7SKunihiko Hayashi
48728776d7SKunihiko Hayashi  reset-names:
49*34f92b67SKunihiko Hayashi    oneOf:
50*34f92b67SKunihiko Hayashi      - items:          # for Pro4
51*34f92b67SKunihiko Hayashi          - const: link
52*34f92b67SKunihiko Hayashi          - const: gio
53*34f92b67SKunihiko Hayashi          - const: pm
54*34f92b67SKunihiko Hayashi          - const: tx
55*34f92b67SKunihiko Hayashi          - const: rx
56*34f92b67SKunihiko Hayashi      - items:          # for others
57728776d7SKunihiko Hayashi          - const: link
58728776d7SKunihiko Hayashi          - const: phy
59728776d7SKunihiko Hayashi
60728776d7SKunihiko Hayashirequired:
61728776d7SKunihiko Hayashi  - compatible
62728776d7SKunihiko Hayashi  - reg
63728776d7SKunihiko Hayashi  - "#phy-cells"
64728776d7SKunihiko Hayashi  - clocks
65728776d7SKunihiko Hayashi  - clock-names
66728776d7SKunihiko Hayashi  - resets
67728776d7SKunihiko Hayashi  - reset-names
68728776d7SKunihiko Hayashi
69728776d7SKunihiko HayashiadditionalProperties: false
70728776d7SKunihiko Hayashi
71728776d7SKunihiko Hayashiexamples:
72728776d7SKunihiko Hayashi  - |
73728776d7SKunihiko Hayashi    ahci-glue@65700000 {
74728776d7SKunihiko Hayashi        compatible = "socionext,uniphier-pxs3-ahci-glue",
75728776d7SKunihiko Hayashi                     "simple-mfd";
76728776d7SKunihiko Hayashi        #address-cells = <1>;
77728776d7SKunihiko Hayashi        #size-cells = <1>;
78728776d7SKunihiko Hayashi        ranges = <0 0x65700000 0x100>;
79728776d7SKunihiko Hayashi
80728776d7SKunihiko Hayashi        ahci_phy: phy@10 {
81728776d7SKunihiko Hayashi            compatible = "socionext,uniphier-pxs3-ahci-phy";
82728776d7SKunihiko Hayashi            reg = <0x10 0x10>;
83728776d7SKunihiko Hayashi            #phy-cells = <0>;
84728776d7SKunihiko Hayashi            clock-names = "link", "phy";
85728776d7SKunihiko Hayashi            clocks = <&sys_clk 28>, <&sys_clk 30>;
86728776d7SKunihiko Hayashi            reset-names = "link", "phy";
87728776d7SKunihiko Hayashi            resets = <&sys_rst 28>, <&sys_rst 30>;
88728776d7SKunihiko Hayashi        };
89728776d7SKunihiko Hayashi    };
90