sun4i-a10.dtsi 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  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@01c00000 {
  144. compatible = "simple-bus";
  145. #address-cells = <1>;
  146. #size-cells = <1>;
  147. ranges;
  148. emac: ethernet@01c0b000 {
  149. compatible = "allwinner,sun4i-emac";
  150. reg = <0x01c0b000 0x1000>;
  151. interrupts = <55>;
  152. clocks = <&ahb_gates 17>;
  153. status = "disabled";
  154. };
  155. mdio@01c0b080 {
  156. compatible = "allwinner,sun4i-mdio";
  157. reg = <0x01c0b080 0x14>;
  158. status = "disabled";
  159. #address-cells = <1>;
  160. #size-cells = <0>;
  161. };
  162. intc: interrupt-controller@01c20400 {
  163. compatible = "allwinner,sun4i-ic";
  164. reg = <0x01c20400 0x400>;
  165. interrupt-controller;
  166. #interrupt-cells = <1>;
  167. };
  168. pio: pinctrl@01c20800 {
  169. compatible = "allwinner,sun4i-a10-pinctrl";
  170. reg = <0x01c20800 0x400>;
  171. interrupts = <28>;
  172. clocks = <&apb0_gates 5>;
  173. gpio-controller;
  174. interrupt-controller;
  175. #address-cells = <1>;
  176. #size-cells = <0>;
  177. #gpio-cells = <3>;
  178. uart0_pins_a: uart0@0 {
  179. allwinner,pins = "PB22", "PB23";
  180. allwinner,function = "uart0";
  181. allwinner,drive = <0>;
  182. allwinner,pull = <0>;
  183. };
  184. uart0_pins_b: uart0@1 {
  185. allwinner,pins = "PF2", "PF4";
  186. allwinner,function = "uart0";
  187. allwinner,drive = <0>;
  188. allwinner,pull = <0>;
  189. };
  190. uart1_pins_a: uart1@0 {
  191. allwinner,pins = "PA10", "PA11";
  192. allwinner,function = "uart1";
  193. allwinner,drive = <0>;
  194. allwinner,pull = <0>;
  195. };
  196. i2c0_pins_a: i2c0@0 {
  197. allwinner,pins = "PB0", "PB1";
  198. allwinner,function = "i2c0";
  199. allwinner,drive = <0>;
  200. allwinner,pull = <0>;
  201. };
  202. i2c1_pins_a: i2c1@0 {
  203. allwinner,pins = "PB18", "PB19";
  204. allwinner,function = "i2c1";
  205. allwinner,drive = <0>;
  206. allwinner,pull = <0>;
  207. };
  208. i2c2_pins_a: i2c2@0 {
  209. allwinner,pins = "PB20", "PB21";
  210. allwinner,function = "i2c2";
  211. allwinner,drive = <0>;
  212. allwinner,pull = <0>;
  213. };
  214. emac_pins_a: emac0@0 {
  215. allwinner,pins = "PA0", "PA1", "PA2",
  216. "PA3", "PA4", "PA5", "PA6",
  217. "PA7", "PA8", "PA9", "PA10",
  218. "PA11", "PA12", "PA13", "PA14",
  219. "PA15", "PA16";
  220. allwinner,function = "emac";
  221. allwinner,drive = <0>;
  222. allwinner,pull = <0>;
  223. };
  224. };
  225. timer@01c20c00 {
  226. compatible = "allwinner,sun4i-timer";
  227. reg = <0x01c20c00 0x90>;
  228. interrupts = <22>;
  229. clocks = <&osc24M>;
  230. };
  231. wdt: watchdog@01c20c90 {
  232. compatible = "allwinner,sun4i-wdt";
  233. reg = <0x01c20c90 0x10>;
  234. };
  235. uart0: serial@01c28000 {
  236. compatible = "snps,dw-apb-uart";
  237. reg = <0x01c28000 0x400>;
  238. interrupts = <1>;
  239. reg-shift = <2>;
  240. reg-io-width = <4>;
  241. clocks = <&apb1_gates 16>;
  242. status = "disabled";
  243. };
  244. uart1: serial@01c28400 {
  245. compatible = "snps,dw-apb-uart";
  246. reg = <0x01c28400 0x400>;
  247. interrupts = <2>;
  248. reg-shift = <2>;
  249. reg-io-width = <4>;
  250. clocks = <&apb1_gates 17>;
  251. status = "disabled";
  252. };
  253. uart2: serial@01c28800 {
  254. compatible = "snps,dw-apb-uart";
  255. reg = <0x01c28800 0x400>;
  256. interrupts = <3>;
  257. reg-shift = <2>;
  258. reg-io-width = <4>;
  259. clocks = <&apb1_gates 18>;
  260. status = "disabled";
  261. };
  262. uart3: serial@01c28c00 {
  263. compatible = "snps,dw-apb-uart";
  264. reg = <0x01c28c00 0x400>;
  265. interrupts = <4>;
  266. reg-shift = <2>;
  267. reg-io-width = <4>;
  268. clocks = <&apb1_gates 19>;
  269. status = "disabled";
  270. };
  271. uart4: serial@01c29000 {
  272. compatible = "snps,dw-apb-uart";
  273. reg = <0x01c29000 0x400>;
  274. interrupts = <17>;
  275. reg-shift = <2>;
  276. reg-io-width = <4>;
  277. clocks = <&apb1_gates 20>;
  278. status = "disabled";
  279. };
  280. uart5: serial@01c29400 {
  281. compatible = "snps,dw-apb-uart";
  282. reg = <0x01c29400 0x400>;
  283. interrupts = <18>;
  284. reg-shift = <2>;
  285. reg-io-width = <4>;
  286. clocks = <&apb1_gates 21>;
  287. status = "disabled";
  288. };
  289. uart6: serial@01c29800 {
  290. compatible = "snps,dw-apb-uart";
  291. reg = <0x01c29800 0x400>;
  292. interrupts = <19>;
  293. reg-shift = <2>;
  294. reg-io-width = <4>;
  295. clocks = <&apb1_gates 22>;
  296. status = "disabled";
  297. };
  298. uart7: serial@01c29c00 {
  299. compatible = "snps,dw-apb-uart";
  300. reg = <0x01c29c00 0x400>;
  301. interrupts = <20>;
  302. reg-shift = <2>;
  303. reg-io-width = <4>;
  304. clocks = <&apb1_gates 23>;
  305. status = "disabled";
  306. };
  307. i2c0: i2c@01c2ac00 {
  308. compatible = "allwinner,sun4i-i2c";
  309. reg = <0x01c2ac00 0x400>;
  310. interrupts = <7>;
  311. clocks = <&apb1_gates 0>;
  312. clock-frequency = <100000>;
  313. status = "disabled";
  314. };
  315. i2c1: i2c@01c2b000 {
  316. compatible = "allwinner,sun4i-i2c";
  317. reg = <0x01c2b000 0x400>;
  318. interrupts = <8>;
  319. clocks = <&apb1_gates 1>;
  320. clock-frequency = <100000>;
  321. status = "disabled";
  322. };
  323. i2c2: i2c@01c2b400 {
  324. compatible = "allwinner,sun4i-i2c";
  325. reg = <0x01c2b400 0x400>;
  326. interrupts = <9>;
  327. clocks = <&apb1_gates 2>;
  328. clock-frequency = <100000>;
  329. status = "disabled";
  330. };
  331. };
  332. };