sun5i-a13.dtsi 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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. 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. intc: interrupt-controller@01c20400 {
  147. compatible = "allwinner,sun4i-ic";
  148. reg = <0x01c20400 0x400>;
  149. interrupt-controller;
  150. #interrupt-cells = <1>;
  151. };
  152. pio: pinctrl@01c20800 {
  153. compatible = "allwinner,sun5i-a13-pinctrl";
  154. reg = <0x01c20800 0x400>;
  155. clocks = <&apb0_gates 5>;
  156. gpio-controller;
  157. #address-cells = <1>;
  158. #size-cells = <0>;
  159. #gpio-cells = <3>;
  160. uart1_pins_a: uart1@0 {
  161. allwinner,pins = "PE10", "PE11";
  162. allwinner,function = "uart1";
  163. allwinner,drive = <0>;
  164. allwinner,pull = <0>;
  165. };
  166. uart1_pins_b: uart1@1 {
  167. allwinner,pins = "PG3", "PG4";
  168. allwinner,function = "uart1";
  169. allwinner,drive = <0>;
  170. allwinner,pull = <0>;
  171. };
  172. };
  173. timer@01c20c00 {
  174. compatible = "allwinner,sun4i-timer";
  175. reg = <0x01c20c00 0x90>;
  176. interrupts = <22>;
  177. clocks = <&osc24M>;
  178. };
  179. wdt: watchdog@01c20c90 {
  180. compatible = "allwinner,sun4i-wdt";
  181. reg = <0x01c20c90 0x10>;
  182. };
  183. uart1: serial@01c28400 {
  184. compatible = "snps,dw-apb-uart";
  185. reg = <0x01c28400 0x400>;
  186. interrupts = <2>;
  187. reg-shift = <2>;
  188. reg-io-width = <4>;
  189. clocks = <&apb1_gates 17>;
  190. status = "disabled";
  191. };
  192. uart3: serial@01c28c00 {
  193. compatible = "snps,dw-apb-uart";
  194. reg = <0x01c28c00 0x400>;
  195. interrupts = <4>;
  196. reg-shift = <2>;
  197. reg-io-width = <4>;
  198. clocks = <&apb1_gates 19>;
  199. status = "disabled";
  200. };
  201. };
  202. };