sunxi.txt 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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
  13. "allwinner,sun4i-apb0-clk" - for the APB0 clock
  14. "allwinner,sun4i-apb0-gates-clk" - for the APB0 gates
  15. "allwinner,sun4i-apb1-clk" - for the APB1 clock
  16. "allwinner,sun4i-apb1-mux-clk" - for the APB1 clock muxing
  17. "allwinner,sun4i-apb1-gates-clk" - for the APB1 gates
  18. Required properties for all clocks:
  19. - reg : shall be the control register address for the clock.
  20. - clocks : shall be the input parent clock(s) phandle for the clock
  21. - #clock-cells : from common clock binding; shall be set to 0 except for
  22. "allwinner,sun4i-*-gates-clk" where it shall be set to 1
  23. Additionally, "allwinner,sun4i-*-gates-clk" clocks require:
  24. - clock-output-names : the corresponding gate names that the clock controls
  25. For example:
  26. osc24M: osc24M@01c20050 {
  27. #clock-cells = <0>;
  28. compatible = "allwinner,sun4i-osc-clk";
  29. reg = <0x01c20050 0x4>;
  30. clocks = <&osc24M_fixed>;
  31. };
  32. pll1: pll1@01c20000 {
  33. #clock-cells = <0>;
  34. compatible = "allwinner,sun4i-pll1-clk";
  35. reg = <0x01c20000 0x4>;
  36. clocks = <&osc24M>;
  37. };
  38. cpu: cpu@01c20054 {
  39. #clock-cells = <0>;
  40. compatible = "allwinner,sun4i-cpu-clk";
  41. reg = <0x01c20054 0x4>;
  42. clocks = <&osc32k>, <&osc24M>, <&pll1>;
  43. };
  44. Gate clock outputs
  45. The "allwinner,sun4i-*-gates-clk" clocks provide several gatable outputs;
  46. their corresponding offsets as present on sun4i are listed below. Note that
  47. some of these gates are not present on sun5i.
  48. * AXI gates ("allwinner,sun4i-axi-gates-clk")
  49. DRAM 0
  50. * AHB gates ("allwinner,sun4i-ahb-gates-clk")
  51. USB0 0
  52. EHCI0 1
  53. OHCI0 2*
  54. EHCI1 3
  55. OHCI1 4*
  56. SS 5
  57. DMA 6
  58. BIST 7
  59. MMC0 8
  60. MMC1 9
  61. MMC2 10
  62. MMC3 11
  63. MS 12**
  64. NAND 13
  65. SDRAM 14
  66. ACE 16
  67. EMAC 17
  68. TS 18
  69. SPI0 20
  70. SPI1 21
  71. SPI2 22
  72. SPI3 23
  73. PATA 24
  74. SATA 25**
  75. GPS 26*
  76. VE 32
  77. TVD 33
  78. TVE0 34
  79. TVE1 35
  80. LCD0 36
  81. LCD1 37
  82. CSI0 40
  83. CSI1 41
  84. HDMI 43
  85. DE_BE0 44
  86. DE_BE1 45
  87. DE_FE0 46
  88. DE_FE1 47
  89. MP 50
  90. MALI400 52
  91. * APB0 gates ("allwinner,sun4i-apb0-gates-clk")
  92. CODEC 0
  93. SPDIF 1*
  94. AC97 2
  95. IIS 3
  96. PIO 5
  97. IR0 6
  98. IR1 7
  99. KEYPAD 10
  100. * APB1 gates ("allwinner,sun4i-apb1-gates-clk")
  101. I2C0 0
  102. I2C1 1
  103. I2C2 2
  104. CAN 4
  105. SCR 5
  106. PS20 6
  107. PS21 7
  108. UART0 16
  109. UART1 17
  110. UART2 18
  111. UART3 19
  112. UART4 20
  113. UART5 21
  114. UART6 22
  115. UART7 23
  116. Notation:
  117. [*]: The datasheet didn't mention these, but they are present on AW code
  118. [**]: The datasheet had this marked as "NC" but they are used on AW code