renesas,rcar-usb2-clock-sel.txt 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. * Renesas R-Car USB 2.0 clock selector
  2. This file provides information on what the device node for the R-Car USB 2.0
  3. clock selector.
  4. If you connect an external clock to the USB_EXTAL pin only, you should set
  5. the clock rate to "usb_extal" node only.
  6. If you connect an oscillator to both the USB_XTAL and USB_EXTAL, this module
  7. is not needed because this is default setting. (Of course, you can set the
  8. clock rates to both "usb_extal" and "usb_xtal" nodes.
  9. Case 1: An external clock connects to R-Car SoC
  10. +----------+ +--- R-Car ---------------------+
  11. |External |---|USB_EXTAL ---> all usb channels|
  12. |clock | |USB_XTAL |
  13. +----------+ +-------------------------------+
  14. In this case, we need this driver with "usb_extal" clock.
  15. Case 2: An oscillator connects to R-Car SoC
  16. +----------+ +--- R-Car ---------------------+
  17. |Oscillator|---|USB_EXTAL -+-> all usb channels|
  18. | |---|USB_XTAL --+ |
  19. +----------+ +-------------------------------+
  20. In this case, we don't need this selector.
  21. Required properties:
  22. - compatible: "renesas,r8a7795-rcar-usb2-clock-sel" if the device is a part of
  23. an R8A7795 SoC.
  24. "renesas,r8a7796-rcar-usb2-clock-sel" if the device if a part of
  25. an R8A7796 SoC.
  26. "renesas,rcar-gen3-usb2-clock-sel" for a generic R-Car Gen3
  27. compatible device.
  28. When compatible with the generic version, nodes must list the
  29. SoC-specific version corresponding to the platform first
  30. followed by the generic version.
  31. - reg: offset and length of the USB 2.0 clock selector register block.
  32. - clocks: A list of phandles and specifier pairs.
  33. - clock-names: Name of the clocks.
  34. - The functional clock must be "ehci_ohci"
  35. - The USB_EXTAL clock pin must be "usb_extal"
  36. - The USB_XTAL clock pin must be "usb_xtal"
  37. - #clock-cells: Must be 0
  38. Example (R-Car H3):
  39. usb2_clksel: clock-controller@e6590630 {
  40. compatible = "renesas,r8a7795-rcar-usb2-clock-sel",
  41. "renesas,rcar-gen3-usb2-clock-sel";
  42. reg = <0 0xe6590630 0 0x02>;
  43. clocks = <&cpg CPG_MOD 703>, <&usb_extal>, <&usb_xtal>;
  44. clock-names = "ehci_ohci", "usb_extal", "usb_xtal";
  45. #clock-cells = <0>;
  46. };