sun4i-a10.dtsi 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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. emac: ethernet@01c0b000 {
  146. compatible = "allwinner,sun4i-emac";
  147. reg = <0x01c0b000 0x1000>;
  148. interrupts = <55>;
  149. clocks = <&ahb_gates 17>;
  150. status = "disabled";
  151. };
  152. mdio@01c0b080 {
  153. compatible = "allwinner,sun4i-mdio";
  154. reg = <0x01c0b080 0x14>;
  155. status = "disabled";
  156. #address-cells = <1>;
  157. #size-cells = <0>;
  158. };
  159. intc: interrupt-controller@01c20400 {
  160. compatible = "allwinner,sun4i-ic";
  161. reg = <0x01c20400 0x400>;
  162. interrupt-controller;
  163. #interrupt-cells = <1>;
  164. };
  165. pio: pinctrl@01c20800 {
  166. compatible = "allwinner,sun4i-a10-pinctrl";
  167. reg = <0x01c20800 0x400>;
  168. clocks = <&apb0_gates 5>;
  169. gpio-controller;
  170. #address-cells = <1>;
  171. #size-cells = <0>;
  172. #gpio-cells = <3>;
  173. uart0_pins_a: uart0@0 {
  174. allwinner,pins = "PB22", "PB23";
  175. allwinner,function = "uart0";
  176. allwinner,drive = <0>;
  177. allwinner,pull = <0>;
  178. };
  179. uart0_pins_b: uart0@1 {
  180. allwinner,pins = "PF2", "PF4";
  181. allwinner,function = "uart0";
  182. allwinner,drive = <0>;
  183. allwinner,pull = <0>;
  184. };
  185. uart1_pins_a: uart1@0 {
  186. allwinner,pins = "PA10", "PA11";
  187. allwinner,function = "uart1";
  188. allwinner,drive = <0>;
  189. allwinner,pull = <0>;
  190. };
  191. emac_pins_a: emac0@0 {
  192. allwinner,pins = "PA0", "PA1", "PA2",
  193. "PA3", "PA4", "PA5", "PA6",
  194. "PA7", "PA8", "PA9", "PA10",
  195. "PA11", "PA12", "PA13", "PA14",
  196. "PA15", "PA16";
  197. allwinner,function = "emac";
  198. allwinner,drive = <0>;
  199. allwinner,pull = <0>;
  200. };
  201. };
  202. timer@01c20c00 {
  203. compatible = "allwinner,sun4i-timer";
  204. reg = <0x01c20c00 0x90>;
  205. interrupts = <22>;
  206. clocks = <&osc24M>;
  207. };
  208. wdt: watchdog@01c20c90 {
  209. compatible = "allwinner,sun4i-wdt";
  210. reg = <0x01c20c90 0x10>;
  211. };
  212. uart0: serial@01c28000 {
  213. compatible = "snps,dw-apb-uart";
  214. reg = <0x01c28000 0x400>;
  215. interrupts = <1>;
  216. reg-shift = <2>;
  217. reg-io-width = <4>;
  218. clocks = <&apb1_gates 16>;
  219. status = "disabled";
  220. };
  221. uart1: serial@01c28400 {
  222. compatible = "snps,dw-apb-uart";
  223. reg = <0x01c28400 0x400>;
  224. interrupts = <2>;
  225. reg-shift = <2>;
  226. reg-io-width = <4>;
  227. clocks = <&apb1_gates 17>;
  228. status = "disabled";
  229. };
  230. uart2: serial@01c28800 {
  231. compatible = "snps,dw-apb-uart";
  232. reg = <0x01c28800 0x400>;
  233. interrupts = <3>;
  234. reg-shift = <2>;
  235. reg-io-width = <4>;
  236. clocks = <&apb1_gates 18>;
  237. status = "disabled";
  238. };
  239. uart3: serial@01c28c00 {
  240. compatible = "snps,dw-apb-uart";
  241. reg = <0x01c28c00 0x400>;
  242. interrupts = <4>;
  243. reg-shift = <2>;
  244. reg-io-width = <4>;
  245. clocks = <&apb1_gates 19>;
  246. status = "disabled";
  247. };
  248. uart4: serial@01c29000 {
  249. compatible = "snps,dw-apb-uart";
  250. reg = <0x01c29000 0x400>;
  251. interrupts = <17>;
  252. reg-shift = <2>;
  253. reg-io-width = <4>;
  254. clocks = <&apb1_gates 20>;
  255. status = "disabled";
  256. };
  257. uart5: serial@01c29400 {
  258. compatible = "snps,dw-apb-uart";
  259. reg = <0x01c29400 0x400>;
  260. interrupts = <18>;
  261. reg-shift = <2>;
  262. reg-io-width = <4>;
  263. clocks = <&apb1_gates 21>;
  264. status = "disabled";
  265. };
  266. uart6: serial@01c29800 {
  267. compatible = "snps,dw-apb-uart";
  268. reg = <0x01c29800 0x400>;
  269. interrupts = <19>;
  270. reg-shift = <2>;
  271. reg-io-width = <4>;
  272. clocks = <&apb1_gates 22>;
  273. status = "disabled";
  274. };
  275. uart7: serial@01c29c00 {
  276. compatible = "snps,dw-apb-uart";
  277. reg = <0x01c29c00 0x400>;
  278. interrupts = <20>;
  279. reg-shift = <2>;
  280. reg-io-width = <4>;
  281. clocks = <&apb1_gates 23>;
  282. status = "disabled";
  283. };
  284. };
  285. };