sun6i-prcm.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. * Allwinner PRCM (Power/Reset/Clock Management) Multi-Functional Device
  2. PRCM is an MFD device exposing several Power Management related devices
  3. (like clks and reset controllers).
  4. Required properties:
  5. - compatible: "allwinner,sun6i-a31-prcm" or "allwinner,sun8i-a23-prcm"
  6. - reg: The PRCM registers range
  7. The prcm node may contain several subdevices definitions:
  8. - see Documentation/devicetree/clk/sunxi.txt for clock devices
  9. - see Documentation/devicetree/reset/allwinner,sunxi-clock-reset.txt for reset
  10. controller devices
  11. Example:
  12. prcm: prcm@01f01400 {
  13. compatible = "allwinner,sun6i-a31-prcm";
  14. reg = <0x01f01400 0x200>;
  15. /* Put subdevices here */
  16. ar100: ar100_clk {
  17. compatible = "allwinner,sun6i-a31-ar100-clk";
  18. #clock-cells = <0>;
  19. clocks = <&osc32k>, <&osc24M>, <&pll6>, <&pll6>;
  20. };
  21. ahb0: ahb0_clk {
  22. compatible = "fixed-factor-clock";
  23. #clock-cells = <0>;
  24. clock-div = <1>;
  25. clock-mult = <1>;
  26. clocks = <&ar100_div>;
  27. clock-output-names = "ahb0";
  28. };
  29. apb0: apb0_clk {
  30. compatible = "allwinner,sun6i-a31-apb0-clk";
  31. #clock-cells = <0>;
  32. clocks = <&ahb0>;
  33. clock-output-names = "apb0";
  34. };
  35. apb0_gates: apb0_gates_clk {
  36. compatible = "allwinner,sun6i-a31-apb0-gates-clk";
  37. #clock-cells = <1>;
  38. clocks = <&apb0>;
  39. clock-output-names = "apb0_pio", "apb0_ir",
  40. "apb0_timer01", "apb0_p2wi",
  41. "apb0_uart", "apb0_1wire",
  42. "apb0_i2c";
  43. };
  44. apb0_rst: apb0_rst {
  45. compatible = "allwinner,sun6i-a31-clock-reset";
  46. #reset-cells = <1>;
  47. };
  48. };