sun5i-a13.dtsi 5.4 KB

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