sun5i-a13.dtsi 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. /*
  2. * Copyright 2012 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. device_type = "cpu";
  19. compatible = "arm,cortex-a8";
  20. reg = <0x0>;
  21. };
  22. };
  23. memory {
  24. reg = <0x40000000 0x20000000>;
  25. };
  26. clocks {
  27. #address-cells = <1>;
  28. #size-cells = <1>;
  29. ranges;
  30. /*
  31. * This is a dummy clock, to be used as placeholder on
  32. * other mux clocks when a specific parent clock is not
  33. * yet implemented. It should be dropped when the driver
  34. * is complete.
  35. */
  36. dummy: dummy {
  37. #clock-cells = <0>;
  38. compatible = "fixed-clock";
  39. clock-frequency = <0>;
  40. };
  41. osc24M: osc24M@01c20050 {
  42. #clock-cells = <0>;
  43. compatible = "allwinner,sun4i-osc-clk";
  44. reg = <0x01c20050 0x4>;
  45. clock-frequency = <24000000>;
  46. };
  47. osc32k: osc32k {
  48. #clock-cells = <0>;
  49. compatible = "fixed-clock";
  50. clock-frequency = <32768>;
  51. };
  52. pll1: pll1@01c20000 {
  53. #clock-cells = <0>;
  54. compatible = "allwinner,sun4i-pll1-clk";
  55. reg = <0x01c20000 0x4>;
  56. clocks = <&osc24M>;
  57. };
  58. /* dummy is 200M */
  59. cpu: cpu@01c20054 {
  60. #clock-cells = <0>;
  61. compatible = "allwinner,sun4i-cpu-clk";
  62. reg = <0x01c20054 0x4>;
  63. clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
  64. };
  65. axi: axi@01c20054 {
  66. #clock-cells = <0>;
  67. compatible = "allwinner,sun4i-axi-clk";
  68. reg = <0x01c20054 0x4>;
  69. clocks = <&cpu>;
  70. };
  71. axi_gates: axi_gates@01c2005c {
  72. #clock-cells = <1>;
  73. compatible = "allwinner,sun4i-axi-gates-clk";
  74. reg = <0x01c2005c 0x4>;
  75. clocks = <&axi>;
  76. clock-output-names = "axi_dram";
  77. };
  78. ahb: ahb@01c20054 {
  79. #clock-cells = <0>;
  80. compatible = "allwinner,sun4i-ahb-clk";
  81. reg = <0x01c20054 0x4>;
  82. clocks = <&axi>;
  83. };
  84. ahb_gates: ahb_gates@01c20060 {
  85. #clock-cells = <1>;
  86. compatible = "allwinner,sun4i-ahb-gates-clk";
  87. reg = <0x01c20060 0x8>;
  88. clocks = <&ahb>;
  89. clock-output-names = "ahb_usb0", "ahb_ehci0",
  90. "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss",
  91. "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1",
  92. "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand",
  93. "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts",
  94. "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3",
  95. "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve",
  96. "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0",
  97. "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi",
  98. "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
  99. "ahb_de_fe1", "ahb_mp", "ahb_mali400";
  100. };
  101. apb0: apb0@01c20054 {
  102. #clock-cells = <0>;
  103. compatible = "allwinner,sun4i-apb0-clk";
  104. reg = <0x01c20054 0x4>;
  105. clocks = <&ahb>;
  106. };
  107. apb0_gates: apb0_gates@01c20068 {
  108. #clock-cells = <1>;
  109. compatible = "allwinner,sun4i-apb0-gates-clk";
  110. reg = <0x01c20068 0x4>;
  111. clocks = <&apb0>;
  112. clock-output-names = "apb0_codec", "apb0_spdif",
  113. "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0",
  114. "apb0_ir1", "apb0_keypad";
  115. };
  116. /* dummy is pll62 */
  117. apb1_mux: apb1_mux@01c20058 {
  118. #clock-cells = <0>;
  119. compatible = "allwinner,sun4i-apb1-mux-clk";
  120. reg = <0x01c20058 0x4>;
  121. clocks = <&osc24M>, <&dummy>, <&osc32k>;
  122. };
  123. apb1: apb1@01c20058 {
  124. #clock-cells = <0>;
  125. compatible = "allwinner,sun4i-apb1-clk";
  126. reg = <0x01c20058 0x4>;
  127. clocks = <&apb1_mux>;
  128. };
  129. apb1_gates: apb1_gates@01c2006c {
  130. #clock-cells = <1>;
  131. compatible = "allwinner,sun4i-apb1-gates-clk";
  132. reg = <0x01c2006c 0x4>;
  133. clocks = <&apb1>;
  134. clock-output-names = "apb1_i2c0", "apb1_i2c1",
  135. "apb1_i2c2", "apb1_can", "apb1_scr",
  136. "apb1_ps20", "apb1_ps21", "apb1_uart0",
  137. "apb1_uart1", "apb1_uart2", "apb1_uart3",
  138. "apb1_uart4", "apb1_uart5", "apb1_uart6",
  139. "apb1_uart7";
  140. };
  141. };
  142. soc@01c20000 {
  143. compatible = "simple-bus";
  144. #address-cells = <1>;
  145. #size-cells = <1>;
  146. reg = <0x01c20000 0x300000>;
  147. ranges;
  148. intc: interrupt-controller@01c20400 {
  149. compatible = "allwinner,sun4i-ic";
  150. reg = <0x01c20400 0x400>;
  151. interrupt-controller;
  152. #interrupt-cells = <1>;
  153. };
  154. pio: pinctrl@01c20800 {
  155. compatible = "allwinner,sun5i-a13-pinctrl";
  156. reg = <0x01c20800 0x400>;
  157. clocks = <&apb0_gates 5>;
  158. gpio-controller;
  159. #address-cells = <1>;
  160. #size-cells = <0>;
  161. #gpio-cells = <3>;
  162. uart1_pins_a: uart1@0 {
  163. allwinner,pins = "PE10", "PE11";
  164. allwinner,function = "uart1";
  165. allwinner,drive = <0>;
  166. allwinner,pull = <0>;
  167. };
  168. uart1_pins_b: uart1@1 {
  169. allwinner,pins = "PG3", "PG4";
  170. allwinner,function = "uart1";
  171. allwinner,drive = <0>;
  172. allwinner,pull = <0>;
  173. };
  174. };
  175. timer@01c20c00 {
  176. compatible = "allwinner,sun4i-timer";
  177. reg = <0x01c20c00 0x90>;
  178. interrupts = <22>;
  179. clocks = <&osc24M>;
  180. };
  181. wdt: watchdog@01c20c90 {
  182. compatible = "allwinner,sun4i-wdt";
  183. reg = <0x01c20c90 0x10>;
  184. };
  185. uart1: serial@01c28400 {
  186. compatible = "snps,dw-apb-uart";
  187. reg = <0x01c28400 0x400>;
  188. interrupts = <2>;
  189. reg-shift = <2>;
  190. reg-io-width = <4>;
  191. clocks = <&apb1_gates 17>;
  192. status = "disabled";
  193. };
  194. uart3: serial@01c28c00 {
  195. compatible = "snps,dw-apb-uart";
  196. reg = <0x01c28c00 0x400>;
  197. interrupts = <4>;
  198. reg-shift = <2>;
  199. reg-io-width = <4>;
  200. clocks = <&apb1_gates 19>;
  201. status = "disabled";
  202. };
  203. };
  204. };