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