xref: /freebsd/sys/contrib/device-tree/Bindings/phy/socionext,uniphier-ahci-phy.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
16be33864SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
26be33864SEmmanuel Vadot%YAML 1.2
36be33864SEmmanuel Vadot---
46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/phy/socionext,uniphier-ahci-phy.yaml#
56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
66be33864SEmmanuel Vadot
76be33864SEmmanuel Vadottitle: Socionext UniPhier AHCI PHY
86be33864SEmmanuel Vadot
96be33864SEmmanuel Vadotdescription: |
106be33864SEmmanuel Vadot  This describes the deivcetree bindings for PHY interfaces built into
116be33864SEmmanuel Vadot  AHCI controller implemented on Socionext UniPhier SoCs.
126be33864SEmmanuel Vadot
136be33864SEmmanuel Vadotmaintainers:
146be33864SEmmanuel Vadot  - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
156be33864SEmmanuel Vadot
166be33864SEmmanuel Vadotproperties:
176be33864SEmmanuel Vadot  compatible:
186be33864SEmmanuel Vadot    enum:
19e67e8565SEmmanuel Vadot      - socionext,uniphier-pro4-ahci-phy
206be33864SEmmanuel Vadot      - socionext,uniphier-pxs2-ahci-phy
216be33864SEmmanuel Vadot      - socionext,uniphier-pxs3-ahci-phy
226be33864SEmmanuel Vadot
236be33864SEmmanuel Vadot  reg:
245def4c47SEmmanuel Vadot    maxItems: 1
256be33864SEmmanuel Vadot
266be33864SEmmanuel Vadot  "#phy-cells":
276be33864SEmmanuel Vadot    const: 0
286be33864SEmmanuel Vadot
296be33864SEmmanuel Vadot  clocks:
30e67e8565SEmmanuel Vadot    minItems: 1
316be33864SEmmanuel Vadot    maxItems: 2
326be33864SEmmanuel Vadot
33*d5b0e70fSEmmanuel Vadot  clock-names: true
346be33864SEmmanuel Vadot
356be33864SEmmanuel Vadot  resets:
36e67e8565SEmmanuel Vadot    minItems: 2
37*d5b0e70fSEmmanuel Vadot    maxItems: 6
386be33864SEmmanuel Vadot
39*d5b0e70fSEmmanuel Vadot  reset-names: true
40*d5b0e70fSEmmanuel Vadot
41*d5b0e70fSEmmanuel VadotallOf:
42*d5b0e70fSEmmanuel Vadot  - if:
43*d5b0e70fSEmmanuel Vadot      properties:
44*d5b0e70fSEmmanuel Vadot        compatible:
45*d5b0e70fSEmmanuel Vadot          contains:
46*d5b0e70fSEmmanuel Vadot            const: socionext,uniphier-pro4-ahci-phy
47*d5b0e70fSEmmanuel Vadot    then:
48*d5b0e70fSEmmanuel Vadot      properties:
49*d5b0e70fSEmmanuel Vadot        clocks:
50*d5b0e70fSEmmanuel Vadot          minItems: 2
51*d5b0e70fSEmmanuel Vadot          maxItems: 2
52*d5b0e70fSEmmanuel Vadot        clock-names:
53*d5b0e70fSEmmanuel Vadot          items:
54e67e8565SEmmanuel Vadot            - const: link
55e67e8565SEmmanuel Vadot            - const: gio
56*d5b0e70fSEmmanuel Vadot        resets:
57*d5b0e70fSEmmanuel Vadot          minItems: 6
58*d5b0e70fSEmmanuel Vadot          maxItems: 6
59*d5b0e70fSEmmanuel Vadot        reset-names:
60*d5b0e70fSEmmanuel Vadot          items:
61*d5b0e70fSEmmanuel Vadot            - const: link
62*d5b0e70fSEmmanuel Vadot            - const: gio
63*d5b0e70fSEmmanuel Vadot            - const: phy
64e67e8565SEmmanuel Vadot            - const: pm
65e67e8565SEmmanuel Vadot            - const: tx
66e67e8565SEmmanuel Vadot            - const: rx
67*d5b0e70fSEmmanuel Vadot  - if:
68*d5b0e70fSEmmanuel Vadot      properties:
69*d5b0e70fSEmmanuel Vadot        compatible:
70*d5b0e70fSEmmanuel Vadot          contains:
71*d5b0e70fSEmmanuel Vadot            const: socionext,uniphier-pxs2-ahci-phy
72*d5b0e70fSEmmanuel Vadot    then:
73*d5b0e70fSEmmanuel Vadot      properties:
74*d5b0e70fSEmmanuel Vadot        clocks:
75*d5b0e70fSEmmanuel Vadot          maxItems: 1
76*d5b0e70fSEmmanuel Vadot        clock-names:
77*d5b0e70fSEmmanuel Vadot          const: link
78*d5b0e70fSEmmanuel Vadot        resets:
79*d5b0e70fSEmmanuel Vadot          minItems: 2
80*d5b0e70fSEmmanuel Vadot          maxItems: 2
81*d5b0e70fSEmmanuel Vadot        reset-names:
82*d5b0e70fSEmmanuel Vadot          items:
83*d5b0e70fSEmmanuel Vadot            - const: link
84*d5b0e70fSEmmanuel Vadot            - const: phy
85*d5b0e70fSEmmanuel Vadot  - if:
86*d5b0e70fSEmmanuel Vadot      properties:
87*d5b0e70fSEmmanuel Vadot        compatible:
88*d5b0e70fSEmmanuel Vadot          contains:
89*d5b0e70fSEmmanuel Vadot            const: socionext,uniphier-pxs3-ahci-phy
90*d5b0e70fSEmmanuel Vadot    then:
91*d5b0e70fSEmmanuel Vadot      properties:
92*d5b0e70fSEmmanuel Vadot        clocks:
93*d5b0e70fSEmmanuel Vadot          minItems: 2
94*d5b0e70fSEmmanuel Vadot          maxItems: 2
95*d5b0e70fSEmmanuel Vadot        clock-names:
96*d5b0e70fSEmmanuel Vadot          items:
97*d5b0e70fSEmmanuel Vadot            - const: link
98*d5b0e70fSEmmanuel Vadot            - const: phy
99*d5b0e70fSEmmanuel Vadot        resets:
100*d5b0e70fSEmmanuel Vadot          minItems: 2
101*d5b0e70fSEmmanuel Vadot          maxItems: 2
102*d5b0e70fSEmmanuel Vadot        reset-names:
103*d5b0e70fSEmmanuel Vadot          items:
1046be33864SEmmanuel Vadot            - const: link
1056be33864SEmmanuel Vadot            - const: phy
1066be33864SEmmanuel Vadot
1076be33864SEmmanuel Vadotrequired:
1086be33864SEmmanuel Vadot  - compatible
1096be33864SEmmanuel Vadot  - reg
1106be33864SEmmanuel Vadot  - "#phy-cells"
1116be33864SEmmanuel Vadot  - clocks
1126be33864SEmmanuel Vadot  - clock-names
1136be33864SEmmanuel Vadot  - resets
1146be33864SEmmanuel Vadot  - reset-names
1156be33864SEmmanuel Vadot
1166be33864SEmmanuel VadotadditionalProperties: false
1176be33864SEmmanuel Vadot
1186be33864SEmmanuel Vadotexamples:
1196be33864SEmmanuel Vadot  - |
1206be33864SEmmanuel Vadot    ahci_phy: phy@10 {
1216be33864SEmmanuel Vadot        compatible = "socionext,uniphier-pxs3-ahci-phy";
1226be33864SEmmanuel Vadot        reg = <0x10 0x10>;
1236be33864SEmmanuel Vadot        #phy-cells = <0>;
1246be33864SEmmanuel Vadot        clock-names = "link", "phy";
1256be33864SEmmanuel Vadot        clocks = <&sys_clk 28>, <&sys_clk 30>;
1266be33864SEmmanuel Vadot        reset-names = "link", "phy";
1276be33864SEmmanuel Vadot        resets = <&sys_rst 28>, <&sys_rst 30>;
1286be33864SEmmanuel Vadot    };
129