sun4i-a10.dtsi 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  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. #address-cells = <1>;
  17. #size-cells = <0>;
  18. cpu@0 {
  19. device_type = "cpu";
  20. compatible = "arm,cortex-a8";
  21. reg = <0x0>;
  22. };
  23. };
  24. memory {
  25. reg = <0x40000000 0x80000000>;
  26. };
  27. clocks {
  28. #address-cells = <1>;
  29. #size-cells = <1>;
  30. ranges;
  31. /*
  32. * This is a dummy clock, to be used as placeholder on
  33. * other mux clocks when a specific parent clock is not
  34. * yet implemented. It should be dropped when the driver
  35. * is complete.
  36. */
  37. dummy: dummy {
  38. #clock-cells = <0>;
  39. compatible = "fixed-clock";
  40. clock-frequency = <0>;
  41. };
  42. osc24M: osc24M@01c20050 {
  43. #clock-cells = <0>;
  44. compatible = "allwinner,sun4i-osc-clk";
  45. reg = <0x01c20050 0x4>;
  46. clock-frequency = <24000000>;
  47. };
  48. osc32k: osc32k {
  49. #clock-cells = <0>;
  50. compatible = "fixed-clock";
  51. clock-frequency = <32768>;
  52. };
  53. pll1: pll1@01c20000 {
  54. #clock-cells = <0>;
  55. compatible = "allwinner,sun4i-pll1-clk";
  56. reg = <0x01c20000 0x4>;
  57. clocks = <&osc24M>;
  58. };
  59. /* dummy is 200M */
  60. cpu: cpu@01c20054 {
  61. #clock-cells = <0>;
  62. compatible = "allwinner,sun4i-cpu-clk";
  63. reg = <0x01c20054 0x4>;
  64. clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
  65. };
  66. axi: axi@01c20054 {
  67. #clock-cells = <0>;
  68. compatible = "allwinner,sun4i-axi-clk";
  69. reg = <0x01c20054 0x4>;
  70. clocks = <&cpu>;
  71. };
  72. axi_gates: axi_gates@01c2005c {
  73. #clock-cells = <1>;
  74. compatible = "allwinner,sun4i-axi-gates-clk";
  75. reg = <0x01c2005c 0x4>;
  76. clocks = <&axi>;
  77. clock-output-names = "axi_dram";
  78. };
  79. ahb: ahb@01c20054 {
  80. #clock-cells = <0>;
  81. compatible = "allwinner,sun4i-ahb-clk";
  82. reg = <0x01c20054 0x4>;
  83. clocks = <&axi>;
  84. };
  85. ahb_gates: ahb_gates@01c20060 {
  86. #clock-cells = <1>;
  87. compatible = "allwinner,sun4i-ahb-gates-clk";
  88. reg = <0x01c20060 0x8>;
  89. clocks = <&ahb>;
  90. clock-output-names = "ahb_usb0", "ahb_ehci0",
  91. "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss",
  92. "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1",
  93. "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand",
  94. "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts",
  95. "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3",
  96. "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve",
  97. "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0",
  98. "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi",
  99. "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
  100. "ahb_de_fe1", "ahb_mp", "ahb_mali400";
  101. };
  102. apb0: apb0@01c20054 {
  103. #clock-cells = <0>;
  104. compatible = "allwinner,sun4i-apb0-clk";
  105. reg = <0x01c20054 0x4>;
  106. clocks = <&ahb>;
  107. };
  108. apb0_gates: apb0_gates@01c20068 {
  109. #clock-cells = <1>;
  110. compatible = "allwinner,sun4i-apb0-gates-clk";
  111. reg = <0x01c20068 0x4>;
  112. clocks = <&apb0>;
  113. clock-output-names = "apb0_codec", "apb0_spdif",
  114. "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0",
  115. "apb0_ir1", "apb0_keypad";
  116. };
  117. /* dummy is pll62 */
  118. apb1_mux: apb1_mux@01c20058 {
  119. #clock-cells = <0>;
  120. compatible = "allwinner,sun4i-apb1-mux-clk";
  121. reg = <0x01c20058 0x4>;
  122. clocks = <&osc24M>, <&dummy>, <&osc32k>;
  123. };
  124. apb1: apb1@01c20058 {
  125. #clock-cells = <0>;
  126. compatible = "allwinner,sun4i-apb1-clk";
  127. reg = <0x01c20058 0x4>;
  128. clocks = <&apb1_mux>;
  129. };
  130. apb1_gates: apb1_gates@01c2006c {
  131. #clock-cells = <1>;
  132. compatible = "allwinner,sun4i-apb1-gates-clk";
  133. reg = <0x01c2006c 0x4>;
  134. clocks = <&apb1>;
  135. clock-output-names = "apb1_i2c0", "apb1_i2c1",
  136. "apb1_i2c2", "apb1_can", "apb1_scr",
  137. "apb1_ps20", "apb1_ps21", "apb1_uart0",
  138. "apb1_uart1", "apb1_uart2", "apb1_uart3",
  139. "apb1_uart4", "apb1_uart5", "apb1_uart6",
  140. "apb1_uart7";
  141. };
  142. };
  143. soc@01c20000 {
  144. compatible = "simple-bus";
  145. #address-cells = <1>;
  146. #size-cells = <1>;
  147. reg = <0x01c20000 0x300000>;
  148. ranges;
  149. emac: ethernet@01c0b000 {
  150. compatible = "allwinner,sun4i-emac";
  151. reg = <0x01c0b000 0x1000>;
  152. interrupts = <55>;
  153. clocks = <&ahb_gates 17>;
  154. status = "disabled";
  155. };
  156. mdio@01c0b080 {
  157. compatible = "allwinner,sun4i-mdio";
  158. reg = <0x01c0b080 0x14>;
  159. status = "disabled";
  160. #address-cells = <1>;
  161. #size-cells = <0>;
  162. };
  163. intc: interrupt-controller@01c20400 {
  164. compatible = "allwinner,sun4i-ic";
  165. reg = <0x01c20400 0x400>;
  166. interrupt-controller;
  167. #interrupt-cells = <1>;
  168. };
  169. pio: pinctrl@01c20800 {
  170. compatible = "allwinner,sun4i-a10-pinctrl";
  171. reg = <0x01c20800 0x400>;
  172. interrupts = <28>;
  173. clocks = <&apb0_gates 5>;
  174. gpio-controller;
  175. interrupt-controller;
  176. #address-cells = <1>;
  177. #size-cells = <0>;
  178. #gpio-cells = <3>;
  179. uart0_pins_a: uart0@0 {
  180. allwinner,pins = "PB22", "PB23";
  181. allwinner,function = "uart0";
  182. allwinner,drive = <0>;
  183. allwinner,pull = <0>;
  184. };
  185. uart0_pins_b: uart0@1 {
  186. allwinner,pins = "PF2", "PF4";
  187. allwinner,function = "uart0";
  188. allwinner,drive = <0>;
  189. allwinner,pull = <0>;
  190. };
  191. uart1_pins_a: uart1@0 {
  192. allwinner,pins = "PA10", "PA11";
  193. allwinner,function = "uart1";
  194. allwinner,drive = <0>;
  195. allwinner,pull = <0>;
  196. };
  197. i2c0_pins_a: i2c0@0 {
  198. allwinner,pins = "PB0", "PB1";
  199. allwinner,function = "i2c0";
  200. allwinner,drive = <0>;
  201. allwinner,pull = <0>;
  202. };
  203. i2c1_pins_a: i2c1@0 {
  204. allwinner,pins = "PB18", "PB19";
  205. allwinner,function = "i2c1";
  206. allwinner,drive = <0>;
  207. allwinner,pull = <0>;
  208. };
  209. i2c2_pins_a: i2c2@0 {
  210. allwinner,pins = "PB20", "PB21";
  211. allwinner,function = "i2c2";
  212. allwinner,drive = <0>;
  213. allwinner,pull = <0>;
  214. };
  215. emac_pins_a: emac0@0 {
  216. allwinner,pins = "PA0", "PA1", "PA2",
  217. "PA3", "PA4", "PA5", "PA6",
  218. "PA7", "PA8", "PA9", "PA10",
  219. "PA11", "PA12", "PA13", "PA14",
  220. "PA15", "PA16";
  221. allwinner,function = "emac";
  222. allwinner,drive = <0>;
  223. allwinner,pull = <0>;
  224. };
  225. };
  226. timer@01c20c00 {
  227. compatible = "allwinner,sun4i-timer";
  228. reg = <0x01c20c00 0x90>;
  229. interrupts = <22>;
  230. clocks = <&osc24M>;
  231. };
  232. wdt: watchdog@01c20c90 {
  233. compatible = "allwinner,sun4i-wdt";
  234. reg = <0x01c20c90 0x10>;
  235. };
  236. uart0: serial@01c28000 {
  237. compatible = "snps,dw-apb-uart";
  238. reg = <0x01c28000 0x400>;
  239. interrupts = <1>;
  240. reg-shift = <2>;
  241. reg-io-width = <4>;
  242. clocks = <&apb1_gates 16>;
  243. status = "disabled";
  244. };
  245. uart1: serial@01c28400 {
  246. compatible = "snps,dw-apb-uart";
  247. reg = <0x01c28400 0x400>;
  248. interrupts = <2>;
  249. reg-shift = <2>;
  250. reg-io-width = <4>;
  251. clocks = <&apb1_gates 17>;
  252. status = "disabled";
  253. };
  254. uart2: serial@01c28800 {
  255. compatible = "snps,dw-apb-uart";
  256. reg = <0x01c28800 0x400>;
  257. interrupts = <3>;
  258. reg-shift = <2>;
  259. reg-io-width = <4>;
  260. clocks = <&apb1_gates 18>;
  261. status = "disabled";
  262. };
  263. uart3: serial@01c28c00 {
  264. compatible = "snps,dw-apb-uart";
  265. reg = <0x01c28c00 0x400>;
  266. interrupts = <4>;
  267. reg-shift = <2>;
  268. reg-io-width = <4>;
  269. clocks = <&apb1_gates 19>;
  270. status = "disabled";
  271. };
  272. uart4: serial@01c29000 {
  273. compatible = "snps,dw-apb-uart";
  274. reg = <0x01c29000 0x400>;
  275. interrupts = <17>;
  276. reg-shift = <2>;
  277. reg-io-width = <4>;
  278. clocks = <&apb1_gates 20>;
  279. status = "disabled";
  280. };
  281. uart5: serial@01c29400 {
  282. compatible = "snps,dw-apb-uart";
  283. reg = <0x01c29400 0x400>;
  284. interrupts = <18>;
  285. reg-shift = <2>;
  286. reg-io-width = <4>;
  287. clocks = <&apb1_gates 21>;
  288. status = "disabled";
  289. };
  290. uart6: serial@01c29800 {
  291. compatible = "snps,dw-apb-uart";
  292. reg = <0x01c29800 0x400>;
  293. interrupts = <19>;
  294. reg-shift = <2>;
  295. reg-io-width = <4>;
  296. clocks = <&apb1_gates 22>;
  297. status = "disabled";
  298. };
  299. uart7: serial@01c29c00 {
  300. compatible = "snps,dw-apb-uart";
  301. reg = <0x01c29c00 0x400>;
  302. interrupts = <20>;
  303. reg-shift = <2>;
  304. reg-io-width = <4>;
  305. clocks = <&apb1_gates 23>;
  306. status = "disabled";
  307. };
  308. i2c0: i2c@01c2ac00 {
  309. compatible = "allwinner,sun4i-i2c";
  310. reg = <0x01c2ac00 0x400>;
  311. interrupts = <7>;
  312. clocks = <&apb1_gates 0>;
  313. clock-frequency = <100000>;
  314. status = "disabled";
  315. };
  316. i2c1: i2c@01c2b000 {
  317. compatible = "allwinner,sun4i-i2c";
  318. reg = <0x01c2b000 0x400>;
  319. interrupts = <8>;
  320. clocks = <&apb1_gates 1>;
  321. clock-frequency = <100000>;
  322. status = "disabled";
  323. };
  324. i2c2: i2c@01c2b400 {
  325. compatible = "allwinner,sun4i-i2c";
  326. reg = <0x01c2b400 0x400>;
  327. interrupts = <9>;
  328. clocks = <&apb1_gates 2>;
  329. clock-frequency = <100000>;
  330. status = "disabled";
  331. };
  332. };
  333. };