GNU Linux-libre 4.19.286-gnu1
[releases.git] / Documentation / devicetree / bindings / phy / rcar-gen3-phy-usb3.txt
1 * Renesas R-Car generation 3 USB 3.0 PHY
2
3 This file provides information on what the device node for the R-Car generation
4 3 USB 3.0 PHY contains.
5 If you want to enable spread spectrum clock (ssc), you should use USB_EXTAL
6 instead of USB3_CLK. However, if you don't want to these features, you don't
7 need this driver.
8
9 Required properties:
10 - compatible: "renesas,r8a7795-usb3-phy" if the device is a part of an R8A7795
11               SoC.
12               "renesas,r8a7796-usb3-phy" if the device is a part of an R8A7796
13               SoC.
14               "renesas,r8a77965-usb3-phy" if the device is a part of an
15               R8A77965 SoC.
16               "renesas,rcar-gen3-usb3-phy" for a generic R-Car Gen3 compatible
17               device.
18
19               When compatible with the generic version, nodes must list the
20               SoC-specific version corresponding to the platform first
21               followed by the generic version.
22
23 - reg: offset and length of the USB 3.0 PHY register block.
24 - clocks: A list of phandles and clock-specifier pairs.
25 - clock-names: Name of the clocks.
26   - The funcional clock must be "usb3-if".
27   - The usb3's external clock must be "usb3s_clk".
28   - The usb2's external clock must be "usb_extal". If you want to use the ssc,
29     the clock-frequency must not be 0.
30 - #phy-cells: see phy-bindings.txt in the same directory, must be <0>.
31
32 Optional properties:
33 - renesas,ssc-range: Enable/disable spread spectrum clock (ssc) by using
34                      the following values as u32:
35                         - 0 (or the property doesn't exist): disable the ssc
36                         - 4980: enable the ssc as -4980 ppm
37                         - 4492: enable the ssc as -4492 ppm
38                         - 4003: enable the ssc as -4003 ppm
39
40 Example (R-Car H3):
41
42         usb-phy@e65ee000 {
43                 compatible = "renesas,r8a7795-usb3-phy",
44                              "renesas,rcar-gen3-usb3-phy";
45                 reg = <0 0xe65ee000 0 0x90>;
46                 clocks = <&cpg CPG_MOD 328>, <&usb3s0_clk>, <&usb_extal>;
47                 clock-names = "usb3-if", "usb3s_clk", "usb_extal";
48         };