samsung,s3c2412-clock.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. * Samsung S3C2412 Clock Controller
  2. The S3C2412 clock controller generates and supplies clock to various controllers
  3. within the SoC. The clock binding described here is applicable to the s3c2412
  4. and s3c2413 SoCs in the s3c24x family.
  5. Required Properties:
  6. - compatible: should be "samsung,s3c2412-clock"
  7. - reg: physical base address of the controller and length of memory mapped
  8. region.
  9. - #clock-cells: should be 1.
  10. Each clock is assigned an identifier and client nodes can use this identifier
  11. to specify the clock which they consume. Some of the clocks are available only
  12. on a particular SoC.
  13. All available clocks are defined as preprocessor macros in
  14. dt-bindings/clock/s3c2412.h header and can be used in device
  15. 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. - "xti" - crystal input - required,
  21. - "ext" - external clock source - optional,
  22. Example: Clock controller node:
  23. clocks: clock-controller@4c000000 {
  24. compatible = "samsung,s3c2412-clock";
  25. reg = <0x4c000000 0x20>;
  26. #clock-cells = <1>;
  27. };
  28. Example: UART controller node that consumes the clock generated by the clock
  29. controller (refer to the standard clock bindings for information about
  30. "clocks" and "clock-names" properties):
  31. serial@50004000 {
  32. compatible = "samsung,s3c2412-uart";
  33. reg = <0x50004000 0x4000>;
  34. interrupts = <1 23 3 4>, <1 23 4 4>;
  35. clock-names = "uart", "clk_uart_baud2", "clk_uart_baud3";
  36. clocks = <&clocks PCLK_UART0>, <&clocks PCLK_UART0>,
  37. <&clocks SCLK_UART>;
  38. status = "disabled";
  39. };