sun7i-a20.dtsi 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. /*
  2. * Copyright 2013 Maxime Ripard
  3. *
  4. * Maxime Ripard <maxime.ripard@free-electrons.com>
  5. *
  6. * The code contained herein is licensed under the GNU General Public
  7. * License. You may obtain a copy of the GNU General Public License
  8. * Version 2 or later at the following locations:
  9. *
  10. * http://www.opensource.org/licenses/gpl-license.html
  11. * http://www.gnu.org/copyleft/gpl.html
  12. */
  13. /include/ "skeleton.dtsi"
  14. / {
  15. interrupt-parent = <&gic>;
  16. cpus {
  17. #address-cells = <1>;
  18. #size-cells = <0>;
  19. cpu@0 {
  20. compatible = "arm,cortex-a7";
  21. device_type = "cpu";
  22. reg = <0>;
  23. };
  24. cpu@1 {
  25. compatible = "arm,cortex-a7";
  26. device_type = "cpu";
  27. reg = <1>;
  28. };
  29. };
  30. memory {
  31. reg = <0x40000000 0x80000000>;
  32. };
  33. clocks {
  34. #address-cells = <1>;
  35. #size-cells = <1>;
  36. ranges;
  37. osc24M: osc24M@01c20050 {
  38. #clock-cells = <0>;
  39. compatible = "allwinner,sun4i-osc-clk";
  40. reg = <0x01c20050 0x4>;
  41. clock-frequency = <24000000>;
  42. };
  43. osc32k: osc32k {
  44. #clock-cells = <0>;
  45. compatible = "fixed-clock";
  46. clock-frequency = <32768>;
  47. };
  48. pll1: pll1@01c20000 {
  49. #clock-cells = <0>;
  50. compatible = "allwinner,sun4i-pll1-clk";
  51. reg = <0x01c20000 0x4>;
  52. clocks = <&osc24M>;
  53. };
  54. /*
  55. * This is a dummy clock, to be used as placeholder on
  56. * other mux clocks when a specific parent clock is not
  57. * yet implemented. It should be dropped when the driver
  58. * is complete.
  59. */
  60. pll6: pll6 {
  61. #clock-cells = <0>;
  62. compatible = "fixed-clock";
  63. clock-frequency = <0>;
  64. };
  65. cpu: cpu@01c20054 {
  66. #clock-cells = <0>;
  67. compatible = "allwinner,sun4i-cpu-clk";
  68. reg = <0x01c20054 0x4>;
  69. clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6>;
  70. };
  71. axi: axi@01c20054 {
  72. #clock-cells = <0>;
  73. compatible = "allwinner,sun4i-axi-clk";
  74. reg = <0x01c20054 0x4>;
  75. clocks = <&cpu>;
  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,sun7i-a20-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",
  90. "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
  91. "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
  92. "ahb_nand", "ahb_sdram", "ahb_ace",
  93. "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
  94. "ahb_spi2", "ahb_spi3", "ahb_sata",
  95. "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
  96. "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
  97. "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
  98. "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
  99. "ahb_de_fe1", "ahb_gmac", "ahb_mp",
  100. "ahb_mali";
  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,sun7i-a20-apb0-gates-clk";
  111. reg = <0x01c20068 0x4>;
  112. clocks = <&apb0>;
  113. clock-output-names = "apb0_codec", "apb0_spdif",
  114. "apb0_ac97", "apb0_iis0", "apb0_iis1",
  115. "apb0_pio", "apb0_ir0", "apb0_ir1",
  116. "apb0_iis2", "apb0_keypad";
  117. };
  118. apb1_mux: apb1_mux@01c20058 {
  119. #clock-cells = <0>;
  120. compatible = "allwinner,sun4i-apb1-mux-clk";
  121. reg = <0x01c20058 0x4>;
  122. clocks = <&osc24M>, <&pll6>, <&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,sun7i-a20-apb1-gates-clk";
  133. reg = <0x01c2006c 0x4>;
  134. clocks = <&apb1>;
  135. clock-output-names = "apb1_i2c0", "apb1_i2c1",
  136. "apb1_i2c2", "apb1_i2c3", "apb1_can",
  137. "apb1_scr", "apb1_ps20", "apb1_ps21",
  138. "apb1_i2c4", "apb1_uart0", "apb1_uart1",
  139. "apb1_uart2", "apb1_uart3", "apb1_uart4",
  140. "apb1_uart5", "apb1_uart6", "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 = <0 55 1>;
  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. pio: pinctrl@01c20800 {
  163. compatible = "allwinner,sun7i-a20-pinctrl";
  164. reg = <0x01c20800 0x400>;
  165. interrupts = <0 28 1>;
  166. clocks = <&apb0_gates 5>;
  167. gpio-controller;
  168. interrupt-controller;
  169. #address-cells = <1>;
  170. #size-cells = <0>;
  171. #gpio-cells = <3>;
  172. uart0_pins_a: uart0@0 {
  173. allwinner,pins = "PB22", "PB23";
  174. allwinner,function = "uart0";
  175. allwinner,drive = <0>;
  176. allwinner,pull = <0>;
  177. };
  178. uart6_pins_a: uart6@0 {
  179. allwinner,pins = "PI12", "PI13";
  180. allwinner,function = "uart6";
  181. allwinner,drive = <0>;
  182. allwinner,pull = <0>;
  183. };
  184. uart7_pins_a: uart7@0 {
  185. allwinner,pins = "PI20", "PI21";
  186. allwinner,function = "uart7";
  187. allwinner,drive = <0>;
  188. allwinner,pull = <0>;
  189. };
  190. emac_pins_a: emac0@0 {
  191. allwinner,pins = "PA0", "PA1", "PA2",
  192. "PA3", "PA4", "PA5", "PA6",
  193. "PA7", "PA8", "PA9", "PA10",
  194. "PA11", "PA12", "PA13", "PA14",
  195. "PA15", "PA16";
  196. allwinner,function = "emac";
  197. allwinner,drive = <0>;
  198. allwinner,pull = <0>;
  199. };
  200. };
  201. timer@01c20c00 {
  202. compatible = "allwinner,sun4i-timer";
  203. reg = <0x01c20c00 0x90>;
  204. interrupts = <0 22 1>,
  205. <0 23 1>,
  206. <0 24 1>,
  207. <0 25 1>,
  208. <0 67 1>,
  209. <0 68 1>;
  210. clocks = <&osc24M>;
  211. };
  212. wdt: watchdog@01c20c90 {
  213. compatible = "allwinner,sun4i-wdt";
  214. reg = <0x01c20c90 0x10>;
  215. };
  216. uart0: serial@01c28000 {
  217. compatible = "snps,dw-apb-uart";
  218. reg = <0x01c28000 0x400>;
  219. interrupts = <0 1 1>;
  220. reg-shift = <2>;
  221. reg-io-width = <4>;
  222. clocks = <&apb1_gates 16>;
  223. status = "disabled";
  224. };
  225. uart1: serial@01c28400 {
  226. compatible = "snps,dw-apb-uart";
  227. reg = <0x01c28400 0x400>;
  228. interrupts = <0 2 1>;
  229. reg-shift = <2>;
  230. reg-io-width = <4>;
  231. clocks = <&apb1_gates 17>;
  232. status = "disabled";
  233. };
  234. uart2: serial@01c28800 {
  235. compatible = "snps,dw-apb-uart";
  236. reg = <0x01c28800 0x400>;
  237. interrupts = <0 3 1>;
  238. reg-shift = <2>;
  239. reg-io-width = <4>;
  240. clocks = <&apb1_gates 18>;
  241. status = "disabled";
  242. };
  243. uart3: serial@01c28c00 {
  244. compatible = "snps,dw-apb-uart";
  245. reg = <0x01c28c00 0x400>;
  246. interrupts = <0 4 1>;
  247. reg-shift = <2>;
  248. reg-io-width = <4>;
  249. clocks = <&apb1_gates 19>;
  250. status = "disabled";
  251. };
  252. uart4: serial@01c29000 {
  253. compatible = "snps,dw-apb-uart";
  254. reg = <0x01c29000 0x400>;
  255. interrupts = <0 17 1>;
  256. reg-shift = <2>;
  257. reg-io-width = <4>;
  258. clocks = <&apb1_gates 20>;
  259. status = "disabled";
  260. };
  261. uart5: serial@01c29400 {
  262. compatible = "snps,dw-apb-uart";
  263. reg = <0x01c29400 0x400>;
  264. interrupts = <0 18 1>;
  265. reg-shift = <2>;
  266. reg-io-width = <4>;
  267. clocks = <&apb1_gates 21>;
  268. status = "disabled";
  269. };
  270. uart6: serial@01c29800 {
  271. compatible = "snps,dw-apb-uart";
  272. reg = <0x01c29800 0x400>;
  273. interrupts = <0 19 1>;
  274. reg-shift = <2>;
  275. reg-io-width = <4>;
  276. clocks = <&apb1_gates 22>;
  277. status = "disabled";
  278. };
  279. uart7: serial@01c29c00 {
  280. compatible = "snps,dw-apb-uart";
  281. reg = <0x01c29c00 0x400>;
  282. interrupts = <0 20 1>;
  283. reg-shift = <2>;
  284. reg-io-width = <4>;
  285. clocks = <&apb1_gates 23>;
  286. status = "disabled";
  287. };
  288. gic: interrupt-controller@01c81000 {
  289. compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
  290. reg = <0x01c81000 0x1000>,
  291. <0x01c82000 0x1000>,
  292. <0x01c84000 0x2000>,
  293. <0x01c86000 0x2000>;
  294. interrupt-controller;
  295. #interrupt-cells = <3>;
  296. interrupts = <1 9 0xf04>;
  297. };
  298. };
  299. };