samsung,s5pv210-clock.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. * Samsung S5P6442/S5PC110/S5PV210 Clock Controller
  2. Samsung S5P6442, S5PC110 and S5PV210 SoCs contain integrated clock
  3. controller, which generates and supplies clock to various controllers
  4. within the SoC.
  5. Required Properties:
  6. - compatible: should be one of following:
  7. - "samsung,s5pv210-clock" : for clock controller of Samsung
  8. S5PC110/S5PV210 SoCs,
  9. - "samsung,s5p6442-clock" : for clock controller of Samsung
  10. S5P6442 SoC.
  11. - reg: physical base address of the controller and length of memory mapped
  12. region.
  13. - #clock-cells: should be 1.
  14. All available clocks are defined as preprocessor macros in
  15. dt-bindings/clock/s5pv210.h header and can be used in device tree sources.
  16. External clocks:
  17. There are several clocks that are generated outside the SoC. It is expected
  18. that they are defined using standard clock bindings with following
  19. clock-output-names:
  20. - "xxti": external crystal oscillator connected to XXTI and XXTO pins of
  21. the SoC,
  22. - "xusbxti": external crystal oscillator connected to XUSBXTI and XUSBXTO
  23. pins of the SoC,
  24. A subset of above clocks available on given board shall be specified in
  25. board device tree, including the system base clock, as selected by XOM[0]
  26. pin of the SoC. Refer to generic fixed rate clock bindings
  27. documentation[1] for more information how to specify these clocks.
  28. [1] Documentation/devicetree/bindings/clock/fixed-clock.txt
  29. Example: Clock controller node:
  30. clock: clock-controller@7e00f000 {
  31. compatible = "samsung,s5pv210-clock";
  32. reg = <0x7e00f000 0x1000>;
  33. #clock-cells = <1>;
  34. };
  35. Example: Required external clocks:
  36. xxti: clock-xxti {
  37. compatible = "fixed-clock";
  38. clock-output-names = "xxti";
  39. clock-frequency = <24000000>;
  40. #clock-cells = <0>;
  41. };
  42. xusbxti: clock-xusbxti {
  43. compatible = "fixed-clock";
  44. clock-output-names = "xusbxti";
  45. clock-frequency = <24000000>;
  46. #clock-cells = <0>;
  47. };
  48. Example: UART controller node that consumes the clock generated by the clock
  49. controller (refer to the standard clock bindings for information about
  50. "clocks" and "clock-names" properties):
  51. uart0: serial@e2900000 {
  52. compatible = "samsung,s5pv210-uart";
  53. reg = <0xe2900000 0x400>;
  54. interrupt-parent = <&vic1>;
  55. interrupts = <10>;
  56. clock-names = "uart", "clk_uart_baud0",
  57. "clk_uart_baud1";
  58. clocks = <&clocks UART0>, <&clocks UART0>,
  59. <&clocks SCLK_UART0>;
  60. status = "disabled";
  61. };