sun7i-a20.dtsi 45 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718
  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 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 "skeleton.dtsi"
  45. #include <dt-bindings/interrupt-controller/arm-gic.h>
  46. #include <dt-bindings/thermal/thermal.h>
  47. #include <dt-bindings/clock/sun4i-a10-pll2.h>
  48. #include <dt-bindings/dma/sun4i-a10.h>
  49. #include <dt-bindings/pinctrl/sun4i-a10.h>
  50. / {
  51. interrupt-parent = <&gic>;
  52. aliases {
  53. ethernet0 = &gmac;
  54. };
  55. chosen {
  56. #address-cells = <1>;
  57. #size-cells = <1>;
  58. ranges;
  59. framebuffer@0 {
  60. compatible = "allwinner,simple-framebuffer",
  61. "simple-framebuffer";
  62. allwinner,pipeline = "de_be0-lcd0-hdmi";
  63. clocks = <&ahb_gates 36>, <&ahb_gates 43>,
  64. <&ahb_gates 44>, <&de_be0_clk>,
  65. <&tcon0_ch1_clk>, <&dram_gates 26>;
  66. status = "disabled";
  67. };
  68. framebuffer@1 {
  69. compatible = "allwinner,simple-framebuffer",
  70. "simple-framebuffer";
  71. allwinner,pipeline = "de_be0-lcd0";
  72. clocks = <&ahb_gates 36>, <&ahb_gates 44>,
  73. <&de_be0_clk>, <&tcon0_ch0_clk>,
  74. <&dram_gates 26>;
  75. status = "disabled";
  76. };
  77. framebuffer@2 {
  78. compatible = "allwinner,simple-framebuffer",
  79. "simple-framebuffer";
  80. allwinner,pipeline = "de_be0-lcd0-tve0";
  81. clocks = <&ahb_gates 34>, <&ahb_gates 36>,
  82. <&ahb_gates 44>,
  83. <&de_be0_clk>, <&tcon0_ch1_clk>,
  84. <&dram_gates 5>, <&dram_gates 26>;
  85. status = "disabled";
  86. };
  87. };
  88. cpus {
  89. #address-cells = <1>;
  90. #size-cells = <0>;
  91. cpu0: cpu@0 {
  92. compatible = "arm,cortex-a7";
  93. device_type = "cpu";
  94. reg = <0>;
  95. clocks = <&cpu>;
  96. clock-latency = <244144>; /* 8 32k periods */
  97. operating-points = <
  98. /* kHz uV */
  99. 960000 1400000
  100. 912000 1400000
  101. 864000 1300000
  102. 720000 1200000
  103. 528000 1100000
  104. 312000 1000000
  105. 144000 1000000
  106. >;
  107. #cooling-cells = <2>;
  108. cooling-min-level = <0>;
  109. cooling-max-level = <6>;
  110. };
  111. cpu@1 {
  112. compatible = "arm,cortex-a7";
  113. device_type = "cpu";
  114. reg = <1>;
  115. };
  116. };
  117. thermal-zones {
  118. cpu_thermal {
  119. /* milliseconds */
  120. polling-delay-passive = <250>;
  121. polling-delay = <1000>;
  122. thermal-sensors = <&rtp>;
  123. cooling-maps {
  124. map0 {
  125. trip = <&cpu_alert0>;
  126. cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  127. };
  128. };
  129. trips {
  130. cpu_alert0: cpu_alert0 {
  131. /* milliCelsius */
  132. temperature = <75000>;
  133. hysteresis = <2000>;
  134. type = "passive";
  135. };
  136. cpu_crit: cpu_crit {
  137. /* milliCelsius */
  138. temperature = <100000>;
  139. hysteresis = <2000>;
  140. type = "critical";
  141. };
  142. };
  143. };
  144. };
  145. memory {
  146. reg = <0x40000000 0x80000000>;
  147. };
  148. timer {
  149. compatible = "arm,armv7-timer";
  150. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  151. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  152. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  153. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  154. };
  155. pmu {
  156. compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
  157. interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
  158. <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
  159. };
  160. clocks {
  161. #address-cells = <1>;
  162. #size-cells = <1>;
  163. ranges;
  164. osc24M: clk@01c20050 {
  165. #clock-cells = <0>;
  166. compatible = "allwinner,sun4i-a10-osc-clk";
  167. reg = <0x01c20050 0x4>;
  168. clock-frequency = <24000000>;
  169. clock-output-names = "osc24M";
  170. };
  171. osc3M: osc3M_clk {
  172. #clock-cells = <0>;
  173. compatible = "fixed-factor-clock";
  174. clock-div = <8>;
  175. clock-mult = <1>;
  176. clocks = <&osc24M>;
  177. clock-output-names = "osc3M";
  178. };
  179. osc32k: clk@0 {
  180. #clock-cells = <0>;
  181. compatible = "fixed-clock";
  182. clock-frequency = <32768>;
  183. clock-output-names = "osc32k";
  184. };
  185. pll1: clk@01c20000 {
  186. #clock-cells = <0>;
  187. compatible = "allwinner,sun4i-a10-pll1-clk";
  188. reg = <0x01c20000 0x4>;
  189. clocks = <&osc24M>;
  190. clock-output-names = "pll1";
  191. };
  192. pll2: clk@01c20008 {
  193. #clock-cells = <1>;
  194. compatible = "allwinner,sun4i-a10-pll2-clk";
  195. reg = <0x01c20008 0x8>;
  196. clocks = <&osc24M>;
  197. clock-output-names = "pll2-1x", "pll2-2x",
  198. "pll2-4x", "pll2-8x";
  199. };
  200. pll3: clk@01c20010 {
  201. #clock-cells = <0>;
  202. compatible = "allwinner,sun4i-a10-pll3-clk";
  203. reg = <0x01c20010 0x4>;
  204. clocks = <&osc3M>;
  205. clock-output-names = "pll3";
  206. };
  207. pll3x2: pll3x2_clk {
  208. #clock-cells = <0>;
  209. compatible = "fixed-factor-clock";
  210. clocks = <&pll3>;
  211. clock-div = <1>;
  212. clock-mult = <2>;
  213. clock-output-names = "pll3-2x";
  214. };
  215. pll4: clk@01c20018 {
  216. #clock-cells = <0>;
  217. compatible = "allwinner,sun7i-a20-pll4-clk";
  218. reg = <0x01c20018 0x4>;
  219. clocks = <&osc24M>;
  220. clock-output-names = "pll4";
  221. };
  222. pll5: clk@01c20020 {
  223. #clock-cells = <1>;
  224. compatible = "allwinner,sun4i-a10-pll5-clk";
  225. reg = <0x01c20020 0x4>;
  226. clocks = <&osc24M>;
  227. clock-output-names = "pll5_ddr", "pll5_other";
  228. };
  229. pll6: clk@01c20028 {
  230. #clock-cells = <1>;
  231. compatible = "allwinner,sun4i-a10-pll6-clk";
  232. reg = <0x01c20028 0x4>;
  233. clocks = <&osc24M>;
  234. clock-output-names = "pll6_sata", "pll6_other", "pll6",
  235. "pll6_div_4";
  236. };
  237. pll7: clk@01c20030 {
  238. #clock-cells = <0>;
  239. compatible = "allwinner,sun4i-a10-pll3-clk";
  240. reg = <0x01c20030 0x4>;
  241. clocks = <&osc3M>;
  242. clock-output-names = "pll7";
  243. };
  244. pll7x2: pll7x2_clk {
  245. #clock-cells = <0>;
  246. compatible = "fixed-factor-clock";
  247. clocks = <&pll7>;
  248. clock-div = <1>;
  249. clock-mult = <2>;
  250. clock-output-names = "pll7-2x";
  251. };
  252. pll8: clk@01c20040 {
  253. #clock-cells = <0>;
  254. compatible = "allwinner,sun7i-a20-pll4-clk";
  255. reg = <0x01c20040 0x4>;
  256. clocks = <&osc24M>;
  257. clock-output-names = "pll8";
  258. };
  259. cpu: cpu@01c20054 {
  260. #clock-cells = <0>;
  261. compatible = "allwinner,sun4i-a10-cpu-clk";
  262. reg = <0x01c20054 0x4>;
  263. clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
  264. clock-output-names = "cpu";
  265. };
  266. axi: axi@01c20054 {
  267. #clock-cells = <0>;
  268. compatible = "allwinner,sun4i-a10-axi-clk";
  269. reg = <0x01c20054 0x4>;
  270. clocks = <&cpu>;
  271. clock-output-names = "axi";
  272. };
  273. ahb: ahb@01c20054 {
  274. #clock-cells = <0>;
  275. compatible = "allwinner,sun5i-a13-ahb-clk";
  276. reg = <0x01c20054 0x4>;
  277. clocks = <&axi>, <&pll6 3>, <&pll6 1>;
  278. clock-output-names = "ahb";
  279. /*
  280. * Use PLL6 as parent, instead of CPU/AXI
  281. * which has rate changes due to cpufreq
  282. */
  283. assigned-clocks = <&ahb>;
  284. assigned-clock-parents = <&pll6 3>;
  285. };
  286. ahb_gates: clk@01c20060 {
  287. #clock-cells = <1>;
  288. compatible = "allwinner,sun7i-a20-ahb-gates-clk";
  289. reg = <0x01c20060 0x8>;
  290. clocks = <&ahb>;
  291. clock-indices = <0>, <1>,
  292. <2>, <3>, <4>,
  293. <5>, <6>, <7>, <8>,
  294. <9>, <10>, <11>, <12>,
  295. <13>, <14>, <16>,
  296. <17>, <18>, <20>, <21>,
  297. <22>, <23>, <25>,
  298. <28>, <32>, <33>, <34>,
  299. <35>, <36>, <37>, <40>,
  300. <41>, <42>, <43>,
  301. <44>, <45>, <46>,
  302. <47>, <49>, <50>,
  303. <52>;
  304. clock-output-names = "ahb_usb0", "ahb_ehci0",
  305. "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
  306. "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
  307. "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
  308. "ahb_nand", "ahb_sdram", "ahb_ace",
  309. "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
  310. "ahb_spi2", "ahb_spi3", "ahb_sata",
  311. "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
  312. "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
  313. "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
  314. "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
  315. "ahb_de_fe1", "ahb_gmac", "ahb_mp",
  316. "ahb_mali";
  317. };
  318. apb0: apb0@01c20054 {
  319. #clock-cells = <0>;
  320. compatible = "allwinner,sun4i-a10-apb0-clk";
  321. reg = <0x01c20054 0x4>;
  322. clocks = <&ahb>;
  323. clock-output-names = "apb0";
  324. };
  325. apb0_gates: clk@01c20068 {
  326. #clock-cells = <1>;
  327. compatible = "allwinner,sun7i-a20-apb0-gates-clk";
  328. reg = <0x01c20068 0x4>;
  329. clocks = <&apb0>;
  330. clock-indices = <0>, <1>,
  331. <2>, <3>, <4>,
  332. <5>, <6>, <7>,
  333. <8>, <10>;
  334. clock-output-names = "apb0_codec", "apb0_spdif",
  335. "apb0_ac97", "apb0_i2s0", "apb0_i2s1",
  336. "apb0_pio", "apb0_ir0", "apb0_ir1",
  337. "apb0_i2s2", "apb0_keypad";
  338. };
  339. apb1: clk@01c20058 {
  340. #clock-cells = <0>;
  341. compatible = "allwinner,sun4i-a10-apb1-clk";
  342. reg = <0x01c20058 0x4>;
  343. clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
  344. clock-output-names = "apb1";
  345. };
  346. apb1_gates: clk@01c2006c {
  347. #clock-cells = <1>;
  348. compatible = "allwinner,sun7i-a20-apb1-gates-clk";
  349. reg = <0x01c2006c 0x4>;
  350. clocks = <&apb1>;
  351. clock-indices = <0>, <1>,
  352. <2>, <3>, <4>,
  353. <5>, <6>, <7>,
  354. <15>, <16>, <17>,
  355. <18>, <19>, <20>,
  356. <21>, <22>, <23>;
  357. clock-output-names = "apb1_i2c0", "apb1_i2c1",
  358. "apb1_i2c2", "apb1_i2c3", "apb1_can",
  359. "apb1_scr", "apb1_ps20", "apb1_ps21",
  360. "apb1_i2c4", "apb1_uart0", "apb1_uart1",
  361. "apb1_uart2", "apb1_uart3", "apb1_uart4",
  362. "apb1_uart5", "apb1_uart6", "apb1_uart7";
  363. };
  364. nand_clk: clk@01c20080 {
  365. #clock-cells = <0>;
  366. compatible = "allwinner,sun4i-a10-mod0-clk";
  367. reg = <0x01c20080 0x4>;
  368. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  369. clock-output-names = "nand";
  370. };
  371. ms_clk: clk@01c20084 {
  372. #clock-cells = <0>;
  373. compatible = "allwinner,sun4i-a10-mod0-clk";
  374. reg = <0x01c20084 0x4>;
  375. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  376. clock-output-names = "ms";
  377. };
  378. mmc0_clk: clk@01c20088 {
  379. #clock-cells = <1>;
  380. compatible = "allwinner,sun4i-a10-mmc-clk";
  381. reg = <0x01c20088 0x4>;
  382. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  383. clock-output-names = "mmc0",
  384. "mmc0_output",
  385. "mmc0_sample";
  386. };
  387. mmc1_clk: clk@01c2008c {
  388. #clock-cells = <1>;
  389. compatible = "allwinner,sun4i-a10-mmc-clk";
  390. reg = <0x01c2008c 0x4>;
  391. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  392. clock-output-names = "mmc1",
  393. "mmc1_output",
  394. "mmc1_sample";
  395. };
  396. mmc2_clk: clk@01c20090 {
  397. #clock-cells = <1>;
  398. compatible = "allwinner,sun4i-a10-mmc-clk";
  399. reg = <0x01c20090 0x4>;
  400. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  401. clock-output-names = "mmc2",
  402. "mmc2_output",
  403. "mmc2_sample";
  404. };
  405. mmc3_clk: clk@01c20094 {
  406. #clock-cells = <1>;
  407. compatible = "allwinner,sun4i-a10-mmc-clk";
  408. reg = <0x01c20094 0x4>;
  409. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  410. clock-output-names = "mmc3",
  411. "mmc3_output",
  412. "mmc3_sample";
  413. };
  414. ts_clk: clk@01c20098 {
  415. #clock-cells = <0>;
  416. compatible = "allwinner,sun4i-a10-mod0-clk";
  417. reg = <0x01c20098 0x4>;
  418. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  419. clock-output-names = "ts";
  420. };
  421. ss_clk: clk@01c2009c {
  422. #clock-cells = <0>;
  423. compatible = "allwinner,sun4i-a10-mod0-clk";
  424. reg = <0x01c2009c 0x4>;
  425. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  426. clock-output-names = "ss";
  427. };
  428. spi0_clk: clk@01c200a0 {
  429. #clock-cells = <0>;
  430. compatible = "allwinner,sun4i-a10-mod0-clk";
  431. reg = <0x01c200a0 0x4>;
  432. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  433. clock-output-names = "spi0";
  434. };
  435. spi1_clk: clk@01c200a4 {
  436. #clock-cells = <0>;
  437. compatible = "allwinner,sun4i-a10-mod0-clk";
  438. reg = <0x01c200a4 0x4>;
  439. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  440. clock-output-names = "spi1";
  441. };
  442. spi2_clk: clk@01c200a8 {
  443. #clock-cells = <0>;
  444. compatible = "allwinner,sun4i-a10-mod0-clk";
  445. reg = <0x01c200a8 0x4>;
  446. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  447. clock-output-names = "spi2";
  448. };
  449. pata_clk: clk@01c200ac {
  450. #clock-cells = <0>;
  451. compatible = "allwinner,sun4i-a10-mod0-clk";
  452. reg = <0x01c200ac 0x4>;
  453. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  454. clock-output-names = "pata";
  455. };
  456. ir0_clk: clk@01c200b0 {
  457. #clock-cells = <0>;
  458. compatible = "allwinner,sun4i-a10-mod0-clk";
  459. reg = <0x01c200b0 0x4>;
  460. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  461. clock-output-names = "ir0";
  462. };
  463. ir1_clk: clk@01c200b4 {
  464. #clock-cells = <0>;
  465. compatible = "allwinner,sun4i-a10-mod0-clk";
  466. reg = <0x01c200b4 0x4>;
  467. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  468. clock-output-names = "ir1";
  469. };
  470. i2s0_clk: clk@01c200b8 {
  471. #clock-cells = <0>;
  472. compatible = "allwinner,sun4i-a10-mod1-clk";
  473. reg = <0x01c200b8 0x4>;
  474. clocks = <&pll2 SUN4I_A10_PLL2_8X>,
  475. <&pll2 SUN4I_A10_PLL2_4X>,
  476. <&pll2 SUN4I_A10_PLL2_2X>,
  477. <&pll2 SUN4I_A10_PLL2_1X>;
  478. clock-output-names = "i2s0";
  479. };
  480. ac97_clk: clk@01c200bc {
  481. #clock-cells = <0>;
  482. compatible = "allwinner,sun4i-a10-mod1-clk";
  483. reg = <0x01c200bc 0x4>;
  484. clocks = <&pll2 SUN4I_A10_PLL2_8X>,
  485. <&pll2 SUN4I_A10_PLL2_4X>,
  486. <&pll2 SUN4I_A10_PLL2_2X>,
  487. <&pll2 SUN4I_A10_PLL2_1X>;
  488. clock-output-names = "ac97";
  489. };
  490. spdif_clk: clk@01c200c0 {
  491. #clock-cells = <0>;
  492. compatible = "allwinner,sun4i-a10-mod1-clk";
  493. reg = <0x01c200c0 0x4>;
  494. clocks = <&pll2 SUN4I_A10_PLL2_8X>,
  495. <&pll2 SUN4I_A10_PLL2_4X>,
  496. <&pll2 SUN4I_A10_PLL2_2X>,
  497. <&pll2 SUN4I_A10_PLL2_1X>;
  498. clock-output-names = "spdif";
  499. };
  500. keypad_clk: clk@01c200c4 {
  501. #clock-cells = <0>;
  502. compatible = "allwinner,sun4i-a10-mod0-clk";
  503. reg = <0x01c200c4 0x4>;
  504. clocks = <&osc24M>;
  505. clock-output-names = "keypad";
  506. };
  507. usb_clk: clk@01c200cc {
  508. #clock-cells = <1>;
  509. #reset-cells = <1>;
  510. compatible = "allwinner,sun4i-a10-usb-clk";
  511. reg = <0x01c200cc 0x4>;
  512. clocks = <&pll6 1>;
  513. clock-output-names = "usb_ohci0", "usb_ohci1",
  514. "usb_phy";
  515. };
  516. spi3_clk: clk@01c200d4 {
  517. #clock-cells = <0>;
  518. compatible = "allwinner,sun4i-a10-mod0-clk";
  519. reg = <0x01c200d4 0x4>;
  520. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  521. clock-output-names = "spi3";
  522. };
  523. i2s1_clk: clk@01c200d8 {
  524. #clock-cells = <0>;
  525. compatible = "allwinner,sun4i-a10-mod1-clk";
  526. reg = <0x01c200d8 0x4>;
  527. clocks = <&pll2 SUN4I_A10_PLL2_8X>,
  528. <&pll2 SUN4I_A10_PLL2_4X>,
  529. <&pll2 SUN4I_A10_PLL2_2X>,
  530. <&pll2 SUN4I_A10_PLL2_1X>;
  531. clock-output-names = "i2s1";
  532. };
  533. i2s2_clk: clk@01c200dc {
  534. #clock-cells = <0>;
  535. compatible = "allwinner,sun4i-a10-mod1-clk";
  536. reg = <0x01c200dc 0x4>;
  537. clocks = <&pll2 SUN4I_A10_PLL2_8X>,
  538. <&pll2 SUN4I_A10_PLL2_4X>,
  539. <&pll2 SUN4I_A10_PLL2_2X>,
  540. <&pll2 SUN4I_A10_PLL2_1X>;
  541. clock-output-names = "i2s2";
  542. };
  543. dram_gates: clk@01c20100 {
  544. #clock-cells = <1>;
  545. compatible = "allwinner,sun4i-a10-dram-gates-clk";
  546. reg = <0x01c20100 0x4>;
  547. clocks = <&pll5 0>;
  548. clock-indices = <0>,
  549. <1>, <2>,
  550. <3>,
  551. <4>,
  552. <5>, <6>,
  553. <15>,
  554. <24>, <25>,
  555. <26>, <27>,
  556. <28>, <29>;
  557. clock-output-names = "dram_ve",
  558. "dram_csi0", "dram_csi1",
  559. "dram_ts",
  560. "dram_tvd",
  561. "dram_tve0", "dram_tve1",
  562. "dram_output",
  563. "dram_de_fe1", "dram_de_fe0",
  564. "dram_de_be0", "dram_de_be1",
  565. "dram_de_mp", "dram_ace";
  566. };
  567. de_be0_clk: clk@01c20104 {
  568. #clock-cells = <0>;
  569. #reset-cells = <0>;
  570. compatible = "allwinner,sun4i-a10-display-clk";
  571. reg = <0x01c20104 0x4>;
  572. clocks = <&pll3>, <&pll7>, <&pll5 1>;
  573. clock-output-names = "de-be0";
  574. };
  575. de_be1_clk: clk@01c20108 {
  576. #clock-cells = <0>;
  577. #reset-cells = <0>;
  578. compatible = "allwinner,sun4i-a10-display-clk";
  579. reg = <0x01c20108 0x4>;
  580. clocks = <&pll3>, <&pll7>, <&pll5 1>;
  581. clock-output-names = "de-be1";
  582. };
  583. de_fe0_clk: clk@01c2010c {
  584. #clock-cells = <0>;
  585. #reset-cells = <0>;
  586. compatible = "allwinner,sun4i-a10-display-clk";
  587. reg = <0x01c2010c 0x4>;
  588. clocks = <&pll3>, <&pll7>, <&pll5 1>;
  589. clock-output-names = "de-fe0";
  590. };
  591. de_fe1_clk: clk@01c20110 {
  592. #clock-cells = <0>;
  593. #reset-cells = <0>;
  594. compatible = "allwinner,sun4i-a10-display-clk";
  595. reg = <0x01c20110 0x4>;
  596. clocks = <&pll3>, <&pll7>, <&pll5 1>;
  597. clock-output-names = "de-fe1";
  598. };
  599. tcon0_ch0_clk: clk@01c20118 {
  600. #clock-cells = <0>;
  601. #reset-cells = <1>;
  602. compatible = "allwinner,sun4i-a10-tcon-ch0-clk";
  603. reg = <0x01c20118 0x4>;
  604. clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
  605. clock-output-names = "tcon0-ch0-sclk";
  606. };
  607. tcon1_ch0_clk: clk@01c2011c {
  608. #clock-cells = <0>;
  609. #reset-cells = <1>;
  610. compatible = "allwinner,sun4i-a10-tcon-ch1-clk";
  611. reg = <0x01c2011c 0x4>;
  612. clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
  613. clock-output-names = "tcon1-ch0-sclk";
  614. };
  615. tcon0_ch1_clk: clk@01c2012c {
  616. #clock-cells = <0>;
  617. compatible = "allwinner,sun4i-a10-tcon-ch0-clk";
  618. reg = <0x01c2012c 0x4>;
  619. clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
  620. clock-output-names = "tcon0-ch1-sclk";
  621. };
  622. tcon1_ch1_clk: clk@01c20130 {
  623. #clock-cells = <0>;
  624. compatible = "allwinner,sun4i-a10-tcon-ch1-clk";
  625. reg = <0x01c20130 0x4>;
  626. clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
  627. clock-output-names = "tcon1-ch1-sclk";
  628. };
  629. ve_clk: clk@01c2013c {
  630. #clock-cells = <0>;
  631. #reset-cells = <0>;
  632. compatible = "allwinner,sun4i-a10-ve-clk";
  633. reg = <0x01c2013c 0x4>;
  634. clocks = <&pll4>;
  635. clock-output-names = "ve";
  636. };
  637. codec_clk: clk@01c20140 {
  638. #clock-cells = <0>;
  639. compatible = "allwinner,sun4i-a10-codec-clk";
  640. reg = <0x01c20140 0x4>;
  641. clocks = <&pll2 SUN4I_A10_PLL2_1X>;
  642. clock-output-names = "codec";
  643. };
  644. mbus_clk: clk@01c2015c {
  645. #clock-cells = <0>;
  646. compatible = "allwinner,sun5i-a13-mbus-clk";
  647. reg = <0x01c2015c 0x4>;
  648. clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
  649. clock-output-names = "mbus";
  650. };
  651. /*
  652. * The following two are dummy clocks, placeholders
  653. * used in the gmac_tx clock. The gmac driver will
  654. * choose one parent depending on the PHY interface
  655. * mode, using clk_set_rate auto-reparenting.
  656. *
  657. * The actual TX clock rate is not controlled by the
  658. * gmac_tx clock.
  659. */
  660. mii_phy_tx_clk: clk@2 {
  661. #clock-cells = <0>;
  662. compatible = "fixed-clock";
  663. clock-frequency = <25000000>;
  664. clock-output-names = "mii_phy_tx";
  665. };
  666. gmac_int_tx_clk: clk@3 {
  667. #clock-cells = <0>;
  668. compatible = "fixed-clock";
  669. clock-frequency = <125000000>;
  670. clock-output-names = "gmac_int_tx";
  671. };
  672. gmac_tx_clk: clk@01c20164 {
  673. #clock-cells = <0>;
  674. compatible = "allwinner,sun7i-a20-gmac-clk";
  675. reg = <0x01c20164 0x4>;
  676. clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
  677. clock-output-names = "gmac_tx";
  678. };
  679. /*
  680. * Dummy clock used by output clocks
  681. */
  682. osc24M_32k: clk@1 {
  683. #clock-cells = <0>;
  684. compatible = "fixed-factor-clock";
  685. clock-div = <750>;
  686. clock-mult = <1>;
  687. clocks = <&osc24M>;
  688. clock-output-names = "osc24M_32k";
  689. };
  690. clk_out_a: clk@01c201f0 {
  691. #clock-cells = <0>;
  692. compatible = "allwinner,sun7i-a20-out-clk";
  693. reg = <0x01c201f0 0x4>;
  694. clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
  695. clock-output-names = "clk_out_a";
  696. };
  697. clk_out_b: clk@01c201f4 {
  698. #clock-cells = <0>;
  699. compatible = "allwinner,sun7i-a20-out-clk";
  700. reg = <0x01c201f4 0x4>;
  701. clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
  702. clock-output-names = "clk_out_b";
  703. };
  704. };
  705. soc@01c00000 {
  706. compatible = "simple-bus";
  707. #address-cells = <1>;
  708. #size-cells = <1>;
  709. ranges;
  710. sram-controller@01c00000 {
  711. compatible = "allwinner,sun4i-a10-sram-controller";
  712. reg = <0x01c00000 0x30>;
  713. #address-cells = <1>;
  714. #size-cells = <1>;
  715. ranges;
  716. sram_a: sram@00000000 {
  717. compatible = "mmio-sram";
  718. reg = <0x00000000 0xc000>;
  719. #address-cells = <1>;
  720. #size-cells = <1>;
  721. ranges = <0 0x00000000 0xc000>;
  722. emac_sram: sram-section@8000 {
  723. compatible = "allwinner,sun4i-a10-sram-a3-a4";
  724. reg = <0x8000 0x4000>;
  725. status = "disabled";
  726. };
  727. };
  728. sram_d: sram@00010000 {
  729. compatible = "mmio-sram";
  730. reg = <0x00010000 0x1000>;
  731. #address-cells = <1>;
  732. #size-cells = <1>;
  733. ranges = <0 0x00010000 0x1000>;
  734. otg_sram: sram-section@0000 {
  735. compatible = "allwinner,sun4i-a10-sram-d";
  736. reg = <0x0000 0x1000>;
  737. status = "disabled";
  738. };
  739. };
  740. };
  741. nmi_intc: interrupt-controller@01c00030 {
  742. compatible = "allwinner,sun7i-a20-sc-nmi";
  743. interrupt-controller;
  744. #interrupt-cells = <2>;
  745. reg = <0x01c00030 0x0c>;
  746. interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
  747. };
  748. dma: dma-controller@01c02000 {
  749. compatible = "allwinner,sun4i-a10-dma";
  750. reg = <0x01c02000 0x1000>;
  751. interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
  752. clocks = <&ahb_gates 6>;
  753. #dma-cells = <2>;
  754. };
  755. nfc: nand@01c03000 {
  756. compatible = "allwinner,sun4i-a10-nand";
  757. reg = <0x01c03000 0x1000>;
  758. interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
  759. clocks = <&ahb_gates 13>, <&nand_clk>;
  760. clock-names = "ahb", "mod";
  761. dmas = <&dma SUN4I_DMA_DEDICATED 3>;
  762. dma-names = "rxtx";
  763. status = "disabled";
  764. #address-cells = <1>;
  765. #size-cells = <0>;
  766. };
  767. spi0: spi@01c05000 {
  768. compatible = "allwinner,sun4i-a10-spi";
  769. reg = <0x01c05000 0x1000>;
  770. interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
  771. clocks = <&ahb_gates 20>, <&spi0_clk>;
  772. clock-names = "ahb", "mod";
  773. dmas = <&dma SUN4I_DMA_DEDICATED 27>,
  774. <&dma SUN4I_DMA_DEDICATED 26>;
  775. dma-names = "rx", "tx";
  776. status = "disabled";
  777. #address-cells = <1>;
  778. #size-cells = <0>;
  779. };
  780. spi1: spi@01c06000 {
  781. compatible = "allwinner,sun4i-a10-spi";
  782. reg = <0x01c06000 0x1000>;
  783. interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
  784. clocks = <&ahb_gates 21>, <&spi1_clk>;
  785. clock-names = "ahb", "mod";
  786. dmas = <&dma SUN4I_DMA_DEDICATED 9>,
  787. <&dma SUN4I_DMA_DEDICATED 8>;
  788. dma-names = "rx", "tx";
  789. status = "disabled";
  790. #address-cells = <1>;
  791. #size-cells = <0>;
  792. };
  793. emac: ethernet@01c0b000 {
  794. compatible = "allwinner,sun4i-a10-emac";
  795. reg = <0x01c0b000 0x1000>;
  796. interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
  797. clocks = <&ahb_gates 17>;
  798. allwinner,sram = <&emac_sram 1>;
  799. status = "disabled";
  800. };
  801. mdio: mdio@01c0b080 {
  802. compatible = "allwinner,sun4i-a10-mdio";
  803. reg = <0x01c0b080 0x14>;
  804. status = "disabled";
  805. #address-cells = <1>;
  806. #size-cells = <0>;
  807. };
  808. mmc0: mmc@01c0f000 {
  809. compatible = "allwinner,sun7i-a20-mmc",
  810. "allwinner,sun5i-a13-mmc";
  811. reg = <0x01c0f000 0x1000>;
  812. clocks = <&ahb_gates 8>,
  813. <&mmc0_clk 0>,
  814. <&mmc0_clk 1>,
  815. <&mmc0_clk 2>;
  816. clock-names = "ahb",
  817. "mmc",
  818. "output",
  819. "sample";
  820. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
  821. status = "disabled";
  822. #address-cells = <1>;
  823. #size-cells = <0>;
  824. };
  825. mmc1: mmc@01c10000 {
  826. compatible = "allwinner,sun7i-a20-mmc",
  827. "allwinner,sun5i-a13-mmc";
  828. reg = <0x01c10000 0x1000>;
  829. clocks = <&ahb_gates 9>,
  830. <&mmc1_clk 0>,
  831. <&mmc1_clk 1>,
  832. <&mmc1_clk 2>;
  833. clock-names = "ahb",
  834. "mmc",
  835. "output",
  836. "sample";
  837. interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
  838. status = "disabled";
  839. #address-cells = <1>;
  840. #size-cells = <0>;
  841. };
  842. mmc2: mmc@01c11000 {
  843. compatible = "allwinner,sun7i-a20-mmc",
  844. "allwinner,sun5i-a13-mmc";
  845. reg = <0x01c11000 0x1000>;
  846. clocks = <&ahb_gates 10>,
  847. <&mmc2_clk 0>,
  848. <&mmc2_clk 1>,
  849. <&mmc2_clk 2>;
  850. clock-names = "ahb",
  851. "mmc",
  852. "output",
  853. "sample";
  854. interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
  855. status = "disabled";
  856. #address-cells = <1>;
  857. #size-cells = <0>;
  858. };
  859. mmc3: mmc@01c12000 {
  860. compatible = "allwinner,sun7i-a20-mmc",
  861. "allwinner,sun5i-a13-mmc";
  862. reg = <0x01c12000 0x1000>;
  863. clocks = <&ahb_gates 11>,
  864. <&mmc3_clk 0>,
  865. <&mmc3_clk 1>,
  866. <&mmc3_clk 2>;
  867. clock-names = "ahb",
  868. "mmc",
  869. "output",
  870. "sample";
  871. interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
  872. status = "disabled";
  873. #address-cells = <1>;
  874. #size-cells = <0>;
  875. };
  876. usb_otg: usb@01c13000 {
  877. compatible = "allwinner,sun4i-a10-musb";
  878. reg = <0x01c13000 0x0400>;
  879. clocks = <&ahb_gates 0>;
  880. interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
  881. interrupt-names = "mc";
  882. phys = <&usbphy 0>;
  883. phy-names = "usb";
  884. extcon = <&usbphy 0>;
  885. allwinner,sram = <&otg_sram 1>;
  886. status = "disabled";
  887. };
  888. usbphy: phy@01c13400 {
  889. #phy-cells = <1>;
  890. compatible = "allwinner,sun7i-a20-usb-phy";
  891. reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
  892. reg-names = "phy_ctrl", "pmu1", "pmu2";
  893. clocks = <&usb_clk 8>;
  894. clock-names = "usb_phy";
  895. resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
  896. reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
  897. status = "disabled";
  898. };
  899. ehci0: usb@01c14000 {
  900. compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
  901. reg = <0x01c14000 0x100>;
  902. interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
  903. clocks = <&ahb_gates 1>;
  904. phys = <&usbphy 1>;
  905. phy-names = "usb";
  906. status = "disabled";
  907. };
  908. ohci0: usb@01c14400 {
  909. compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
  910. reg = <0x01c14400 0x100>;
  911. interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
  912. clocks = <&usb_clk 6>, <&ahb_gates 2>;
  913. phys = <&usbphy 1>;
  914. phy-names = "usb";
  915. status = "disabled";
  916. };
  917. crypto: crypto-engine@01c15000 {
  918. compatible = "allwinner,sun4i-a10-crypto";
  919. reg = <0x01c15000 0x1000>;
  920. interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
  921. clocks = <&ahb_gates 5>, <&ss_clk>;
  922. clock-names = "ahb", "mod";
  923. };
  924. spi2: spi@01c17000 {
  925. compatible = "allwinner,sun4i-a10-spi";
  926. reg = <0x01c17000 0x1000>;
  927. interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
  928. clocks = <&ahb_gates 22>, <&spi2_clk>;
  929. clock-names = "ahb", "mod";
  930. dmas = <&dma SUN4I_DMA_DEDICATED 29>,
  931. <&dma SUN4I_DMA_DEDICATED 28>;
  932. dma-names = "rx", "tx";
  933. status = "disabled";
  934. #address-cells = <1>;
  935. #size-cells = <0>;
  936. };
  937. ahci: sata@01c18000 {
  938. compatible = "allwinner,sun4i-a10-ahci";
  939. reg = <0x01c18000 0x1000>;
  940. interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
  941. clocks = <&pll6 0>, <&ahb_gates 25>;
  942. status = "disabled";
  943. };
  944. ehci1: usb@01c1c000 {
  945. compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
  946. reg = <0x01c1c000 0x100>;
  947. interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
  948. clocks = <&ahb_gates 3>;
  949. phys = <&usbphy 2>;
  950. phy-names = "usb";
  951. status = "disabled";
  952. };
  953. ohci1: usb@01c1c400 {
  954. compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
  955. reg = <0x01c1c400 0x100>;
  956. interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
  957. clocks = <&usb_clk 7>, <&ahb_gates 4>;
  958. phys = <&usbphy 2>;
  959. phy-names = "usb";
  960. status = "disabled";
  961. };
  962. spi3: spi@01c1f000 {
  963. compatible = "allwinner,sun4i-a10-spi";
  964. reg = <0x01c1f000 0x1000>;
  965. interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
  966. clocks = <&ahb_gates 23>, <&spi3_clk>;
  967. clock-names = "ahb", "mod";
  968. dmas = <&dma SUN4I_DMA_DEDICATED 31>,
  969. <&dma SUN4I_DMA_DEDICATED 30>;
  970. dma-names = "rx", "tx";
  971. status = "disabled";
  972. #address-cells = <1>;
  973. #size-cells = <0>;
  974. };
  975. pio: pinctrl@01c20800 {
  976. compatible = "allwinner,sun7i-a20-pinctrl";
  977. reg = <0x01c20800 0x400>;
  978. interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
  979. clocks = <&apb0_gates 5>;
  980. gpio-controller;
  981. interrupt-controller;
  982. #interrupt-cells = <3>;
  983. #gpio-cells = <3>;
  984. clk_out_a_pins_a: clk_out_a@0 {
  985. allwinner,pins = "PI12";
  986. allwinner,function = "clk_out_a";
  987. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  988. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  989. };
  990. clk_out_b_pins_a: clk_out_b@0 {
  991. allwinner,pins = "PI13";
  992. allwinner,function = "clk_out_b";
  993. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  994. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  995. };
  996. emac_pins_a: emac0@0 {
  997. allwinner,pins = "PA0", "PA1", "PA2",
  998. "PA3", "PA4", "PA5", "PA6",
  999. "PA7", "PA8", "PA9", "PA10",
  1000. "PA11", "PA12", "PA13", "PA14",
  1001. "PA15", "PA16";
  1002. allwinner,function = "emac";
  1003. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1004. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1005. };
  1006. gmac_pins_mii_a: gmac_mii@0 {
  1007. allwinner,pins = "PA0", "PA1", "PA2",
  1008. "PA3", "PA4", "PA5", "PA6",
  1009. "PA7", "PA8", "PA9", "PA10",
  1010. "PA11", "PA12", "PA13", "PA14",
  1011. "PA15", "PA16";
  1012. allwinner,function = "gmac";
  1013. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1014. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1015. };
  1016. gmac_pins_rgmii_a: gmac_rgmii@0 {
  1017. allwinner,pins = "PA0", "PA1", "PA2",
  1018. "PA3", "PA4", "PA5", "PA6",
  1019. "PA7", "PA8", "PA10",
  1020. "PA11", "PA12", "PA13",
  1021. "PA15", "PA16";
  1022. allwinner,function = "gmac";
  1023. /*
  1024. * data lines in RGMII mode use DDR mode
  1025. * and need a higher signal drive strength
  1026. */
  1027. allwinner,drive = <SUN4I_PINCTRL_40_MA>;
  1028. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1029. };
  1030. i2c0_pins_a: i2c0@0 {
  1031. allwinner,pins = "PB0", "PB1";
  1032. allwinner,function = "i2c0";
  1033. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1034. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1035. };
  1036. i2c1_pins_a: i2c1@0 {
  1037. allwinner,pins = "PB18", "PB19";
  1038. allwinner,function = "i2c1";
  1039. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1040. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1041. };
  1042. i2c2_pins_a: i2c2@0 {
  1043. allwinner,pins = "PB20", "PB21";
  1044. allwinner,function = "i2c2";
  1045. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1046. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1047. };
  1048. i2c3_pins_a: i2c3@0 {
  1049. allwinner,pins = "PI0", "PI1";
  1050. allwinner,function = "i2c3";
  1051. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1052. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1053. };
  1054. ir0_rx_pins_a: ir0@0 {
  1055. allwinner,pins = "PB4";
  1056. allwinner,function = "ir0";
  1057. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1058. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1059. };
  1060. ir0_tx_pins_a: ir0@1 {
  1061. allwinner,pins = "PB3";
  1062. allwinner,function = "ir0";
  1063. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1064. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1065. };
  1066. ir1_rx_pins_a: ir1@0 {
  1067. allwinner,pins = "PB23";
  1068. allwinner,function = "ir1";
  1069. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1070. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1071. };
  1072. ir1_tx_pins_a: ir1@1 {
  1073. allwinner,pins = "PB22";
  1074. allwinner,function = "ir1";
  1075. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1076. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1077. };
  1078. mmc0_pins_a: mmc0@0 {
  1079. allwinner,pins = "PF0", "PF1", "PF2",
  1080. "PF3", "PF4", "PF5";
  1081. allwinner,function = "mmc0";
  1082. allwinner,drive = <SUN4I_PINCTRL_30_MA>;
  1083. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1084. };
  1085. mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
  1086. allwinner,pins = "PH1";
  1087. allwinner,function = "gpio_in";
  1088. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1089. allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
  1090. };
  1091. mmc2_pins_a: mmc2@0 {
  1092. allwinner,pins = "PC6", "PC7", "PC8",
  1093. "PC9", "PC10", "PC11";
  1094. allwinner,function = "mmc2";
  1095. allwinner,drive = <SUN4I_PINCTRL_30_MA>;
  1096. allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
  1097. };
  1098. mmc3_pins_a: mmc3@0 {
  1099. allwinner,pins = "PI4", "PI5", "PI6",
  1100. "PI7", "PI8", "PI9";
  1101. allwinner,function = "mmc3";
  1102. allwinner,drive = <SUN4I_PINCTRL_30_MA>;
  1103. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1104. };
  1105. ps20_pins_a: ps20@0 {
  1106. allwinner,pins = "PI20", "PI21";
  1107. allwinner,function = "ps2";
  1108. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1109. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1110. };
  1111. ps21_pins_a: ps21@0 {
  1112. allwinner,pins = "PH12", "PH13";
  1113. allwinner,function = "ps2";
  1114. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1115. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1116. };
  1117. pwm0_pins_a: pwm0@0 {
  1118. allwinner,pins = "PB2";
  1119. allwinner,function = "pwm";
  1120. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1121. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1122. };
  1123. pwm1_pins_a: pwm1@0 {
  1124. allwinner,pins = "PI3";
  1125. allwinner,function = "pwm";
  1126. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1127. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1128. };
  1129. spdif_tx_pins_a: spdif@0 {
  1130. allwinner,pins = "PB13";
  1131. allwinner,function = "spdif";
  1132. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1133. allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
  1134. };
  1135. spi0_pins_a: spi0@0 {
  1136. allwinner,pins = "PI11", "PI12", "PI13";
  1137. allwinner,function = "spi0";
  1138. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1139. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1140. };
  1141. spi0_cs0_pins_a: spi0_cs0@0 {
  1142. allwinner,pins = "PI10";
  1143. allwinner,function = "spi0";
  1144. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1145. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1146. };
  1147. spi0_cs1_pins_a: spi0_cs1@0 {
  1148. allwinner,pins = "PI14";
  1149. allwinner,function = "spi0";
  1150. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1151. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1152. };
  1153. spi1_pins_a: spi1@0 {
  1154. allwinner,pins = "PI17", "PI18", "PI19";
  1155. allwinner,function = "spi1";
  1156. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1157. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1158. };
  1159. spi1_cs0_pins_a: spi1_cs0@0 {
  1160. allwinner,pins = "PI16";
  1161. allwinner,function = "spi1";
  1162. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1163. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1164. };
  1165. spi2_pins_a: spi2@0 {
  1166. allwinner,pins = "PC20", "PC21", "PC22";
  1167. allwinner,function = "spi2";
  1168. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1169. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1170. };
  1171. spi2_pins_b: spi2@1 {
  1172. allwinner,pins = "PB15", "PB16", "PB17";
  1173. allwinner,function = "spi2";
  1174. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1175. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1176. };
  1177. spi2_cs0_pins_a: spi2_cs0@0 {
  1178. allwinner,pins = "PC19";
  1179. allwinner,function = "spi2";
  1180. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1181. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1182. };
  1183. spi2_cs0_pins_b: spi2_cs0@1 {
  1184. allwinner,pins = "PB14";
  1185. allwinner,function = "spi2";
  1186. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1187. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1188. };
  1189. uart0_pins_a: uart0@0 {
  1190. allwinner,pins = "PB22", "PB23";
  1191. allwinner,function = "uart0";
  1192. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1193. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1194. };
  1195. uart2_pins_a: uart2@0 {
  1196. allwinner,pins = "PI16", "PI17", "PI18", "PI19";
  1197. allwinner,function = "uart2";
  1198. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1199. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1200. };
  1201. uart3_pins_a: uart3@0 {
  1202. allwinner,pins = "PG6", "PG7", "PG8", "PG9";
  1203. allwinner,function = "uart3";
  1204. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1205. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1206. };
  1207. uart3_pins_b: uart3@1 {
  1208. allwinner,pins = "PH0", "PH1";
  1209. allwinner,function = "uart3";
  1210. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1211. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1212. };
  1213. uart4_pins_a: uart4@0 {
  1214. allwinner,pins = "PG10", "PG11";
  1215. allwinner,function = "uart4";
  1216. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1217. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1218. };
  1219. uart4_pins_b: uart4@1 {
  1220. allwinner,pins = "PH4", "PH5";
  1221. allwinner,function = "uart4";
  1222. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1223. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1224. };
  1225. uart5_pins_a: uart5@0 {
  1226. allwinner,pins = "PI10", "PI11";
  1227. allwinner,function = "uart5";
  1228. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1229. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1230. };
  1231. uart6_pins_a: uart6@0 {
  1232. allwinner,pins = "PI12", "PI13";
  1233. allwinner,function = "uart6";
  1234. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1235. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1236. };
  1237. uart7_pins_a: uart7@0 {
  1238. allwinner,pins = "PI20", "PI21";
  1239. allwinner,function = "uart7";
  1240. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1241. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1242. };
  1243. };
  1244. timer@01c20c00 {
  1245. compatible = "allwinner,sun4i-a10-timer";
  1246. reg = <0x01c20c00 0x90>;
  1247. interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
  1248. <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
  1249. <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
  1250. <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
  1251. <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
  1252. <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
  1253. clocks = <&osc24M>;
  1254. };
  1255. wdt: watchdog@01c20c90 {
  1256. compatible = "allwinner,sun4i-a10-wdt";
  1257. reg = <0x01c20c90 0x10>;
  1258. };
  1259. rtc: rtc@01c20d00 {
  1260. compatible = "allwinner,sun7i-a20-rtc";
  1261. reg = <0x01c20d00 0x20>;
  1262. interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
  1263. };
  1264. pwm: pwm@01c20e00 {
  1265. compatible = "allwinner,sun7i-a20-pwm";
  1266. reg = <0x01c20e00 0xc>;
  1267. clocks = <&osc24M>;
  1268. #pwm-cells = <3>;
  1269. status = "disabled";
  1270. };
  1271. spdif: spdif@01c21000 {
  1272. #sound-dai-cells = <0>;
  1273. compatible = "allwinner,sun4i-a10-spdif";
  1274. reg = <0x01c21000 0x400>;
  1275. interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  1276. clocks = <&apb0_gates 1>, <&spdif_clk>;
  1277. clock-names = "apb", "spdif";
  1278. dmas = <&dma SUN4I_DMA_NORMAL 2>,
  1279. <&dma SUN4I_DMA_NORMAL 2>;
  1280. dma-names = "rx", "tx";
  1281. status = "disabled";
  1282. };
  1283. ir0: ir@01c21800 {
  1284. compatible = "allwinner,sun4i-a10-ir";
  1285. clocks = <&apb0_gates 6>, <&ir0_clk>;
  1286. clock-names = "apb", "ir";
  1287. interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
  1288. reg = <0x01c21800 0x40>;
  1289. status = "disabled";
  1290. };
  1291. ir1: ir@01c21c00 {
  1292. compatible = "allwinner,sun4i-a10-ir";
  1293. clocks = <&apb0_gates 7>, <&ir1_clk>;
  1294. clock-names = "apb", "ir";
  1295. interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
  1296. reg = <0x01c21c00 0x40>;
  1297. status = "disabled";
  1298. };
  1299. i2s1: i2s@01c22000 {
  1300. #sound-dai-cells = <0>;
  1301. compatible = "allwinner,sun4i-a10-i2s";
  1302. reg = <0x01c22000 0x400>;
  1303. interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
  1304. clocks = <&apb0_gates 4>, <&i2s1_clk>;
  1305. clock-names = "apb", "mod";
  1306. dmas = <&dma SUN4I_DMA_NORMAL 4>,
  1307. <&dma SUN4I_DMA_NORMAL 4>;
  1308. dma-names = "rx", "tx";
  1309. status = "disabled";
  1310. };
  1311. i2s0: i2s@01c22400 {
  1312. #sound-dai-cells = <0>;
  1313. compatible = "allwinner,sun4i-a10-i2s";
  1314. reg = <0x01c22400 0x400>;
  1315. interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
  1316. clocks = <&apb0_gates 3>, <&i2s0_clk>;
  1317. clock-names = "apb", "mod";
  1318. dmas = <&dma SUN4I_DMA_NORMAL 3>,
  1319. <&dma SUN4I_DMA_NORMAL 3>;
  1320. dma-names = "rx", "tx";
  1321. status = "disabled";
  1322. };
  1323. lradc: lradc@01c22800 {
  1324. compatible = "allwinner,sun4i-a10-lradc-keys";
  1325. reg = <0x01c22800 0x100>;
  1326. interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
  1327. status = "disabled";
  1328. };
  1329. codec: codec@01c22c00 {
  1330. #sound-dai-cells = <0>;
  1331. compatible = "allwinner,sun7i-a20-codec";
  1332. reg = <0x01c22c00 0x40>;
  1333. interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
  1334. clocks = <&apb0_gates 0>, <&codec_clk>;
  1335. clock-names = "apb", "codec";
  1336. dmas = <&dma SUN4I_DMA_NORMAL 19>,
  1337. <&dma SUN4I_DMA_NORMAL 19>;
  1338. dma-names = "rx", "tx";
  1339. status = "disabled";
  1340. };
  1341. sid: eeprom@01c23800 {
  1342. compatible = "allwinner,sun7i-a20-sid";
  1343. reg = <0x01c23800 0x200>;
  1344. };
  1345. i2s2: i2s@01c24400 {
  1346. #sound-dai-cells = <0>;
  1347. compatible = "allwinner,sun4i-a10-i2s";
  1348. reg = <0x01c24400 0x400>;
  1349. interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
  1350. clocks = <&apb0_gates 8>, <&i2s2_clk>;
  1351. clock-names = "apb", "mod";
  1352. dmas = <&dma SUN4I_DMA_NORMAL 6>,
  1353. <&dma SUN4I_DMA_NORMAL 6>;
  1354. dma-names = "rx", "tx";
  1355. status = "disabled";
  1356. };
  1357. rtp: rtp@01c25000 {
  1358. compatible = "allwinner,sun5i-a13-ts";
  1359. reg = <0x01c25000 0x100>;
  1360. interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
  1361. #thermal-sensor-cells = <0>;
  1362. };
  1363. uart0: serial@01c28000 {
  1364. compatible = "snps,dw-apb-uart";
  1365. reg = <0x01c28000 0x400>;
  1366. interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  1367. reg-shift = <2>;
  1368. reg-io-width = <4>;
  1369. clocks = <&apb1_gates 16>;
  1370. status = "disabled";
  1371. };
  1372. uart1: serial@01c28400 {
  1373. compatible = "snps,dw-apb-uart";
  1374. reg = <0x01c28400 0x400>;
  1375. interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
  1376. reg-shift = <2>;
  1377. reg-io-width = <4>;
  1378. clocks = <&apb1_gates 17>;
  1379. status = "disabled";
  1380. };
  1381. uart2: serial@01c28800 {
  1382. compatible = "snps,dw-apb-uart";
  1383. reg = <0x01c28800 0x400>;
  1384. interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  1385. reg-shift = <2>;
  1386. reg-io-width = <4>;
  1387. clocks = <&apb1_gates 18>;
  1388. status = "disabled";
  1389. };
  1390. uart3: serial@01c28c00 {
  1391. compatible = "snps,dw-apb-uart";
  1392. reg = <0x01c28c00 0x400>;
  1393. interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
  1394. reg-shift = <2>;
  1395. reg-io-width = <4>;
  1396. clocks = <&apb1_gates 19>;
  1397. status = "disabled";
  1398. };
  1399. uart4: serial@01c29000 {
  1400. compatible = "snps,dw-apb-uart";
  1401. reg = <0x01c29000 0x400>;
  1402. interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  1403. reg-shift = <2>;
  1404. reg-io-width = <4>;
  1405. clocks = <&apb1_gates 20>;
  1406. status = "disabled";
  1407. };
  1408. uart5: serial@01c29400 {
  1409. compatible = "snps,dw-apb-uart";
  1410. reg = <0x01c29400 0x400>;
  1411. interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
  1412. reg-shift = <2>;
  1413. reg-io-width = <4>;
  1414. clocks = <&apb1_gates 21>;
  1415. status = "disabled";
  1416. };
  1417. uart6: serial@01c29800 {
  1418. compatible = "snps,dw-apb-uart";
  1419. reg = <0x01c29800 0x400>;
  1420. interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
  1421. reg-shift = <2>;
  1422. reg-io-width = <4>;
  1423. clocks = <&apb1_gates 22>;
  1424. status = "disabled";
  1425. };
  1426. uart7: serial@01c29c00 {
  1427. compatible = "snps,dw-apb-uart";
  1428. reg = <0x01c29c00 0x400>;
  1429. interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
  1430. reg-shift = <2>;
  1431. reg-io-width = <4>;
  1432. clocks = <&apb1_gates 23>;
  1433. status = "disabled";
  1434. };
  1435. i2c0: i2c@01c2ac00 {
  1436. compatible = "allwinner,sun7i-a20-i2c",
  1437. "allwinner,sun4i-a10-i2c";
  1438. reg = <0x01c2ac00 0x400>;
  1439. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  1440. clocks = <&apb1_gates 0>;
  1441. status = "disabled";
  1442. #address-cells = <1>;
  1443. #size-cells = <0>;
  1444. };
  1445. i2c1: i2c@01c2b000 {
  1446. compatible = "allwinner,sun7i-a20-i2c",
  1447. "allwinner,sun4i-a10-i2c";
  1448. reg = <0x01c2b000 0x400>;
  1449. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
  1450. clocks = <&apb1_gates 1>;
  1451. status = "disabled";
  1452. #address-cells = <1>;
  1453. #size-cells = <0>;
  1454. };
  1455. i2c2: i2c@01c2b400 {
  1456. compatible = "allwinner,sun7i-a20-i2c",
  1457. "allwinner,sun4i-a10-i2c";
  1458. reg = <0x01c2b400 0x400>;
  1459. interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
  1460. clocks = <&apb1_gates 2>;
  1461. status = "disabled";
  1462. #address-cells = <1>;
  1463. #size-cells = <0>;
  1464. };
  1465. i2c3: i2c@01c2b800 {
  1466. compatible = "allwinner,sun7i-a20-i2c",
  1467. "allwinner,sun4i-a10-i2c";
  1468. reg = <0x01c2b800 0x400>;
  1469. interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
  1470. clocks = <&apb1_gates 3>;
  1471. status = "disabled";
  1472. #address-cells = <1>;
  1473. #size-cells = <0>;
  1474. };
  1475. i2c4: i2c@01c2c000 {
  1476. compatible = "allwinner,sun7i-a20-i2c",
  1477. "allwinner,sun4i-a10-i2c";
  1478. reg = <0x01c2c000 0x400>;
  1479. interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
  1480. clocks = <&apb1_gates 15>;
  1481. status = "disabled";
  1482. #address-cells = <1>;
  1483. #size-cells = <0>;
  1484. };
  1485. gmac: ethernet@01c50000 {
  1486. compatible = "allwinner,sun7i-a20-gmac";
  1487. reg = <0x01c50000 0x10000>;
  1488. interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
  1489. interrupt-names = "macirq";
  1490. clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
  1491. clock-names = "stmmaceth", "allwinner_gmac_tx";
  1492. snps,pbl = <2>;
  1493. snps,fixed-burst;
  1494. snps,force_sf_dma_mode;
  1495. status = "disabled";
  1496. #address-cells = <1>;
  1497. #size-cells = <0>;
  1498. };
  1499. hstimer@01c60000 {
  1500. compatible = "allwinner,sun7i-a20-hstimer";
  1501. reg = <0x01c60000 0x1000>;
  1502. interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
  1503. <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
  1504. <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
  1505. <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
  1506. clocks = <&ahb_gates 28>;
  1507. };
  1508. gic: interrupt-controller@01c81000 {
  1509. compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
  1510. reg = <0x01c81000 0x1000>,
  1511. <0x01c82000 0x1000>,
  1512. <0x01c84000 0x2000>,
  1513. <0x01c86000 0x2000>;
  1514. interrupt-controller;
  1515. #interrupt-cells = <3>;
  1516. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  1517. };
  1518. ps20: ps2@01c2a000 {
  1519. compatible = "allwinner,sun4i-a10-ps2";
  1520. reg = <0x01c2a000 0x400>;
  1521. interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
  1522. clocks = <&apb1_gates 6>;
  1523. status = "disabled";
  1524. };
  1525. ps21: ps2@01c2a400 {
  1526. compatible = "allwinner,sun4i-a10-ps2";
  1527. reg = <0x01c2a400 0x400>;
  1528. interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
  1529. clocks = <&apb1_gates 7>;
  1530. status = "disabled";
  1531. };
  1532. };
  1533. };