xref: /linux/Documentation/devicetree/bindings/phy/hisilicon,hix5hd2-sata-phy.yaml (revision 8582976acc8504cec53a7b6fed493435eba8437f)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/phy/hisilicon,hix5hd2-sata-phy.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: HiSilicon hix5hd2 SATA PHY
8
9maintainers:
10  - Jiancheng Xue <xuejiancheng@huawei.com>
11
12properties:
13  compatible:
14    const: hisilicon,hix5hd2-sata-phy
15
16  reg:
17    maxItems: 1
18
19  '#phy-cells':
20    const: 0
21
22  hisilicon,peripheral-syscon:
23    description: Phandle of syscon used to control peripheral
24    $ref: /schemas/types.yaml#/definitions/phandle
25
26  hisilicon,power-reg:
27    description: Offset and bit number within peripheral-syscon register controlling SATA power supply
28    $ref: /schemas/types.yaml#/definitions/uint32-array
29    items:
30      - description: Offset within peripheral-syscon register
31      - description: Bit number controlling SATA power supply
32
33required:
34  - compatible
35  - reg
36  - '#phy-cells'
37
38additionalProperties: false
39
40examples:
41  - |
42    phy@f9900000 {
43        compatible = "hisilicon,hix5hd2-sata-phy";
44        reg = <0xf9900000 0x10000>;
45        #phy-cells = <0>;
46        hisilicon,peripheral-syscon = <&peripheral_ctrl>;
47        hisilicon,power-reg = <0x8 10>;
48    };
49