Documentation: bindings: add DT documentation for Rockchip USB2PHY
[firefly-linux-kernel-4.4.55.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 contain:
5         * "rockchip,rk3366-usb2phy"
6  - #clock-cells: should be 0.
7  - clock-names: specify the 480m output clk name.
8
9 Optional properties:
10  - vbus_host-gpio: pull gpio high/low to control the host vbus power.
11
12 Required nodes: a sub-node is required for each port the phy provides.
13                 The sub-node name is used to identify host or otg port.
14
15 Required properties (port (child) node):
16  - #phy-cells: must be 0. See ./phy-bindings.txt for details.
17  - interrupts: irq number for host/otg port.
18  - interrupt-names: interrupt name, in line with irq number.
19
20 Example:
21
22 grf: syscon@ff770000 {
23         compatible = "rockchip,rk3366-grf", "syscon", "simple-mfd";
24         #address-cells = <1>;
25         #size-cells = <1>;
26
27 ...
28
29         u2phy: usb2-phy {
30                 compatible = "rockchip,rk3366-usb2phy";
31                 #clock-cells = <0>;
32                 clock-output-names = "sclk_otgphy0_480m";
33
34                 u2phy_otg: otg-port {
35                         #phy-cells = <0>;
36                         interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
37                         interrupt-names = "linestate";
38                         status = "okay";
39                 };
40
41                 u2phy_host: host-port {
42                         #phy-cells = <0>;
43                         interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
44                         interrupt-names = "linestate";
45                         status = "okay";
46                 };
47         };
48 };