ark1668e.dtsi 28 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. /include/ "skeleton.dtsi"
  4. #include <dt-bindings/interrupt-controller/arm-gic.h>
  5. #include <dt-bindings/gpio/gpio.h>
  6. #include <dt-bindings/clock/ark-clk.h>
  7. #define DDR512
  8. / {
  9. model = "ARM Arkmicro ark1668e SoC";
  10. compatible = "arkmicro,ark1668e";
  11. interrupt-parent = <&gic>;
  12. aliases {
  13. serial0 = &uart0;
  14. hsserial0 = &hsuart0;
  15. hsserial1 = &hsuart1;
  16. usb0 = &usb0;
  17. usb1 = &usb1;
  18. };
  19. chosen {
  20. bootargs = "console=ttyS0,115200 earlyprintk loglevel=8 clk_ignore_unused";
  21. stdout-path = "serial0:115200n8";
  22. };
  23. cpus {
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. enable-method = "arkmicro,arke-smp";
  27. cpu0: cpu@0 {
  28. compatible = "arm,cortex-a7";
  29. device_type = "cpu";
  30. reg = <0>;
  31. clock-frequency = <800000000>;
  32. next-level-cache = <&L2_CA7>;
  33. };
  34. cpu1: cpu@1 {
  35. compatible = "arm,cortex-a7";
  36. device_type = "cpu";
  37. reg = <1>;
  38. clock-frequency = <800000000>;
  39. next-level-cache = <&L2_CA7>;
  40. };
  41. L2_CA7: cache-controller-0 {
  42. compatible = "cache";
  43. cache-unified;
  44. cache-level = <2>;
  45. };
  46. };
  47. memory {
  48. #ifdef DDR512
  49. reg = <0x40000000 0x1e000000>;
  50. #else
  51. reg = <0x40000000 0xe000000>;
  52. #endif
  53. };
  54. reserved-memory {
  55. #address-cells = <1>;
  56. #size-cells = <1>;
  57. ranges;
  58. /* global autoconfigured region for contiguous allocations */
  59. linux,cma {
  60. compatible = "shared-dma-pool";
  61. reusable;
  62. #ifdef DDR512
  63. size = <0x8000000>;
  64. #else
  65. size = <0x4000000>;
  66. #endif
  67. linux,cma-default;
  68. };
  69. };
  70. iram {
  71. compatible = "arkmicro,arke-iram";
  72. reg = <0x300000 0x8000>;
  73. };
  74. timer {
  75. compatible = "arm,armv7-timer";
  76. arm,cpu-registers-not-fw-configured;
  77. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
  78. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
  79. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
  80. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  81. clock-frequency = <24000000>;
  82. };
  83. sregs@e4900000 {
  84. compatible = "arkmicro,ark-sregs";
  85. reg = <0xe4900000 0x1000>;
  86. clocks {
  87. #address-cells = <1>;
  88. #size-cells = <0>;
  89. xtal32k: xtal32k@32K {
  90. #clock-cells = <0>;
  91. compatible = "fixed-clock";
  92. clock-frequency = <32768>;
  93. };
  94. xtal24mhz: xtal24mhz@24M {
  95. #clock-cells = <0>;
  96. compatible = "fixed-clock";
  97. clock-frequency = <24000000>;
  98. };
  99. xtal25mhz: xtal25mhz@25M {
  100. #clock-cells = <0>;
  101. compatible = "fixed-clock";
  102. clock-frequency = <25000000>;
  103. };
  104. clk240mhz: clk240mhz@240M {
  105. #clock-cells = <0>;
  106. compatible = "fixed-factor-clock";
  107. clock-div = <1>;
  108. clock-mult = <10>;
  109. clocks = <&xtal24mhz>;
  110. };
  111. clk12mhz: clk12mhz@12M {
  112. #clock-cells = <0>;
  113. compatible = "fixed-factor-clock";
  114. clock-div = <2>;
  115. clock-mult = <1>;
  116. clocks = <&xtal24mhz>;
  117. };
  118. clk6mhz: clk6mhz@6M {
  119. #clock-cells = <0>;
  120. compatible = "fixed-factor-clock";
  121. clock-div = <4>;
  122. clock-mult = <1>;
  123. clocks = <&xtal24mhz>;
  124. };
  125. cpupll: cpupll {
  126. #clock-cells = <0>;
  127. compatible = "arkmiro,arke-clk-sscg";
  128. clocks = <&xtal24mhz>;
  129. reg = <0x280>;
  130. reg2 = <0x284>;
  131. };
  132. lcdpll: lcdpll {
  133. #clock-cells = <0>;
  134. compatible = "arkmiro,arke-clk-sscg";
  135. clocks = <&xtal24mhz>;
  136. reg = <0x28c>;
  137. reg2 = <0x290>;
  138. };
  139. macpll: macpll {
  140. #clock-cells = <0>;
  141. compatible = "arkmiro,arke-clk-sscg";
  142. clocks = <&xtal24mhz>;
  143. reg = <0x2b4>;
  144. reg2 = <0x2b8>;
  145. clk-can-change;
  146. };
  147. axipll: axipll {
  148. #clock-cells = <0>;
  149. compatible = "arkmiro,arke-clk-pll";
  150. clocks = <&xtal24mhz>;
  151. reg = <0x298>;
  152. };
  153. ahbpll: ahbpll {
  154. #clock-cells = <0>;
  155. compatible = "arkmiro,arke-clk-pll";
  156. clocks = <&xtal24mhz>;
  157. reg = <0x29c>;
  158. };
  159. apbpll: apbpll {
  160. #clock-cells = <0>;
  161. compatible = "arkmiro,arke-clk-pll";
  162. clocks = <&xtal24mhz>;
  163. reg = <0x2a0>;
  164. };
  165. ddrpll: ddrpll {
  166. #clock-cells = <0>;
  167. compatible = "arkmiro,arke-clk-pll";
  168. clocks = <&xtal24mhz>;
  169. reg = <0x2a8>;
  170. };
  171. audpll: audpll {
  172. #clock-cells = <0>;
  173. compatible = "arkmiro,arke-clk-pll";
  174. clocks = <&xtal24mhz>;
  175. reg = <0x2a4>;
  176. };
  177. tvpll: tvpll {
  178. #clock-cells = <0>;
  179. compatible = "arkmiro,arke-clk-pll";
  180. clocks = <&xtal24mhz>;
  181. reg = <0x2ac>;
  182. };
  183. apbclk: apbclk {
  184. #clock-cells = <0>;
  185. compatible = "arkmiro,ark-clk-sys";
  186. clocks = <&apbpll>, <&axipll>, <&macpll>, <&xtal24mhz>;
  187. reg = <0x40>;
  188. index-offset = <0>;
  189. index-mask = <0xf>;
  190. div-offset = <4>;
  191. div-mask = <0xf>;
  192. div-mode = <ARK_CLK_DIVMODE_PLUSONE>;
  193. };
  194. apbclk1: apbclk1 {
  195. #clock-cells = <0>;
  196. compatible = "arkmiro,ark-clk-sys";
  197. clocks = <&ahbpll>, <&axipll>, <&apbpll>, <&xtal24mhz>;
  198. reg = <0x22c>;
  199. index-offset = <4>;
  200. index-mask = <0x7>;
  201. div-offset = <0>;
  202. div-mask = <0x7>;
  203. div-mode = <ARK_CLK_DIVMODE_PLUSONE>;
  204. };
  205. hsuart0clk: hsuart0clk {
  206. #clock-cells = <0>;
  207. compatible = "arkmiro,ark-clk-sys";
  208. clocks = <&xtal24mhz>, <&apbclk1>;
  209. reg = <0x6c>;
  210. index-offset = <12>;
  211. index-mask = <0x1>;
  212. index-value = <0>;
  213. div-offset = <8>;
  214. div-mask = <0xf>;
  215. div-value = <0>;
  216. div-mode = <ARK_CLK_DIVMODE_NOZERO>;
  217. enable-reg = <0x48 0x50>;
  218. enable-offset = <9 9>;
  219. };
  220. hsuart1clk: hsuart1clk {
  221. #clock-cells = <0>;
  222. compatible = "arkmiro,ark-clk-sys";
  223. clocks = <&xtal24mhz>, <&apbclk1>;
  224. reg = <0x6c>;
  225. index-offset = <17>;
  226. index-mask = <0x1>;
  227. index-value = <0>;
  228. div-offset = <13>;
  229. div-mask = <0xf>;
  230. div-value = <0>;
  231. div-mode = <ARK_CLK_DIVMODE_NOZERO>;
  232. enable-reg = <0x48 0x50>;
  233. enable-offset = <10 10>;
  234. };
  235. pwmclk: pwmclk {
  236. #clock-cells = <0>;
  237. compatible = "arkmiro,ark-clk-sys";
  238. clocks = <&xtal24mhz>, <&apbpll>;
  239. reg = <0x60>;
  240. index-offset = <8>;
  241. index-mask = <0x1>;
  242. index-value = <0>;
  243. div-offset = <4>;
  244. div-mask = <0xf>;
  245. div-value = <1>;
  246. div-mode = <ARK_CLK_DIVMODE_NOZERO>;
  247. enable-reg = <0x48 0x50>;
  248. enable-offset = <13 27>;
  249. };
  250. rtc_clk: rtc-clk {
  251. #clock-cells = <0>;
  252. compatible = "arkmiro,ark-clk-sys";
  253. clocks = <&xtal32k>;
  254. reg = <0x48>;
  255. enable-reg = <0x48>;
  256. enable-offset = <6>;
  257. };
  258. spi_clk: spi-clk {
  259. #clock-cells = <0>;
  260. compatible = "arkmiro,ark-clk-sys";
  261. clocks = <&ahbpll>, <&axipll>, <&apbpll>, <&xtal24mhz>;
  262. reg = <0x60>;
  263. index-offset = <20>;
  264. index-mask = <0xf>;
  265. index-value = <1>;
  266. div-offset = <16>;
  267. div-mask = <0xf>;
  268. div-value = <6>;
  269. div-mode = <ARK_CLK_DIVMODE_PONEDOUBLE>;
  270. enable-reg = <0x48 0x50>;
  271. enable-offset = <4 13>;
  272. };
  273. mmc0clk: mmc0clk {
  274. #clock-cells = <0>;
  275. compatible = "arkmiro,ark-clk-sys";
  276. clocks = <&apbpll>, <&axipll>, <&ahbpll>, <&xtal24mhz>;
  277. reg = <0x58>;
  278. index-offset = <8>;
  279. index-mask = <0xf>;
  280. index-value = <1>;
  281. div-offset = <0>;
  282. div-mask = <0x1f>;
  283. div-value = <16>;
  284. div-mode = <ARK_CLK_DIVMODE_PONEDOUBLE>;
  285. enable-reg = <0x58 0x58>;
  286. enable-offset = <5 7>;
  287. };
  288. mmc1clk: mmc1clk {
  289. #clock-cells = <0>;
  290. compatible = "arkmiro,ark-clk-sys";
  291. clocks = <&apbpll>, <&axipll>, <&ahbpll>, <&xtal24mhz>;
  292. reg = <0x5c>;
  293. index-offset = <8>;
  294. index-mask = <0xf>;
  295. index-value = <1>;
  296. div-offset = <0>;
  297. div-mask = <0x1f>;
  298. div-value = <16>;
  299. div-mode = <ARK_CLK_DIVMODE_PONEDOUBLE>;
  300. enable-reg = <0x5c 0x5c>;
  301. enable-offset = <5 7>;
  302. };
  303. mmc2clk: mmc2clk {
  304. #clock-cells = <0>;
  305. compatible = "arkmiro,ark-clk-sys";
  306. clocks = <&apbpll>, <&axipll>, <&ahbpll>, <&xtal24mhz>;
  307. reg = <0x7c>;
  308. index-offset = <8>;
  309. index-mask = <0xf>;
  310. index-value = <1>;
  311. div-offset = <0>;
  312. div-mask = <0x1f>;
  313. div-value = <16>;
  314. div-mode = <ARK_CLK_DIVMODE_PONEDOUBLE>;
  315. enable-reg = <0x7c 0x7c>;
  316. enable-offset = <5 7>;
  317. };
  318. lcdclkdiv: lcdclkdiv {
  319. #clock-cells = <0>;
  320. compatible = "arkmiro,ark-clk-sys";
  321. clocks = <&lcdpll>, <&axipll>, <&tvpll>, <&xtal24mhz>;
  322. reg = <0x54>;
  323. index-offset = <7>;
  324. index-mask = <0xf>;
  325. index-value = <0>;
  326. div-offset = <4>;
  327. div-mask = <0x7>;
  328. div-value = <1>;
  329. };
  330. lcdclk: lcdclk {
  331. #clock-cells = <0>;
  332. compatible = "arkmiro,ark-clk-sys";
  333. clocks = <&lcdclkdiv>;
  334. reg = <0x54>;
  335. div-offset = <19>;
  336. div-mask = <0xf>;
  337. div-value = <4>;
  338. clk-can-change;
  339. enable-reg = <0x44 0x4c 0x50>;
  340. enable-offset = <8 1 4>;
  341. };
  342. mfcclk: mfcclk {
  343. #clock-cells = <0>;
  344. compatible = "arkmiro,ark-clk-sys";
  345. clocks = <&ahbpll>, <&axipll>, <&apbpll>, <&xtal24mhz>;
  346. reg = <0x64>;
  347. index-offset = <16>;
  348. index-mask = <0x7>;
  349. div-offset = <19>;
  350. div-mask = <0xf>;
  351. };
  352. gpuclk: gpuclk {
  353. #clock-cells = <0>;
  354. compatible = "arkmiro,ark-clk-sys";
  355. clocks = <&ahbpll>, <&axipll>, <&apbpll>, <&xtal24mhz>;
  356. reg = <0x17c>;
  357. index-offset = <8>;
  358. index-mask = <0x7>;
  359. index-value = <2>;
  360. div-offset = <11>;
  361. div-mask = <0xf>;
  362. div-value = <3>;
  363. div-mode = <ARK_CLK_DIVMODE_NOZERO>;
  364. enable-reg = <0x44 0x4c 0x50>;
  365. enable-offset = <19 8 23>;
  366. };
  367. scalclk: scalclk {
  368. #clock-cells = <0>;
  369. compatible = "arkmiro,ark-clk-sys";
  370. clocks = <&lcdpll>, <&axipll>, <&tvpll>, <&xtal24mhz>;
  371. reg = <0x228>;
  372. index-offset = <28>;
  373. index-mask = <0x7>;
  374. index-value = <1>;
  375. div-offset = <24>;
  376. div-mask = <0xf>;
  377. div-value = <3>;
  378. div-mode = <ARK_CLK_DIVMODE_NOZERO>;
  379. //enable-reg = <0x44 0x4c 0x50 0x50>;
  380. //enable-offset = <21 15 25 14>;
  381. };
  382. mac_txclk: mac_txclk {
  383. #clock-cells = <0>;
  384. compatible = "arkmiro,ark-clk-sys";
  385. clocks = <&cpupll>, <&lcdpll>, <&macpll>, <&xtal24mhz>;
  386. reg = <0x234>;
  387. index-offset = <29>;
  388. index-mask = <0x7>;
  389. index-value = <2>;
  390. div-offset = <24>;
  391. div-mask = <0xf>;
  392. div-value = <8>;
  393. div-mode = <ARK_CLK_DIVMODE_PLUSONE>;
  394. enable-reg = <0x234>;
  395. enable-offset = <28>;
  396. clk-can-change;
  397. };
  398. mac_ptpclk: mac_ptpclk {
  399. #clock-cells = <0>;
  400. compatible = "arkmiro,ark-clk-sys";
  401. clocks = <&ahbpll>, <&axipll>, <&apbpll>, <&xtal24mhz>;
  402. reg = <0x230>;
  403. index-offset = <8>;
  404. index-mask = <0x7>;
  405. index-value = <3>;
  406. div-offset = <12>;
  407. div-mask = <0xf>;
  408. div-value = <1>;
  409. div-mode = <ARK_CLK_DIVMODE_NOZERO>;
  410. };
  411. i2s_adc_clk: i2s_adc_clk {
  412. #clock-cells = <0>;
  413. compatible = "arkmiro,ark-clk-sys";
  414. clocks = <&xtal24mhz>, <&audpll>;
  415. reg = <0x6c>;
  416. index-offset = <0>;
  417. index-mask = <0x1>;
  418. index-value = <1>;
  419. };
  420. i2s_dac_clk: i2s_dac_clk {
  421. #clock-cells = <0>;
  422. compatible = "arkmiro,ark-clk-sys";
  423. clocks = <&xtal24mhz>, <&audpll>;
  424. reg = <0x6c>;
  425. index-offset = <2>;
  426. index-mask = <0x1>;
  427. index-value = <1>;
  428. };
  429. i2s2_dac_clk: i2s2_dac_clk {
  430. #clock-cells = <0>;
  431. compatible = "arkmiro,ark-clk-sys";
  432. clocks = <&xtal24mhz>, <&audpll>;
  433. reg = <0x6c>;
  434. index-offset = <4>;
  435. index-mask = <0x1>;
  436. index-value = <1>;
  437. };
  438. can_clk: can_clk {
  439. #clock-cells = <0>;
  440. compatible = "arkmiro,ark-clk-sys";
  441. clocks = <&apbclk>;
  442. reg = <0>;
  443. };
  444. };
  445. };
  446. soc {
  447. compatible = "simple-bus";
  448. #address-cells = <1>;
  449. #size-cells = <1>;
  450. ranges;
  451. gic: interrupt-controller@e0b01000 {
  452. compatible = "arm,cortex-a7-gic";
  453. interrupt-controller;
  454. #interrupt-cells = <3>;
  455. reg = <0xe0b01000 0x1000>,
  456. <0xe0b02000 0x2000>,
  457. <0xe0b04000 0x2000>,
  458. <0xe0b06000 0x2000>;
  459. //interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  460. };
  461. pinctrl0: pinctrl@e4900000 {
  462. compatible = "arkmicro,arke-pinctrl";
  463. reg = <0xe4900000 0x1000>;
  464. pad-reg-offset = <0x1c0>;
  465. npins = <192>;
  466. gpio-mux-pins = <182>;
  467. };
  468. dmac: dmac@e0000000 {
  469. compatible = "snps,axi-dma-1.01a";
  470. reg = <0xe0000000 0x1000>;
  471. interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
  472. clocks = <&ahbpll>, <&ahbpll>;
  473. clock-names = "core-clk", "cfgr-clk";
  474. #dma-cells = <3>;
  475. dma-channels = <8>;
  476. snps,dma-masters = <2>;
  477. snps,data-width = <3>;
  478. snps,block-size = <65536 65536 65536 65536
  479. 65536 65536 65536 65536>;
  480. snps,priority = <0 1 2 3 4 5 6 7>;
  481. snps,axi-max-burst-len = <16>;
  482. };
  483. i2s_adc: i2s-adc@e4000000 {
  484. compatible = "arkmicro,ark1668e-i2s";
  485. reg = <0xe4000000 0x1000>;
  486. interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
  487. nco-reg = <0xe4900174>;
  488. dmas = <&dmac 0 1 0>, <&dmac 1 0 1>;
  489. dma-names = "rx", "tx";
  490. clocks = <&i2s_adc_clk>;
  491. #sound-dai-cells = <0>;
  492. };
  493. i2s_dac: i2s-dac@e4200000 {
  494. compatible = "arkmicro,ark1668e-i2s";
  495. reg = <0xe4200000 0x1000>;
  496. //full-duplex-mode;
  497. interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
  498. nco-reg = <0xe490019c>;
  499. dmas = <&dmac 25 1 0>, <&dmac 26 0 1>;
  500. dma-names = "rx", "tx";
  501. clocks = <&i2s_dac_clk>;
  502. #sound-dai-cells = <0>;
  503. };
  504. i2s2_dac: i2s2-dac@e4800000 {
  505. compatible = "arkmicro,ark1668e-i2s";
  506. reg = <0xe4800000 0x1000>;
  507. interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
  508. nco-reg = <0xe4900178>;
  509. dmas = <&dmac 23 1 0>, <&dmac 24 0 1>;
  510. dma-names = "rx", "tx";
  511. clocks = <&i2s2_dac_clk>;
  512. #sound-dai-cells = <0>;
  513. };
  514. ark_codec: ark-adac@e4900000 {
  515. compatible = "arkmicro,ark-audio-codec";
  516. reg = <0xe4900000 0x1000>;
  517. #sound-dai-cells = <0>;
  518. };
  519. uart0: uart@e8200000 {
  520. compatible = "arkmicro,ark-uart";
  521. reg = <0xe8200000 0x1000>;
  522. interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
  523. current-speed = <115200>;
  524. pinctrl-names = "default";
  525. pinctrl-0 = <&pinctrl_uart0>;
  526. clocks = <&xtal24mhz>;
  527. //dmas = <&dmac 6 1 0>, <&dmac 7 0 1>;
  528. //dma-names = "rx", "tx";
  529. };
  530. uart1: uart@e8300000 {
  531. compatible = "arkmicro,ark-uart";
  532. reg = <0xe8300000 0x1000>;
  533. interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
  534. current-speed = <115200>;
  535. clocks = <&xtal24mhz>;
  536. pinctrl-names = "default";
  537. pinctrl-0 = <&pinctrl_uart1>;
  538. //dmas = <&dmac 12 1 0>, <&dmac 13 0 1>;
  539. //dma-names = "rx", "tx";
  540. };
  541. uart2: uart@e8400000 {
  542. compatible = "arkmicro,ark-uart";
  543. reg = <0xe8400000 0x1000>;
  544. interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
  545. current-speed = <115200>;
  546. clocks = <&xtal24mhz>;
  547. pinctrl-names = "default";
  548. pinctrl-0 = <&pinctrl_uart2>;
  549. //dmas = <&dmac 19 1 0>, <&dmac 20 0 1>;//19 , 20
  550. //dma-names = "rx", "tx";
  551. };
  552. uart3: uart@e8500000 {
  553. compatible = "arkmicro,ark-uart";
  554. reg = <0xe8500000 0x1000>;
  555. interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
  556. current-speed = <115200>;
  557. pinctrl-names = "default";
  558. pinctrl-0 = <&pinctrl_uart3>;
  559. clocks = <&xtal24mhz>;
  560. //dmas = <&dmac 21 1 0>, <&dmac 22 0 1>;//21 , 22
  561. //dma-names = "rx", "tx";
  562. };
  563. hsuart0: hsuart@e8000000 {
  564. compatible = "arkmicro,ark-hsuart";
  565. reg = <0xe8000000 0x4000>;
  566. interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
  567. clocks = <&hsuart0clk>;
  568. pinctrl-names = "default";
  569. pinctrl-0 = <&pinctrl_hsuart0>;
  570. //dmas = <&dmac 14 1 0>, <&dmac 15 0 1>;//14 , 15
  571. //dma-names = "rx", "tx";
  572. };
  573. hsuart1: hsuart@e8100000 {
  574. compatible = "arkmicro,ark-hsuart";
  575. reg = <0xe8100000 0x4000>;
  576. interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
  577. clocks = <&hsuart1clk>;
  578. pinctrl-names = "default";
  579. pinctrl-0 = <&pinctrl_hsuart1>;
  580. dmas = <&dmac 16 1 0>, <&dmac 17 0 1>;//16 , 17
  581. dma-names = "rx", "tx";
  582. };
  583. can0: can0@e4400000 {
  584. compatible = "nxp,sja1000";
  585. reg = <0xe4400000 0x1000>;
  586. interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
  587. reg-io-width = <4>;
  588. pinctrl-names = "default";
  589. pinctrl-0 = <&pinctrl_can0>;
  590. clocks = <&apbclk>;
  591. //nxp,external-clock-frequency = <120000000>;
  592. status = "disabled";
  593. };
  594. can1: can1@e4a00000 {
  595. compatible = "nxp,sja1000";
  596. reg = <0xe4a00000 0x1000>;
  597. interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
  598. reg-io-width = <4>;
  599. pinctrl-names = "default";
  600. pinctrl-0 = <&pinctrl_can1>;
  601. clocks = <&apbclk>;
  602. //nxp,external-clock-frequency = <120000000>;
  603. status = "disabled";
  604. };
  605. timer0: timer@e8600000 {
  606. compatible = "snps,dw-apb-timer-osc";
  607. reg = <0xe8600000 0x14>;
  608. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  609. clocks = <&xtal24mhz>, <&apbclk>;
  610. clock-names = "timer", "pclk";
  611. };
  612. timer1: timer@e8600014 {
  613. compatible = "snps,dw-apb-timer-osc";
  614. reg = <0xe8600014 0x14>;
  615. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
  616. clocks = <&xtal24mhz>, <&apbclk>;
  617. clock-names = "timer", "pclk";
  618. };
  619. watchdog: watchdog@e4b00000 {
  620. compatible = "arkmicro,ark-wdt";
  621. reg = <0xe4b00000 0x20>;
  622. interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  623. clocks = <&apbclk>;
  624. };
  625. gpio0: gpio@e4600000 {
  626. #address-cells = <1>;
  627. #size-cells = <0>;
  628. compatible = "snps,dw-apb-gpio";
  629. reg = <0xe4600000 0x80>;
  630. gporta: gpio-controller@0 {
  631. compatible = "snps,dw-apb-gpio-port";
  632. gpio-controller;
  633. #gpio-cells = <2>;
  634. snps,nr-gpios = <32>;
  635. reg = <0>;
  636. base = <0>;
  637. interrupt-controller;
  638. #interrupt-cells = <2>;
  639. interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  640. gpio-ranges = <&pinctrl0 0 0 32>;
  641. };
  642. };
  643. gpio1: gpio@e4600080 {
  644. #address-cells = <1>;
  645. #size-cells = <0>;
  646. compatible = "snps,dw-apb-gpio";
  647. reg = <0xe4600080 0x80>;
  648. gportb: gpio-controller@0 {
  649. compatible = "snps,dw-apb-gpio-port";
  650. gpio-controller;
  651. #gpio-cells = <2>;
  652. snps,nr-gpios = <32>;
  653. reg = <0>;
  654. base = <32>;
  655. interrupt-controller;
  656. #interrupt-cells = <2>;
  657. interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
  658. gpio-ranges = <&pinctrl0 0 32 32>;
  659. };
  660. };
  661. gpio2: gpio@e4600100 {
  662. #address-cells = <1>;
  663. #size-cells = <0>;
  664. compatible = "snps,dw-apb-gpio";
  665. reg = <0xe4600100 0x80>;
  666. gportc: gpio-controller@0 {
  667. compatible = "snps,dw-apb-gpio-port";
  668. gpio-controller;
  669. #gpio-cells = <2>;
  670. snps,nr-gpios = <32>;
  671. reg = <0>;
  672. base = <64>;
  673. interrupt-controller;
  674. #interrupt-cells = <2>;
  675. interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
  676. gpio-ranges = <&pinctrl0 0 64 32>;
  677. };
  678. };
  679. gpio3: gpio@e4600180 {
  680. #address-cells = <1>;
  681. #size-cells = <0>;
  682. compatible = "snps,dw-apb-gpio";
  683. reg = <0xe4600180 0x80>;
  684. gportd: gpio-controller@0 {
  685. compatible = "snps,dw-apb-gpio-port";
  686. gpio-controller;
  687. #gpio-cells = <2>;
  688. snps,nr-gpios = <32>;
  689. reg = <0>;
  690. base = <96>;
  691. interrupt-controller;
  692. #interrupt-cells = <2>;
  693. interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
  694. gpio-ranges = <&pinctrl0 0 96 32>;
  695. };
  696. };
  697. gpio4: gpio@e4600200 {
  698. #address-cells = <1>;
  699. #size-cells = <0>;
  700. compatible = "snps,dw-apb-gpio";
  701. reg = <0xe4600200 0x80>;
  702. gporte: gpio-controller@0 {
  703. compatible = "snps,dw-apb-gpio-port";
  704. gpio-controller;
  705. #gpio-cells = <2>;
  706. snps,nr-gpios = <32>;
  707. reg = <0>;
  708. base = <128>;
  709. interrupt-controller;
  710. #interrupt-cells = <2>;
  711. interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
  712. gpio-ranges = <&pinctrl0 0 128 32>;
  713. };
  714. };
  715. gpio5: gpio@e4600280 {
  716. #address-cells = <1>;
  717. #size-cells = <0>;
  718. compatible = "snps,dw-apb-gpio";
  719. reg = <0xe4600280 0x80>;
  720. gportf: gpio-controller@0 {
  721. compatible = "snps,dw-apb-gpio-port";
  722. gpio-controller;
  723. #gpio-cells = <2>;
  724. snps,nr-gpios = <32>;
  725. reg = <0>;
  726. base = <160>;
  727. interrupt-controller;
  728. #interrupt-cells = <2>;
  729. interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
  730. gpio-ranges = <&pinctrl0 0 160 32>;
  731. };
  732. };
  733. pwm0: pwm@e4d00000 {
  734. compatible = "arkmicro,ark-pwm";
  735. reg = <0xe4d00000 0x100>;
  736. #pwm-cells = <2>;
  737. pinctrl-names = "default";
  738. pinctrl-0 = <&pinctrl_pwm0 &pinctrl_pwm1 &pinctrl_pwm2 &pinctrl_pwm3>;
  739. clocks = <&pwmclk>;
  740. };
  741. nfc: nand@ec000000 {
  742. compatible = "arkmicro,ark-nand";
  743. reg = <0xec000000 0x1000>;
  744. max-chips = <1>;
  745. interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
  746. nand-bus-width = <8>;
  747. nand-ecc-mode = "hw_syndrome";
  748. nand-on-flash-bbt;
  749. };
  750. rtc: rtc@e4c00000 {
  751. compatible = "arkmicro,ark-rtc";
  752. reg = <0xe4c00000 0x100>;
  753. interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
  754. clocks = <&rtc_clk>;
  755. };
  756. mmc0: mmc@ec400000 {
  757. compatible = "snps,dw-mshc";
  758. #address-cells = <1>;
  759. #size-cells = <0>;
  760. reg = <0xec400000 0x1000>;
  761. interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
  762. fifo-depth = <64>;
  763. bus-width = <8>;
  764. cap-mmc-highspeed;
  765. disable-wp;
  766. non-removable;
  767. clocks = <&mmc0clk>;
  768. clock-names = "ciu";
  769. };
  770. mmc1: mmc@ec800000 {
  771. compatible = "snps,dw-mshc";
  772. #address-cells = <1>;
  773. #size-cells = <0>;
  774. reg = <0xec800000 0x1000>;
  775. interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
  776. fifo-depth = <64>;
  777. bus-width = <4>;
  778. clocks = <&mmc1clk>;
  779. clock-names = "ciu";
  780. };
  781. mmc2: mmc@ecc00000 {
  782. compatible = "snps,dw-mshc";
  783. #address-cells = <1>;
  784. #size-cells = <0>;
  785. reg = <0xecc00000 0x1000>;
  786. interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
  787. fifo-depth = <64>;
  788. bus-width = <4>;
  789. #supports-SDIO;
  790. #cap-sd-highspeed;
  791. #cap-sdio-irq;
  792. clocks = <&mmc2clk>;
  793. clock-names = "ciu";
  794. };
  795. i2c0: i2c@e4300000 {
  796. #address-cells = <1>;
  797. #size-cells = <0>;
  798. compatible = "arkmicro,ark-i2c";
  799. reg = <0xe4300000 0x1000>;
  800. speed-mode = <0>; //0:standard 1:fast 2:high
  801. interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  802. pinctrl-names = "default";
  803. pinctrl-0 = <&pinctrl_i2c0>;
  804. clocks = <&xtal24mhz>;
  805. resets = <&rst 0x74 15>;
  806. reset-names = "i2c0";
  807. };
  808. ecspi: ecspi@e4f00000 {
  809. #address-cells = <1>;
  810. #size-cells = <0>;
  811. compatible = "arkmicro,arke-ecspi";
  812. reg = <0xe4f00000 0x1000>;
  813. num-chipselect = <1>;
  814. chipselects = <101>;
  815. interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
  816. //dmas = <&dmac 8 1 0>; //<&dmac 9 0 1>
  817. //dma-names = "rx"; //"tx"
  818. pinctrl-names = "default";
  819. pinctrl-0 = <&pinctrl_ecspi>;
  820. clocks = <&spi_clk>, <&spi_clk>;
  821. clock-names = "ipg", "per";
  822. status = "disabled";
  823. m25p80@0 {
  824. #address-cells = <1>;
  825. #size-cells = <1>;
  826. compatible = "w25q256";
  827. reg = <0>; /* Chip select 0 */
  828. spi-max-frequency = <3000000>;
  829. status = "disabled";
  830. };
  831. gd5f@0 {
  832. #address-cells = <1>;
  833. #size-cells = <1>;
  834. compatible = "gd5f";
  835. reg = <0>; /* Chip select 0 */
  836. spi-max-frequency = <3000000>;
  837. status = "disabled";
  838. };
  839. };
  840. dwssi: dwssi@e4100000 {
  841. compatible = "arkmicro,ark-dw-ssi";
  842. #address-cells = <1>;
  843. #size-cells = <0>;
  844. reg = <0xe4100000 0x100>;
  845. interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
  846. num-cs = <1>;
  847. cs-gpios = <&gportd 5 0>;
  848. //tx-dma-channel = <&pdma 16>;
  849. //rx-dma-channel = <&pdma 17>;
  850. pinctrl-names = "default";
  851. pinctrl-0 = <&pinctrl_dwssi>;
  852. clocks = <&spi_clk>;
  853. status = "disabled";
  854. m25p80@0 {
  855. #address-cells = <1>;
  856. #size-cells = <1>;
  857. compatible = "w25q256";
  858. reg = <0>; /* Chip select 0 */
  859. spi-max-frequency = <3000000>;
  860. //spi-tx-bus-width = <1>;
  861. //spi-rx-bus-width = <4>;
  862. status = "disabled";
  863. };
  864. gd5f@0 {
  865. #address-cells = <1>;
  866. #size-cells = <1>;
  867. compatible = "gd5f";
  868. reg = <0>; /* Chip select 0 */
  869. spi-max-frequency = <3000000>;
  870. status = "disabled";
  871. };
  872. };
  873. vdec0: vdec@e0900000 {
  874. compatible = "on2,ark-vdec";
  875. reg = <0xe0900000 0x1000
  876. #ifdef DDR512
  877. 0x5e000000 0x500000>;//max space 10Mbyte
  878. #else
  879. 0x4e000000 0x500000>;//max space 10Mbyte
  880. #endif
  881. interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
  882. clocks = <&mfcclk>;
  883. clock-names = "vdec_clk";
  884. //status = "disabled";
  885. };
  886. ethernet: ethernet@e0300000 {
  887. compatible = "arkmicro,ark1668e-eqos", "snps,dwc-qos-ethernet-4.10";
  888. reg = <0xe0300000 0x4000>;
  889. interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
  890. snps,write-requests = <2>;
  891. snps,read-requests = <16>;
  892. snps,txpbl = <8>;
  893. snps,rxpbl = <2>;
  894. clocks = <&macpll>, <&mac_txclk>, <&mac_txclk>, <&apbclk>;
  895. clock-names = "tx_src", "tx", "phy_ref_clk", "apb_pclk";
  896. status = "disabled";
  897. };
  898. gpu: gpu@e9000000 {
  899. compatible = "arm,mali-400", "arm,mali-utgard";
  900. reg = <0xe9000000 0x30000
  901. #ifdef DDR512
  902. 0x5f000000 0x1000000>;
  903. #else
  904. 0x4f000000 0x1000000>;
  905. #endif
  906. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
  907. <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
  908. <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
  909. <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
  910. <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
  911. <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
  912. <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
  913. interrupt-names = "IRQGP", "IRQGPMMU", "IRQPP", "IRQPP0", "IRQPPMMU0", "IRQPP1", "IRQPPMMU1";
  914. //pmu_domain_config = <0x1 0x4 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 0x0 0x0>;
  915. //pmu_switch_delay = <0xff>;
  916. clocks = <&gpuclk>, <&gpuclk>;
  917. clock-names = "mali_parent", "mali";
  918. //status = "disabled";
  919. };
  920. lcdc: lcd@e0500000 {
  921. compatible = "arkmicro,ark1668e-lcdc";
  922. reg = <0xe0500000 0x1000
  923. #ifdef DDR512
  924. 0x5f000000 0x1000000>;
  925. #else
  926. 0x4f000000 0x1000000>;
  927. #endif
  928. interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
  929. clocks = <&lcdclk>;
  930. clock-names = "lcdc_clk";
  931. };
  932. usb0_phy: usb0-phy {
  933. compatible = "usb-nop-xceiv";
  934. #phy-cells = <0>;
  935. status = "disabled";
  936. };
  937. usb0: usb@e0100000{
  938. compatible = "arkmicro,ark-musb";
  939. status = "disabled";
  940. reg = <0xE0100000 0x1000 /* usb0 base address */
  941. 0xE4900000 0x1000>; /* ahb sys base address */
  942. reg-names = "system", "control";
  943. /* <usb0 int>, <usb0_dma_int> */
  944. interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
  945. <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  946. interrupt-names = "mc", "dma";
  947. dr_mode = "otg";
  948. multipoint = <1>;
  949. num-eps = <6>;
  950. ram-bits = <12>;
  951. //power = <500>;
  952. phys = <&usb0_phy>;
  953. gpio-id = <0xffffffff>;
  954. gpio-pwr = <0xffffffff>;
  955. usb-id-reg = <0x204>;
  956. usb-id-offset = <0>;
  957. sys-softrest-regoffset = <0x74>;
  958. usb-softrest-bitoffset = <5>;
  959. usbphy-softrest-bitoffset = <6>;
  960. };
  961. usb1_phy: usb1-phy {
  962. compatible = "usb-nop-xceiv";
  963. #phy-cells = <0>;
  964. status = "disabled";
  965. };
  966. usb1: usb@e0400000{
  967. compatible = "arkmicro,ark-musb";
  968. status = "disabled";
  969. reg = <0xE0400000 0x1000 /* usb0 base address */
  970. 0xE4900000 0x1000>; /* ahb sys base address */
  971. reg-names = "system", "control";
  972. /* <usb0 int>, <usb0_dma_int> */
  973. interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
  974. <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
  975. interrupt-names = "mc", "dma";
  976. dr_mode = "otg";
  977. multipoint = <1>;
  978. num-eps = <6>;
  979. ram-bits = <12>;
  980. //power = <500>;
  981. phys = <&usb1_phy>;
  982. gpio-id = <0xffffffff>;
  983. gpio-pwr = <0xffffffff>;
  984. usb-id-reg = <0x204>;
  985. usb-id-offset = <2>;
  986. sys-softrest-regoffset = <0x78>;
  987. usb-softrest-bitoffset = <6>;
  988. usbphy-softrest-bitoffset = <7>;
  989. };
  990. axi_scale: axi-scale@e0600000 {
  991. compatible = "arkmicro,ark1668e-axi-scale";
  992. reg = <0xe0700000 0x1000
  993. 0xe4900000 0x1000>;
  994. interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
  995. clocks = <&scalclk>;
  996. softreset-reg = <0x74>;
  997. softreset-offset = <28>;
  998. };
  999. ituin: ituin@e0800000 {
  1000. compatible = "arkmicro,ark1668e-vin";
  1001. reg = <0xe0800000 0x1000
  1002. 0xe4900000 0x1000
  1003. 0xe0a00000 0x1000
  1004. 0xe0500000 0x1000>;
  1005. interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
  1006. pinctrl-0 = <&pinctrl_hvsync &pinctrl_itu0>;
  1007. pinctrl-1 = <&pinctrl_hvsync &pinctrl_itu1>;
  1008. pinctrl-2 = <&pinctrl_hvsync &pinctrl_itu2>;
  1009. pinctrl-names = "itu0", "itu1", "itu2";
  1010. status = "disabled";
  1011. port {
  1012. #address-cells = <1>;
  1013. #size-cells = <0>;
  1014. };
  1015. };
  1016. rst: reset-controller {
  1017. compatible = "arkmicro,ark-reset";
  1018. #reset-cells = <2>;
  1019. reg = <0xe4900000 0x1000>;
  1020. };
  1021. };
  1022. };