sun5i-a10s.dtsi 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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,sun4i-ahb-gates-clk";
  85. reg = <0x01c20060 0x8>;
  86. clocks = <&ahb>;
  87. clock-output-names = "ahb_usb0", "ahb_ehci0",
  88. "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss",
  89. "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1",
  90. "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand",
  91. "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts",
  92. "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3",
  93. "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve",
  94. "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0",
  95. "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi",
  96. "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
  97. "ahb_de_fe1", "ahb_mp", "ahb_mali400";
  98. };
  99. apb0: apb0@01c20054 {
  100. #clock-cells = <0>;
  101. compatible = "allwinner,sun4i-apb0-clk";
  102. reg = <0x01c20054 0x4>;
  103. clocks = <&ahb>;
  104. };
  105. apb0_gates: apb0_gates@01c20068 {
  106. #clock-cells = <1>;
  107. compatible = "allwinner,sun4i-apb0-gates-clk";
  108. reg = <0x01c20068 0x4>;
  109. clocks = <&apb0>;
  110. clock-output-names = "apb0_codec", "apb0_spdif",
  111. "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0",
  112. "apb0_ir1", "apb0_keypad";
  113. };
  114. /* dummy is pll62 */
  115. apb1_mux: apb1_mux@01c20058 {
  116. #clock-cells = <0>;
  117. compatible = "allwinner,sun4i-apb1-mux-clk";
  118. reg = <0x01c20058 0x4>;
  119. clocks = <&osc24M>, <&dummy>, <&osc32k>;
  120. };
  121. apb1: apb1@01c20058 {
  122. #clock-cells = <0>;
  123. compatible = "allwinner,sun4i-apb1-clk";
  124. reg = <0x01c20058 0x4>;
  125. clocks = <&apb1_mux>;
  126. };
  127. apb1_gates: apb1_gates@01c2006c {
  128. #clock-cells = <1>;
  129. compatible = "allwinner,sun4i-apb1-gates-clk";
  130. reg = <0x01c2006c 0x4>;
  131. clocks = <&apb1>;
  132. clock-output-names = "apb1_i2c0", "apb1_i2c1",
  133. "apb1_i2c2", "apb1_can", "apb1_scr",
  134. "apb1_ps20", "apb1_ps21", "apb1_uart0",
  135. "apb1_uart1", "apb1_uart2", "apb1_uart3",
  136. "apb1_uart4", "apb1_uart5", "apb1_uart6",
  137. "apb1_uart7";
  138. };
  139. };
  140. soc@01c20000 {
  141. compatible = "simple-bus";
  142. #address-cells = <1>;
  143. #size-cells = <1>;
  144. reg = <0x01c20000 0x300000>;
  145. ranges;
  146. emac: ethernet@01c0b000 {
  147. compatible = "allwinner,sun4i-emac";
  148. reg = <0x01c0b000 0x1000>;
  149. interrupts = <55>;
  150. clocks = <&ahb_gates 17>;
  151. status = "disabled";
  152. };
  153. mdio@01c0b080 {
  154. compatible = "allwinner,sun4i-mdio";
  155. reg = <0x01c0b080 0x14>;
  156. status = "disabled";
  157. #address-cells = <1>;
  158. #size-cells = <0>;
  159. };
  160. intc: interrupt-controller@01c20400 {
  161. compatible = "allwinner,sun4i-ic";
  162. reg = <0x01c20400 0x400>;
  163. interrupt-controller;
  164. #interrupt-cells = <1>;
  165. };
  166. pio: pinctrl@01c20800 {
  167. compatible = "allwinner,sun5i-a10s-pinctrl";
  168. reg = <0x01c20800 0x400>;
  169. interrupts = <28>;
  170. clocks = <&apb0_gates 5>;
  171. gpio-controller;
  172. interrupt-controller;
  173. #address-cells = <1>;
  174. #size-cells = <0>;
  175. #gpio-cells = <3>;
  176. uart0_pins_a: uart0@0 {
  177. allwinner,pins = "PB19", "PB20";
  178. allwinner,function = "uart0";
  179. allwinner,drive = <0>;
  180. allwinner,pull = <0>;
  181. };
  182. uart2_pins_a: uart2@0 {
  183. allwinner,pins = "PC18", "PC19";
  184. allwinner,function = "uart2";
  185. allwinner,drive = <0>;
  186. allwinner,pull = <0>;
  187. };
  188. uart3_pins_a: uart3@0 {
  189. allwinner,pins = "PG9", "PG10";
  190. allwinner,function = "uart3";
  191. allwinner,drive = <0>;
  192. allwinner,pull = <0>;
  193. };
  194. emac_pins_a: emac0@0 {
  195. allwinner,pins = "PA0", "PA1", "PA2",
  196. "PA3", "PA4", "PA5", "PA6",
  197. "PA7", "PA8", "PA9", "PA10",
  198. "PA11", "PA12", "PA13", "PA14",
  199. "PA15", "PA16";
  200. allwinner,function = "emac";
  201. allwinner,drive = <0>;
  202. allwinner,pull = <0>;
  203. };
  204. };
  205. timer@01c20c00 {
  206. compatible = "allwinner,sun4i-timer";
  207. reg = <0x01c20c00 0x90>;
  208. interrupts = <22>;
  209. clocks = <&osc24M>;
  210. };
  211. wdt: watchdog@01c20c90 {
  212. compatible = "allwinner,sun4i-wdt";
  213. reg = <0x01c20c90 0x10>;
  214. };
  215. uart0: serial@01c28000 {
  216. compatible = "snps,dw-apb-uart";
  217. reg = <0x01c28000 0x400>;
  218. interrupts = <1>;
  219. reg-shift = <2>;
  220. reg-io-width = <4>;
  221. clocks = <&apb1_gates 16>;
  222. status = "disabled";
  223. };
  224. uart1: serial@01c28400 {
  225. compatible = "snps,dw-apb-uart";
  226. reg = <0x01c28400 0x400>;
  227. interrupts = <2>;
  228. reg-shift = <2>;
  229. reg-io-width = <4>;
  230. clocks = <&apb1_gates 17>;
  231. status = "disabled";
  232. };
  233. uart2: serial@01c28800 {
  234. compatible = "snps,dw-apb-uart";
  235. reg = <0x01c28800 0x400>;
  236. interrupts = <3>;
  237. reg-shift = <2>;
  238. reg-io-width = <4>;
  239. clocks = <&apb1_gates 18>;
  240. status = "disabled";
  241. };
  242. uart3: serial@01c28c00 {
  243. compatible = "snps,dw-apb-uart";
  244. reg = <0x01c28c00 0x400>;
  245. interrupts = <4>;
  246. reg-shift = <2>;
  247. reg-io-width = <4>;
  248. clocks = <&apb1_gates 19>;
  249. status = "disabled";
  250. };
  251. };
  252. };