sun6i-a31.dtsi 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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 0x8>;
  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 1>, <0 15 1>, <0 16 1>, <0 17 1>;
  171. clocks = <&apb1_gates 5>;
  172. gpio-controller;
  173. interrupt-controller;
  174. #address-cells = <1>;
  175. #size-cells = <0>;
  176. #gpio-cells = <3>;
  177. uart0_pins_a: uart0@0 {
  178. allwinner,pins = "PH20", "PH21";
  179. allwinner,function = "uart0";
  180. allwinner,drive = <0>;
  181. allwinner,pull = <0>;
  182. };
  183. };
  184. timer@01c20c00 {
  185. compatible = "allwinner,sun4i-timer";
  186. reg = <0x01c20c00 0xa0>;
  187. interrupts = <0 18 1>,
  188. <0 19 1>,
  189. <0 20 1>,
  190. <0 21 1>,
  191. <0 22 1>;
  192. clocks = <&osc24M>;
  193. };
  194. wdt1: watchdog@01c20ca0 {
  195. compatible = "allwinner,sun6i-wdt";
  196. reg = <0x01c20ca0 0x20>;
  197. };
  198. uart0: serial@01c28000 {
  199. compatible = "snps,dw-apb-uart";
  200. reg = <0x01c28000 0x400>;
  201. interrupts = <0 0 1>;
  202. reg-shift = <2>;
  203. reg-io-width = <4>;
  204. clocks = <&apb2_gates 16>;
  205. status = "disabled";
  206. };
  207. uart1: serial@01c28400 {
  208. compatible = "snps,dw-apb-uart";
  209. reg = <0x01c28400 0x400>;
  210. interrupts = <0 1 1>;
  211. reg-shift = <2>;
  212. reg-io-width = <4>;
  213. clocks = <&apb2_gates 17>;
  214. status = "disabled";
  215. };
  216. uart2: serial@01c28800 {
  217. compatible = "snps,dw-apb-uart";
  218. reg = <0x01c28800 0x400>;
  219. interrupts = <0 2 1>;
  220. reg-shift = <2>;
  221. reg-io-width = <4>;
  222. clocks = <&apb2_gates 18>;
  223. status = "disabled";
  224. };
  225. uart3: serial@01c28c00 {
  226. compatible = "snps,dw-apb-uart";
  227. reg = <0x01c28c00 0x400>;
  228. interrupts = <0 3 1>;
  229. reg-shift = <2>;
  230. reg-io-width = <4>;
  231. clocks = <&apb2_gates 19>;
  232. status = "disabled";
  233. };
  234. uart4: serial@01c29000 {
  235. compatible = "snps,dw-apb-uart";
  236. reg = <0x01c29000 0x400>;
  237. interrupts = <0 4 1>;
  238. reg-shift = <2>;
  239. reg-io-width = <4>;
  240. clocks = <&apb2_gates 20>;
  241. status = "disabled";
  242. };
  243. uart5: serial@01c29400 {
  244. compatible = "snps,dw-apb-uart";
  245. reg = <0x01c29400 0x400>;
  246. interrupts = <0 5 1>;
  247. reg-shift = <2>;
  248. reg-io-width = <4>;
  249. clocks = <&apb2_gates 21>;
  250. status = "disabled";
  251. };
  252. gic: interrupt-controller@01c81000 {
  253. compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
  254. reg = <0x01c81000 0x1000>,
  255. <0x01c82000 0x1000>,
  256. <0x01c84000 0x2000>,
  257. <0x01c86000 0x2000>;
  258. interrupt-controller;
  259. #interrupt-cells = <3>;
  260. interrupts = <1 9 0xf04>;
  261. };
  262. };
  263. };