summaryrefslogtreecommitdiffstats
path: root/dts/Bindings/phy/starfive,jh7110-pcie-phy.yaml
blob: 2e83a6164cd1dec8c2c5b6c2ca8289dbe282920d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/phy/starfive,jh7110-pcie-phy.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: StarFive JH7110 PCIe 2.0 PHY

maintainers:
  - Minda Chen <minda.chen@starfivetech.com>

properties:
  compatible:
    const: starfive,jh7110-pcie-phy

  reg:
    maxItems: 1

  "#phy-cells":
    const: 0

  starfive,sys-syscon:
    $ref: /schemas/types.yaml#/definitions/phandle-array
    items:
      - items:
          - description: phandle to System Register Controller sys_syscon node.
          - description: PHY connect offset of SYS_SYSCONSAIF__SYSCFG register for USB PHY.
    description:
      The phandle to System Register Controller syscon node and the PHY connect offset
      of SYS_SYSCONSAIF__SYSCFG register. Connect PHY to USB3 controller.

  starfive,stg-syscon:
    $ref: /schemas/types.yaml#/definitions/phandle-array
    items:
      - items:
          - description: phandle to System Register Controller stg_syscon node.
          - description: PHY mode offset of STG_SYSCONSAIF__SYSCFG register.
          - description: PHY enable for USB offset of STG_SYSCONSAIF__SYSCFG register.
    description:
      The phandle to System Register Controller syscon node and the offset
      of STG_SYSCONSAIF__SYSCFG register for PCIe PHY. Total 2 regsisters offset.

required:
  - compatible
  - reg
  - "#phy-cells"

additionalProperties: false

examples:
  - |
    phy@10210000 {
        compatible = "starfive,jh7110-pcie-phy";
        reg = <0x10210000 0x10000>;
        #phy-cells = <0>;
        starfive,sys-syscon = <&sys_syscon 0x18>;
        starfive,stg-syscon = <&stg_syscon 0x148 0x1f4>;
    };