1*8de6b7edSMauro Carvalho Chehab# SPDX-License-Identifier: GPL-2.0
2*8de6b7edSMauro Carvalho Chehab%YAML 1.2
3*8de6b7edSMauro Carvalho Chehab---
4*8de6b7edSMauro Carvalho Chehab$id: http://devicetree.org/schemas/phy/hisilicon,hi3670-usb3.yaml#
5*8de6b7edSMauro Carvalho Chehab$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8de6b7edSMauro Carvalho Chehab
7*8de6b7edSMauro Carvalho Chehabtitle: Hisilicon Kirin970 USB PHY
8*8de6b7edSMauro Carvalho Chehab
9*8de6b7edSMauro Carvalho Chehabmaintainers:
10*8de6b7edSMauro Carvalho Chehab  - Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
11*8de6b7edSMauro Carvalho Chehab
12*8de6b7edSMauro Carvalho Chehabdescription: |+
13*8de6b7edSMauro Carvalho Chehab  Bindings for USB3 PHY on HiSilicon Kirin 970.
14*8de6b7edSMauro Carvalho Chehab
15*8de6b7edSMauro Carvalho Chehabproperties:
16*8de6b7edSMauro Carvalho Chehab  compatible:
17*8de6b7edSMauro Carvalho Chehab    const: hisilicon,hi3670-usb-phy
18*8de6b7edSMauro Carvalho Chehab
19*8de6b7edSMauro Carvalho Chehab  "#phy-cells":
20*8de6b7edSMauro Carvalho Chehab    const: 0
21*8de6b7edSMauro Carvalho Chehab
22*8de6b7edSMauro Carvalho Chehab  hisilicon,pericrg-syscon:
23*8de6b7edSMauro Carvalho Chehab    $ref: '/schemas/types.yaml#/definitions/phandle'
24*8de6b7edSMauro Carvalho Chehab    description: phandle of syscon used to control iso refclk.
25*8de6b7edSMauro Carvalho Chehab
26*8de6b7edSMauro Carvalho Chehab  hisilicon,pctrl-syscon:
27*8de6b7edSMauro Carvalho Chehab    $ref: '/schemas/types.yaml#/definitions/phandle'
28*8de6b7edSMauro Carvalho Chehab    description: phandle of syscon used to control usb tcxo.
29*8de6b7edSMauro Carvalho Chehab
30*8de6b7edSMauro Carvalho Chehab  hisilicon,sctrl-syscon:
31*8de6b7edSMauro Carvalho Chehab    $ref: '/schemas/types.yaml#/definitions/phandle'
32*8de6b7edSMauro Carvalho Chehab    description: phandle of syscon used to control phy deep sleep.
33*8de6b7edSMauro Carvalho Chehab
34*8de6b7edSMauro Carvalho Chehab  hisilicon,eye-diagram-param:
35*8de6b7edSMauro Carvalho Chehab    $ref: /schemas/types.yaml#/definitions/uint32
36*8de6b7edSMauro Carvalho Chehab    description: Eye diagram for phy.
37*8de6b7edSMauro Carvalho Chehab
38*8de6b7edSMauro Carvalho Chehab  hisilicon,tx-vboost-lvl:
39*8de6b7edSMauro Carvalho Chehab    $ref: /schemas/types.yaml#/definitions/uint32
40*8de6b7edSMauro Carvalho Chehab    description: TX level vboost for phy.
41*8de6b7edSMauro Carvalho Chehab
42*8de6b7edSMauro Carvalho Chehabrequired:
43*8de6b7edSMauro Carvalho Chehab  - compatible
44*8de6b7edSMauro Carvalho Chehab  - hisilicon,pericrg-syscon
45*8de6b7edSMauro Carvalho Chehab  - hisilicon,pctrl-syscon
46*8de6b7edSMauro Carvalho Chehab  - hisilicon,sctrl-syscon
47*8de6b7edSMauro Carvalho Chehab  - hisilicon,eye-diagram-param
48*8de6b7edSMauro Carvalho Chehab  - hisilicon,tx-vboost-lvl
49*8de6b7edSMauro Carvalho Chehab  - "#phy-cells"
50*8de6b7edSMauro Carvalho Chehab
51*8de6b7edSMauro Carvalho ChehabadditionalProperties: false
52*8de6b7edSMauro Carvalho Chehab
53*8de6b7edSMauro Carvalho Chehabexamples:
54*8de6b7edSMauro Carvalho Chehab  - |
55*8de6b7edSMauro Carvalho Chehab    bus {
56*8de6b7edSMauro Carvalho Chehab      #address-cells = <2>;
57*8de6b7edSMauro Carvalho Chehab      #size-cells = <2>;
58*8de6b7edSMauro Carvalho Chehab
59*8de6b7edSMauro Carvalho Chehab      usb3_otg_bc: usb3_otg_bc@ff200000 {
60*8de6b7edSMauro Carvalho Chehab        compatible = "syscon", "simple-mfd";
61*8de6b7edSMauro Carvalho Chehab        reg = <0x0 0xff200000 0x0 0x1000>;
62*8de6b7edSMauro Carvalho Chehab
63*8de6b7edSMauro Carvalho Chehab        usb_phy {
64*8de6b7edSMauro Carvalho Chehab          compatible = "hisilicon,hi3670-usb-phy";
65*8de6b7edSMauro Carvalho Chehab          #phy-cells = <0>;
66*8de6b7edSMauro Carvalho Chehab          hisilicon,pericrg-syscon = <&crg_ctrl>;
67*8de6b7edSMauro Carvalho Chehab          hisilicon,pctrl-syscon = <&pctrl>;
68*8de6b7edSMauro Carvalho Chehab          hisilicon,sctrl-syscon = <&sctrl>;
69*8de6b7edSMauro Carvalho Chehab          hisilicon,eye-diagram-param = <0xfdfee4>;
70*8de6b7edSMauro Carvalho Chehab          hisilicon,tx-vboost-lvl = <0x5>;
71*8de6b7edSMauro Carvalho Chehab        };
72*8de6b7edSMauro Carvalho Chehab      };
73*8de6b7edSMauro Carvalho Chehab    };
74