sunxi.txt 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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,sun6i-a31-pll1-clk" - for the main PLL clock on A31
  9. "allwinner,sun4i-cpu-clk" - for the CPU multiplexer clock
  10. "allwinner,sun4i-axi-clk" - for the AXI clock
  11. "allwinner,sun4i-axi-gates-clk" - for the AXI gates
  12. "allwinner,sun4i-ahb-clk" - for the AHB clock
  13. "allwinner,sun4i-ahb-gates-clk" - for the AHB gates on A10
  14. "allwinner,sun5i-a13-ahb-gates-clk" - for the AHB gates on A13
  15. "allwinner,sun5i-a10s-ahb-gates-clk" - for the AHB gates on A10s
  16. "allwinner,sun7i-a20-ahb-gates-clk" - for the AHB gates on A20
  17. "allwinner,sun6i-a31-ahb1-mux-clk" - for the AHB1 multiplexer on A31
  18. "allwinner,sun6i-a31-ahb1-gates-clk" - for the AHB1 gates on A31
  19. "allwinner,sun4i-apb0-clk" - for the APB0 clock
  20. "allwinner,sun4i-apb0-gates-clk" - for the APB0 gates on A10
  21. "allwinner,sun5i-a13-apb0-gates-clk" - for the APB0 gates on A13
  22. "allwinner,sun5i-a10s-apb0-gates-clk" - for the APB0 gates on A10s
  23. "allwinner,sun7i-a20-apb0-gates-clk" - for the APB0 gates on A20
  24. "allwinner,sun4i-apb1-clk" - for the APB1 clock
  25. "allwinner,sun4i-apb1-mux-clk" - for the APB1 clock muxing
  26. "allwinner,sun4i-apb1-gates-clk" - for the APB1 gates on A10
  27. "allwinner,sun5i-a13-apb1-gates-clk" - for the APB1 gates on A13
  28. "allwinner,sun5i-a10s-apb1-gates-clk" - for the APB1 gates on A10s
  29. "allwinner,sun6i-a31-apb1-gates-clk" - for the APB1 gates on A31
  30. "allwinner,sun7i-a20-apb1-gates-clk" - for the APB1 gates on A20
  31. "allwinner,sun6i-a31-apb2-div-clk" - for the APB2 gates on A31
  32. "allwinner,sun6i-a31-apb2-gates-clk" - for the APB2 gates on A31
  33. Required properties for all clocks:
  34. - reg : shall be the control register address for the clock.
  35. - clocks : shall be the input parent clock(s) phandle for the clock
  36. - #clock-cells : from common clock binding; shall be set to 0 except for
  37. "allwinner,*-gates-clk" where it shall be set to 1
  38. Additionally, "allwinner,*-gates-clk" clocks require:
  39. - clock-output-names : the corresponding gate names that the clock controls
  40. Clock consumers should specify the desired clocks they use with a
  41. "clocks" phandle cell. Consumers that are using a gated clock should
  42. provide an additional ID in their clock property. The values of this
  43. ID are documented in sunxi/<soc>-gates.txt.
  44. For example:
  45. osc24M: osc24M@01c20050 {
  46. #clock-cells = <0>;
  47. compatible = "allwinner,sun4i-osc-clk";
  48. reg = <0x01c20050 0x4>;
  49. clocks = <&osc24M_fixed>;
  50. };
  51. pll1: pll1@01c20000 {
  52. #clock-cells = <0>;
  53. compatible = "allwinner,sun4i-pll1-clk";
  54. reg = <0x01c20000 0x4>;
  55. clocks = <&osc24M>;
  56. };
  57. cpu: cpu@01c20054 {
  58. #clock-cells = <0>;
  59. compatible = "allwinner,sun4i-cpu-clk";
  60. reg = <0x01c20054 0x4>;
  61. clocks = <&osc32k>, <&osc24M>, <&pll1>;
  62. };