amlogic,meson8b-clkc.txt 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. - #reset-cells: should be 1.
  16. Each clock is assigned an identifier and client nodes can use this identifier
  17. to specify the clock which they consume. All available clocks are defined as
  18. preprocessor macros in the dt-bindings/clock/meson8b-clkc.h header and can be
  19. used in device tree sources.
  20. Similarly a preprocessor macro for each reset line is defined in
  21. dt-bindings/reset/amlogic,meson8b-clkc-reset.h (which can be used from the
  22. device tree sources).
  23. Example: Clock controller node:
  24. clkc: clock-controller@c1104000 {
  25. compatible = "amlogic,meson8b-clkc";
  26. reg = <0xc1108000 0x4>, <0xc1104000 0x460>;
  27. #clock-cells = <1>;
  28. #reset-cells = <1>;
  29. };
  30. Example: UART controller node that consumes the clock generated by the clock
  31. controller:
  32. uart_AO: serial@c81004c0 {
  33. compatible = "amlogic,meson-uart";
  34. reg = <0xc81004c0 0x14>;
  35. interrupts = <0 90 1>;
  36. clocks = <&clkc CLKID_CLK81>;
  37. };