amlogic,meson8b-clkc.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. * Amlogic Meson8b Clock and Reset Unit
  2. The Amlogic Meson8b clock controller generates and supplies clock to various
  3. controllers within the SoC.
  4. Required Properties:
  5. - compatible: should be "amlogic,meson8b-clkc"
  6. - reg: it must be composed by two tuples:
  7. 0) physical base address of the xtal register and length of memory
  8. mapped region.
  9. 1) physical base address of the clock controller and length of memory
  10. mapped region.
  11. - #clock-cells: should be 1.
  12. Each clock is assigned an identifier and client nodes can use this identifier
  13. to specify the clock which they consume. All available clocks are defined as
  14. preprocessor macros in the dt-bindings/clock/meson8b-clkc.h header and can be
  15. used in device tree sources.
  16. Example: Clock controller node:
  17. clkc: clock-controller@c1104000 {
  18. #clock-cells = <1>;
  19. compatible = "amlogic,meson8b-clkc";
  20. reg = <0xc1108000 0x4>, <0xc1104000 0x460>;
  21. };
  22. Example: UART controller node that consumes the clock generated by the clock
  23. controller:
  24. uart_AO: serial@c81004c0 {
  25. compatible = "amlogic,meson-uart";
  26. reg = <0xc81004c0 0x14>;
  27. interrupts = <0 90 1>;
  28. clocks = <&clkc CLKID_CLK81>;
  29. status = "disabled";
  30. };