snps,hsdk-cgu.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. * Synopsys HSDK clock generation unit
  2. The Synopsys HSDK clock controller generates and supplies clock to various
  3. controllers and peripherals within the SoC.
  4. Required Properties:
  5. - compatible: should be "snps,hsdk-cgu-clock"
  6. - reg: the pair of physical base address and length of clock generation unit
  7. memory mapped region and creg arc core divider memory mapped region.
  8. - #clock-cells: should be 1.
  9. Each clock is assigned an identifier and client nodes can use this identifier
  10. to specify the clock which they consume. All available clocks are defined as
  11. preprocessor macros in the dt-bindings/clock/snps,hsdk-cgu.h headers and can be
  12. used in device tree sources.
  13. Example: Clock controller node:
  14. cgu_clk: cgu-clk@f0000000 {
  15. compatible = "snps,hsdk-cgu-clock";
  16. reg = <0xf0000000 0x1000>, <0xf00014B8 0x4>;
  17. #clock-cells = <1>;
  18. };
  19. Example: UART controller node that consumes the clock generated by the clock
  20. controller:
  21. uart0: serial0@f0005000 {
  22. compatible = "snps,dw-apb-uart";
  23. reg = <0xf0005000 0x1000>;
  24. reg-shift = <2>;
  25. reg-io-width = <4>;
  26. clocks = <&cgu_clk CLK_SYS_UART_REF>;
  27. };