sun4i-a10.dtsi 6.8 KB

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