Merge tag 'tegra-for-4.8-i2c' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra...
[cascardo/linux.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,rk3366-usb2phy"
6         * "rockchip,rk3399-usb2phy"
7  - reg : the address offset of grf for usb-phy configuration.
8  - #clock-cells : should be 0.
9  - clock-output-names : specify the 480m output clock name.
10
11 Optional properties:
12  - clocks : phandle + phy specifier pair, for the input clock of phy.
13  - clock-names : input clock name of phy, must be "phyclk".
14
15 Required nodes : a sub-node is required for each port the phy provides.
16                  The sub-node name is used to identify host or otg port,
17                  and shall be the following entries:
18         * "otg-port" : the name of otg port.
19         * "host-port" : the name of host port.
20
21 Required properties (port (child) node):
22  - #phy-cells : must be 0. See ./phy-bindings.txt for details.
23  - interrupts : specify an interrupt for each entry in interrupt-names.
24  - interrupt-names : a list which shall be the following entries:
25         * "otg-id" : for the otg id interrupt.
26         * "otg-bvalid" : for the otg vbus interrupt.
27         * "linestate" : for the host/otg linestate interrupt.
28
29 Optional properties:
30  - phy-supply : phandle to a regulator that provides power to VBUS.
31                 See ./phy-bindings.txt for details.
32
33 Example:
34
35 grf: syscon@ff770000 {
36         compatible = "rockchip,rk3366-grf", "syscon", "simple-mfd";
37         #address-cells = <1>;
38         #size-cells = <1>;
39
40 ...
41
42         u2phy: usb2-phy@700 {
43                 compatible = "rockchip,rk3366-usb2phy";
44                 reg = <0x700 0x2c>;
45                 #clock-cells = <0>;
46                 clock-output-names = "sclk_otgphy0_480m";
47
48                 u2phy_otg: otg-port {
49                         #phy-cells = <0>;
50                         interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
51                                      <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>,
52                                      <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
53                         interrupt-names = "otg-id", "otg-bvalid", "linestate";
54                         status = "okay";
55                 };
56
57                 u2phy_host: host-port {
58                         #phy-cells = <0>;
59                         interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
60                         interrupt-names = "linestate";
61                         status = "okay";
62                 };
63         };
64 };