sun5i-a10s.dtsi 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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 = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
  62. <&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 = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>;
  70. status = "disabled";
  71. };
  72. };
  73. clocks {
  74. ahb_gates: clk@01c20060 {
  75. #clock-cells = <1>;
  76. compatible = "allwinner,sun5i-a10s-ahb-gates-clk";
  77. reg = <0x01c20060 0x8>;
  78. clocks = <&ahb>;
  79. clock-output-names = "ahb_usbotg", "ahb_ehci",
  80. "ahb_ohci", "ahb_ss", "ahb_dma",
  81. "ahb_bist", "ahb_mmc0", "ahb_mmc1",
  82. "ahb_mmc2", "ahb_nand",
  83. "ahb_sdram", "ahb_emac", "ahb_ts",
  84. "ahb_spi0", "ahb_spi1", "ahb_spi2",
  85. "ahb_gps", "ahb_stimer", "ahb_ve",
  86. "ahb_tve", "ahb_lcd", "ahb_csi",
  87. "ahb_hdmi", "ahb_de_be",
  88. "ahb_de_fe", "ahb_iep",
  89. "ahb_mali400";
  90. };
  91. apb0_gates: clk@01c20068 {
  92. #clock-cells = <1>;
  93. compatible = "allwinner,sun5i-a10s-apb0-gates-clk";
  94. reg = <0x01c20068 0x4>;
  95. clocks = <&apb0>;
  96. clock-output-names = "apb0_codec", "apb0_iis",
  97. "apb0_pio", "apb0_ir",
  98. "apb0_keypad";
  99. };
  100. apb1_gates: clk@01c2006c {
  101. #clock-cells = <1>;
  102. compatible = "allwinner,sun5i-a10s-apb1-gates-clk";
  103. reg = <0x01c2006c 0x4>;
  104. clocks = <&apb1>;
  105. clock-output-names = "apb1_i2c0", "apb1_i2c1",
  106. "apb1_i2c2", "apb1_uart0", "apb1_uart1",
  107. "apb1_uart2", "apb1_uart3";
  108. };
  109. };
  110. soc@01c00000 {
  111. emac: ethernet@01c0b000 {
  112. compatible = "allwinner,sun4i-a10-emac";
  113. reg = <0x01c0b000 0x1000>;
  114. interrupts = <55>;
  115. clocks = <&ahb_gates 17>;
  116. allwinner,sram = <&emac_sram 1>;
  117. status = "disabled";
  118. };
  119. mdio: mdio@01c0b080 {
  120. compatible = "allwinner,sun4i-a10-mdio";
  121. reg = <0x01c0b080 0x14>;
  122. status = "disabled";
  123. #address-cells = <1>;
  124. #size-cells = <0>;
  125. };
  126. uart0: serial@01c28000 {
  127. compatible = "snps,dw-apb-uart";
  128. reg = <0x01c28000 0x400>;
  129. interrupts = <1>;
  130. reg-shift = <2>;
  131. reg-io-width = <4>;
  132. clocks = <&apb1_gates 16>;
  133. status = "disabled";
  134. };
  135. uart2: serial@01c28800 {
  136. compatible = "snps,dw-apb-uart";
  137. reg = <0x01c28800 0x400>;
  138. interrupts = <3>;
  139. reg-shift = <2>;
  140. reg-io-width = <4>;
  141. clocks = <&apb1_gates 18>;
  142. status = "disabled";
  143. };
  144. };
  145. };
  146. &pio {
  147. compatible = "allwinner,sun5i-a10s-pinctrl";
  148. uart0_pins_a: uart0@0 {
  149. allwinner,pins = "PB19", "PB20";
  150. allwinner,function = "uart0";
  151. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  152. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  153. };
  154. uart2_pins_a: uart2@0 {
  155. allwinner,pins = "PC18", "PC19";
  156. allwinner,function = "uart2";
  157. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  158. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  159. };
  160. uart3_pins_a: uart3@0 {
  161. allwinner,pins = "PG9", "PG10";
  162. allwinner,function = "uart3";
  163. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  164. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  165. };
  166. emac_pins_a: emac0@0 {
  167. allwinner,pins = "PA0", "PA1", "PA2",
  168. "PA3", "PA4", "PA5", "PA6",
  169. "PA7", "PA8", "PA9", "PA10",
  170. "PA11", "PA12", "PA13", "PA14",
  171. "PA15", "PA16";
  172. allwinner,function = "emac";
  173. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  174. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  175. };
  176. mmc1_pins_a: mmc1@0 {
  177. allwinner,pins = "PG3", "PG4", "PG5",
  178. "PG6", "PG7", "PG8";
  179. allwinner,function = "mmc1";
  180. allwinner,drive = <SUN4I_PINCTRL_30_MA>;
  181. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  182. };
  183. };
  184. &sram_a {
  185. emac_sram: sram-section@8000 {
  186. compatible = "allwinner,sun4i-a10-sram-a3-a4";
  187. reg = <0x8000 0x4000>;
  188. status = "disabled";
  189. };
  190. };