amlogic,meson8b-clkc.txt 1.3 KB

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