hi6220-clock.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. * Hisilicon Hi6220 Clock Controller
  2. Clock control registers reside in different Hi6220 system controllers,
  3. please refer the following document to know more about the binding rules
  4. for these system controllers:
  5. Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt
  6. Required Properties:
  7. - compatible: the compatible should be one of the following strings to
  8. indicate the clock controller functionality.
  9. - "hisilicon,hi6220-aoctrl"
  10. - "hisilicon,hi6220-sysctrl"
  11. - "hisilicon,hi6220-mediactrl"
  12. - "hisilicon,hi6220-pmctrl"
  13. - "hisilicon,hi6220-stub-clk"
  14. - reg: physical base address of the controller and length of memory mapped
  15. region.
  16. - #clock-cells: should be 1.
  17. Optional Properties:
  18. - hisilicon,hi6220-clk-sram: phandle to the syscon managing the SoC internal sram;
  19. the driver need use the sram to pass parameters for frequency change.
  20. - mboxes: use the label reference for the mailbox as the first parameter, the
  21. second parameter is the channel number.
  22. Example 1:
  23. sys_ctrl: sys_ctrl@f7030000 {
  24. compatible = "hisilicon,hi6220-sysctrl", "syscon";
  25. reg = <0x0 0xf7030000 0x0 0x2000>;
  26. #clock-cells = <1>;
  27. };
  28. Example 2:
  29. stub_clock: stub_clock {
  30. compatible = "hisilicon,hi6220-stub-clk";
  31. hisilicon,hi6220-clk-sram = <&sram>;
  32. #clock-cells = <1>;
  33. mboxes = <&mailbox 1>;
  34. };
  35. Each clock is assigned an identifier and client nodes use this identifier
  36. to specify the clock which they consume.
  37. All these identifier could be found in <dt-bindings/clock/hi6220-clock.h>.