sun5i-a10s.dtsi 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. /*
  2. * Copyright 2013 Maxime Ripard
  3. *
  4. * Maxime Ripard <maxime.ripard@free-electrons.com>
  5. *
  6. * This file is dual-licensed: you can use it either under the terms
  7. * of the GPL or the X11 license, at your option. Note that this dual
  8. * licensing only applies to this file, and not this project as a
  9. * whole.
  10. *
  11. * a) This library is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License as
  13. * published by the Free Software Foundation; either version 2 of the
  14. * License, or (at your option) any later version.
  15. *
  16. * This library is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * Or, alternatively,
  22. *
  23. * b) Permission is hereby granted, free of charge, to any person
  24. * obtaining a copy of this software and associated documentation
  25. * files (the "Software"), to deal in the Software without
  26. * restriction, including without limitation the rights to use,
  27. * copy, modify, merge, publish, distribute, sublicense, and/or
  28. * sell copies of the Software, and to permit persons to whom the
  29. * Software is furnished to do so, subject to the following
  30. * conditions:
  31. *
  32. * The above copyright notice and this permission notice shall be
  33. * included in all copies or substantial portions of the Software.
  34. *
  35. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  36. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  37. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  38. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  39. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  40. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  41. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  42. * OTHER DEALINGS IN THE SOFTWARE.
  43. */
  44. #include "skeleton.dtsi"
  45. #include "sun5i.dtsi"
  46. #include <dt-bindings/dma/sun4i-a10.h>
  47. #include <dt-bindings/pinctrl/sun4i-a10.h>
  48. / {
  49. interrupt-parent = <&intc>;
  50. aliases {
  51. ethernet0 = &emac;
  52. };
  53. chosen {
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. ranges;
  57. framebuffer@0 {
  58. compatible = "allwinner,simple-framebuffer",
  59. "simple-framebuffer";
  60. allwinner,pipeline = "de_be0-lcd0-hdmi";
  61. clocks = <&pll3>, <&pll5 1>, <&ahb_gates 36>,
  62. <&ahb_gates 43>, <&ahb_gates 44>;
  63. status = "disabled";
  64. };
  65. framebuffer@1 {
  66. compatible = "allwinner,simple-framebuffer",
  67. "simple-framebuffer";
  68. allwinner,pipeline = "de_be0-lcd0";
  69. clocks = <&pll3>, <&pll5 1>, <&ahb_gates 36>,
  70. <&ahb_gates 44>;
  71. status = "disabled";
  72. };
  73. framebuffer@2 {
  74. compatible = "allwinner,simple-framebuffer",
  75. "simple-framebuffer";
  76. allwinner,pipeline = "de_be0-lcd0-tve0";
  77. clocks = <&pll3>, <&pll5 1>, <&ahb_gates 34>,
  78. <&ahb_gates 36>, <&ahb_gates 44>;
  79. status = "disabled";
  80. };
  81. };
  82. clocks {
  83. ahb_gates: clk@01c20060 {
  84. #clock-cells = <1>;
  85. compatible = "allwinner,sun5i-a10s-ahb-gates-clk";
  86. reg = <0x01c20060 0x8>;
  87. clocks = <&ahb>;
  88. clock-indices = <0>, <1>,
  89. <2>, <5>, <6>,
  90. <7>, <8>, <9>,
  91. <10>, <13>,
  92. <14>, <17>, <18>,
  93. <20>, <21>, <22>,
  94. <26>, <28>, <32>,
  95. <34>, <36>, <40>,
  96. <43>, <44>,
  97. <46>, <51>,
  98. <52>;
  99. clock-output-names = "ahb_usbotg", "ahb_ehci",
  100. "ahb_ohci", "ahb_ss", "ahb_dma",
  101. "ahb_bist", "ahb_mmc0", "ahb_mmc1",
  102. "ahb_mmc2", "ahb_nand",
  103. "ahb_sdram", "ahb_emac", "ahb_ts",
  104. "ahb_spi0", "ahb_spi1", "ahb_spi2",
  105. "ahb_gps", "ahb_stimer", "ahb_ve",
  106. "ahb_tve", "ahb_lcd", "ahb_csi",
  107. "ahb_hdmi", "ahb_de_be",
  108. "ahb_de_fe", "ahb_iep",
  109. "ahb_mali400";
  110. };
  111. apb0_gates: clk@01c20068 {
  112. #clock-cells = <1>;
  113. compatible = "allwinner,sun5i-a10s-apb0-gates-clk";
  114. reg = <0x01c20068 0x4>;
  115. clocks = <&apb0>;
  116. clock-indices = <0>, <3>,
  117. <5>, <6>,
  118. <10>;
  119. clock-output-names = "apb0_codec", "apb0_iis",
  120. "apb0_pio", "apb0_ir",
  121. "apb0_keypad";
  122. };
  123. apb1_gates: clk@01c2006c {
  124. #clock-cells = <1>;
  125. compatible = "allwinner,sun5i-a10s-apb1-gates-clk";
  126. reg = <0x01c2006c 0x4>;
  127. clocks = <&apb1>;
  128. clock-indices = <0>, <1>,
  129. <2>, <16>,
  130. <17>, <18>,
  131. <19>;
  132. clock-output-names = "apb1_i2c0", "apb1_i2c1",
  133. "apb1_i2c2", "apb1_uart0",
  134. "apb1_uart1", "apb1_uart2",
  135. "apb1_uart3";
  136. };
  137. };
  138. soc@01c00000 {
  139. emac: ethernet@01c0b000 {
  140. compatible = "allwinner,sun4i-a10-emac";
  141. reg = <0x01c0b000 0x1000>;
  142. interrupts = <55>;
  143. clocks = <&ahb_gates 17>;
  144. allwinner,sram = <&emac_sram 1>;
  145. status = "disabled";
  146. };
  147. mdio: mdio@01c0b080 {
  148. compatible = "allwinner,sun4i-a10-mdio";
  149. reg = <0x01c0b080 0x14>;
  150. status = "disabled";
  151. #address-cells = <1>;
  152. #size-cells = <0>;
  153. };
  154. pwm: pwm@01c20e00 {
  155. compatible = "allwinner,sun5i-a10s-pwm";
  156. reg = <0x01c20e00 0xc>;
  157. clocks = <&osc24M>;
  158. #pwm-cells = <3>;
  159. status = "disabled";
  160. };
  161. uart0: serial@01c28000 {
  162. compatible = "snps,dw-apb-uart";
  163. reg = <0x01c28000 0x400>;
  164. interrupts = <1>;
  165. reg-shift = <2>;
  166. reg-io-width = <4>;
  167. clocks = <&apb1_gates 16>;
  168. status = "disabled";
  169. };
  170. uart2: serial@01c28800 {
  171. compatible = "snps,dw-apb-uart";
  172. reg = <0x01c28800 0x400>;
  173. interrupts = <3>;
  174. reg-shift = <2>;
  175. reg-io-width = <4>;
  176. clocks = <&apb1_gates 18>;
  177. status = "disabled";
  178. };
  179. };
  180. };
  181. &pio {
  182. compatible = "allwinner,sun5i-a10s-pinctrl";
  183. uart0_pins_a: uart0@0 {
  184. allwinner,pins = "PB19", "PB20";
  185. allwinner,function = "uart0";
  186. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  187. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  188. };
  189. uart2_pins_a: uart2@0 {
  190. allwinner,pins = "PC18", "PC19";
  191. allwinner,function = "uart2";
  192. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  193. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  194. };
  195. emac_pins_a: emac0@0 {
  196. allwinner,pins = "PA0", "PA1", "PA2",
  197. "PA3", "PA4", "PA5", "PA6",
  198. "PA7", "PA8", "PA9", "PA10",
  199. "PA11", "PA12", "PA13", "PA14",
  200. "PA15", "PA16";
  201. allwinner,function = "emac";
  202. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  203. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  204. };
  205. emac_pins_b: emac0@1 {
  206. allwinner,pins = "PD6", "PD7", "PD10",
  207. "PD11", "PD12", "PD13", "PD14",
  208. "PD15", "PD18", "PD19", "PD20",
  209. "PD21", "PD22", "PD23", "PD24",
  210. "PD25", "PD26", "PD27";
  211. allwinner,function = "emac";
  212. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  213. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  214. };
  215. mmc1_pins_a: mmc1@0 {
  216. allwinner,pins = "PG3", "PG4", "PG5",
  217. "PG6", "PG7", "PG8";
  218. allwinner,function = "mmc1";
  219. allwinner,drive = <SUN4I_PINCTRL_30_MA>;
  220. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  221. };
  222. spi2_pins_a: spi2@0 {
  223. allwinner,pins = "PB12", "PB13", "PB14";
  224. allwinner,function = "spi2";
  225. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  226. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  227. };
  228. spi2_cs0_pins_a: spi2_cs0@0 {
  229. allwinner,pins = "PB11";
  230. allwinner,function = "spi2";
  231. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  232. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  233. };
  234. };
  235. &sram_a {
  236. emac_sram: sram-section@8000 {
  237. compatible = "allwinner,sun4i-a10-sram-a3-a4";
  238. reg = <0x8000 0x4000>;
  239. status = "disabled";
  240. };
  241. };