ark1668e.dtsi 27 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100
  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 = <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_NOZERO>;
  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_NOZERO>;
  389. };
  390. i2s_adc_clk: i2s_adc_clk {
  391. #clock-cells = <0>;
  392. compatible = "arkmiro,ark-clk-sys";
  393. clocks = <&xtal24mhz>, <&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 = <&xtal24mhz>, <&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 = <&xtal24mhz>, <&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. interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
  466. nco-reg = <0xe4900174>;
  467. dmas = <&dmac 0 1 0>, <&dmac 1 0 1>;
  468. dma-names = "rx", "tx";
  469. clocks = <&i2s_adc_clk>;
  470. #sound-dai-cells = <0>;
  471. };
  472. i2s_dac: i2s-dac@e4200000 {
  473. compatible = "arkmicro,ark1668e-i2s";
  474. reg = <0xe4200000 0x1000>;
  475. //full-duplex-mode;
  476. interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
  477. nco-reg = <0xe490019c>;
  478. dmas = <&dmac 25 1 0>, <&dmac 26 0 1>;
  479. dma-names = "rx", "tx";
  480. clocks = <&i2s_dac_clk>;
  481. #sound-dai-cells = <0>;
  482. };
  483. ark_codec: ark-adac@e4900000 {
  484. compatible = "arkmicro,ark-audio-codec";
  485. reg = <0xe4900000 0x1000>;
  486. #sound-dai-cells = <0>;
  487. };
  488. uart0: uart@e8200000 {
  489. compatible = "arkmicro,ark-uart";
  490. reg = <0xe8200000 0x1000>;
  491. interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
  492. current-speed = <115200>;
  493. pinctrl-names = "default";
  494. pinctrl-0 = <&pinctrl_uart0>;
  495. clocks = <&xtal24mhz>;
  496. //dmas = <&dmac 6 1 0>, <&dmac 7 0 1>;
  497. //dma-names = "rx", "tx";
  498. };
  499. uart1: uart@e8300000 {
  500. compatible = "arkmicro,ark-uart";
  501. reg = <0xe8300000 0x1000>;
  502. interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
  503. current-speed = <115200>;
  504. clocks = <&xtal24mhz>;
  505. pinctrl-names = "default";
  506. pinctrl-0 = <&pinctrl_uart1>;
  507. //dmas = <&dmac 12 1 0>, <&dmac 13 0 1>;
  508. //dma-names = "rx", "tx";
  509. };
  510. uart2: uart@e8400000 {
  511. compatible = "arkmicro,ark-uart";
  512. reg = <0xe8400000 0x1000>;
  513. interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
  514. current-speed = <115200>;
  515. clocks = <&xtal24mhz>;
  516. pinctrl-names = "default";
  517. pinctrl-0 = <&pinctrl_uart2>;
  518. //dmas = <&dmac 19 1 0>, <&dmac 20 0 1>;//19 , 20
  519. //dma-names = "rx", "tx";
  520. };
  521. uart3: uart@e8500000 {
  522. compatible = "arkmicro,ark-uart";
  523. reg = <0xe8500000 0x1000>;
  524. interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
  525. current-speed = <115200>;
  526. pinctrl-names = "default";
  527. pinctrl-0 = <&pinctrl_uart3>;
  528. clocks = <&xtal24mhz>;
  529. //dmas = <&dmac 21 1 0>, <&dmac 22 0 1>;//21 , 22
  530. //dma-names = "rx", "tx";
  531. };
  532. hsuart0: hsuart@e8000000 {
  533. compatible = "arkmicro,ark-hsuart";
  534. reg = <0xe8000000 0x4000>;
  535. interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
  536. clocks = <&hsuart0clk>;
  537. pinctrl-names = "default";
  538. pinctrl-0 = <&pinctrl_hsuart0>;
  539. //dmas = <&dmac 14 1 0>, <&dmac 15 0 1>;//14 , 15
  540. //dma-names = "rx", "tx";
  541. };
  542. hsuart1: hsuart@e8100000 {
  543. compatible = "arkmicro,ark-hsuart";
  544. reg = <0xe8100000 0x4000>;
  545. interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
  546. clocks = <&hsuart1clk>;
  547. pinctrl-names = "default";
  548. pinctrl-0 = <&pinctrl_hsuart1>;
  549. dmas = <&dmac 16 1 0>, <&dmac 17 0 1>;//16 , 17
  550. dma-names = "rx", "tx";
  551. };
  552. can0: can0@e4400000 {
  553. compatible = "nxp,sja1000";
  554. reg = <0xe4400000 0x1000>;
  555. interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
  556. reg-io-width = <4>;
  557. pinctrl-names = "default";
  558. pinctrl-0 = <&pinctrl_can0>;
  559. clocks = <&apbclk>;
  560. //nxp,external-clock-frequency = <120000000>;
  561. status = "disabled";
  562. };
  563. can1: can1@e4a00000 {
  564. compatible = "nxp,sja1000";
  565. reg = <0xe4a00000 0x1000>;
  566. interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
  567. reg-io-width = <4>;
  568. pinctrl-names = "default";
  569. pinctrl-0 = <&pinctrl_can1>;
  570. clocks = <&apbclk>;
  571. //nxp,external-clock-frequency = <120000000>;
  572. status = "disabled";
  573. };
  574. timer0: timer@e8600000 {
  575. compatible = "snps,dw-apb-timer-osc";
  576. reg = <0xe8600000 0x14>;
  577. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  578. clocks = <&xtal24mhz>, <&apbclk>;
  579. clock-names = "timer", "pclk";
  580. };
  581. timer1: timer@e8600014 {
  582. compatible = "snps,dw-apb-timer-osc";
  583. reg = <0xe8600014 0x14>;
  584. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
  585. clocks = <&xtal24mhz>, <&apbclk>;
  586. clock-names = "timer", "pclk";
  587. };
  588. watchdog: watchdog@e4b00000 {
  589. compatible = "arkmicro,ark-wdt";
  590. reg = <0xe4b00000 0x20>;
  591. interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  592. clocks = <&apbclk>;
  593. };
  594. gpio0: gpio@e4600000 {
  595. #address-cells = <1>;
  596. #size-cells = <0>;
  597. compatible = "snps,dw-apb-gpio";
  598. reg = <0xe4600000 0x80>;
  599. gporta: gpio-controller@0 {
  600. compatible = "snps,dw-apb-gpio-port";
  601. gpio-controller;
  602. #gpio-cells = <2>;
  603. snps,nr-gpios = <32>;
  604. reg = <0>;
  605. base = <0>;
  606. interrupt-controller;
  607. #interrupt-cells = <2>;
  608. interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  609. gpio-ranges = <&pinctrl0 0 0 32>;
  610. };
  611. };
  612. gpio1: gpio@e4600080 {
  613. #address-cells = <1>;
  614. #size-cells = <0>;
  615. compatible = "snps,dw-apb-gpio";
  616. reg = <0xe4600080 0x80>;
  617. gportb: gpio-controller@0 {
  618. compatible = "snps,dw-apb-gpio-port";
  619. gpio-controller;
  620. #gpio-cells = <2>;
  621. snps,nr-gpios = <32>;
  622. reg = <0>;
  623. base = <32>;
  624. interrupt-controller;
  625. #interrupt-cells = <2>;
  626. interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
  627. gpio-ranges = <&pinctrl0 0 32 32>;
  628. };
  629. };
  630. gpio2: gpio@e4600100 {
  631. #address-cells = <1>;
  632. #size-cells = <0>;
  633. compatible = "snps,dw-apb-gpio";
  634. reg = <0xe4600100 0x80>;
  635. gportc: gpio-controller@0 {
  636. compatible = "snps,dw-apb-gpio-port";
  637. gpio-controller;
  638. #gpio-cells = <2>;
  639. snps,nr-gpios = <32>;
  640. reg = <0>;
  641. base = <64>;
  642. interrupt-controller;
  643. #interrupt-cells = <2>;
  644. interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
  645. gpio-ranges = <&pinctrl0 0 64 32>;
  646. };
  647. };
  648. gpio3: gpio@e4600180 {
  649. #address-cells = <1>;
  650. #size-cells = <0>;
  651. compatible = "snps,dw-apb-gpio";
  652. reg = <0xe4600180 0x80>;
  653. gportd: gpio-controller@0 {
  654. compatible = "snps,dw-apb-gpio-port";
  655. gpio-controller;
  656. #gpio-cells = <2>;
  657. snps,nr-gpios = <32>;
  658. reg = <0>;
  659. base = <96>;
  660. interrupt-controller;
  661. #interrupt-cells = <2>;
  662. interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
  663. gpio-ranges = <&pinctrl0 0 96 32>;
  664. };
  665. };
  666. gpio4: gpio@e4600200 {
  667. #address-cells = <1>;
  668. #size-cells = <0>;
  669. compatible = "snps,dw-apb-gpio";
  670. reg = <0xe4600200 0x80>;
  671. gporte: gpio-controller@0 {
  672. compatible = "snps,dw-apb-gpio-port";
  673. gpio-controller;
  674. #gpio-cells = <2>;
  675. snps,nr-gpios = <32>;
  676. reg = <0>;
  677. base = <128>;
  678. interrupt-controller;
  679. #interrupt-cells = <2>;
  680. interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
  681. gpio-ranges = <&pinctrl0 0 128 32>;
  682. };
  683. };
  684. gpio5: gpio@e4600280 {
  685. #address-cells = <1>;
  686. #size-cells = <0>;
  687. compatible = "snps,dw-apb-gpio";
  688. reg = <0xe4600280 0x80>;
  689. gportf: gpio-controller@0 {
  690. compatible = "snps,dw-apb-gpio-port";
  691. gpio-controller;
  692. #gpio-cells = <2>;
  693. snps,nr-gpios = <32>;
  694. reg = <0>;
  695. base = <160>;
  696. interrupt-controller;
  697. #interrupt-cells = <2>;
  698. interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
  699. gpio-ranges = <&pinctrl0 0 160 32>;
  700. };
  701. };
  702. pwm0: pwm@e4d00000 {
  703. compatible = "arkmicro,ark-pwm";
  704. reg = <0xe4d00000 0x100>;
  705. #pwm-cells = <2>;
  706. pinctrl-names = "default";
  707. pinctrl-0 = <&pinctrl_pwm0 &pinctrl_pwm1 &pinctrl_pwm2 &pinctrl_pwm3>;
  708. clocks = <&pwmclk>;
  709. };
  710. nfc: nand@ec000000 {
  711. compatible = "arkmicro,ark-nand";
  712. reg = <0xec000000 0x1000>;
  713. max-chips = <1>;
  714. interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
  715. nand-bus-width = <8>;
  716. nand-ecc-mode = "hw_syndrome";
  717. nand-on-flash-bbt;
  718. };
  719. rtc: rtc@e4c00000 {
  720. compatible = "arkmicro,ark-rtc";
  721. reg = <0xe4c00000 0x100>;
  722. interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
  723. clocks = <&rtc_clk>;
  724. };
  725. mmc0: mmc@ec400000 {
  726. compatible = "snps,dw-mshc";
  727. #address-cells = <1>;
  728. #size-cells = <0>;
  729. reg = <0xec400000 0x1000>;
  730. interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
  731. fifo-depth = <64>;
  732. bus-width = <8>;
  733. cap-mmc-highspeed;
  734. disable-wp;
  735. non-removable;
  736. clocks = <&mmc0clk>;
  737. clock-names = "ciu";
  738. };
  739. mmc1: mmc@ec800000 {
  740. compatible = "snps,dw-mshc";
  741. #address-cells = <1>;
  742. #size-cells = <0>;
  743. reg = <0xec800000 0x1000>;
  744. interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
  745. fifo-depth = <64>;
  746. bus-width = <4>;
  747. clocks = <&mmc1clk>;
  748. clock-names = "ciu";
  749. };
  750. mmc2: mmc@ecc00000 {
  751. compatible = "snps,dw-mshc";
  752. #address-cells = <1>;
  753. #size-cells = <0>;
  754. reg = <0xecc00000 0x1000>;
  755. interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
  756. fifo-depth = <64>;
  757. bus-width = <4>;
  758. #supports-SDIO;
  759. #cap-sd-highspeed;
  760. #cap-sdio-irq;
  761. clocks = <&mmc2clk>;
  762. clock-names = "ciu";
  763. };
  764. i2c0: i2c@e4300000 {
  765. #address-cells = <1>;
  766. #size-cells = <0>;
  767. compatible = "arkmicro,ark-i2c";
  768. reg = <0xe4300000 0x1000>;
  769. speed-mode = <0>; //0:standard 1:fast 2:high
  770. interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  771. pinctrl-names = "default";
  772. pinctrl-0 = <&pinctrl_i2c0>;
  773. clocks = <&xtal24mhz>;
  774. resets = <&rst 0x74 15>;
  775. reset-names = "i2c0";
  776. };
  777. ecspi: ecspi@e4f00000 {
  778. #address-cells = <1>;
  779. #size-cells = <0>;
  780. compatible = "arkmicro,arke-ecspi";
  781. reg = <0xe4f00000 0x1000>;
  782. num-chipselect = <1>;
  783. chipselects = <101>;
  784. interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
  785. //dmas = <&dmac 8 1 0>; //<&dmac 9 0 1>
  786. //dma-names = "rx"; //"tx"
  787. pinctrl-names = "default";
  788. pinctrl-0 = <&pinctrl_ecspi>;
  789. clocks = <&spi_clk>, <&spi_clk>;
  790. clock-names = "ipg", "per";
  791. status = "disabled";
  792. m25p80@0 {
  793. #address-cells = <1>;
  794. #size-cells = <1>;
  795. compatible = "w25q256";
  796. reg = <0>; /* Chip select 0 */
  797. spi-max-frequency = <3000000>;
  798. status = "disabled";
  799. };
  800. gd5f@0 {
  801. #address-cells = <1>;
  802. #size-cells = <1>;
  803. compatible = "gd5f";
  804. reg = <0>; /* Chip select 0 */
  805. spi-max-frequency = <3000000>;
  806. status = "disabled";
  807. };
  808. };
  809. dwssi: dwssi@e4100000 {
  810. compatible = "arkmicro,ark-dw-ssi";
  811. #address-cells = <1>;
  812. #size-cells = <0>;
  813. reg = <0xe4100000 0x100>;
  814. interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
  815. num-cs = <1>;
  816. cs-gpios = <&gportd 5 0>;
  817. //tx-dma-channel = <&pdma 16>;
  818. //rx-dma-channel = <&pdma 17>;
  819. pinctrl-names = "default";
  820. pinctrl-0 = <&pinctrl_dwssi>;
  821. clocks = <&spi_clk>;
  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. //spi-tx-bus-width = <1>;
  830. //spi-rx-bus-width = <4>;
  831. status = "disabled";
  832. };
  833. gd5f@0 {
  834. #address-cells = <1>;
  835. #size-cells = <1>;
  836. compatible = "gd5f";
  837. reg = <0>; /* Chip select 0 */
  838. spi-max-frequency = <3000000>;
  839. status = "disabled";
  840. };
  841. };
  842. vdec0: vdec@e0900000 {
  843. compatible = "on2,ark-vdec";
  844. reg = <0xe0900000 0x1000
  845. #ifdef DDR512
  846. 0x5e000000 0x500000>;//max space 10Mbyte
  847. #else
  848. 0x4e000000 0x500000>;//max space 10Mbyte
  849. #endif
  850. interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
  851. clocks = <&mfcclk>;
  852. clock-names = "vdec_clk";
  853. //status = "disabled";
  854. };
  855. ethernet: ethernet@e0300000 {
  856. compatible = "arkmicro,ark1668e-eqos", "snps,dwc-qos-ethernet-4.10";
  857. reg = <0xe0300000 0x4000>;
  858. interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
  859. snps,write-requests = <2>;
  860. snps,read-requests = <16>;
  861. snps,txpbl = <8>;
  862. snps,rxpbl = <2>;
  863. clocks = <&macpll>, <&mac_txclk>, <&mac_txclk>, <&apbclk>;
  864. clock-names = "tx_src", "tx", "phy_ref_clk", "apb_pclk";
  865. status = "disabled";
  866. };
  867. gpu@e9000000 {
  868. compatible = "arm,mali-400", "arm,mali-utgard";
  869. reg = <0xe9000000 0x30000
  870. #ifdef DDR512
  871. 0x5f000000 0x1000000>;
  872. #else
  873. 0x4f000000 0x1000000>;
  874. #endif
  875. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
  876. <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
  877. <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
  878. <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
  879. <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
  880. <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
  881. <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
  882. interrupt-names = "IRQGP", "IRQGPMMU", "IRQPP", "IRQPP0", "IRQPPMMU0", "IRQPP1", "IRQPPMMU1";
  883. //pmu_domain_config = <0x1 0x4 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 0x0 0x0>;
  884. //pmu_switch_delay = <0xff>;
  885. clocks = <&gpuclk>, <&gpuclk>;
  886. clock-names = "mali_parent", "mali";
  887. //status = "disabled";
  888. };
  889. lcdc: lcd@e0500000 {
  890. compatible = "arkmicro,ark1668e-lcdc";
  891. reg = <0xe0500000 0x1000
  892. #ifdef DDR512
  893. 0x5f000000 0x1000000>;
  894. #else
  895. 0x4f000000 0x1000000>;
  896. #endif
  897. interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
  898. clocks = <&lcdclk>;
  899. clock-names = "lcdc_clk";
  900. };
  901. usb0_phy: usb0-phy {
  902. compatible = "usb-nop-xceiv";
  903. #phy-cells = <0>;
  904. status = "disabled";
  905. };
  906. usb0: usb@e0100000{
  907. compatible = "arkmicro,ark-musb";
  908. status = "disabled";
  909. reg = <0xE0100000 0x1000 /* usb0 base address */
  910. 0xE4900000 0x1000>; /* ahb sys base address */
  911. reg-names = "system", "control";
  912. /* <usb0 int>, <usb0_dma_int> */
  913. interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
  914. <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  915. interrupt-names = "mc", "dma";
  916. dr_mode = "otg";
  917. multipoint = <1>;
  918. num-eps = <6>;
  919. ram-bits = <12>;
  920. //power = <500>;
  921. phys = <&usb0_phy>;
  922. gpio-id = <0xffffffff>;
  923. gpio-pwr = <0xffffffff>;
  924. usb-id-reg = <0x204>;
  925. usb-id-offset = <0>;
  926. sys-softrest-regoffset = <0x74>;
  927. usb-softrest-bitoffset = <5>;
  928. usbphy-softrest-bitoffset = <6>;
  929. };
  930. usb1_phy: usb1-phy {
  931. compatible = "usb-nop-xceiv";
  932. #phy-cells = <0>;
  933. status = "disabled";
  934. };
  935. usb1: usb@e0400000{
  936. compatible = "arkmicro,ark-musb";
  937. status = "disabled";
  938. reg = <0xE0400000 0x1000 /* usb0 base address */
  939. 0xE4900000 0x1000>; /* ahb sys base address */
  940. reg-names = "system", "control";
  941. /* <usb0 int>, <usb0_dma_int> */
  942. interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
  943. <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
  944. interrupt-names = "mc", "dma";
  945. dr_mode = "otg";
  946. multipoint = <1>;
  947. num-eps = <6>;
  948. ram-bits = <12>;
  949. //power = <500>;
  950. phys = <&usb1_phy>;
  951. gpio-id = <0xffffffff>;
  952. gpio-pwr = <0xffffffff>;
  953. usb-id-reg = <0x204>;
  954. usb-id-offset = <2>;
  955. sys-softrest-regoffset = <0x78>;
  956. usb-softrest-bitoffset = <6>;
  957. usbphy-softrest-bitoffset = <7>;
  958. };
  959. axi_scale: axi-scale@e0600000 {
  960. compatible = "arkmicro,ark1668e-axi-scale";
  961. reg = <0xe0700000 0x1000
  962. 0xe4900000 0x1000>;
  963. interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
  964. clocks = <&scalclk>;
  965. softreset-reg = <0x74>;
  966. softreset-offset = <28>;
  967. };
  968. ituin: ituin@e0800000 {
  969. compatible = "arkmicro,ark1668e-vin";
  970. reg = <0xe0800000 0x1000
  971. 0xe4900000 0x1000
  972. 0xe0a00000 0x1000
  973. 0xe0500000 0x1000>;
  974. interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
  975. pinctrl-0 = <&pinctrl_hvsync &pinctrl_itu0>;
  976. pinctrl-1 = <&pinctrl_hvsync &pinctrl_itu1>;
  977. pinctrl-2 = <&pinctrl_hvsync &pinctrl_itu2>;
  978. pinctrl-names = "itu0", "itu1", "itu2";
  979. status = "disabled";
  980. port {
  981. #address-cells = <1>;
  982. #size-cells = <0>;
  983. };
  984. };
  985. rst: reset-controller {
  986. compatible = "arkmicro,ark-reset";
  987. #reset-cells = <2>;
  988. reg = <0xe4900000 0x1000>;
  989. };
  990. };
  991. };