ark1668e.dtsi 28 KB

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