Merge tag 'pstore-v4.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/kees...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / phy / phy-rockchip-inno-usb2.txt
1 ROCKCHIP USB2.0 PHY WITH INNO IP BLOCK
2
3 Required properties (phy (parent) node):
4  - compatible : should be one of the listed compatibles:
5         * "rockchip,rk3328-usb2phy"
6         * "rockchip,rk3366-usb2phy"
7         * "rockchip,rk3399-usb2phy"
8  - reg : the address offset of grf for usb-phy configuration.
9  - #clock-cells : should be 0.
10  - clock-output-names : specify the 480m output clock name.
11
12 Optional properties:
13  - clocks : phandle + phy specifier pair, for the input clock of phy.
14  - clock-names : input clock name of phy, must be "phyclk".
15  - assigned-clocks : phandle of usb 480m clock.
16  - assigned-clock-parents : parent of usb 480m clock, select between
17                  usb-phy output 480m and xin24m.
18                  Refer to clk/clock-bindings.txt for generic clock
19                  consumer properties.
20
21 Required nodes : a sub-node is required for each port the phy provides.
22                  The sub-node name is used to identify host or otg port,
23                  and shall be the following entries:
24         * "otg-port" : the name of otg port.
25         * "host-port" : the name of host port.
26
27 Required properties (port (child) node):
28  - #phy-cells : must be 0. See ./phy-bindings.txt for details.
29  - interrupts : specify an interrupt for each entry in interrupt-names.
30  - interrupt-names : a list which shall be the following entries:
31         * "otg-id" : for the otg id interrupt.
32         * "otg-bvalid" : for the otg vbus interrupt.
33         * "linestate" : for the host/otg linestate interrupt.
34
35 Optional properties:
36  - phy-supply : phandle to a regulator that provides power to VBUS.
37                 See ./phy-bindings.txt for details.
38
39 Example:
40
41 grf: syscon@ff770000 {
42         compatible = "rockchip,rk3366-grf", "syscon", "simple-mfd";
43         #address-cells = <1>;
44         #size-cells = <1>;
45
46 ...
47
48         u2phy: usb2-phy@700 {
49                 compatible = "rockchip,rk3366-usb2phy";
50                 reg = <0x700 0x2c>;
51                 #clock-cells = <0>;
52                 clock-output-names = "sclk_otgphy0_480m";
53
54                 u2phy_otg: otg-port {
55                         #phy-cells = <0>;
56                         interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
57                                      <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>,
58                                      <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
59                         interrupt-names = "otg-id", "otg-bvalid", "linestate";
60                         status = "okay";
61                 };
62
63                 u2phy_host: host-port {
64                         #phy-cells = <0>;
65                         interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
66                         interrupt-names = "linestate";
67                         status = "okay";
68                 };
69         };
70 };