sunxi.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. Device Tree Clock bindings for arch-sunxi
  2. This binding uses the common clock binding[1].
  3. [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
  4. Required properties:
  5. - compatible : shall be one of the following:
  6. "allwinner,sun4i-osc-clk" - for a gatable oscillator
  7. "allwinner,sun4i-pll1-clk" - for the main PLL clock
  8. "allwinner,sun4i-cpu-clk" - for the CPU multiplexer clock
  9. "allwinner,sun4i-axi-clk" - for the AXI clock
  10. "allwinner,sun4i-axi-gates-clk" - for the AXI gates
  11. "allwinner,sun4i-ahb-clk" - for the AHB clock
  12. "allwinner,sun4i-ahb-gates-clk" - for the AHB gates on A10
  13. "allwinner,sun5i-a13-ahb-gates-clk" - for the AHB gates on A13
  14. "allwinner,sun4i-apb0-clk" - for the APB0 clock
  15. "allwinner,sun4i-apb0-gates-clk" - for the APB0 gates on A10
  16. "allwinner,sun5i-a13-apb0-gates-clk" - for the APB0 gates on A13
  17. "allwinner,sun4i-apb1-clk" - for the APB1 clock
  18. "allwinner,sun4i-apb1-mux-clk" - for the APB1 clock muxing
  19. "allwinner,sun4i-apb1-gates-clk" - for the APB1 gates on A10
  20. "allwinner,sun5i-a13-apb1-gates-clk" - for the APB1 gates on A13
  21. Required properties for all clocks:
  22. - reg : shall be the control register address for the clock.
  23. - clocks : shall be the input parent clock(s) phandle for the clock
  24. - #clock-cells : from common clock binding; shall be set to 0 except for
  25. "allwinner,*-gates-clk" where it shall be set to 1
  26. Additionally, "allwinner,*-gates-clk" clocks require:
  27. - clock-output-names : the corresponding gate names that the clock controls
  28. Clock consumers should specify the desired clocks they use with a
  29. "clocks" phandle cell. Consumers that are using a gated clock should
  30. provide an additional ID in their clock property. The values of this
  31. ID are documented in sunxi/<soc>-gates.txt.
  32. For example:
  33. osc24M: osc24M@01c20050 {
  34. #clock-cells = <0>;
  35. compatible = "allwinner,sun4i-osc-clk";
  36. reg = <0x01c20050 0x4>;
  37. clocks = <&osc24M_fixed>;
  38. };
  39. pll1: pll1@01c20000 {
  40. #clock-cells = <0>;
  41. compatible = "allwinner,sun4i-pll1-clk";
  42. reg = <0x01c20000 0x4>;
  43. clocks = <&osc24M>;
  44. };
  45. cpu: cpu@01c20054 {
  46. #clock-cells = <0>;
  47. compatible = "allwinner,sun4i-cpu-clk";
  48. reg = <0x01c20054 0x4>;
  49. clocks = <&osc32k>, <&osc24M>, <&pll1>;
  50. };