ark1668e.dtsi 27 KB

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