sunxi.dtsi 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. /*
  2. * Copyright 2012 Maxime Ripard
  3. *
  4. * Maxime Ripard <maxime.ripard@free-electrons.com>
  5. *
  6. * The code contained herein is licensed under the GNU General Public
  7. * License. You may obtain a copy of the GNU General Public License
  8. * Version 2 or later at the following locations:
  9. *
  10. * http://www.opensource.org/licenses/gpl-license.html
  11. * http://www.gnu.org/copyleft/gpl.html
  12. */
  13. /include/ "skeleton.dtsi"
  14. / {
  15. interrupt-parent = <&intc>;
  16. cpus {
  17. cpu@0 {
  18. compatible = "arm,cortex-a8";
  19. };
  20. };
  21. clocks {
  22. #address-cells = <1>;
  23. #size-cells = <1>;
  24. ranges;
  25. /*
  26. * This is a dummy clock, to be used as placeholder on
  27. * other mux clocks when a specific parent clock is not
  28. * yet implemented. It should be dropped when the driver
  29. * is complete.
  30. */
  31. dummy: dummy {
  32. #clock-cells = <0>;
  33. compatible = "fixed-clock";
  34. clock-frequency = <0>;
  35. };
  36. osc24M_fixed: osc24M_fixed {
  37. #clock-cells = <0>;
  38. compatible = "fixed-clock";
  39. clock-frequency = <24000000>;
  40. };
  41. osc24M: osc24M@01c20050 {
  42. #clock-cells = <0>;
  43. compatible = "allwinner,sun4i-osc-clk";
  44. reg = <0x01c20050 0x4>;
  45. clocks = <&osc24M_fixed>;
  46. };
  47. osc32k: osc32k {
  48. #clock-cells = <0>;
  49. compatible = "fixed-clock";
  50. clock-frequency = <32768>;
  51. };
  52. pll1: pll1@01c20000 {
  53. #clock-cells = <0>;
  54. compatible = "allwinner,sun4i-pll1-clk";
  55. reg = <0x01c20000 0x4>;
  56. clocks = <&osc24M>;
  57. };
  58. /* dummy is 200M */
  59. cpu: cpu@01c20054 {
  60. #clock-cells = <0>;
  61. compatible = "allwinner,sun4i-cpu-clk";
  62. reg = <0x01c20054 0x4>;
  63. clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
  64. };
  65. axi: axi@01c20054 {
  66. #clock-cells = <0>;
  67. compatible = "allwinner,sun4i-axi-clk";
  68. reg = <0x01c20054 0x4>;
  69. clocks = <&cpu>;
  70. };
  71. axi_gates: axi_gates@01c2005c {
  72. #clock-cells = <1>;
  73. compatible = "allwinner,sun4i-axi-gates-clk";
  74. reg = <0x01c2005c 0x4>;
  75. clocks = <&axi>;
  76. clock-output-names = "axi_dram";
  77. };
  78. ahb: ahb@01c20054 {
  79. #clock-cells = <0>;
  80. compatible = "allwinner,sun4i-ahb-clk";
  81. reg = <0x01c20054 0x4>;
  82. clocks = <&axi>;
  83. };
  84. ahb_gates: ahb_gates@01c20060 {
  85. #clock-cells = <1>;
  86. compatible = "allwinner,sun4i-ahb-gates-clk";
  87. reg = <0x01c20060 0x8>;
  88. clocks = <&ahb>;
  89. clock-output-names = "ahb_usb0", "ahb_ehci0",
  90. "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss",
  91. "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1",
  92. "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand",
  93. "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts",
  94. "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3",
  95. "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve",
  96. "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0",
  97. "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi",
  98. "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
  99. "ahb_de_fe1", "ahb_mp", "ahb_mali400";
  100. };
  101. apb0: apb0@01c20054 {
  102. #clock-cells = <0>;
  103. compatible = "allwinner,sun4i-apb0-clk";
  104. reg = <0x01c20054 0x4>;
  105. clocks = <&ahb>;
  106. };
  107. apb0_gates: apb0_gates@01c20068 {
  108. #clock-cells = <1>;
  109. compatible = "allwinner,sun4i-apb0-gates-clk";
  110. reg = <0x01c20068 0x4>;
  111. clocks = <&apb0>;
  112. clock-output-names = "apb0_codec", "apb0_spdif",
  113. "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0",
  114. "apb0_ir1", "apb0_keypad";
  115. };
  116. /* dummy is pll62 */
  117. apb1_mux: apb1_mux@01c20058 {
  118. #clock-cells = <0>;
  119. compatible = "allwinner,sun4i-apb1-mux-clk";
  120. reg = <0x01c20058 0x4>;
  121. clocks = <&osc24M>, <&dummy>, <&osc32k>;
  122. };
  123. apb1: apb1@01c20058 {
  124. #clock-cells = <0>;
  125. compatible = "allwinner,sun4i-apb1-clk";
  126. reg = <0x01c20058 0x4>;
  127. clocks = <&apb1_mux>;
  128. };
  129. apb1_gates: apb1_gates@01c2006c {
  130. #clock-cells = <1>;
  131. compatible = "allwinner,sun4i-apb1-gates-clk";
  132. reg = <0x01c2006c 0x4>;
  133. clocks = <&apb1>;
  134. clock-output-names = "apb1_i2c0", "apb1_i2c1",
  135. "apb1_i2c2", "apb1_can", "apb1_scr",
  136. "apb1_ps20", "apb1_ps21", "apb1_uart0",
  137. "apb1_uart1", "apb1_uart2", "apb1_uart3",
  138. "apb1_uart4", "apb1_uart5", "apb1_uart6",
  139. "apb1_uart7";
  140. };
  141. };
  142. soc {
  143. compatible = "simple-bus";
  144. #address-cells = <1>;
  145. #size-cells = <1>;
  146. reg = <0x01c20000 0x300000>;
  147. ranges;
  148. timer@01c20c00 {
  149. compatible = "allwinner,sunxi-timer";
  150. reg = <0x01c20c00 0x90>;
  151. interrupts = <22>;
  152. clocks = <&osc24M>;
  153. };
  154. wdt: watchdog@01c20c90 {
  155. compatible = "allwinner,sunxi-wdt";
  156. reg = <0x01c20c90 0x10>;
  157. };
  158. intc: interrupt-controller@01c20400 {
  159. compatible = "allwinner,sunxi-ic";
  160. reg = <0x01c20400 0x400>;
  161. interrupt-controller;
  162. #interrupt-cells = <1>;
  163. };
  164. uart1: serial@01c28400 {
  165. compatible = "snps,dw-apb-uart";
  166. reg = <0x01c28400 0x400>;
  167. interrupts = <2>;
  168. reg-shift = <2>;
  169. reg-io-width = <4>;
  170. clocks = <&apb1_gates 17>;
  171. status = "disabled";
  172. };
  173. uart3: serial@01c28c00 {
  174. compatible = "snps,dw-apb-uart";
  175. reg = <0x01c28c00 0x400>;
  176. interrupts = <4>;
  177. reg-shift = <2>;
  178. reg-io-width = <4>;
  179. clocks = <&apb1_gates 19>;
  180. status = "disabled";
  181. };
  182. };
  183. };