ark1668e.dtsi 27 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109
  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_PLUSONE>;
  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 = <3>;
  281. enable-reg = <0x58>;
  282. enable-offset = <5>;
  283. };
  284. mmc1clk: mmc1clk {
  285. #clock-cells = <0>;
  286. compatible = "arkmiro,ark-clk-sys";
  287. clocks = <&apbpll>, <&axipll>, <&ahbpll>, <&xtal24mhz>;
  288. reg = <0x5c>;
  289. index-offset = <8>;
  290. index-mask = <0xf>;
  291. index-value = <3>;
  292. enable-reg = <0x5c>;
  293. enable-offset = <5>;
  294. };
  295. mmc2clk: mmc2clk {
  296. #clock-cells = <0>;
  297. compatible = "arkmiro,ark-clk-sys";
  298. clocks = <&apbpll>, <&axipll>, <&ahbpll>, <&xtal24mhz>;
  299. reg = <0x7c>;
  300. index-offset = <8>;
  301. index-mask = <0xf>;
  302. index-value = <3>;
  303. enable-reg = <0x7c>;
  304. enable-offset = <5>;
  305. };
  306. lcdclk: lcdclk {
  307. #clock-cells = <0>;
  308. compatible = "arkmiro,ark-clk-sys";
  309. clocks = <&lcdpll>, <&axipll>, <&tvpll>, <&xtal24mhz>;
  310. reg = <0x54>;
  311. index-offset = <7>;
  312. index-mask = <0xf>;
  313. index-value = <0>;
  314. div-offset = <19>;
  315. div-mask = <0xf>;
  316. div-value = <4>;
  317. clk-can-change;
  318. enable-reg = <0x44 0x4c 0x50>;
  319. enable-offset = <8 1 4>;
  320. };
  321. mfcclk: mfcclk {
  322. #clock-cells = <0>;
  323. compatible = "arkmiro,ark-clk-sys";
  324. clocks = <&ahbpll>, <&axipll>, <&apbpll>, <&xtal24mhz>;
  325. reg = <0x64>;
  326. index-offset = <16>;
  327. index-mask = <0x7>;
  328. div-offset = <19>;
  329. div-mask = <0xf>;
  330. };
  331. gpuclk: gpuclk {
  332. #clock-cells = <0>;
  333. compatible = "arkmiro,ark-clk-sys";
  334. clocks = <&ahbpll>, <&axipll>, <&apbpll>, <&xtal24mhz>;
  335. reg = <0x17c>;
  336. index-offset = <8>;
  337. index-mask = <0x7>;
  338. index-value = <2>;
  339. div-offset = <11>;
  340. div-mask = <0xf>;
  341. div-value = <2>;
  342. div-mode = <ARK_CLK_DIVMODE_NOZERO>;
  343. enable-reg = <0x44 0x4c 0x50>;
  344. enable-offset = <19 8 23>;
  345. };
  346. scalclk: scalclk {
  347. #clock-cells = <0>;
  348. compatible = "arkmiro,ark-clk-sys";
  349. clocks = <&lcdpll>, <&axipll>, <&tvpll>, <&xtal24mhz>;
  350. reg = <0x228>;
  351. index-offset = <28>;
  352. index-mask = <0x7>;
  353. index-value = <1>;
  354. div-offset = <24>;
  355. div-mask = <0xf>;
  356. div-value = <3>;
  357. div-mode = <ARK_CLK_DIVMODE_PLUSONE>;
  358. //enable-reg = <0x44 0x4c 0x50 0x50>;
  359. //enable-offset = <21 15 25 14>;
  360. };
  361. mac_txclk: mac_txclk {
  362. #clock-cells = <0>;
  363. compatible = "arkmiro,ark-clk-sys";
  364. clocks = <&cpupll>, <&lcdpll>, <&macpll>, <&xtal24mhz>;
  365. reg = <0x234>;
  366. index-offset = <29>;
  367. index-mask = <0x7>;
  368. index-value = <2>;
  369. div-offset = <24>;
  370. div-mask = <0xf>;
  371. div-value = <8>;
  372. div-mode = <ARK_CLK_DIVMODE_PLUSONE>;
  373. enable-reg = <0x234>;
  374. enable-offset = <28>;
  375. clk-can-change;
  376. };
  377. mac_ptpclk: mac_ptpclk {
  378. #clock-cells = <0>;
  379. compatible = "arkmiro,ark-clk-sys";
  380. clocks = <&ahbpll>, <&axipll>, <&apbpll>, <&xtal24mhz>;
  381. reg = <0x230>;
  382. index-offset = <8>;
  383. index-mask = <0x7>;
  384. index-value = <3>;
  385. div-offset = <12>;
  386. div-mask = <0xf>;
  387. div-value = <1>;
  388. div-mode = <ARK_CLK_DIVMODE_PLUSONE>;
  389. };
  390. i2s_adc_clk: i2s_adc_clk {
  391. #clock-cells = <0>;
  392. compatible = "arkmiro,ark-clk-sys";
  393. clocks = <&axipll>, <&audpll>;
  394. reg = <0x6c>;
  395. index-offset = <0>;
  396. index-mask = <0x1>;
  397. index-value = <1>;
  398. };
  399. i2s_dac_clk: i2s_dac_clk {
  400. #clock-cells = <0>;
  401. compatible = "arkmiro,ark-clk-sys";
  402. clocks = <&axipll>, <&audpll>;
  403. reg = <0x6c>;
  404. index-offset = <2>;
  405. index-mask = <0x1>;
  406. index-value = <1>;
  407. };
  408. i2s2_dac_clk: i2s2_dac_clk {
  409. #clock-cells = <0>;
  410. compatible = "arkmiro,ark-clk-sys";
  411. clocks = <&axipll>, <&audpll>;
  412. reg = <0x6c>;
  413. index-offset = <4>;
  414. index-mask = <0x1>;
  415. index-value = <1>;
  416. };
  417. can_clk: can_clk {
  418. #clock-cells = <0>;
  419. compatible = "arkmiro,ark-clk-sys";
  420. clocks = <&apbclk>;
  421. reg = <0>;
  422. };
  423. };
  424. };
  425. soc {
  426. compatible = "simple-bus";
  427. #address-cells = <1>;
  428. #size-cells = <1>;
  429. ranges;
  430. gic: interrupt-controller@e0b01000 {
  431. compatible = "arm,cortex-a7-gic";
  432. interrupt-controller;
  433. #interrupt-cells = <3>;
  434. reg = <0xe0b01000 0x1000>,
  435. <0xe0b02000 0x2000>,
  436. <0xe0b04000 0x2000>,
  437. <0xe0b06000 0x2000>;
  438. //interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  439. };
  440. pinctrl0: pinctrl@e4900000 {
  441. compatible = "arkmicro,arke-pinctrl";
  442. reg = <0xe4900000 0x1000>;
  443. pad-reg-offset = <0x1c0>;
  444. npins = <192>;
  445. gpio-mux-pins = <182>;
  446. };
  447. dmac: dmac@e0000000 {
  448. compatible = "snps,axi-dma-1.01a";
  449. reg = <0xe0000000 0x1000>;
  450. interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
  451. clocks = <&axipll>, <&axipll>;
  452. clock-names = "core-clk", "cfgr-clk";
  453. #dma-cells = <3>;
  454. dma-channels = <8>;
  455. snps,dma-masters = <2>;
  456. snps,data-width = <3>;
  457. snps,block-size = <65536 65536 65536 65536
  458. 65536 65536 65536 65536>;
  459. snps,priority = <0 1 2 3 4 5 6 7>;
  460. snps,axi-max-burst-len = <16>;
  461. };
  462. i2s_adc: i2s-adc@e4000000 {
  463. compatible = "arkmicro,ark1668e-i2s";
  464. reg = <0xe4000000 0x1000
  465. 0xe4900000 0x1000>;
  466. //external-adc;
  467. interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
  468. nco-reg = <0xe4900174>;
  469. dmas = <&dmac 0 1 0>, <&dmac 1 0 1>;
  470. dma-names = "rx", "tx";
  471. clocks = <&i2s_adc_clk>;
  472. #sound-dai-cells = <0>;
  473. };
  474. i2s_dac: i2s-dac@e4200000 {
  475. compatible = "arkmicro,ark1668e-i2s";
  476. reg = <0xe4200000 0x1000
  477. 0xE4900000 0x1000>;
  478. //external-dac;
  479. interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
  480. nco-reg = <0xe490019c>;
  481. dmas = <&dmac 25 1 0>, <&dmac 26 0 1>;
  482. dma-names = "rx", "tx";
  483. clocks = <&i2s_dac_clk>;
  484. #sound-dai-cells = <0>;
  485. };
  486. sdadc: sdadc@e4000000{
  487. compatible = "arkmicro,ark1668e-sdadc";
  488. reg = <0xe4000000 0x1000
  489. 0xE4900000 0x1000>;
  490. //external-i2s;
  491. left-volume = <100>;
  492. right-volume = <100>;
  493. #sound-dai-cells = <0>;
  494. };
  495. sddac: sddac@e4200000 {
  496. compatible = "arkmicro,ark1668e-sddac";
  497. reg = <0xe4200000 0x1000
  498. 0xE4900000 0x1000>;
  499. //external-i2s;
  500. //headphone-out;
  501. left-volume = <60>;
  502. right-volume = <60>;
  503. #sound-dai-cells = <0>;
  504. };
  505. uart0: uart@e8200000 {
  506. compatible = "arkmicro,ark-uart";
  507. reg = <0xe8200000 0x1000>;
  508. interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
  509. current-speed = <115200>;
  510. pinctrl-names = "default";
  511. pinctrl-0 = <&pinctrl_uart0>;
  512. clocks = <&xtal24mhz>;
  513. //dmas = <&dmac 6 1 0>, <&dmac 7 0 1>;
  514. //dma-names = "rx", "tx";
  515. };
  516. uart1: uart@e8300000 {
  517. compatible = "arkmicro,ark-uart";
  518. reg = <0xe8300000 0x1000>;
  519. interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
  520. current-speed = <115200>;
  521. clocks = <&xtal24mhz>;
  522. pinctrl-names = "default";
  523. pinctrl-0 = <&pinctrl_uart1>;
  524. //dmas = <&dmac 12 1 0>, <&dmac 13 0 1>;
  525. //dma-names = "rx", "tx";
  526. };
  527. uart2: uart@e8400000 {
  528. compatible = "arkmicro,ark-uart";
  529. reg = <0xe8400000 0x1000>;
  530. interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
  531. current-speed = <115200>;
  532. clocks = <&xtal24mhz>;
  533. pinctrl-names = "default";
  534. pinctrl-0 = <&pinctrl_uart2>;
  535. //dmas = <&dmac 19 1 0>, <&dmac 20 0 1>;//19 , 20
  536. //dma-names = "rx", "tx";
  537. };
  538. uart3: uart@e8500000 {
  539. compatible = "arkmicro,ark-uart";
  540. reg = <0xe8500000 0x1000>;
  541. interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
  542. current-speed = <115200>;
  543. pinctrl-names = "default";
  544. pinctrl-0 = <&pinctrl_uart3>;
  545. clocks = <&xtal24mhz>;
  546. //dmas = <&dmac 21 1 0>, <&dmac 22 0 1>;//21 , 22
  547. //dma-names = "rx", "tx";
  548. };
  549. hsuart0: hsuart@e8000000 {
  550. compatible = "arkmicro,ark-hsuart";
  551. reg = <0xe8000000 0x4000>;
  552. interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
  553. clocks = <&hsuart0clk>;
  554. pinctrl-names = "default";
  555. pinctrl-0 = <&pinctrl_hsuart0>;
  556. //dmas = <&dmac 14 1 0>, <&dmac 15 0 1>;//14 , 15
  557. //dma-names = "rx", "tx";
  558. };
  559. hsuart1: hsuart@e8100000 {
  560. compatible = "arkmicro,ark-hsuart";
  561. reg = <0xe8100000 0x4000>;
  562. interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
  563. clocks = <&hsuart1clk>;
  564. pinctrl-names = "default";
  565. pinctrl-0 = <&pinctrl_hsuart1>;
  566. dmas = <&dmac 16 1 0>, <&dmac 17 0 1>;//16 , 17
  567. dma-names = "rx", "tx";
  568. };
  569. can0: can0@e4400000 {
  570. compatible = "nxp,sja1000";
  571. reg = <0xe4400000 0x1000>;
  572. interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
  573. reg-io-width = <4>;
  574. pinctrl-names = "default";
  575. pinctrl-0 = <&pinctrl_can0>;
  576. clocks = <&apbclk>;
  577. //nxp,external-clock-frequency = <120000000>;
  578. status = "disabled";
  579. };
  580. can1: can1@e4a00000 {
  581. compatible = "nxp,sja1000";
  582. reg = <0xe4a00000 0x1000>;
  583. interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
  584. reg-io-width = <4>;
  585. pinctrl-names = "default";
  586. pinctrl-0 = <&pinctrl_can1>;
  587. clocks = <&apbclk>;
  588. //nxp,external-clock-frequency = <120000000>;
  589. status = "disabled";
  590. };
  591. timer0: timer@e8600000 {
  592. compatible = "snps,dw-apb-timer-osc";
  593. reg = <0xe8600000 0x14>;
  594. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  595. clocks = <&xtal24mhz>, <&apbclk>;
  596. clock-names = "timer", "pclk";
  597. };
  598. timer1: timer@e8600014 {
  599. compatible = "snps,dw-apb-timer-osc";
  600. reg = <0xe8600014 0x14>;
  601. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
  602. clocks = <&xtal24mhz>, <&apbclk>;
  603. clock-names = "timer", "pclk";
  604. };
  605. watchdog: watchdog@e4b00000 {
  606. compatible = "arkmicro,ark-wdt";
  607. reg = <0xe4b00000 0x20>;
  608. interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  609. clocks = <&apbclk>;
  610. };
  611. gpio0: gpio@e4600000 {
  612. #address-cells = <1>;
  613. #size-cells = <0>;
  614. compatible = "snps,dw-apb-gpio";
  615. reg = <0xe4600000 0x80>;
  616. gporta: gpio-controller@0 {
  617. compatible = "snps,dw-apb-gpio-port";
  618. gpio-controller;
  619. #gpio-cells = <2>;
  620. snps,nr-gpios = <32>;
  621. reg = <0>;
  622. base = <0>;
  623. interrupt-controller;
  624. #interrupt-cells = <2>;
  625. interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  626. gpio-ranges = <&pinctrl0 0 0 32>;
  627. };
  628. };
  629. gpio1: gpio@e4600080 {
  630. #address-cells = <1>;
  631. #size-cells = <0>;
  632. compatible = "snps,dw-apb-gpio";
  633. reg = <0xe4600080 0x80>;
  634. gportb: gpio-controller@0 {
  635. compatible = "snps,dw-apb-gpio-port";
  636. gpio-controller;
  637. #gpio-cells = <2>;
  638. snps,nr-gpios = <32>;
  639. reg = <0>;
  640. base = <32>;
  641. interrupt-controller;
  642. #interrupt-cells = <2>;
  643. interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
  644. gpio-ranges = <&pinctrl0 0 32 32>;
  645. };
  646. };
  647. gpio2: gpio@e4600100 {
  648. #address-cells = <1>;
  649. #size-cells = <0>;
  650. compatible = "snps,dw-apb-gpio";
  651. reg = <0xe4600100 0x80>;
  652. gportc: gpio-controller@0 {
  653. compatible = "snps,dw-apb-gpio-port";
  654. gpio-controller;
  655. #gpio-cells = <2>;
  656. snps,nr-gpios = <32>;
  657. reg = <0>;
  658. base = <64>;
  659. interrupt-controller;
  660. #interrupt-cells = <2>;
  661. interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
  662. gpio-ranges = <&pinctrl0 0 64 32>;
  663. };
  664. };
  665. gpio3: gpio@e4600180 {
  666. #address-cells = <1>;
  667. #size-cells = <0>;
  668. compatible = "snps,dw-apb-gpio";
  669. reg = <0xe4600180 0x80>;
  670. gportd: gpio-controller@0 {
  671. compatible = "snps,dw-apb-gpio-port";
  672. gpio-controller;
  673. #gpio-cells = <2>;
  674. snps,nr-gpios = <32>;
  675. reg = <0>;
  676. base = <96>;
  677. interrupt-controller;
  678. #interrupt-cells = <2>;
  679. interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
  680. gpio-ranges = <&pinctrl0 0 96 32>;
  681. };
  682. };
  683. gpio4: gpio@e4600200 {
  684. #address-cells = <1>;
  685. #size-cells = <0>;
  686. compatible = "snps,dw-apb-gpio";
  687. reg = <0xe4600200 0x80>;
  688. gporte: gpio-controller@0 {
  689. compatible = "snps,dw-apb-gpio-port";
  690. gpio-controller;
  691. #gpio-cells = <2>;
  692. snps,nr-gpios = <32>;
  693. reg = <0>;
  694. base = <128>;
  695. interrupt-controller;
  696. #interrupt-cells = <2>;
  697. interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
  698. gpio-ranges = <&pinctrl0 0 128 32>;
  699. };
  700. };
  701. gpio5: gpio@e4600280 {
  702. #address-cells = <1>;
  703. #size-cells = <0>;
  704. compatible = "snps,dw-apb-gpio";
  705. reg = <0xe4600280 0x80>;
  706. gportf: gpio-controller@0 {
  707. compatible = "snps,dw-apb-gpio-port";
  708. gpio-controller;
  709. #gpio-cells = <2>;
  710. snps,nr-gpios = <32>;
  711. reg = <0>;
  712. base = <160>;
  713. interrupt-controller;
  714. #interrupt-cells = <2>;
  715. interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
  716. gpio-ranges = <&pinctrl0 0 160 32>;
  717. };
  718. };
  719. pwm0: pwm@e4d00000 {
  720. compatible = "arkmicro,ark-pwm";
  721. reg = <0xe4d00000 0x100>;
  722. #pwm-cells = <2>;
  723. pinctrl-names = "default";
  724. pinctrl-0 = <&pinctrl_pwm0 &pinctrl_pwm1 &pinctrl_pwm2 &pinctrl_pwm3>;
  725. clocks = <&pwmclk>;
  726. };
  727. nfc: nand@ec000000 {
  728. compatible = "arkmicro,ark-nand";
  729. reg = <0xec000000 0x1000>;
  730. max-chips = <1>;
  731. interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
  732. nand-bus-width = <8>;
  733. nand-ecc-mode = "hw_syndrome";
  734. nand-on-flash-bbt;
  735. };
  736. rtc: rtc@e4c00000 {
  737. compatible = "arkmicro,ark-rtc";
  738. reg = <0xe4c00000 0x100>;
  739. interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
  740. clocks = <&rtc_clk>;
  741. };
  742. mmc0: mmc@ec400000 {
  743. compatible = "snps,dw-mshc";
  744. #address-cells = <1>;
  745. #size-cells = <0>;
  746. reg = <0xec400000 0x1000>;
  747. interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
  748. fifo-depth = <64>;
  749. bus-width = <8>;
  750. cap-mmc-highspeed;
  751. disable-wp;
  752. non-removable;
  753. clocks = <&mmc0clk>;
  754. clock-names = "ciu";
  755. };
  756. mmc1: mmc@ec800000 {
  757. compatible = "snps,dw-mshc";
  758. #address-cells = <1>;
  759. #size-cells = <0>;
  760. reg = <0xec800000 0x1000>;
  761. interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
  762. fifo-depth = <64>;
  763. bus-width = <4>;
  764. clocks = <&mmc1clk>;
  765. clock-names = "ciu";
  766. };
  767. mmc2: mmc@ecc00000 {
  768. compatible = "snps,dw-mshc";
  769. #address-cells = <1>;
  770. #size-cells = <0>;
  771. reg = <0xecc00000 0x1000>;
  772. interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
  773. fifo-depth = <64>;
  774. bus-width = <4>;
  775. #supports-SDIO;
  776. #cap-sd-highspeed;
  777. #cap-sdio-irq;
  778. clocks = <&mmc2clk>;
  779. clock-names = "ciu";
  780. };
  781. i2c0: i2c@e4300000 {
  782. #address-cells = <1>;
  783. #size-cells = <0>;
  784. compatible = "snps,designware-i2c";
  785. reg = <0xe4300000 0x1000>;
  786. interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  787. pinctrl-names = "default";
  788. pinctrl-0 = <&pinctrl_i2c0>;
  789. clocks = <&xtal24mhz>;
  790. };
  791. ecspi: ecspi@e4f00000 {
  792. #address-cells = <1>;
  793. #size-cells = <0>;
  794. compatible = "arkmicro,arke-ecspi";
  795. reg = <0xe4f00000 0x1000>;
  796. num-chipselect = <1>;
  797. chipselects = <101>;
  798. interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
  799. //dmas = <&dmac 8 1 0>; //<&dmac 9 0 1>
  800. //dma-names = "rx"; //"tx"
  801. pinctrl-names = "default";
  802. pinctrl-0 = <&pinctrl_ecspi>;
  803. clocks = <&spi_clk>, <&spi_clk>;
  804. clock-names = "ipg", "per";
  805. status = "disabled";
  806. m25p80@0 {
  807. #address-cells = <1>;
  808. #size-cells = <1>;
  809. compatible = "w25q256";
  810. reg = <0>; /* Chip select 0 */
  811. spi-max-frequency = <3000000>;
  812. status = "disabled";
  813. };
  814. gd5f@0 {
  815. #address-cells = <1>;
  816. #size-cells = <1>;
  817. compatible = "gd5f";
  818. reg = <0>; /* Chip select 0 */
  819. spi-max-frequency = <3000000>;
  820. status = "disabled";
  821. };
  822. };
  823. dwssi: dwssi@e4100000 {
  824. compatible = "arkmicro,ark-dw-ssi";
  825. #address-cells = <1>;
  826. #size-cells = <0>;
  827. reg = <0xe4100000 0x100>;
  828. interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
  829. num-cs = <1>;
  830. cs-gpios = <&gportd 5 0>;
  831. //tx-dma-channel = <&pdma 16>;
  832. //rx-dma-channel = <&pdma 17>;
  833. pinctrl-names = "default";
  834. pinctrl-0 = <&pinctrl_dwssi>;
  835. clocks = <&spi_clk>;
  836. status = "disabled";
  837. m25p80@0 {
  838. #address-cells = <1>;
  839. #size-cells = <1>;
  840. compatible = "w25q256";
  841. reg = <0>; /* Chip select 0 */
  842. spi-max-frequency = <3000000>;
  843. //spi-tx-bus-width = <1>;
  844. //spi-rx-bus-width = <4>;
  845. status = "disabled";
  846. };
  847. gd5f@0 {
  848. #address-cells = <1>;
  849. #size-cells = <1>;
  850. compatible = "gd5f";
  851. reg = <0>; /* Chip select 0 */
  852. spi-max-frequency = <3000000>;
  853. status = "disabled";
  854. };
  855. };
  856. vdec0: vdec@e0900000 {
  857. compatible = "on2,ark-vdec";
  858. reg = <0xe0900000 0x1000
  859. #ifdef DDR512
  860. 0x5e000000 0xa00000>;//max space 10Mbyte
  861. #else
  862. 0x4e000000 0xa00000>;//max space 10Mbyte
  863. #endif
  864. interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
  865. clocks = <&mfcclk>;
  866. clock-names = "vdec_clk";
  867. //status = "disabled";
  868. };
  869. ethernet: ethernet@e0300000 {
  870. compatible = "arkmicro,ark1668e-eqos", "snps,dwc-qos-ethernet-4.10";
  871. reg = <0xe0300000 0x4000>;
  872. interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
  873. snps,write-requests = <2>;
  874. snps,read-requests = <16>;
  875. snps,txpbl = <8>;
  876. snps,rxpbl = <2>;
  877. clocks = <&macpll>, <&mac_txclk>, <&mac_txclk>, <&apbclk>;
  878. clock-names = "tx_src", "tx", "phy_ref_clk", "apb_pclk";
  879. status = "disabled";
  880. };
  881. gpu@e9000000 {
  882. compatible = "arm,mali-400", "arm,mali-utgard";
  883. reg = <0xe9000000 0x30000
  884. #ifdef DDR512
  885. 0x5f000000 0x1000000>;
  886. #else
  887. 0x4f000000 0x1000000>;
  888. #endif
  889. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
  890. <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
  891. <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
  892. <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
  893. <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
  894. <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
  895. <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
  896. interrupt-names = "IRQGP", "IRQGPMMU", "IRQPP", "IRQPP0", "IRQPPMMU0", "IRQPP1", "IRQPPMMU1";
  897. //pmu_domain_config = <0x1 0x4 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 0x0 0x0>;
  898. //pmu_switch_delay = <0xff>;
  899. clocks = <&gpuclk>, <&gpuclk>;
  900. clock-names = "mali_parent", "mali";
  901. //status = "disabled";
  902. };
  903. lcdc: lcd@e0500000 {
  904. compatible = "arkmicro,ark1668e-lcdc";
  905. reg = <0xe0500000 0x1000
  906. #ifdef DDR512
  907. 0x5f000000 0x1000000>;
  908. #else
  909. 0x4f000000 0x1000000>;
  910. #endif
  911. interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
  912. clocks = <&lcdclk>;
  913. clock-names = "lcdc_clk";
  914. };
  915. usb0_phy: usb0-phy {
  916. compatible = "usb-nop-xceiv";
  917. #phy-cells = <0>;
  918. status = "disabled";
  919. };
  920. usb0: usb@e0100000{
  921. compatible = "arkmicro,ark-musb";
  922. status = "disabled";
  923. reg = <0xE0100000 0x1000 /* usb0 base address */
  924. 0xE4900000 0x1000>; /* ahb sys base address */
  925. reg-names = "system", "control";
  926. /* <usb0 int>, <usb0_dma_int> */
  927. interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
  928. <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  929. interrupt-names = "mc", "dma";
  930. dr_mode = "otg";
  931. multipoint = <1>;
  932. num-eps = <6>;
  933. ram-bits = <12>;
  934. //power = <500>;
  935. phys = <&usb0_phy>;
  936. gpio-id = <0xffffffff>;
  937. gpio-pwr = <0xffffffff>;
  938. usb-id-reg = <0x204>;
  939. usb-id-offset = <0>;
  940. sys-softrest-regoffset = <0x74>;
  941. usb-softrest-bitoffset = <5>;
  942. usbphy-softrest-bitoffset = <6>;
  943. };
  944. usb1_phy: usb1-phy {
  945. compatible = "usb-nop-xceiv";
  946. #phy-cells = <0>;
  947. status = "disabled";
  948. };
  949. usb1: usb@e0400000{
  950. compatible = "arkmicro,ark-musb";
  951. status = "disabled";
  952. reg = <0xE0400000 0x1000 /* usb0 base address */
  953. 0xE4900000 0x1000>; /* ahb sys base address */
  954. reg-names = "system", "control";
  955. /* <usb0 int>, <usb0_dma_int> */
  956. interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
  957. <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
  958. interrupt-names = "mc", "dma";
  959. dr_mode = "otg";
  960. multipoint = <1>;
  961. num-eps = <6>;
  962. ram-bits = <12>;
  963. //power = <500>;
  964. phys = <&usb1_phy>;
  965. gpio-id = <0xffffffff>;
  966. gpio-pwr = <0xffffffff>;
  967. usb-id-reg = <0x204>;
  968. usb-id-offset = <2>;
  969. sys-softrest-regoffset = <0x78>;
  970. usb-softrest-bitoffset = <6>;
  971. usbphy-softrest-bitoffset = <7>;
  972. };
  973. axi_scale: axi-scale@e0600000 {
  974. compatible = "arkmicro,ark1668e-axi-scale";
  975. reg = <0xe0700000 0x1000
  976. 0xe4900000 0x1000>;
  977. interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
  978. clocks = <&scalclk>;
  979. softreset-reg = <0x74>;
  980. softreset-offset = <28>;
  981. };
  982. ituin: ituin@e0800000 {
  983. compatible = "arkmicro,ark1668e-vin";
  984. reg = <0xe0800000 0x1000
  985. 0xe4900000 0x1000
  986. 0xe0a00000 0x1000
  987. 0xe0500000 0x1000>;
  988. interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
  989. pinctrl-0 = <&pinctrl_hvsync &pinctrl_itu0>;
  990. pinctrl-1 = <&pinctrl_hvsync &pinctrl_itu1>;
  991. pinctrl-2 = <&pinctrl_hvsync &pinctrl_itu2>;
  992. pinctrl-names = "itu0", "itu1", "itu2";
  993. status = "disabled";
  994. port {
  995. #address-cells = <1>;
  996. #size-cells = <0>;
  997. };
  998. };
  999. };
  1000. };