sun6i-a31.dtsi 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  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. cpu@2 {
  30. compatible = "arm,cortex-a7";
  31. device_type = "cpu";
  32. reg = <2>;
  33. };
  34. cpu@3 {
  35. compatible = "arm,cortex-a7";
  36. device_type = "cpu";
  37. reg = <3>;
  38. };
  39. };
  40. memory {
  41. reg = <0x40000000 0x80000000>;
  42. };
  43. clocks {
  44. #address-cells = <1>;
  45. #size-cells = <1>;
  46. ranges;
  47. osc24M: osc24M {
  48. #clock-cells = <0>;
  49. compatible = "fixed-clock";
  50. clock-frequency = <24000000>;
  51. };
  52. osc32k: osc32k {
  53. #clock-cells = <0>;
  54. compatible = "fixed-clock";
  55. clock-frequency = <32768>;
  56. };
  57. pll1: pll1@01c20000 {
  58. #clock-cells = <0>;
  59. compatible = "allwinner,sun6i-a31-pll1-clk";
  60. reg = <0x01c20000 0x4>;
  61. clocks = <&osc24M>;
  62. };
  63. /*
  64. * This is a dummy clock, to be used as placeholder on
  65. * other mux clocks when a specific parent clock is not
  66. * yet implemented. It should be dropped when the driver
  67. * is complete.
  68. */
  69. pll6: pll6 {
  70. #clock-cells = <0>;
  71. compatible = "fixed-clock";
  72. clock-frequency = <0>;
  73. };
  74. cpu: cpu@01c20050 {
  75. #clock-cells = <0>;
  76. compatible = "allwinner,sun4i-cpu-clk";
  77. reg = <0x01c20050 0x4>;
  78. /*
  79. * PLL1 is listed twice here.
  80. * While it looks suspicious, it's actually documented
  81. * that way both in the datasheet and in the code from
  82. * Allwinner.
  83. */
  84. clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll1>;
  85. };
  86. axi: axi@01c20050 {
  87. #clock-cells = <0>;
  88. compatible = "allwinner,sun4i-axi-clk";
  89. reg = <0x01c20050 0x4>;
  90. clocks = <&cpu>;
  91. };
  92. ahb1_mux: ahb1_mux@01c20054 {
  93. #clock-cells = <0>;
  94. compatible = "allwinner,sun6i-a31-ahb1-mux-clk";
  95. reg = <0x01c20054 0x4>;
  96. clocks = <&osc32k>, <&osc24M>, <&axi>, <&pll6>;
  97. };
  98. ahb1: ahb1@01c20054 {
  99. #clock-cells = <0>;
  100. compatible = "allwinner,sun4i-ahb-clk";
  101. reg = <0x01c20054 0x4>;
  102. clocks = <&ahb1_mux>;
  103. };
  104. ahb1_gates: ahb1_gates@01c20060 {
  105. #clock-cells = <1>;
  106. compatible = "allwinner,sun6i-a31-ahb1-gates-clk";
  107. reg = <0x01c20060 0x8>;
  108. clocks = <&ahb1>;
  109. clock-output-names = "ahb1_mipidsi", "ahb1_ss",
  110. "ahb1_dma", "ahb1_mmc0", "ahb1_mmc1",
  111. "ahb1_mmc2", "ahb1_mmc3", "ahb1_nand1",
  112. "ahb1_nand0", "ahb1_sdram",
  113. "ahb1_gmac", "ahb1_ts", "ahb1_hstimer",
  114. "ahb1_spi0", "ahb1_spi1", "ahb1_spi2",
  115. "ahb1_spi3", "ahb1_otg", "ahb1_ehci0",
  116. "ahb1_ehci1", "ahb1_ohci0",
  117. "ahb1_ohci1", "ahb1_ohci2", "ahb1_ve",
  118. "ahb1_lcd0", "ahb1_lcd1", "ahb1_csi",
  119. "ahb1_hdmi", "ahb1_de0", "ahb1_de1",
  120. "ahb1_fe0", "ahb1_fe1", "ahb1_mp",
  121. "ahb1_gpu", "ahb1_deu0", "ahb1_deu1",
  122. "ahb1_drc0", "ahb1_drc1";
  123. };
  124. apb1: apb1@01c20054 {
  125. #clock-cells = <0>;
  126. compatible = "allwinner,sun4i-apb0-clk";
  127. reg = <0x01c20054 0x4>;
  128. clocks = <&ahb1>;
  129. };
  130. apb1_gates: apb1_gates@01c20060 {
  131. #clock-cells = <1>;
  132. compatible = "allwinner,sun6i-a31-apb1-gates-clk";
  133. reg = <0x01c20068 0x4>;
  134. clocks = <&apb1>;
  135. clock-output-names = "apb1_codec", "apb1_digital_mic",
  136. "apb1_pio", "apb1_daudio0",
  137. "apb1_daudio1";
  138. };
  139. apb2_mux: apb2_mux@01c20058 {
  140. #clock-cells = <0>;
  141. compatible = "allwinner,sun4i-apb1-mux-clk";
  142. reg = <0x01c20058 0x4>;
  143. clocks = <&osc32k>, <&osc24M>, <&pll6>, <&pll6>;
  144. };
  145. apb2: apb2@01c20058 {
  146. #clock-cells = <0>;
  147. compatible = "allwinner,sun6i-a31-apb2-div-clk";
  148. reg = <0x01c20058 0x4>;
  149. clocks = <&apb2_mux>;
  150. };
  151. apb2_gates: apb2_gates@01c2006c {
  152. #clock-cells = <1>;
  153. compatible = "allwinner,sun6i-a31-apb2-gates-clk";
  154. reg = <0x01c2006c 0x4>;
  155. clocks = <&apb2>;
  156. clock-output-names = "apb2_i2c0", "apb2_i2c1",
  157. "apb2_i2c2", "apb2_i2c3", "apb2_uart0",
  158. "apb2_uart1", "apb2_uart2", "apb2_uart3",
  159. "apb2_uart4", "apb2_uart5";
  160. };
  161. };
  162. soc@01c00000 {
  163. compatible = "simple-bus";
  164. #address-cells = <1>;
  165. #size-cells = <1>;
  166. ranges;
  167. pio: pinctrl@01c20800 {
  168. compatible = "allwinner,sun6i-a31-pinctrl";
  169. reg = <0x01c20800 0x400>;
  170. interrupts = <0 11 4>,
  171. <0 15 4>,
  172. <0 16 4>,
  173. <0 17 4>;
  174. clocks = <&apb1_gates 5>;
  175. gpio-controller;
  176. interrupt-controller;
  177. #address-cells = <1>;
  178. #size-cells = <0>;
  179. #gpio-cells = <3>;
  180. uart0_pins_a: uart0@0 {
  181. allwinner,pins = "PH20", "PH21";
  182. allwinner,function = "uart0";
  183. allwinner,drive = <0>;
  184. allwinner,pull = <0>;
  185. };
  186. };
  187. timer@01c20c00 {
  188. compatible = "allwinner,sun4i-timer";
  189. reg = <0x01c20c00 0xa0>;
  190. interrupts = <0 18 4>,
  191. <0 19 4>,
  192. <0 20 4>,
  193. <0 21 4>,
  194. <0 22 4>;
  195. clocks = <&osc24M>;
  196. };
  197. wdt1: watchdog@01c20ca0 {
  198. compatible = "allwinner,sun6i-wdt";
  199. reg = <0x01c20ca0 0x20>;
  200. };
  201. uart0: serial@01c28000 {
  202. compatible = "snps,dw-apb-uart";
  203. reg = <0x01c28000 0x400>;
  204. interrupts = <0 0 4>;
  205. reg-shift = <2>;
  206. reg-io-width = <4>;
  207. clocks = <&apb2_gates 16>;
  208. status = "disabled";
  209. };
  210. uart1: serial@01c28400 {
  211. compatible = "snps,dw-apb-uart";
  212. reg = <0x01c28400 0x400>;
  213. interrupts = <0 1 4>;
  214. reg-shift = <2>;
  215. reg-io-width = <4>;
  216. clocks = <&apb2_gates 17>;
  217. status = "disabled";
  218. };
  219. uart2: serial@01c28800 {
  220. compatible = "snps,dw-apb-uart";
  221. reg = <0x01c28800 0x400>;
  222. interrupts = <0 2 4>;
  223. reg-shift = <2>;
  224. reg-io-width = <4>;
  225. clocks = <&apb2_gates 18>;
  226. status = "disabled";
  227. };
  228. uart3: serial@01c28c00 {
  229. compatible = "snps,dw-apb-uart";
  230. reg = <0x01c28c00 0x400>;
  231. interrupts = <0 3 4>;
  232. reg-shift = <2>;
  233. reg-io-width = <4>;
  234. clocks = <&apb2_gates 19>;
  235. status = "disabled";
  236. };
  237. uart4: serial@01c29000 {
  238. compatible = "snps,dw-apb-uart";
  239. reg = <0x01c29000 0x400>;
  240. interrupts = <0 4 4>;
  241. reg-shift = <2>;
  242. reg-io-width = <4>;
  243. clocks = <&apb2_gates 20>;
  244. status = "disabled";
  245. };
  246. uart5: serial@01c29400 {
  247. compatible = "snps,dw-apb-uart";
  248. reg = <0x01c29400 0x400>;
  249. interrupts = <0 5 4>;
  250. reg-shift = <2>;
  251. reg-io-width = <4>;
  252. clocks = <&apb2_gates 21>;
  253. status = "disabled";
  254. };
  255. gic: interrupt-controller@01c81000 {
  256. compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
  257. reg = <0x01c81000 0x1000>,
  258. <0x01c82000 0x1000>,
  259. <0x01c84000 0x2000>,
  260. <0x01c86000 0x2000>;
  261. interrupt-controller;
  262. #interrupt-cells = <3>;
  263. interrupts = <1 9 0xf04>;
  264. };
  265. };
  266. };