sun4i-a10.dtsi 6.8 KB

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