sun5i-a10s.dtsi 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  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 = <&intc>;
  16. cpus {
  17. cpu@0 {
  18. compatible = "arm,cortex-a8";
  19. };
  20. };
  21. memory {
  22. reg = <0x40000000 0x20000000>;
  23. };
  24. clocks {
  25. #address-cells = <1>;
  26. #size-cells = <1>;
  27. ranges;
  28. /*
  29. * This is a dummy clock, to be used as placeholder on
  30. * other mux clocks when a specific parent clock is not
  31. * yet implemented. It should be dropped when the driver
  32. * is complete.
  33. */
  34. dummy: dummy {
  35. #clock-cells = <0>;
  36. compatible = "fixed-clock";
  37. clock-frequency = <0>;
  38. };
  39. osc24M: osc24M@01c20050 {
  40. #clock-cells = <0>;
  41. compatible = "allwinner,sun4i-osc-clk";
  42. reg = <0x01c20050 0x4>;
  43. clock-frequency = <24000000>;
  44. };
  45. osc32k: osc32k {
  46. #clock-cells = <0>;
  47. compatible = "fixed-clock";
  48. clock-frequency = <32768>;
  49. };
  50. pll1: pll1@01c20000 {
  51. #clock-cells = <0>;
  52. compatible = "allwinner,sun4i-pll1-clk";
  53. reg = <0x01c20000 0x4>;
  54. clocks = <&osc24M>;
  55. };
  56. /* dummy is 200M */
  57. cpu: cpu@01c20054 {
  58. #clock-cells = <0>;
  59. compatible = "allwinner,sun4i-cpu-clk";
  60. reg = <0x01c20054 0x4>;
  61. clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
  62. };
  63. axi: axi@01c20054 {
  64. #clock-cells = <0>;
  65. compatible = "allwinner,sun4i-axi-clk";
  66. reg = <0x01c20054 0x4>;
  67. clocks = <&cpu>;
  68. };
  69. axi_gates: axi_gates@01c2005c {
  70. #clock-cells = <1>;
  71. compatible = "allwinner,sun4i-axi-gates-clk";
  72. reg = <0x01c2005c 0x4>;
  73. clocks = <&axi>;
  74. clock-output-names = "axi_dram";
  75. };
  76. ahb: ahb@01c20054 {
  77. #clock-cells = <0>;
  78. compatible = "allwinner,sun4i-ahb-clk";
  79. reg = <0x01c20054 0x4>;
  80. clocks = <&axi>;
  81. };
  82. ahb_gates: ahb_gates@01c20060 {
  83. #clock-cells = <1>;
  84. compatible = "allwinner,sun5i-a10s-ahb-gates-clk";
  85. reg = <0x01c20060 0x8>;
  86. clocks = <&ahb>;
  87. clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci",
  88. "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
  89. "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram",
  90. "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
  91. "ahb_spi2", "ahb_gps", "ahb_stimer", "ahb_ve",
  92. "ahb_tve", "ahb_lcd", "ahb_csi", "ahb_hdmi",
  93. "ahb_de_be", "ahb_de_fe", "ahb_iep", "ahb_mali400";
  94. };
  95. apb0: apb0@01c20054 {
  96. #clock-cells = <0>;
  97. compatible = "allwinner,sun4i-apb0-clk";
  98. reg = <0x01c20054 0x4>;
  99. clocks = <&ahb>;
  100. };
  101. apb0_gates: apb0_gates@01c20068 {
  102. #clock-cells = <1>;
  103. compatible = "allwinner,sun5i-a10s-apb0-gates-clk";
  104. reg = <0x01c20068 0x4>;
  105. clocks = <&apb0>;
  106. clock-output-names = "apb0_codec", "apb0_iis", "apb0_pio",
  107. "apb0_ir", "apb0_keypad";
  108. };
  109. /* dummy is pll62 */
  110. apb1_mux: apb1_mux@01c20058 {
  111. #clock-cells = <0>;
  112. compatible = "allwinner,sun4i-apb1-mux-clk";
  113. reg = <0x01c20058 0x4>;
  114. clocks = <&osc24M>, <&dummy>, <&osc32k>;
  115. };
  116. apb1: apb1@01c20058 {
  117. #clock-cells = <0>;
  118. compatible = "allwinner,sun4i-apb1-clk";
  119. reg = <0x01c20058 0x4>;
  120. clocks = <&apb1_mux>;
  121. };
  122. apb1_gates: apb1_gates@01c2006c {
  123. #clock-cells = <1>;
  124. compatible = "allwinner,sun5i-a10s-apb1-gates-clk";
  125. reg = <0x01c2006c 0x4>;
  126. clocks = <&apb1>;
  127. clock-output-names = "apb1_i2c0", "apb1_i2c1",
  128. "apb1_i2c2", "apb1_uart0", "apb1_uart1",
  129. "apb1_uart2", "apb1_uart3";
  130. };
  131. };
  132. soc@01c00000 {
  133. compatible = "simple-bus";
  134. #address-cells = <1>;
  135. #size-cells = <1>;
  136. ranges;
  137. emac: ethernet@01c0b000 {
  138. compatible = "allwinner,sun4i-emac";
  139. reg = <0x01c0b000 0x1000>;
  140. interrupts = <55>;
  141. clocks = <&ahb_gates 17>;
  142. status = "disabled";
  143. };
  144. mdio@01c0b080 {
  145. compatible = "allwinner,sun4i-mdio";
  146. reg = <0x01c0b080 0x14>;
  147. status = "disabled";
  148. #address-cells = <1>;
  149. #size-cells = <0>;
  150. };
  151. intc: interrupt-controller@01c20400 {
  152. compatible = "allwinner,sun4i-ic";
  153. reg = <0x01c20400 0x400>;
  154. interrupt-controller;
  155. #interrupt-cells = <1>;
  156. };
  157. pio: pinctrl@01c20800 {
  158. compatible = "allwinner,sun5i-a10s-pinctrl";
  159. reg = <0x01c20800 0x400>;
  160. interrupts = <28>;
  161. clocks = <&apb0_gates 5>;
  162. gpio-controller;
  163. interrupt-controller;
  164. #address-cells = <1>;
  165. #size-cells = <0>;
  166. #gpio-cells = <3>;
  167. uart0_pins_a: uart0@0 {
  168. allwinner,pins = "PB19", "PB20";
  169. allwinner,function = "uart0";
  170. allwinner,drive = <0>;
  171. allwinner,pull = <0>;
  172. };
  173. uart2_pins_a: uart2@0 {
  174. allwinner,pins = "PC18", "PC19";
  175. allwinner,function = "uart2";
  176. allwinner,drive = <0>;
  177. allwinner,pull = <0>;
  178. };
  179. uart3_pins_a: uart3@0 {
  180. allwinner,pins = "PG9", "PG10";
  181. allwinner,function = "uart3";
  182. allwinner,drive = <0>;
  183. allwinner,pull = <0>;
  184. };
  185. emac_pins_a: emac0@0 {
  186. allwinner,pins = "PA0", "PA1", "PA2",
  187. "PA3", "PA4", "PA5", "PA6",
  188. "PA7", "PA8", "PA9", "PA10",
  189. "PA11", "PA12", "PA13", "PA14",
  190. "PA15", "PA16";
  191. allwinner,function = "emac";
  192. allwinner,drive = <0>;
  193. allwinner,pull = <0>;
  194. };
  195. i2c0_pins_a: i2c0@0 {
  196. allwinner,pins = "PB0", "PB1";
  197. allwinner,function = "i2c0";
  198. allwinner,drive = <0>;
  199. allwinner,pull = <0>;
  200. };
  201. i2c1_pins_a: i2c1@0 {
  202. allwinner,pins = "PB15", "PB16";
  203. allwinner,function = "i2c1";
  204. allwinner,drive = <0>;
  205. allwinner,pull = <0>;
  206. };
  207. i2c2_pins_a: i2c2@0 {
  208. allwinner,pins = "PB17", "PB18";
  209. allwinner,function = "i2c2";
  210. allwinner,drive = <0>;
  211. allwinner,pull = <0>;
  212. };
  213. };
  214. timer@01c20c00 {
  215. compatible = "allwinner,sun4i-timer";
  216. reg = <0x01c20c00 0x90>;
  217. interrupts = <22>;
  218. clocks = <&osc24M>;
  219. };
  220. wdt: watchdog@01c20c90 {
  221. compatible = "allwinner,sun4i-wdt";
  222. reg = <0x01c20c90 0x10>;
  223. };
  224. uart0: serial@01c28000 {
  225. compatible = "snps,dw-apb-uart";
  226. reg = <0x01c28000 0x400>;
  227. interrupts = <1>;
  228. reg-shift = <2>;
  229. reg-io-width = <4>;
  230. clocks = <&apb1_gates 16>;
  231. status = "disabled";
  232. };
  233. uart1: serial@01c28400 {
  234. compatible = "snps,dw-apb-uart";
  235. reg = <0x01c28400 0x400>;
  236. interrupts = <2>;
  237. reg-shift = <2>;
  238. reg-io-width = <4>;
  239. clocks = <&apb1_gates 17>;
  240. status = "disabled";
  241. };
  242. uart2: serial@01c28800 {
  243. compatible = "snps,dw-apb-uart";
  244. reg = <0x01c28800 0x400>;
  245. interrupts = <3>;
  246. reg-shift = <2>;
  247. reg-io-width = <4>;
  248. clocks = <&apb1_gates 18>;
  249. status = "disabled";
  250. };
  251. uart3: serial@01c28c00 {
  252. compatible = "snps,dw-apb-uart";
  253. reg = <0x01c28c00 0x400>;
  254. interrupts = <4>;
  255. reg-shift = <2>;
  256. reg-io-width = <4>;
  257. clocks = <&apb1_gates 19>;
  258. status = "disabled";
  259. };
  260. i2c0: i2c@01c2ac00 {
  261. #address-cells = <1>;
  262. #size-cells = <0>;
  263. compatible = "allwinner,sun4i-i2c";
  264. reg = <0x01c2ac00 0x400>;
  265. interrupts = <7>;
  266. clocks = <&apb1_gates 0>;
  267. clock-frequency = <100000>;
  268. status = "disabled";
  269. };
  270. i2c1: i2c@01c2b000 {
  271. #address-cells = <1>;
  272. #size-cells = <0>;
  273. compatible = "allwinner,sun4i-i2c";
  274. reg = <0x01c2b000 0x400>;
  275. interrupts = <8>;
  276. clocks = <&apb1_gates 1>;
  277. clock-frequency = <100000>;
  278. status = "disabled";
  279. };
  280. i2c2: i2c@01c2b400 {
  281. #address-cells = <1>;
  282. #size-cells = <0>;
  283. compatible = "allwinner,sun4i-i2c";
  284. reg = <0x01c2b400 0x400>;
  285. interrupts = <9>;
  286. clocks = <&apb1_gates 2>;
  287. clock-frequency = <100000>;
  288. status = "disabled";
  289. };
  290. };
  291. };