xref: /freebsd/sys/contrib/device-tree/Bindings/phy/hisilicon,inno-usb2-phy.yaml (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*833e5d42SEmmanuel Vadot%YAML 1.2
3*833e5d42SEmmanuel Vadot---
4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/phy/hisilicon,inno-usb2-phy.yaml#
5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*833e5d42SEmmanuel Vadot
7*833e5d42SEmmanuel Vadottitle: HiSilicon INNO USB2 PHY
8*833e5d42SEmmanuel Vadot
9*833e5d42SEmmanuel Vadotmaintainers:
10*833e5d42SEmmanuel Vadot  - Pengcheng Li <lpc.li@hisilicon.com>
11*833e5d42SEmmanuel Vadot
12*833e5d42SEmmanuel Vadotdescription:
13*833e5d42SEmmanuel Vadot  The INNO USB2 PHY device should be a child node of peripheral controller that
14*833e5d42SEmmanuel Vadot  contains the PHY configuration register, and each device supports up to 2 PHY
15*833e5d42SEmmanuel Vadot  ports which are represented as child nodes of INNO USB2 PHY device.
16*833e5d42SEmmanuel Vadot
17*833e5d42SEmmanuel Vadotproperties:
18*833e5d42SEmmanuel Vadot  compatible:
19*833e5d42SEmmanuel Vadot    enum:
20*833e5d42SEmmanuel Vadot      - hisilicon,hi3798cv200-usb2-phy
21*833e5d42SEmmanuel Vadot      - hisilicon,hi3798mv100-usb2-phy
22*833e5d42SEmmanuel Vadot      - hisilicon,inno-usb2-phy
23*833e5d42SEmmanuel Vadot
24*833e5d42SEmmanuel Vadot  reg:
25*833e5d42SEmmanuel Vadot    maxItems: 1
26*833e5d42SEmmanuel Vadot
27*833e5d42SEmmanuel Vadot  clocks:
28*833e5d42SEmmanuel Vadot    maxItems: 1
29*833e5d42SEmmanuel Vadot
30*833e5d42SEmmanuel Vadot  resets:
31*833e5d42SEmmanuel Vadot    maxItems: 1
32*833e5d42SEmmanuel Vadot
33*833e5d42SEmmanuel Vadot  "#address-cells":
34*833e5d42SEmmanuel Vadot    const: 1
35*833e5d42SEmmanuel Vadot
36*833e5d42SEmmanuel Vadot  "#size-cells":
37*833e5d42SEmmanuel Vadot    const: 0
38*833e5d42SEmmanuel Vadot
39*833e5d42SEmmanuel VadotpatternProperties:
40*833e5d42SEmmanuel Vadot  "^phy@[0-1]$":
41*833e5d42SEmmanuel Vadot    description: PHY port subnode
42*833e5d42SEmmanuel Vadot    type: object
43*833e5d42SEmmanuel Vadot    additionalProperties: false
44*833e5d42SEmmanuel Vadot
45*833e5d42SEmmanuel Vadot    properties:
46*833e5d42SEmmanuel Vadot      reg:
47*833e5d42SEmmanuel Vadot        maximum: 1
48*833e5d42SEmmanuel Vadot
49*833e5d42SEmmanuel Vadot      "#phy-cells":
50*833e5d42SEmmanuel Vadot        const: 0
51*833e5d42SEmmanuel Vadot
52*833e5d42SEmmanuel Vadot      resets:
53*833e5d42SEmmanuel Vadot        maxItems: 1
54*833e5d42SEmmanuel Vadot
55*833e5d42SEmmanuel Vadot    required:
56*833e5d42SEmmanuel Vadot      - reg
57*833e5d42SEmmanuel Vadot      - "#phy-cells"
58*833e5d42SEmmanuel Vadot      - resets
59*833e5d42SEmmanuel Vadot
60*833e5d42SEmmanuel Vadotrequired:
61*833e5d42SEmmanuel Vadot  - compatible
62*833e5d42SEmmanuel Vadot  - reg
63*833e5d42SEmmanuel Vadot  - clocks
64*833e5d42SEmmanuel Vadot  - resets
65*833e5d42SEmmanuel Vadot  - "#address-cells"
66*833e5d42SEmmanuel Vadot  - "#size-cells"
67*833e5d42SEmmanuel Vadot
68*833e5d42SEmmanuel VadotadditionalProperties: false
69*833e5d42SEmmanuel Vadot
70*833e5d42SEmmanuel Vadotexamples:
71*833e5d42SEmmanuel Vadot  - |
72*833e5d42SEmmanuel Vadot    #include <dt-bindings/clock/histb-clock.h>
73*833e5d42SEmmanuel Vadot
74*833e5d42SEmmanuel Vadot    usb2-phy@120 {
75*833e5d42SEmmanuel Vadot        compatible = "hisilicon,hi3798cv200-usb2-phy";
76*833e5d42SEmmanuel Vadot        reg = <0x120 0x4>;
77*833e5d42SEmmanuel Vadot        clocks = <&crg HISTB_USB2_PHY1_REF_CLK>;
78*833e5d42SEmmanuel Vadot        resets = <&crg 0xbc 4>;
79*833e5d42SEmmanuel Vadot        #address-cells = <1>;
80*833e5d42SEmmanuel Vadot        #size-cells = <0>;
81*833e5d42SEmmanuel Vadot
82*833e5d42SEmmanuel Vadot        phy@0 {
83*833e5d42SEmmanuel Vadot            reg = <0>;
84*833e5d42SEmmanuel Vadot            #phy-cells = <0>;
85*833e5d42SEmmanuel Vadot            resets = <&crg 0xbc 8>;
86*833e5d42SEmmanuel Vadot        };
87*833e5d42SEmmanuel Vadot
88*833e5d42SEmmanuel Vadot        phy@1 {
89*833e5d42SEmmanuel Vadot            reg = <1>;
90*833e5d42SEmmanuel Vadot            #phy-cells = <0>;
91*833e5d42SEmmanuel Vadot            resets = <&crg 0xbc 9>;
92*833e5d42SEmmanuel Vadot        };
93*833e5d42SEmmanuel Vadot    };
94