sun4i-a10.dtsi 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379
  1. /*
  2. * Copyright 2012 Stefan Roese
  3. * Stefan Roese <sr@denx.de>
  4. *
  5. * This file is dual-licensed: you can use it either under the terms
  6. * of the GPL or the X11 license, at your option. Note that this dual
  7. * licensing only applies to this file, and not this project as a
  8. * whole.
  9. *
  10. * a) This library is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License as
  12. * published by the Free Software Foundation; either version 2 of the
  13. * License, or (at your option) any later version.
  14. *
  15. * This library is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * Or, alternatively,
  21. *
  22. * b) Permission is hereby granted, free of charge, to any person
  23. * obtaining a copy of this software and associated documentation
  24. * files (the "Software"), to deal in the Software without
  25. * restriction, including without limitation the rights to use,
  26. * copy, modify, merge, publish, distribute, sublicense, and/or
  27. * sell copies of the Software, and to permit persons to whom the
  28. * Software is furnished to do so, subject to the following
  29. * conditions:
  30. *
  31. * The above copyright notice and this permission notice shall be
  32. * included in all copies or substantial portions of the Software.
  33. *
  34. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  35. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  36. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  37. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  38. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  39. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  40. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  41. * OTHER DEALINGS IN THE SOFTWARE.
  42. */
  43. #include "skeleton.dtsi"
  44. #include <dt-bindings/thermal/thermal.h>
  45. #include <dt-bindings/clock/sun4i-a10-pll2.h>
  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 = <&ahb_gates 36>, <&ahb_gates 43>,
  62. <&ahb_gates 44>, <&de_be0_clk>,
  63. <&tcon0_ch1_clk>, <&dram_gates 26>;
  64. status = "disabled";
  65. };
  66. framebuffer@1 {
  67. compatible = "allwinner,simple-framebuffer",
  68. "simple-framebuffer";
  69. allwinner,pipeline = "de_fe0-de_be0-lcd0-hdmi";
  70. clocks = <&ahb_gates 36>, <&ahb_gates 43>,
  71. <&ahb_gates 44>, <&ahb_gates 46>,
  72. <&de_be0_clk>, <&de_fe0_clk>, <&tcon0_ch1_clk>,
  73. <&dram_gates 25>, <&dram_gates 26>;
  74. status = "disabled";
  75. };
  76. framebuffer@2 {
  77. compatible = "allwinner,simple-framebuffer",
  78. "simple-framebuffer";
  79. allwinner,pipeline = "de_fe0-de_be0-lcd0";
  80. clocks = <&ahb_gates 36>, <&ahb_gates 44>, <&ahb_gates 46>,
  81. <&de_be0_clk>, <&de_fe0_clk>, <&tcon0_ch0_clk>,
  82. <&dram_gates 25>, <&dram_gates 26>;
  83. status = "disabled";
  84. };
  85. framebuffer@3 {
  86. compatible = "allwinner,simple-framebuffer",
  87. "simple-framebuffer";
  88. allwinner,pipeline = "de_fe0-de_be0-lcd0-tve0";
  89. clocks = <&ahb_gates 34>, <&ahb_gates 36>,
  90. <&ahb_gates 44>, <&ahb_gates 46>,
  91. <&de_be0_clk>, <&de_fe0_clk>,
  92. <&tcon0_ch1_clk>, <&dram_gates 5>,
  93. <&dram_gates 25>, <&dram_gates 26>;
  94. status = "disabled";
  95. };
  96. };
  97. cpus {
  98. #address-cells = <1>;
  99. #size-cells = <0>;
  100. cpu0: cpu@0 {
  101. device_type = "cpu";
  102. compatible = "arm,cortex-a8";
  103. reg = <0x0>;
  104. clocks = <&cpu>;
  105. clock-latency = <244144>; /* 8 32k periods */
  106. operating-points = <
  107. /* kHz uV */
  108. 1008000 1400000
  109. 912000 1350000
  110. 864000 1300000
  111. 624000 1250000
  112. >;
  113. #cooling-cells = <2>;
  114. cooling-min-level = <0>;
  115. cooling-max-level = <3>;
  116. };
  117. };
  118. thermal-zones {
  119. cpu_thermal {
  120. /* milliseconds */
  121. polling-delay-passive = <250>;
  122. polling-delay = <1000>;
  123. thermal-sensors = <&rtp>;
  124. cooling-maps {
  125. map0 {
  126. trip = <&cpu_alert0>;
  127. cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  128. };
  129. };
  130. trips {
  131. cpu_alert0: cpu_alert0 {
  132. /* milliCelsius */
  133. temperature = <850000>;
  134. hysteresis = <2000>;
  135. type = "passive";
  136. };
  137. cpu_crit: cpu_crit {
  138. /* milliCelsius */
  139. temperature = <100000>;
  140. hysteresis = <2000>;
  141. type = "critical";
  142. };
  143. };
  144. };
  145. };
  146. memory {
  147. reg = <0x40000000 0x80000000>;
  148. };
  149. clocks {
  150. #address-cells = <1>;
  151. #size-cells = <1>;
  152. ranges;
  153. /*
  154. * This is a dummy clock, to be used as placeholder on
  155. * other mux clocks when a specific parent clock is not
  156. * yet implemented. It should be dropped when the driver
  157. * is complete.
  158. */
  159. dummy: dummy {
  160. #clock-cells = <0>;
  161. compatible = "fixed-clock";
  162. clock-frequency = <0>;
  163. };
  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. compatible = "fixed-factor-clock";
  173. #clock-cells = <0>;
  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. compatible = "fixed-factor-clock";
  209. #clock-cells = <0>;
  210. clock-div = <1>;
  211. clock-mult = <2>;
  212. clocks = <&pll3>;
  213. clock-output-names = "pll3-2x";
  214. };
  215. pll4: clk@01c20018 {
  216. #clock-cells = <0>;
  217. compatible = "allwinner,sun4i-a10-pll1-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. };
  236. pll7: clk@01c20030 {
  237. #clock-cells = <0>;
  238. compatible = "allwinner,sun4i-a10-pll3-clk";
  239. reg = <0x01c20030 0x4>;
  240. clocks = <&osc3M>;
  241. clock-output-names = "pll7";
  242. };
  243. pll7x2: pll7x2_clk {
  244. compatible = "fixed-factor-clock";
  245. #clock-cells = <0>;
  246. clock-div = <1>;
  247. clock-mult = <2>;
  248. clocks = <&pll7>;
  249. clock-output-names = "pll7-2x";
  250. };
  251. /* dummy is 200M */
  252. cpu: cpu@01c20054 {
  253. #clock-cells = <0>;
  254. compatible = "allwinner,sun4i-a10-cpu-clk";
  255. reg = <0x01c20054 0x4>;
  256. clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
  257. clock-output-names = "cpu";
  258. };
  259. axi: axi@01c20054 {
  260. #clock-cells = <0>;
  261. compatible = "allwinner,sun4i-a10-axi-clk";
  262. reg = <0x01c20054 0x4>;
  263. clocks = <&cpu>;
  264. clock-output-names = "axi";
  265. };
  266. axi_gates: clk@01c2005c {
  267. #clock-cells = <1>;
  268. compatible = "allwinner,sun4i-a10-axi-gates-clk";
  269. reg = <0x01c2005c 0x4>;
  270. clocks = <&axi>;
  271. clock-indices = <0>;
  272. clock-output-names = "axi_dram";
  273. };
  274. ahb: ahb@01c20054 {
  275. #clock-cells = <0>;
  276. compatible = "allwinner,sun4i-a10-ahb-clk";
  277. reg = <0x01c20054 0x4>;
  278. clocks = <&axi>;
  279. clock-output-names = "ahb";
  280. };
  281. ahb_gates: clk@01c20060 {
  282. #clock-cells = <1>;
  283. compatible = "allwinner,sun4i-a10-ahb-gates-clk";
  284. reg = <0x01c20060 0x8>;
  285. clocks = <&ahb>;
  286. clock-indices = <0>, <1>,
  287. <2>, <3>,
  288. <4>, <5>, <6>,
  289. <7>, <8>, <9>,
  290. <10>, <11>, <12>,
  291. <13>, <14>, <16>,
  292. <17>, <18>, <20>,
  293. <21>, <22>, <23>,
  294. <24>, <25>, <26>,
  295. <32>, <33>, <34>,
  296. <35>, <36>, <37>,
  297. <40>, <41>, <43>,
  298. <44>, <45>,
  299. <46>, <47>,
  300. <50>, <52>;
  301. clock-output-names = "ahb_usb0", "ahb_ehci0",
  302. "ahb_ohci0", "ahb_ehci1",
  303. "ahb_ohci1", "ahb_ss", "ahb_dma",
  304. "ahb_bist", "ahb_mmc0", "ahb_mmc1",
  305. "ahb_mmc2", "ahb_mmc3", "ahb_ms",
  306. "ahb_nand", "ahb_sdram", "ahb_ace",
  307. "ahb_emac", "ahb_ts", "ahb_spi0",
  308. "ahb_spi1", "ahb_spi2", "ahb_spi3",
  309. "ahb_pata", "ahb_sata", "ahb_gps",
  310. "ahb_ve", "ahb_tvd", "ahb_tve0",
  311. "ahb_tve1", "ahb_lcd0", "ahb_lcd1",
  312. "ahb_csi0", "ahb_csi1", "ahb_hdmi",
  313. "ahb_de_be0", "ahb_de_be1",
  314. "ahb_de_fe0", "ahb_de_fe1",
  315. "ahb_mp", "ahb_mali400";
  316. };
  317. apb0: apb0@01c20054 {
  318. #clock-cells = <0>;
  319. compatible = "allwinner,sun4i-a10-apb0-clk";
  320. reg = <0x01c20054 0x4>;
  321. clocks = <&ahb>;
  322. clock-output-names = "apb0";
  323. };
  324. apb0_gates: clk@01c20068 {
  325. #clock-cells = <1>;
  326. compatible = "allwinner,sun4i-a10-apb0-gates-clk";
  327. reg = <0x01c20068 0x4>;
  328. clocks = <&apb0>;
  329. clock-indices = <0>, <1>,
  330. <2>, <3>,
  331. <5>, <6>,
  332. <7>, <10>;
  333. clock-output-names = "apb0_codec", "apb0_spdif",
  334. "apb0_ac97", "apb0_iis",
  335. "apb0_pio", "apb0_ir0",
  336. "apb0_ir1", "apb0_keypad";
  337. };
  338. apb1: clk@01c20058 {
  339. #clock-cells = <0>;
  340. compatible = "allwinner,sun4i-a10-apb1-clk";
  341. reg = <0x01c20058 0x4>;
  342. clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
  343. clock-output-names = "apb1";
  344. };
  345. apb1_gates: clk@01c2006c {
  346. #clock-cells = <1>;
  347. compatible = "allwinner,sun4i-a10-apb1-gates-clk";
  348. reg = <0x01c2006c 0x4>;
  349. clocks = <&apb1>;
  350. clock-indices = <0>, <1>,
  351. <2>, <4>,
  352. <5>, <6>,
  353. <7>, <16>,
  354. <17>, <18>,
  355. <19>, <20>,
  356. <21>, <22>,
  357. <23>;
  358. clock-output-names = "apb1_i2c0", "apb1_i2c1",
  359. "apb1_i2c2", "apb1_can",
  360. "apb1_scr", "apb1_ps20",
  361. "apb1_ps21", "apb1_uart0",
  362. "apb1_uart1", "apb1_uart2",
  363. "apb1_uart3", "apb1_uart4",
  364. "apb1_uart5", "apb1_uart6",
  365. "apb1_uart7";
  366. };
  367. nand_clk: clk@01c20080 {
  368. #clock-cells = <0>;
  369. compatible = "allwinner,sun4i-a10-mod0-clk";
  370. reg = <0x01c20080 0x4>;
  371. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  372. clock-output-names = "nand";
  373. };
  374. ms_clk: clk@01c20084 {
  375. #clock-cells = <0>;
  376. compatible = "allwinner,sun4i-a10-mod0-clk";
  377. reg = <0x01c20084 0x4>;
  378. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  379. clock-output-names = "ms";
  380. };
  381. mmc0_clk: clk@01c20088 {
  382. #clock-cells = <1>;
  383. compatible = "allwinner,sun4i-a10-mmc-clk";
  384. reg = <0x01c20088 0x4>;
  385. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  386. clock-output-names = "mmc0",
  387. "mmc0_output",
  388. "mmc0_sample";
  389. };
  390. mmc1_clk: clk@01c2008c {
  391. #clock-cells = <1>;
  392. compatible = "allwinner,sun4i-a10-mmc-clk";
  393. reg = <0x01c2008c 0x4>;
  394. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  395. clock-output-names = "mmc1",
  396. "mmc1_output",
  397. "mmc1_sample";
  398. };
  399. mmc2_clk: clk@01c20090 {
  400. #clock-cells = <1>;
  401. compatible = "allwinner,sun4i-a10-mmc-clk";
  402. reg = <0x01c20090 0x4>;
  403. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  404. clock-output-names = "mmc2",
  405. "mmc2_output",
  406. "mmc2_sample";
  407. };
  408. mmc3_clk: clk@01c20094 {
  409. #clock-cells = <1>;
  410. compatible = "allwinner,sun4i-a10-mmc-clk";
  411. reg = <0x01c20094 0x4>;
  412. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  413. clock-output-names = "mmc3",
  414. "mmc3_output",
  415. "mmc3_sample";
  416. };
  417. ts_clk: clk@01c20098 {
  418. #clock-cells = <0>;
  419. compatible = "allwinner,sun4i-a10-mod0-clk";
  420. reg = <0x01c20098 0x4>;
  421. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  422. clock-output-names = "ts";
  423. };
  424. ss_clk: clk@01c2009c {
  425. #clock-cells = <0>;
  426. compatible = "allwinner,sun4i-a10-mod0-clk";
  427. reg = <0x01c2009c 0x4>;
  428. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  429. clock-output-names = "ss";
  430. };
  431. spi0_clk: clk@01c200a0 {
  432. #clock-cells = <0>;
  433. compatible = "allwinner,sun4i-a10-mod0-clk";
  434. reg = <0x01c200a0 0x4>;
  435. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  436. clock-output-names = "spi0";
  437. };
  438. spi1_clk: clk@01c200a4 {
  439. #clock-cells = <0>;
  440. compatible = "allwinner,sun4i-a10-mod0-clk";
  441. reg = <0x01c200a4 0x4>;
  442. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  443. clock-output-names = "spi1";
  444. };
  445. spi2_clk: clk@01c200a8 {
  446. #clock-cells = <0>;
  447. compatible = "allwinner,sun4i-a10-mod0-clk";
  448. reg = <0x01c200a8 0x4>;
  449. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  450. clock-output-names = "spi2";
  451. };
  452. pata_clk: clk@01c200ac {
  453. #clock-cells = <0>;
  454. compatible = "allwinner,sun4i-a10-mod0-clk";
  455. reg = <0x01c200ac 0x4>;
  456. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  457. clock-output-names = "pata";
  458. };
  459. ir0_clk: clk@01c200b0 {
  460. #clock-cells = <0>;
  461. compatible = "allwinner,sun4i-a10-mod0-clk";
  462. reg = <0x01c200b0 0x4>;
  463. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  464. clock-output-names = "ir0";
  465. };
  466. ir1_clk: clk@01c200b4 {
  467. #clock-cells = <0>;
  468. compatible = "allwinner,sun4i-a10-mod0-clk";
  469. reg = <0x01c200b4 0x4>;
  470. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  471. clock-output-names = "ir1";
  472. };
  473. spdif_clk: clk@01c200c0 {
  474. #clock-cells = <0>;
  475. compatible = "allwinner,sun4i-a10-mod1-clk";
  476. reg = <0x01c200c0 0x4>;
  477. clocks = <&pll2 SUN4I_A10_PLL2_8X>,
  478. <&pll2 SUN4I_A10_PLL2_4X>,
  479. <&pll2 SUN4I_A10_PLL2_2X>,
  480. <&pll2 SUN4I_A10_PLL2_1X>;
  481. clock-output-names = "spdif";
  482. };
  483. usb_clk: clk@01c200cc {
  484. #clock-cells = <1>;
  485. #reset-cells = <1>;
  486. compatible = "allwinner,sun4i-a10-usb-clk";
  487. reg = <0x01c200cc 0x4>;
  488. clocks = <&pll6 1>;
  489. clock-output-names = "usb_ohci0", "usb_ohci1",
  490. "usb_phy";
  491. };
  492. spi3_clk: clk@01c200d4 {
  493. #clock-cells = <0>;
  494. compatible = "allwinner,sun4i-a10-mod0-clk";
  495. reg = <0x01c200d4 0x4>;
  496. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  497. clock-output-names = "spi3";
  498. };
  499. dram_gates: clk@01c20100 {
  500. #clock-cells = <1>;
  501. compatible = "allwinner,sun4i-a10-dram-gates-clk";
  502. reg = <0x01c20100 0x4>;
  503. clocks = <&pll5 0>;
  504. clock-indices = <0>,
  505. <1>, <2>,
  506. <3>,
  507. <4>,
  508. <5>, <6>,
  509. <15>,
  510. <24>, <25>,
  511. <26>, <27>,
  512. <28>, <29>;
  513. clock-output-names = "dram_ve",
  514. "dram_csi0", "dram_csi1",
  515. "dram_ts",
  516. "dram_tvd",
  517. "dram_tve0", "dram_tve1",
  518. "dram_output",
  519. "dram_de_fe1", "dram_de_fe0",
  520. "dram_de_be0", "dram_de_be1",
  521. "dram_de_mp", "dram_ace";
  522. };
  523. de_be0_clk: clk@01c20104 {
  524. #clock-cells = <0>;
  525. #reset-cells = <0>;
  526. compatible = "allwinner,sun4i-a10-display-clk";
  527. reg = <0x01c20104 0x4>;
  528. clocks = <&pll3>, <&pll7>, <&pll5 1>;
  529. clock-output-names = "de-be0";
  530. };
  531. de_be1_clk: clk@01c20108 {
  532. #clock-cells = <0>;
  533. #reset-cells = <0>;
  534. compatible = "allwinner,sun4i-a10-display-clk";
  535. reg = <0x01c20108 0x4>;
  536. clocks = <&pll3>, <&pll7>, <&pll5 1>;
  537. clock-output-names = "de-be1";
  538. };
  539. de_fe0_clk: clk@01c2010c {
  540. #clock-cells = <0>;
  541. #reset-cells = <0>;
  542. compatible = "allwinner,sun4i-a10-display-clk";
  543. reg = <0x01c2010c 0x4>;
  544. clocks = <&pll3>, <&pll7>, <&pll5 1>;
  545. clock-output-names = "de-fe0";
  546. };
  547. de_fe1_clk: clk@01c20110 {
  548. #clock-cells = <0>;
  549. #reset-cells = <0>;
  550. compatible = "allwinner,sun4i-a10-display-clk";
  551. reg = <0x01c20110 0x4>;
  552. clocks = <&pll3>, <&pll7>, <&pll5 1>;
  553. clock-output-names = "de-fe1";
  554. };
  555. tcon0_ch0_clk: clk@01c20118 {
  556. #clock-cells = <0>;
  557. #reset-cells = <1>;
  558. compatible = "allwinner,sun4i-a10-tcon-ch0-clk";
  559. reg = <0x01c20118 0x4>;
  560. clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
  561. clock-output-names = "tcon0-ch0-sclk";
  562. };
  563. tcon1_ch0_clk: clk@01c2011c {
  564. #clock-cells = <0>;
  565. #reset-cells = <1>;
  566. compatible = "allwinner,sun4i-a10-tcon-ch1-clk";
  567. reg = <0x01c2011c 0x4>;
  568. clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
  569. clock-output-names = "tcon1-ch0-sclk";
  570. };
  571. tcon0_ch1_clk: clk@01c2012c {
  572. #clock-cells = <0>;
  573. compatible = "allwinner,sun4i-a10-tcon-ch0-clk";
  574. reg = <0x01c2012c 0x4>;
  575. clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
  576. clock-output-names = "tcon0-ch1-sclk";
  577. };
  578. tcon1_ch1_clk: clk@01c20130 {
  579. #clock-cells = <0>;
  580. compatible = "allwinner,sun4i-a10-tcon-ch1-clk";
  581. reg = <0x01c20130 0x4>;
  582. clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
  583. clock-output-names = "tcon1-ch1-sclk";
  584. };
  585. ve_clk: clk@01c2013c {
  586. #clock-cells = <0>;
  587. #reset-cells = <0>;
  588. compatible = "allwinner,sun4i-a10-ve-clk";
  589. reg = <0x01c2013c 0x4>;
  590. clocks = <&pll4>;
  591. clock-output-names = "ve";
  592. };
  593. codec_clk: clk@01c20140 {
  594. #clock-cells = <0>;
  595. compatible = "allwinner,sun4i-a10-codec-clk";
  596. reg = <0x01c20140 0x4>;
  597. clocks = <&pll2 SUN4I_A10_PLL2_1X>;
  598. clock-output-names = "codec";
  599. };
  600. };
  601. soc@01c00000 {
  602. compatible = "simple-bus";
  603. #address-cells = <1>;
  604. #size-cells = <1>;
  605. ranges;
  606. sram-controller@01c00000 {
  607. compatible = "allwinner,sun4i-a10-sram-controller";
  608. reg = <0x01c00000 0x30>;
  609. #address-cells = <1>;
  610. #size-cells = <1>;
  611. ranges;
  612. sram_a: sram@00000000 {
  613. compatible = "mmio-sram";
  614. reg = <0x00000000 0xc000>;
  615. #address-cells = <1>;
  616. #size-cells = <1>;
  617. ranges = <0 0x00000000 0xc000>;
  618. emac_sram: sram-section@8000 {
  619. compatible = "allwinner,sun4i-a10-sram-a3-a4";
  620. reg = <0x8000 0x4000>;
  621. status = "disabled";
  622. };
  623. };
  624. sram_d: sram@00010000 {
  625. compatible = "mmio-sram";
  626. reg = <0x00010000 0x1000>;
  627. #address-cells = <1>;
  628. #size-cells = <1>;
  629. ranges = <0 0x00010000 0x1000>;
  630. otg_sram: sram-section@0000 {
  631. compatible = "allwinner,sun4i-a10-sram-d";
  632. reg = <0x0000 0x1000>;
  633. status = "disabled";
  634. };
  635. };
  636. };
  637. dma: dma-controller@01c02000 {
  638. compatible = "allwinner,sun4i-a10-dma";
  639. reg = <0x01c02000 0x1000>;
  640. interrupts = <27>;
  641. clocks = <&ahb_gates 6>;
  642. #dma-cells = <2>;
  643. };
  644. nfc: nand@01c03000 {
  645. compatible = "allwinner,sun4i-a10-nand";
  646. reg = <0x01c03000 0x1000>;
  647. interrupts = <37>;
  648. clocks = <&ahb_gates 13>, <&nand_clk>;
  649. clock-names = "ahb", "mod";
  650. dmas = <&dma SUN4I_DMA_DEDICATED 3>;
  651. dma-names = "rxtx";
  652. status = "disabled";
  653. #address-cells = <1>;
  654. #size-cells = <0>;
  655. };
  656. spi0: spi@01c05000 {
  657. compatible = "allwinner,sun4i-a10-spi";
  658. reg = <0x01c05000 0x1000>;
  659. interrupts = <10>;
  660. clocks = <&ahb_gates 20>, <&spi0_clk>;
  661. clock-names = "ahb", "mod";
  662. dmas = <&dma SUN4I_DMA_DEDICATED 27>,
  663. <&dma SUN4I_DMA_DEDICATED 26>;
  664. dma-names = "rx", "tx";
  665. status = "disabled";
  666. #address-cells = <1>;
  667. #size-cells = <0>;
  668. };
  669. spi1: spi@01c06000 {
  670. compatible = "allwinner,sun4i-a10-spi";
  671. reg = <0x01c06000 0x1000>;
  672. interrupts = <11>;
  673. clocks = <&ahb_gates 21>, <&spi1_clk>;
  674. clock-names = "ahb", "mod";
  675. dmas = <&dma SUN4I_DMA_DEDICATED 9>,
  676. <&dma SUN4I_DMA_DEDICATED 8>;
  677. dma-names = "rx", "tx";
  678. status = "disabled";
  679. #address-cells = <1>;
  680. #size-cells = <0>;
  681. };
  682. emac: ethernet@01c0b000 {
  683. compatible = "allwinner,sun4i-a10-emac";
  684. reg = <0x01c0b000 0x1000>;
  685. interrupts = <55>;
  686. clocks = <&ahb_gates 17>;
  687. allwinner,sram = <&emac_sram 1>;
  688. status = "disabled";
  689. };
  690. mdio: mdio@01c0b080 {
  691. compatible = "allwinner,sun4i-a10-mdio";
  692. reg = <0x01c0b080 0x14>;
  693. status = "disabled";
  694. #address-cells = <1>;
  695. #size-cells = <0>;
  696. };
  697. mmc0: mmc@01c0f000 {
  698. compatible = "allwinner,sun4i-a10-mmc";
  699. reg = <0x01c0f000 0x1000>;
  700. clocks = <&ahb_gates 8>,
  701. <&mmc0_clk 0>,
  702. <&mmc0_clk 1>,
  703. <&mmc0_clk 2>;
  704. clock-names = "ahb",
  705. "mmc",
  706. "output",
  707. "sample";
  708. interrupts = <32>;
  709. status = "disabled";
  710. #address-cells = <1>;
  711. #size-cells = <0>;
  712. };
  713. mmc1: mmc@01c10000 {
  714. compatible = "allwinner,sun4i-a10-mmc";
  715. reg = <0x01c10000 0x1000>;
  716. clocks = <&ahb_gates 9>,
  717. <&mmc1_clk 0>,
  718. <&mmc1_clk 1>,
  719. <&mmc1_clk 2>;
  720. clock-names = "ahb",
  721. "mmc",
  722. "output",
  723. "sample";
  724. interrupts = <33>;
  725. status = "disabled";
  726. #address-cells = <1>;
  727. #size-cells = <0>;
  728. };
  729. mmc2: mmc@01c11000 {
  730. compatible = "allwinner,sun4i-a10-mmc";
  731. reg = <0x01c11000 0x1000>;
  732. clocks = <&ahb_gates 10>,
  733. <&mmc2_clk 0>,
  734. <&mmc2_clk 1>,
  735. <&mmc2_clk 2>;
  736. clock-names = "ahb",
  737. "mmc",
  738. "output",
  739. "sample";
  740. interrupts = <34>;
  741. status = "disabled";
  742. #address-cells = <1>;
  743. #size-cells = <0>;
  744. };
  745. mmc3: mmc@01c12000 {
  746. compatible = "allwinner,sun4i-a10-mmc";
  747. reg = <0x01c12000 0x1000>;
  748. clocks = <&ahb_gates 11>,
  749. <&mmc3_clk 0>,
  750. <&mmc3_clk 1>,
  751. <&mmc3_clk 2>;
  752. clock-names = "ahb",
  753. "mmc",
  754. "output",
  755. "sample";
  756. interrupts = <35>;
  757. status = "disabled";
  758. #address-cells = <1>;
  759. #size-cells = <0>;
  760. };
  761. usb_otg: usb@01c13000 {
  762. compatible = "allwinner,sun4i-a10-musb";
  763. reg = <0x01c13000 0x0400>;
  764. clocks = <&ahb_gates 0>;
  765. interrupts = <38>;
  766. interrupt-names = "mc";
  767. phys = <&usbphy 0>;
  768. phy-names = "usb";
  769. extcon = <&usbphy 0>;
  770. allwinner,sram = <&otg_sram 1>;
  771. status = "disabled";
  772. };
  773. usbphy: phy@01c13400 {
  774. #phy-cells = <1>;
  775. compatible = "allwinner,sun4i-a10-usb-phy";
  776. reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
  777. reg-names = "phy_ctrl", "pmu1", "pmu2";
  778. clocks = <&usb_clk 8>;
  779. clock-names = "usb_phy";
  780. resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
  781. reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
  782. status = "disabled";
  783. };
  784. ehci0: usb@01c14000 {
  785. compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
  786. reg = <0x01c14000 0x100>;
  787. interrupts = <39>;
  788. clocks = <&ahb_gates 1>;
  789. phys = <&usbphy 1>;
  790. phy-names = "usb";
  791. status = "disabled";
  792. };
  793. ohci0: usb@01c14400 {
  794. compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
  795. reg = <0x01c14400 0x100>;
  796. interrupts = <64>;
  797. clocks = <&usb_clk 6>, <&ahb_gates 2>;
  798. phys = <&usbphy 1>;
  799. phy-names = "usb";
  800. status = "disabled";
  801. };
  802. crypto: crypto-engine@01c15000 {
  803. compatible = "allwinner,sun4i-a10-crypto";
  804. reg = <0x01c15000 0x1000>;
  805. interrupts = <86>;
  806. clocks = <&ahb_gates 5>, <&ss_clk>;
  807. clock-names = "ahb", "mod";
  808. };
  809. spi2: spi@01c17000 {
  810. compatible = "allwinner,sun4i-a10-spi";
  811. reg = <0x01c17000 0x1000>;
  812. interrupts = <12>;
  813. clocks = <&ahb_gates 22>, <&spi2_clk>;
  814. clock-names = "ahb", "mod";
  815. dmas = <&dma SUN4I_DMA_DEDICATED 29>,
  816. <&dma SUN4I_DMA_DEDICATED 28>;
  817. dma-names = "rx", "tx";
  818. status = "disabled";
  819. #address-cells = <1>;
  820. #size-cells = <0>;
  821. };
  822. ahci: sata@01c18000 {
  823. compatible = "allwinner,sun4i-a10-ahci";
  824. reg = <0x01c18000 0x1000>;
  825. interrupts = <56>;
  826. clocks = <&pll6 0>, <&ahb_gates 25>;
  827. status = "disabled";
  828. };
  829. ehci1: usb@01c1c000 {
  830. compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
  831. reg = <0x01c1c000 0x100>;
  832. interrupts = <40>;
  833. clocks = <&ahb_gates 3>;
  834. phys = <&usbphy 2>;
  835. phy-names = "usb";
  836. status = "disabled";
  837. };
  838. ohci1: usb@01c1c400 {
  839. compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
  840. reg = <0x01c1c400 0x100>;
  841. interrupts = <65>;
  842. clocks = <&usb_clk 7>, <&ahb_gates 4>;
  843. phys = <&usbphy 2>;
  844. phy-names = "usb";
  845. status = "disabled";
  846. };
  847. spi3: spi@01c1f000 {
  848. compatible = "allwinner,sun4i-a10-spi";
  849. reg = <0x01c1f000 0x1000>;
  850. interrupts = <50>;
  851. clocks = <&ahb_gates 23>, <&spi3_clk>;
  852. clock-names = "ahb", "mod";
  853. dmas = <&dma SUN4I_DMA_DEDICATED 31>,
  854. <&dma SUN4I_DMA_DEDICATED 30>;
  855. dma-names = "rx", "tx";
  856. status = "disabled";
  857. #address-cells = <1>;
  858. #size-cells = <0>;
  859. };
  860. intc: interrupt-controller@01c20400 {
  861. compatible = "allwinner,sun4i-a10-ic";
  862. reg = <0x01c20400 0x400>;
  863. interrupt-controller;
  864. #interrupt-cells = <1>;
  865. };
  866. pio: pinctrl@01c20800 {
  867. compatible = "allwinner,sun4i-a10-pinctrl";
  868. reg = <0x01c20800 0x400>;
  869. interrupts = <28>;
  870. clocks = <&apb0_gates 5>;
  871. gpio-controller;
  872. interrupt-controller;
  873. #interrupt-cells = <3>;
  874. #gpio-cells = <3>;
  875. emac_pins_a: emac0@0 {
  876. allwinner,pins = "PA0", "PA1", "PA2",
  877. "PA3", "PA4", "PA5", "PA6",
  878. "PA7", "PA8", "PA9", "PA10",
  879. "PA11", "PA12", "PA13", "PA14",
  880. "PA15", "PA16";
  881. allwinner,function = "emac";
  882. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  883. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  884. };
  885. i2c0_pins_a: i2c0@0 {
  886. allwinner,pins = "PB0", "PB1";
  887. allwinner,function = "i2c0";
  888. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  889. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  890. };
  891. i2c1_pins_a: i2c1@0 {
  892. allwinner,pins = "PB18", "PB19";
  893. allwinner,function = "i2c1";
  894. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  895. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  896. };
  897. i2c2_pins_a: i2c2@0 {
  898. allwinner,pins = "PB20", "PB21";
  899. allwinner,function = "i2c2";
  900. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  901. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  902. };
  903. ir0_rx_pins_a: ir0@0 {
  904. allwinner,pins = "PB4";
  905. allwinner,function = "ir0";
  906. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  907. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  908. };
  909. ir0_tx_pins_a: ir0@1 {
  910. allwinner,pins = "PB3";
  911. allwinner,function = "ir0";
  912. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  913. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  914. };
  915. ir1_rx_pins_a: ir1@0 {
  916. allwinner,pins = "PB23";
  917. allwinner,function = "ir1";
  918. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  919. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  920. };
  921. ir1_tx_pins_a: ir1@1 {
  922. allwinner,pins = "PB22";
  923. allwinner,function = "ir1";
  924. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  925. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  926. };
  927. mmc0_pins_a: mmc0@0 {
  928. allwinner,pins = "PF0", "PF1", "PF2",
  929. "PF3", "PF4", "PF5";
  930. allwinner,function = "mmc0";
  931. allwinner,drive = <SUN4I_PINCTRL_30_MA>;
  932. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  933. };
  934. mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
  935. allwinner,pins = "PH1";
  936. allwinner,function = "gpio_in";
  937. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  938. allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
  939. };
  940. ps20_pins_a: ps20@0 {
  941. allwinner,pins = "PI20", "PI21";
  942. allwinner,function = "ps2";
  943. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  944. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  945. };
  946. ps21_pins_a: ps21@0 {
  947. allwinner,pins = "PH12", "PH13";
  948. allwinner,function = "ps2";
  949. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  950. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  951. };
  952. pwm0_pins_a: pwm0@0 {
  953. allwinner,pins = "PB2";
  954. allwinner,function = "pwm";
  955. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  956. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  957. };
  958. pwm1_pins_a: pwm1@0 {
  959. allwinner,pins = "PI3";
  960. allwinner,function = "pwm";
  961. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  962. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  963. };
  964. spdif_tx_pins_a: spdif@0 {
  965. allwinner,pins = "PB13";
  966. allwinner,function = "spdif";
  967. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  968. allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
  969. };
  970. spi0_pins_a: spi0@0 {
  971. allwinner,pins = "PI11", "PI12", "PI13";
  972. allwinner,function = "spi0";
  973. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  974. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  975. };
  976. spi0_cs0_pins_a: spi0_cs0@0 {
  977. allwinner,pins = "PI10";
  978. allwinner,function = "spi0";
  979. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  980. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  981. };
  982. spi1_pins_a: spi1@0 {
  983. allwinner,pins = "PI17", "PI18", "PI19";
  984. allwinner,function = "spi1";
  985. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  986. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  987. };
  988. spi1_cs0_pins_a: spi1_cs0@0 {
  989. allwinner,pins = "PI16";
  990. allwinner,function = "spi1";
  991. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  992. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  993. };
  994. spi2_pins_a: spi2@0 {
  995. allwinner,pins = "PC20", "PC21", "PC22";
  996. allwinner,function = "spi2";
  997. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  998. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  999. };
  1000. spi2_pins_b: spi2@1 {
  1001. allwinner,pins = "PB15", "PB16", "PB17";
  1002. allwinner,function = "spi2";
  1003. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1004. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1005. };
  1006. spi2_cs0_pins_a: spi2_cs0@0 {
  1007. allwinner,pins = "PC19";
  1008. allwinner,function = "spi2";
  1009. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1010. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1011. };
  1012. spi2_cs0_pins_b: spi2_cs0@1 {
  1013. allwinner,pins = "PB14";
  1014. allwinner,function = "spi2";
  1015. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1016. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1017. };
  1018. uart0_pins_a: uart0@0 {
  1019. allwinner,pins = "PB22", "PB23";
  1020. allwinner,function = "uart0";
  1021. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1022. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1023. };
  1024. uart0_pins_b: uart0@1 {
  1025. allwinner,pins = "PF2", "PF4";
  1026. allwinner,function = "uart0";
  1027. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1028. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1029. };
  1030. uart1_pins_a: uart1@0 {
  1031. allwinner,pins = "PA10", "PA11";
  1032. allwinner,function = "uart1";
  1033. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  1034. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  1035. };
  1036. };
  1037. timer@01c20c00 {
  1038. compatible = "allwinner,sun4i-a10-timer";
  1039. reg = <0x01c20c00 0x90>;
  1040. interrupts = <22>;
  1041. clocks = <&osc24M>;
  1042. };
  1043. wdt: watchdog@01c20c90 {
  1044. compatible = "allwinner,sun4i-a10-wdt";
  1045. reg = <0x01c20c90 0x10>;
  1046. };
  1047. rtc: rtc@01c20d00 {
  1048. compatible = "allwinner,sun4i-a10-rtc";
  1049. reg = <0x01c20d00 0x20>;
  1050. interrupts = <24>;
  1051. };
  1052. pwm: pwm@01c20e00 {
  1053. compatible = "allwinner,sun4i-a10-pwm";
  1054. reg = <0x01c20e00 0xc>;
  1055. clocks = <&osc24M>;
  1056. #pwm-cells = <3>;
  1057. status = "disabled";
  1058. };
  1059. spdif: spdif@01c21000 {
  1060. #sound-dai-cells = <0>;
  1061. compatible = "allwinner,sun4i-a10-spdif";
  1062. reg = <0x01c21000 0x400>;
  1063. interrupts = <13>;
  1064. clocks = <&apb0_gates 1>, <&spdif_clk>;
  1065. clock-names = "apb", "spdif";
  1066. dmas = <&dma SUN4I_DMA_NORMAL 2>,
  1067. <&dma SUN4I_DMA_NORMAL 2>;
  1068. dma-names = "rx", "tx";
  1069. status = "disabled";
  1070. };
  1071. ir0: ir@01c21800 {
  1072. compatible = "allwinner,sun4i-a10-ir";
  1073. clocks = <&apb0_gates 6>, <&ir0_clk>;
  1074. clock-names = "apb", "ir";
  1075. interrupts = <5>;
  1076. reg = <0x01c21800 0x40>;
  1077. status = "disabled";
  1078. };
  1079. ir1: ir@01c21c00 {
  1080. compatible = "allwinner,sun4i-a10-ir";
  1081. clocks = <&apb0_gates 7>, <&ir1_clk>;
  1082. clock-names = "apb", "ir";
  1083. interrupts = <6>;
  1084. reg = <0x01c21c00 0x40>;
  1085. status = "disabled";
  1086. };
  1087. lradc: lradc@01c22800 {
  1088. compatible = "allwinner,sun4i-a10-lradc-keys";
  1089. reg = <0x01c22800 0x100>;
  1090. interrupts = <31>;
  1091. status = "disabled";
  1092. };
  1093. codec: codec@01c22c00 {
  1094. #sound-dai-cells = <0>;
  1095. compatible = "allwinner,sun4i-a10-codec";
  1096. reg = <0x01c22c00 0x40>;
  1097. interrupts = <30>;
  1098. clocks = <&apb0_gates 0>, <&codec_clk>;
  1099. clock-names = "apb", "codec";
  1100. dmas = <&dma SUN4I_DMA_NORMAL 19>,
  1101. <&dma SUN4I_DMA_NORMAL 19>;
  1102. dma-names = "rx", "tx";
  1103. status = "disabled";
  1104. };
  1105. sid: eeprom@01c23800 {
  1106. compatible = "allwinner,sun4i-a10-sid";
  1107. reg = <0x01c23800 0x10>;
  1108. };
  1109. rtp: rtp@01c25000 {
  1110. compatible = "allwinner,sun4i-a10-ts";
  1111. reg = <0x01c25000 0x100>;
  1112. interrupts = <29>;
  1113. #thermal-sensor-cells = <0>;
  1114. };
  1115. uart0: serial@01c28000 {
  1116. compatible = "snps,dw-apb-uart";
  1117. reg = <0x01c28000 0x400>;
  1118. interrupts = <1>;
  1119. reg-shift = <2>;
  1120. reg-io-width = <4>;
  1121. clocks = <&apb1_gates 16>;
  1122. status = "disabled";
  1123. };
  1124. uart1: serial@01c28400 {
  1125. compatible = "snps,dw-apb-uart";
  1126. reg = <0x01c28400 0x400>;
  1127. interrupts = <2>;
  1128. reg-shift = <2>;
  1129. reg-io-width = <4>;
  1130. clocks = <&apb1_gates 17>;
  1131. status = "disabled";
  1132. };
  1133. uart2: serial@01c28800 {
  1134. compatible = "snps,dw-apb-uart";
  1135. reg = <0x01c28800 0x400>;
  1136. interrupts = <3>;
  1137. reg-shift = <2>;
  1138. reg-io-width = <4>;
  1139. clocks = <&apb1_gates 18>;
  1140. status = "disabled";
  1141. };
  1142. uart3: serial@01c28c00 {
  1143. compatible = "snps,dw-apb-uart";
  1144. reg = <0x01c28c00 0x400>;
  1145. interrupts = <4>;
  1146. reg-shift = <2>;
  1147. reg-io-width = <4>;
  1148. clocks = <&apb1_gates 19>;
  1149. status = "disabled";
  1150. };
  1151. uart4: serial@01c29000 {
  1152. compatible = "snps,dw-apb-uart";
  1153. reg = <0x01c29000 0x400>;
  1154. interrupts = <17>;
  1155. reg-shift = <2>;
  1156. reg-io-width = <4>;
  1157. clocks = <&apb1_gates 20>;
  1158. status = "disabled";
  1159. };
  1160. uart5: serial@01c29400 {
  1161. compatible = "snps,dw-apb-uart";
  1162. reg = <0x01c29400 0x400>;
  1163. interrupts = <18>;
  1164. reg-shift = <2>;
  1165. reg-io-width = <4>;
  1166. clocks = <&apb1_gates 21>;
  1167. status = "disabled";
  1168. };
  1169. uart6: serial@01c29800 {
  1170. compatible = "snps,dw-apb-uart";
  1171. reg = <0x01c29800 0x400>;
  1172. interrupts = <19>;
  1173. reg-shift = <2>;
  1174. reg-io-width = <4>;
  1175. clocks = <&apb1_gates 22>;
  1176. status = "disabled";
  1177. };
  1178. uart7: serial@01c29c00 {
  1179. compatible = "snps,dw-apb-uart";
  1180. reg = <0x01c29c00 0x400>;
  1181. interrupts = <20>;
  1182. reg-shift = <2>;
  1183. reg-io-width = <4>;
  1184. clocks = <&apb1_gates 23>;
  1185. status = "disabled";
  1186. };
  1187. i2c0: i2c@01c2ac00 {
  1188. compatible = "allwinner,sun4i-a10-i2c";
  1189. reg = <0x01c2ac00 0x400>;
  1190. interrupts = <7>;
  1191. clocks = <&apb1_gates 0>;
  1192. status = "disabled";
  1193. #address-cells = <1>;
  1194. #size-cells = <0>;
  1195. };
  1196. i2c1: i2c@01c2b000 {
  1197. compatible = "allwinner,sun4i-a10-i2c";
  1198. reg = <0x01c2b000 0x400>;
  1199. interrupts = <8>;
  1200. clocks = <&apb1_gates 1>;
  1201. status = "disabled";
  1202. #address-cells = <1>;
  1203. #size-cells = <0>;
  1204. };
  1205. i2c2: i2c@01c2b400 {
  1206. compatible = "allwinner,sun4i-a10-i2c";
  1207. reg = <0x01c2b400 0x400>;
  1208. interrupts = <9>;
  1209. clocks = <&apb1_gates 2>;
  1210. status = "disabled";
  1211. #address-cells = <1>;
  1212. #size-cells = <0>;
  1213. };
  1214. ps20: ps2@01c2a000 {
  1215. compatible = "allwinner,sun4i-a10-ps2";
  1216. reg = <0x01c2a000 0x400>;
  1217. interrupts = <62>;
  1218. clocks = <&apb1_gates 6>;
  1219. status = "disabled";
  1220. };
  1221. ps21: ps2@01c2a400 {
  1222. compatible = "allwinner,sun4i-a10-ps2";
  1223. reg = <0x01c2a400 0x400>;
  1224. interrupts = <63>;
  1225. clocks = <&apb1_gates 7>;
  1226. status = "disabled";
  1227. };
  1228. };
  1229. };