sun4i-a10.dtsi 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. /*
  2. * Copyright 2012 Stefan Roese
  3. * Stefan Roese <sr@denx.de>
  4. *
  5. * The code contained herein is licensed under the GNU General Public
  6. * License. You may obtain a copy of the GNU General Public License
  7. * Version 2 or later at the following locations:
  8. *
  9. * http://www.opensource.org/licenses/gpl-license.html
  10. * http://www.gnu.org/copyleft/gpl.html
  11. */
  12. /include/ "skeleton.dtsi"
  13. / {
  14. interrupt-parent = <&intc>;
  15. cpus {
  16. cpu@0 {
  17. compatible = "arm,cortex-a8";
  18. };
  19. };
  20. memory {
  21. reg = <0x40000000 0x80000000>;
  22. };
  23. clocks {
  24. #address-cells = <1>;
  25. #size-cells = <1>;
  26. ranges;
  27. /*
  28. * This is a dummy clock, to be used as placeholder on
  29. * other mux clocks when a specific parent clock is not
  30. * yet implemented. It should be dropped when the driver
  31. * is complete.
  32. */
  33. dummy: dummy {
  34. #clock-cells = <0>;
  35. compatible = "fixed-clock";
  36. clock-frequency = <0>;
  37. };
  38. osc24M: osc24M@01c20050 {
  39. #clock-cells = <0>;
  40. compatible = "allwinner,sun4i-osc-clk";
  41. reg = <0x01c20050 0x4>;
  42. clock-frequency = <24000000>;
  43. };
  44. osc32k: osc32k {
  45. #clock-cells = <0>;
  46. compatible = "fixed-clock";
  47. clock-frequency = <32768>;
  48. };
  49. pll1: pll1@01c20000 {
  50. #clock-cells = <0>;
  51. compatible = "allwinner,sun4i-pll1-clk";
  52. reg = <0x01c20000 0x4>;
  53. clocks = <&osc24M>;
  54. };
  55. /* dummy is 200M */
  56. cpu: cpu@01c20054 {
  57. #clock-cells = <0>;
  58. compatible = "allwinner,sun4i-cpu-clk";
  59. reg = <0x01c20054 0x4>;
  60. clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
  61. };
  62. axi: axi@01c20054 {
  63. #clock-cells = <0>;
  64. compatible = "allwinner,sun4i-axi-clk";
  65. reg = <0x01c20054 0x4>;
  66. clocks = <&cpu>;
  67. };
  68. axi_gates: axi_gates@01c2005c {
  69. #clock-cells = <1>;
  70. compatible = "allwinner,sun4i-axi-gates-clk";
  71. reg = <0x01c2005c 0x4>;
  72. clocks = <&axi>;
  73. clock-output-names = "axi_dram";
  74. };
  75. ahb: ahb@01c20054 {
  76. #clock-cells = <0>;
  77. compatible = "allwinner,sun4i-ahb-clk";
  78. reg = <0x01c20054 0x4>;
  79. clocks = <&axi>;
  80. };
  81. ahb_gates: ahb_gates@01c20060 {
  82. #clock-cells = <1>;
  83. compatible = "allwinner,sun4i-ahb-gates-clk";
  84. reg = <0x01c20060 0x8>;
  85. clocks = <&ahb>;
  86. clock-output-names = "ahb_usb0", "ahb_ehci0",
  87. "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss",
  88. "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1",
  89. "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand",
  90. "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts",
  91. "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3",
  92. "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve",
  93. "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0",
  94. "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi",
  95. "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
  96. "ahb_de_fe1", "ahb_mp", "ahb_mali400";
  97. };
  98. apb0: apb0@01c20054 {
  99. #clock-cells = <0>;
  100. compatible = "allwinner,sun4i-apb0-clk";
  101. reg = <0x01c20054 0x4>;
  102. clocks = <&ahb>;
  103. };
  104. apb0_gates: apb0_gates@01c20068 {
  105. #clock-cells = <1>;
  106. compatible = "allwinner,sun4i-apb0-gates-clk";
  107. reg = <0x01c20068 0x4>;
  108. clocks = <&apb0>;
  109. clock-output-names = "apb0_codec", "apb0_spdif",
  110. "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0",
  111. "apb0_ir1", "apb0_keypad";
  112. };
  113. /* dummy is pll62 */
  114. apb1_mux: apb1_mux@01c20058 {
  115. #clock-cells = <0>;
  116. compatible = "allwinner,sun4i-apb1-mux-clk";
  117. reg = <0x01c20058 0x4>;
  118. clocks = <&osc24M>, <&dummy>, <&osc32k>;
  119. };
  120. apb1: apb1@01c20058 {
  121. #clock-cells = <0>;
  122. compatible = "allwinner,sun4i-apb1-clk";
  123. reg = <0x01c20058 0x4>;
  124. clocks = <&apb1_mux>;
  125. };
  126. apb1_gates: apb1_gates@01c2006c {
  127. #clock-cells = <1>;
  128. compatible = "allwinner,sun4i-apb1-gates-clk";
  129. reg = <0x01c2006c 0x4>;
  130. clocks = <&apb1>;
  131. clock-output-names = "apb1_i2c0", "apb1_i2c1",
  132. "apb1_i2c2", "apb1_can", "apb1_scr",
  133. "apb1_ps20", "apb1_ps21", "apb1_uart0",
  134. "apb1_uart1", "apb1_uart2", "apb1_uart3",
  135. "apb1_uart4", "apb1_uart5", "apb1_uart6",
  136. "apb1_uart7";
  137. };
  138. };
  139. soc@01c20000 {
  140. compatible = "simple-bus";
  141. #address-cells = <1>;
  142. #size-cells = <1>;
  143. reg = <0x01c20000 0x300000>;
  144. ranges;
  145. intc: interrupt-controller@01c20400 {
  146. compatible = "allwinner,sun4i-ic";
  147. reg = <0x01c20400 0x400>;
  148. interrupt-controller;
  149. #interrupt-cells = <1>;
  150. };
  151. pio: pinctrl@01c20800 {
  152. compatible = "allwinner,sun4i-a10-pinctrl";
  153. reg = <0x01c20800 0x400>;
  154. clocks = <&apb0_gates 5>;
  155. gpio-controller;
  156. #address-cells = <1>;
  157. #size-cells = <0>;
  158. #gpio-cells = <3>;
  159. uart0_pins_a: uart0@0 {
  160. allwinner,pins = "PB22", "PB23";
  161. allwinner,function = "uart0";
  162. allwinner,drive = <0>;
  163. allwinner,pull = <0>;
  164. };
  165. uart0_pins_b: uart0@1 {
  166. allwinner,pins = "PF2", "PF4";
  167. allwinner,function = "uart0";
  168. allwinner,drive = <0>;
  169. allwinner,pull = <0>;
  170. };
  171. uart1_pins_a: uart1@0 {
  172. allwinner,pins = "PA10", "PA11";
  173. allwinner,function = "uart1";
  174. allwinner,drive = <0>;
  175. allwinner,pull = <0>;
  176. };
  177. };
  178. timer@01c20c00 {
  179. compatible = "allwinner,sun4i-timer";
  180. reg = <0x01c20c00 0x90>;
  181. interrupts = <22>;
  182. clocks = <&osc24M>;
  183. };
  184. wdt: watchdog@01c20c90 {
  185. compatible = "allwinner,sun4i-wdt";
  186. reg = <0x01c20c90 0x10>;
  187. };
  188. uart0: serial@01c28000 {
  189. compatible = "snps,dw-apb-uart";
  190. reg = <0x01c28000 0x400>;
  191. interrupts = <1>;
  192. reg-shift = <2>;
  193. reg-io-width = <4>;
  194. clocks = <&apb1_gates 16>;
  195. status = "disabled";
  196. };
  197. uart1: serial@01c28400 {
  198. compatible = "snps,dw-apb-uart";
  199. reg = <0x01c28400 0x400>;
  200. interrupts = <2>;
  201. reg-shift = <2>;
  202. reg-io-width = <4>;
  203. clocks = <&apb1_gates 17>;
  204. status = "disabled";
  205. };
  206. uart2: serial@01c28800 {
  207. compatible = "snps,dw-apb-uart";
  208. reg = <0x01c28800 0x400>;
  209. interrupts = <3>;
  210. reg-shift = <2>;
  211. reg-io-width = <4>;
  212. clocks = <&apb1_gates 18>;
  213. status = "disabled";
  214. };
  215. uart3: serial@01c28c00 {
  216. compatible = "snps,dw-apb-uart";
  217. reg = <0x01c28c00 0x400>;
  218. interrupts = <4>;
  219. reg-shift = <2>;
  220. reg-io-width = <4>;
  221. clocks = <&apb1_gates 19>;
  222. status = "disabled";
  223. };
  224. uart4: serial@01c29000 {
  225. compatible = "snps,dw-apb-uart";
  226. reg = <0x01c29000 0x400>;
  227. interrupts = <17>;
  228. reg-shift = <2>;
  229. reg-io-width = <4>;
  230. clocks = <&apb1_gates 20>;
  231. status = "disabled";
  232. };
  233. uart5: serial@01c29400 {
  234. compatible = "snps,dw-apb-uart";
  235. reg = <0x01c29400 0x400>;
  236. interrupts = <18>;
  237. reg-shift = <2>;
  238. reg-io-width = <4>;
  239. clocks = <&apb1_gates 21>;
  240. status = "disabled";
  241. };
  242. uart6: serial@01c29800 {
  243. compatible = "snps,dw-apb-uart";
  244. reg = <0x01c29800 0x400>;
  245. interrupts = <19>;
  246. reg-shift = <2>;
  247. reg-io-width = <4>;
  248. clocks = <&apb1_gates 22>;
  249. status = "disabled";
  250. };
  251. uart7: serial@01c29c00 {
  252. compatible = "snps,dw-apb-uart";
  253. reg = <0x01c29c00 0x400>;
  254. interrupts = <20>;
  255. reg-shift = <2>;
  256. reg-io-width = <4>;
  257. clocks = <&apb1_gates 23>;
  258. status = "disabled";
  259. };
  260. };
  261. };