sun4i-a10.dtsi 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  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. interrupts = <28>;
  155. clocks = <&apb0_gates 5>;
  156. gpio-controller;
  157. interrupt-controller;
  158. #address-cells = <1>;
  159. #size-cells = <0>;
  160. #gpio-cells = <3>;
  161. uart0_pins_a: uart0@0 {
  162. allwinner,pins = "PB22", "PB23";
  163. allwinner,function = "uart0";
  164. allwinner,drive = <0>;
  165. allwinner,pull = <0>;
  166. };
  167. uart0_pins_b: uart0@1 {
  168. allwinner,pins = "PF2", "PF4";
  169. allwinner,function = "uart0";
  170. allwinner,drive = <0>;
  171. allwinner,pull = <0>;
  172. };
  173. uart1_pins_a: uart1@0 {
  174. allwinner,pins = "PA10", "PA11";
  175. allwinner,function = "uart1";
  176. allwinner,drive = <0>;
  177. allwinner,pull = <0>;
  178. };
  179. i2c0_pins_a: i2c0@0 {
  180. allwinner,pins = "PB0", "PB1";
  181. allwinner,function = "i2c0";
  182. allwinner,drive = <0>;
  183. allwinner,pull = <0>;
  184. };
  185. i2c1_pins_a: i2c1@0 {
  186. allwinner,pins = "PB18", "PB19";
  187. allwinner,function = "i2c1";
  188. allwinner,drive = <0>;
  189. allwinner,pull = <0>;
  190. };
  191. i2c2_pins_a: i2c2@0 {
  192. allwinner,pins = "PB20", "PB21";
  193. allwinner,function = "i2c2";
  194. allwinner,drive = <0>;
  195. allwinner,pull = <0>;
  196. };
  197. };
  198. timer@01c20c00 {
  199. compatible = "allwinner,sun4i-timer";
  200. reg = <0x01c20c00 0x90>;
  201. interrupts = <22>;
  202. clocks = <&osc24M>;
  203. };
  204. wdt: watchdog@01c20c90 {
  205. compatible = "allwinner,sun4i-wdt";
  206. reg = <0x01c20c90 0x10>;
  207. };
  208. uart0: serial@01c28000 {
  209. compatible = "snps,dw-apb-uart";
  210. reg = <0x01c28000 0x400>;
  211. interrupts = <1>;
  212. reg-shift = <2>;
  213. reg-io-width = <4>;
  214. clocks = <&apb1_gates 16>;
  215. status = "disabled";
  216. };
  217. uart1: serial@01c28400 {
  218. compatible = "snps,dw-apb-uart";
  219. reg = <0x01c28400 0x400>;
  220. interrupts = <2>;
  221. reg-shift = <2>;
  222. reg-io-width = <4>;
  223. clocks = <&apb1_gates 17>;
  224. status = "disabled";
  225. };
  226. uart2: serial@01c28800 {
  227. compatible = "snps,dw-apb-uart";
  228. reg = <0x01c28800 0x400>;
  229. interrupts = <3>;
  230. reg-shift = <2>;
  231. reg-io-width = <4>;
  232. clocks = <&apb1_gates 18>;
  233. status = "disabled";
  234. };
  235. uart3: serial@01c28c00 {
  236. compatible = "snps,dw-apb-uart";
  237. reg = <0x01c28c00 0x400>;
  238. interrupts = <4>;
  239. reg-shift = <2>;
  240. reg-io-width = <4>;
  241. clocks = <&apb1_gates 19>;
  242. status = "disabled";
  243. };
  244. uart4: serial@01c29000 {
  245. compatible = "snps,dw-apb-uart";
  246. reg = <0x01c29000 0x400>;
  247. interrupts = <17>;
  248. reg-shift = <2>;
  249. reg-io-width = <4>;
  250. clocks = <&apb1_gates 20>;
  251. status = "disabled";
  252. };
  253. uart5: serial@01c29400 {
  254. compatible = "snps,dw-apb-uart";
  255. reg = <0x01c29400 0x400>;
  256. interrupts = <18>;
  257. reg-shift = <2>;
  258. reg-io-width = <4>;
  259. clocks = <&apb1_gates 21>;
  260. status = "disabled";
  261. };
  262. uart6: serial@01c29800 {
  263. compatible = "snps,dw-apb-uart";
  264. reg = <0x01c29800 0x400>;
  265. interrupts = <19>;
  266. reg-shift = <2>;
  267. reg-io-width = <4>;
  268. clocks = <&apb1_gates 22>;
  269. status = "disabled";
  270. };
  271. uart7: serial@01c29c00 {
  272. compatible = "snps,dw-apb-uart";
  273. reg = <0x01c29c00 0x400>;
  274. interrupts = <20>;
  275. reg-shift = <2>;
  276. reg-io-width = <4>;
  277. clocks = <&apb1_gates 23>;
  278. status = "disabled";
  279. };
  280. i2c0: i2c@01c2ac00 {
  281. compatible = "allwinner,sun4i-i2c";
  282. reg = <0x01c2ac00 0x400>;
  283. interrupts = <7>;
  284. clocks = <&apb1_gates 0>;
  285. clock-frequency = <100000>;
  286. status = "disabled";
  287. };
  288. i2c1: i2c@01c2b000 {
  289. compatible = "allwinner,sun4i-i2c";
  290. reg = <0x01c2b000 0x400>;
  291. interrupts = <8>;
  292. clocks = <&apb1_gates 1>;
  293. clock-frequency = <100000>;
  294. status = "disabled";
  295. };
  296. i2c2: i2c@01c2b400 {
  297. compatible = "allwinner,sun4i-i2c";
  298. reg = <0x01c2b400 0x400>;
  299. interrupts = <9>;
  300. clocks = <&apb1_gates 2>;
  301. clock-frequency = <100000>;
  302. status = "disabled";
  303. };
  304. };
  305. };