sun8i-a33.dtsi 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. /*
  2. * Copyright 2014 Chen-Yu Tsai
  3. *
  4. * Chen-Yu Tsai <wens@csie.org>
  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 file 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 file 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 "sun8i-a23-a33.dtsi"
  45. / {
  46. cpus {
  47. cpu@2 {
  48. compatible = "arm,cortex-a7";
  49. device_type = "cpu";
  50. reg = <2>;
  51. };
  52. cpu@3 {
  53. compatible = "arm,cortex-a7";
  54. device_type = "cpu";
  55. reg = <3>;
  56. };
  57. };
  58. de: display-engine {
  59. compatible = "allwinner,sun8i-a33-display-engine";
  60. allwinner,pipelines = <&fe0>;
  61. status = "disabled";
  62. };
  63. memory {
  64. reg = <0x40000000 0x80000000>;
  65. };
  66. soc@01c00000 {
  67. tcon0: lcd-controller@01c0c000 {
  68. compatible = "allwinner,sun8i-a33-tcon";
  69. reg = <0x01c0c000 0x1000>;
  70. interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
  71. clocks = <&ccu CLK_BUS_LCD>,
  72. <&ccu CLK_LCD_CH0>;
  73. clock-names = "ahb",
  74. "tcon-ch0";
  75. clock-output-names = "tcon-pixel-clock";
  76. resets = <&ccu RST_BUS_LCD>;
  77. reset-names = "lcd";
  78. status = "disabled";
  79. ports {
  80. #address-cells = <1>;
  81. #size-cells = <0>;
  82. tcon0_in: port@0 {
  83. #address-cells = <1>;
  84. #size-cells = <0>;
  85. reg = <0>;
  86. tcon0_in_drc0: endpoint@0 {
  87. reg = <0>;
  88. remote-endpoint = <&drc0_out_tcon0>;
  89. };
  90. };
  91. tcon0_out: port@1 {
  92. #address-cells = <1>;
  93. #size-cells = <0>;
  94. reg = <1>;
  95. };
  96. };
  97. };
  98. crypto: crypto-engine@01c15000 {
  99. compatible = "allwinner,sun4i-a10-crypto";
  100. reg = <0x01c15000 0x1000>;
  101. interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
  102. clocks = <&ccu CLK_BUS_SS>, <&ccu CLK_SS>;
  103. clock-names = "ahb", "mod";
  104. resets = <&ccu RST_BUS_SS>;
  105. reset-names = "ahb";
  106. };
  107. fe0: display-frontend@01e00000 {
  108. compatible = "allwinner,sun8i-a33-display-frontend";
  109. reg = <0x01e00000 0x20000>;
  110. interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
  111. clocks = <&ccu CLK_BUS_DE_FE>, <&ccu CLK_DE_FE>,
  112. <&ccu CLK_DRAM_DE_FE>;
  113. clock-names = "ahb", "mod",
  114. "ram";
  115. resets = <&ccu RST_BUS_DE_FE>;
  116. status = "disabled";
  117. ports {
  118. #address-cells = <1>;
  119. #size-cells = <0>;
  120. fe0_out: port@1 {
  121. #address-cells = <1>;
  122. #size-cells = <0>;
  123. reg = <1>;
  124. fe0_out_be0: endpoint@0 {
  125. reg = <0>;
  126. remote-endpoint = <&be0_in_fe0>;
  127. };
  128. };
  129. };
  130. };
  131. be0: display-backend@01e60000 {
  132. compatible = "allwinner,sun8i-a33-display-backend";
  133. reg = <0x01e60000 0x10000>, <0x01e80000 0x1000>;
  134. reg-names = "be", "sat";
  135. interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
  136. clocks = <&ccu CLK_BUS_DE_BE>, <&ccu CLK_DE_BE>,
  137. <&ccu CLK_DRAM_DE_BE>, <&ccu CLK_BUS_SAT>;
  138. clock-names = "ahb", "mod",
  139. "ram", "sat";
  140. resets = <&ccu RST_BUS_DE_BE>, <&ccu RST_BUS_SAT>;
  141. reset-names = "be", "sat";
  142. assigned-clocks = <&ccu CLK_DE_BE>;
  143. assigned-clock-rates = <300000000>;
  144. ports {
  145. #address-cells = <1>;
  146. #size-cells = <0>;
  147. be0_in: port@0 {
  148. #address-cells = <1>;
  149. #size-cells = <0>;
  150. reg = <0>;
  151. be0_in_fe0: endpoint@0 {
  152. reg = <0>;
  153. remote-endpoint = <&fe0_out_be0>;
  154. };
  155. };
  156. be0_out: port@1 {
  157. #address-cells = <1>;
  158. #size-cells = <0>;
  159. reg = <1>;
  160. be0_out_drc0: endpoint@0 {
  161. reg = <0>;
  162. remote-endpoint = <&drc0_in_be0>;
  163. };
  164. };
  165. };
  166. };
  167. drc0: drc@01e70000 {
  168. compatible = "allwinner,sun8i-a33-drc";
  169. reg = <0x01e70000 0x10000>;
  170. interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
  171. clocks = <&ccu CLK_BUS_DRC>, <&ccu CLK_DRC>,
  172. <&ccu CLK_DRAM_DRC>;
  173. clock-names = "ahb", "mod", "ram";
  174. resets = <&ccu RST_BUS_DRC>;
  175. assigned-clocks = <&ccu CLK_DRC>;
  176. assigned-clock-rates = <300000000>;
  177. ports {
  178. #address-cells = <1>;
  179. #size-cells = <0>;
  180. drc0_in: port@0 {
  181. #address-cells = <1>;
  182. #size-cells = <0>;
  183. reg = <0>;
  184. drc0_in_be0: endpoint@0 {
  185. reg = <0>;
  186. remote-endpoint = <&be0_out_drc0>;
  187. };
  188. };
  189. drc0_out: port@1 {
  190. #address-cells = <1>;
  191. #size-cells = <0>;
  192. reg = <1>;
  193. drc0_out_tcon0: endpoint@0 {
  194. reg = <0>;
  195. remote-endpoint = <&tcon0_in_drc0>;
  196. };
  197. };
  198. };
  199. };
  200. };
  201. };
  202. &ccu {
  203. compatible = "allwinner,sun8i-a33-ccu";
  204. };
  205. &pio {
  206. compatible = "allwinner,sun8i-a33-pinctrl";
  207. interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
  208. <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  209. uart0_pins_b: uart0@1 {
  210. allwinner,pins = "PB0", "PB1";
  211. allwinner,function = "uart0";
  212. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  213. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  214. };
  215. };
  216. &usb_otg {
  217. compatible = "allwinner,sun8i-a33-musb";
  218. };
  219. &usbphy {
  220. compatible = "allwinner,sun8i-a33-usb-phy";
  221. reg = <0x01c19400 0x14>, <0x01c1a800 0x4>;
  222. reg-names = "phy_ctrl", "pmu1";
  223. };