0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/phy/socionext,uniphier-ahci-phy.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Socionext UniPhier AHCI PHY
0008
0009 description: |
0010 This describes the deivcetree bindings for PHY interfaces built into
0011 AHCI controller implemented on Socionext UniPhier SoCs.
0012
0013 maintainers:
0014 - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
0015
0016 properties:
0017 compatible:
0018 enum:
0019 - socionext,uniphier-pro4-ahci-phy
0020 - socionext,uniphier-pxs2-ahci-phy
0021 - socionext,uniphier-pxs3-ahci-phy
0022
0023 reg:
0024 maxItems: 1
0025
0026 "#phy-cells":
0027 const: 0
0028
0029 clocks:
0030 minItems: 1
0031 maxItems: 2
0032
0033 clock-names: true
0034
0035 resets:
0036 minItems: 2
0037 maxItems: 6
0038
0039 reset-names: true
0040
0041 allOf:
0042 - if:
0043 properties:
0044 compatible:
0045 contains:
0046 const: socionext,uniphier-pro4-ahci-phy
0047 then:
0048 properties:
0049 clocks:
0050 minItems: 2
0051 maxItems: 2
0052 clock-names:
0053 items:
0054 - const: link
0055 - const: gio
0056 resets:
0057 minItems: 6
0058 maxItems: 6
0059 reset-names:
0060 items:
0061 - const: link
0062 - const: gio
0063 - const: phy
0064 - const: pm
0065 - const: tx
0066 - const: rx
0067 - if:
0068 properties:
0069 compatible:
0070 contains:
0071 const: socionext,uniphier-pxs2-ahci-phy
0072 then:
0073 properties:
0074 clocks:
0075 maxItems: 1
0076 clock-names:
0077 const: link
0078 resets:
0079 minItems: 2
0080 maxItems: 2
0081 reset-names:
0082 items:
0083 - const: link
0084 - const: phy
0085 - if:
0086 properties:
0087 compatible:
0088 contains:
0089 const: socionext,uniphier-pxs3-ahci-phy
0090 then:
0091 properties:
0092 clocks:
0093 minItems: 2
0094 maxItems: 2
0095 clock-names:
0096 items:
0097 - const: link
0098 - const: phy
0099 resets:
0100 minItems: 2
0101 maxItems: 2
0102 reset-names:
0103 items:
0104 - const: link
0105 - const: phy
0106
0107 required:
0108 - compatible
0109 - reg
0110 - "#phy-cells"
0111 - clocks
0112 - clock-names
0113 - resets
0114 - reset-names
0115
0116 additionalProperties: false
0117
0118 examples:
0119 - |
0120 ahci-glue@65700000 {
0121 compatible = "socionext,uniphier-pxs3-ahci-glue",
0122 "simple-mfd";
0123 #address-cells = <1>;
0124 #size-cells = <1>;
0125 ranges = <0 0x65700000 0x100>;
0126
0127 ahci_phy: phy@10 {
0128 compatible = "socionext,uniphier-pxs3-ahci-phy";
0129 reg = <0x10 0x10>;
0130 #phy-cells = <0>;
0131 clock-names = "link", "phy";
0132 clocks = <&sys_clk 28>, <&sys_clk 30>;
0133 reset-names = "link", "phy";
0134 resets = <&sys_rst 28>, <&sys_rst 30>;
0135 };
0136 };