ark1668ed.dtsi 24 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include "skeleton.dtsi"
  3. #include <dt-bindings/interrupt-controller/arm-gic.h>
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/clock/ark-clk.h>
  6. / {
  7. model = "ARM Arkmicro ark1668ed SoC";
  8. compatible = "arkmicro,ark1668ed";
  9. interrupt-parent = <&gic>;
  10. aliases {
  11. serial0 = &uart0;
  12. // hsserial0 = &uart4;
  13. // hsserial1 = &uart5;
  14. };
  15. chosen {
  16. bootargs = "console=ttyS0,115200 earlyprintk loglevel=8 clk_ignore_unused";
  17. stdout-path = "serial0:115200n8";
  18. };
  19. cpus {
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. enable-method = "arkmicro,arke-smp";
  23. cpu0: cpu@0 {
  24. compatible = "arm,cortex-a7";
  25. device_type = "cpu";
  26. reg = <0>;
  27. clock-frequency = <800000000>;
  28. next-level-cache = <&L2_CA7>;
  29. };
  30. cpu1: cpu@1 {
  31. compatible = "arm,cortex-a7";
  32. device_type = "cpu";
  33. reg = <1>;
  34. clock-frequency = <800000000>;
  35. next-level-cache = <&L2_CA7>;
  36. };
  37. L2_CA7: cache-controller-0 {
  38. compatible = "cache";
  39. cache-unified;
  40. cache-level = <2>;
  41. };
  42. };
  43. memory {
  44. reg = <0x60000000 0x1c000000>;
  45. };
  46. reserved-memory {
  47. #address-cells = <1>;
  48. #size-cells = <1>;
  49. ranges;
  50. /* global autoconfigured region for contiguous allocations */
  51. linux,cma {
  52. compatible = "shared-dma-pool";
  53. reusable;
  54. size = <0xc000000>;
  55. linux,cma-default;
  56. };
  57. };
  58. iram {
  59. compatible = "arkmicro,arke-iram";
  60. reg = <0x300000 0x8000>;
  61. cpuctlofset = <0x34>;
  62. enablebit = <0x0>;
  63. };
  64. timer {
  65. compatible = "arm,armv7-timer";
  66. arm,cpu-registers-not-fw-configured;
  67. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
  68. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
  69. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
  70. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  71. clock-frequency = <24000000>;
  72. };
  73. sregs@50000000 {
  74. compatible = "arkmicro,ark-sregs";
  75. reg = <0x50000000 0x1000>;
  76. clocks {
  77. #address-cells = <1>;
  78. #size-cells = <0>;
  79. xtal32k: xtal32k@32K {
  80. #clock-cells = <0>;
  81. compatible = "fixed-clock";
  82. clock-frequency = <32768>;
  83. };
  84. xtal24mhz: xtal24mhz@24M {
  85. #clock-cells = <0>;
  86. compatible = "fixed-clock";
  87. clock-frequency = <24000000>;
  88. };
  89. clk24mhz: clk24mhz@24M {
  90. #clock-cells = <0>;
  91. compatible = "fixed-clock";
  92. clock-frequency = <24000000>;
  93. };
  94. xtal25mhz: xtal25mhz@25M {
  95. #clock-cells = <0>;
  96. compatible = "fixed-clock";
  97. clock-frequency = <25000000>;
  98. };
  99. clk240mhz: clk240mhz@240M {
  100. #clock-cells = <0>;
  101. compatible = "fixed-factor-clock";
  102. clock-div = <1>;
  103. clock-mult = <10>;
  104. clocks = <&xtal24mhz>;
  105. };
  106. clk12mhz: clk12mhz@12M {
  107. #clock-cells = <0>;
  108. compatible = "fixed-factor-clock";
  109. clock-div = <2>;
  110. clock-mult = <1>;
  111. clocks = <&xtal24mhz>;
  112. };
  113. clk6mhz: clk6mhz@6M {
  114. #clock-cells = <0>;
  115. compatible = "fixed-factor-clock";
  116. clock-div = <4>;
  117. clock-mult = <1>;
  118. clocks = <&xtal24mhz>;
  119. };
  120. cpupll: cpupll {
  121. #clock-cells = <0>;
  122. compatible = "arkmiro,arked-clk-pll";
  123. clocks = <&xtal24mhz>;
  124. reg = <0x04>;
  125. };
  126. dsppll: dsppll {
  127. #clock-cells = <0>;
  128. compatible = "arkmiro,arked-clk-pll";
  129. clocks = <&xtal24mhz>;
  130. reg = <0x08>;
  131. };
  132. syspll: syspll {
  133. #clock-cells = <0>;
  134. compatible = "arkmiro,arked-clk-pll";
  135. clocks = <&xtal24mhz>;
  136. reg = <0x0c>;
  137. };
  138. ddrpll: ddrpll {
  139. #clock-cells = <0>;
  140. compatible = "arkmiro,arked-clk-pll";
  141. clocks = <&xtal24mhz>;
  142. reg = <0x10>;
  143. };
  144. vpupll: vpupll {
  145. #clock-cells = <0>;
  146. compatible = "arkmiro,arked-clk-pll";
  147. clocks = <&xtal24mhz>;
  148. reg = <0x14>;
  149. };
  150. mfcpll: mfcpll {
  151. #clock-cells = <0>;
  152. compatible = "arkmiro,arked-clk-pll";
  153. clocks = <&xtal24mhz>;
  154. reg = <0x18>;
  155. };
  156. ahbpll: ahbpll {
  157. #clock-cells = <0>;
  158. compatible = "arkmiro,arked-clk-pll";
  159. clocks = <&xtal24mhz>;
  160. reg = <0x1c>;
  161. };
  162. gpupll: gpupll {
  163. #clock-cells = <0>;
  164. compatible = "arkmiro,arked-clk-pll";
  165. clocks = <&xtal24mhz>;
  166. reg = <0x20>;
  167. };
  168. tvpll: tvpll {
  169. #clock-cells = <0>;
  170. compatible = "arkmiro,arked-clk-pll";
  171. clocks = <&xtal24mhz>;
  172. reg = <0x24>;
  173. };
  174. pclk: pclk {
  175. #clock-cells = <0>;
  176. compatible = "arkmiro,ark-clk-sys";
  177. clocks = <&xtal24mhz>,<&ahbpll>;
  178. reg = <0x40>;
  179. index-offset = <3>;
  180. index-mask = <0x1>;
  181. index-value = <1>;
  182. div-offset = <4>;
  183. div-mask = <0x3>;
  184. div-value = <2>;
  185. div-mode = <ARK_CLK_DIVMODE_EXPONENT>;
  186. };
  187. pwmclk: pwmclk {
  188. #clock-cells = <0>;
  189. compatible = "arkmiro,ark-clk-sys";
  190. clocks = <&xtal24mhz>;
  191. reg = <0x60>;
  192. index-offset = <8>;
  193. index-mask = <0x1>;
  194. index-value = <0>;
  195. div-offset = <4>;
  196. div-mask = <0xf>;
  197. div-value = <1>;
  198. div-mode = <ARK_CLK_DIVMODE_NOZERO>;
  199. enable-reg = <0x48 0x50>;
  200. enable-offset = <13 27>;
  201. status = "disabled";
  202. };
  203. rtc_clk: rtc-clk {
  204. #clock-cells = <0>;
  205. compatible = "arkmiro,ark-clk-sys";
  206. clocks = <&xtal32k>;
  207. reg = <0x48>;
  208. enable-reg = <0x48>;
  209. enable-offset = <6>;
  210. status = "disabled";
  211. };
  212. ssi_clk: ssi-clk {
  213. #clock-cells = <0>;
  214. compatible = "arkmiro,ark-clk-sys";
  215. clocks = <&ahbpll>, <&xtal24mhz>;
  216. reg = <0x60>;
  217. index-offset = <20>;
  218. index-mask = <0xf>;
  219. index-value = <1>;
  220. div-offset = <16>;
  221. div-mask = <0xf>;
  222. div-value = <6>;
  223. div-mode = <ARK_CLK_DIVMODE_PONEDOUBLE>;
  224. enable-reg = <0x48 0x50>;
  225. enable-offset = <4 13>;
  226. status = "disabled";
  227. };
  228. spi_clk: spi-clk {
  229. #clock-cells = <0>;
  230. compatible = "arkmiro,ark-clk-sys";
  231. clocks = <&ahbpll>, <&xtal24mhz>;
  232. reg = <0x228>;
  233. index-offset = <4>;
  234. index-mask = <0xf>;
  235. index-value = <1>;
  236. div-offset = <0>;
  237. div-mask = <0xf>;
  238. div-value = <6>;
  239. div-mode = <ARK_CLK_DIVMODE_PONEDOUBLE>;
  240. enable-reg = <0x48>;
  241. enable-offset = <24>;
  242. status = "disabled";
  243. };
  244. mmc0clk: mmc0clk {
  245. #clock-cells = <0>;
  246. compatible = "arkmiro,ark-clk-sys";
  247. clocks = <&xtal24mhz>,<&ahbpll>;
  248. reg = <0x50>;
  249. index-offset = <7>;
  250. index-mask = <0x1>;
  251. index-value = <1>;
  252. div-offset = <0>;
  253. div-mask = <0x1f>;
  254. div-value = <6>;
  255. div-mode = <ARK_CLK_DIVMODE_PONEDOUBLE>;
  256. };
  257. mmc1clk: mmc1clk {
  258. #clock-cells = <0>;
  259. compatible = "arkmiro,ark-clk-sys";
  260. clocks = <&xtal24mhz>,<&ahbpll>;
  261. reg = <0x94>;
  262. index-offset = <7>;
  263. index-mask = <0x1>;
  264. index-value = <1>;
  265. div-offset = <0>;
  266. div-mask = <0x1f>;
  267. div-value = <6>;
  268. div-mode = <ARK_CLK_DIVMODE_PONEDOUBLE>;
  269. enable-reg = <0x94>;
  270. enable-offset = <6>;
  271. //status = "disabled";
  272. };
  273. lcdclkdiv: lcdclkdiv {
  274. #clock-cells = <0>;
  275. compatible = "arkmiro,ark-clk-sys";
  276. clocks = <&vpupll>, <&syspll>, <&tvpll>, <&xtal24mhz>;
  277. reg = <0xcc>;
  278. index-offset = <7>;
  279. index-mask = <0x7>;
  280. index-value = <1>;
  281. div-offset = <4>;
  282. div-mask = <0x7>;
  283. div-value = <1>;
  284. div-mode = <ARK_CLK_DIVMODE_PLUSONE>;
  285. };
  286. lcdclk: lcdclk {
  287. #clock-cells = <0>;
  288. compatible = "arkmiro,ark-clk-sys";
  289. clocks = <&lcdclkdiv>;
  290. reg = <0xcc>;
  291. div-offset = <19>;
  292. div-mask = <0xf>;
  293. div-value = <3>;
  294. div-mode = <ARK_CLK_DIVMODE_PLUSONE>;
  295. clk-can-change;
  296. enable-reg = <0x54 0x54 0x3c>;
  297. enable-offset = <17 0 1>;
  298. };
  299. lcdscalclk: lcdscalclk {
  300. #clock-cells = <0>;
  301. compatible = "arkmiro,ark-clk-sys";
  302. clocks = <&lcdclkdiv>;
  303. reg = <0xcc>;
  304. div-offset = <0>;
  305. div-mask = <0xf>;
  306. div-value = <2>;
  307. div-mode = <ARK_CLK_DIVMODE_PLUSONE>;
  308. };
  309. mfcclk: mfcclk {
  310. #clock-cells = <0>;
  311. compatible = "arkmiro,ark-clk-sys";
  312. clocks = <&syspll>,<&mfcpll>, <&xtal24mhz>;
  313. reg = <0x78>;
  314. index-offset = <8>;
  315. index-mask = <0x3>;
  316. index-value = <0>;
  317. div-offset = <11>;
  318. div-mask = <0x1f>;
  319. div-value = <2>;
  320. div-mode = <ARK_CLK_DIVMODE_PLUSONE>;
  321. };
  322. vgclk: vgclk {
  323. #clock-cells = <0>;
  324. compatible = "arkmiro,ark-clk-sys";
  325. clocks = <&syspll>, <&gpupll>, <&xtal24mhz>;
  326. reg = <0xA8>;
  327. index-offset = <0>;
  328. index-mask = <0x3>;
  329. index-value = <1>;
  330. div-offset = <3>;
  331. div-mask = <0x1f>;
  332. div-value = <1>;
  333. div-mode = <ARK_CLK_DIVMODE_PLUSONE>;
  334. enable-reg = <0x54 0x54 0x64>;
  335. enable-offset = <12 8 13>;
  336. };
  337. gpuclk: gpuclk {
  338. #clock-cells = <0>;
  339. compatible = "arkmiro,ark-clk-sys";
  340. clocks = <&syspll>, <&gpupll>, <&xtal24mhz>;
  341. reg = <0xAC>;
  342. index-offset = <0>;
  343. index-mask = <0x3>;
  344. index-value = <1>;
  345. div-offset = <3>;
  346. div-mask = <0x1f>;
  347. div-value = <1>;
  348. div-mode = <ARK_CLK_DIVMODE_PLUSONE>;
  349. enable-reg = <0x54 0x54 0x60>;
  350. enable-offset = <19 5 23>;
  351. };
  352. scalclk: scalclk {
  353. #clock-cells = <0>;
  354. compatible = "arkmiro,ark-clk-sys";
  355. clocks = <&vpupll>, <&syspll>, <&tvpll>, <&xtal24mhz>;
  356. reg = <0xD8>;
  357. index-offset = <12>;
  358. index-mask = <0x7>;
  359. index-value = <1>;
  360. div-offset = <8>;
  361. div-mask = <0xf>;
  362. div-value = <2>;
  363. div-mode = <ARK_CLK_DIVMODE_PLUSONE>;
  364. };
  365. mac_txclk: mac_txclk {
  366. #clock-cells = <0>;
  367. compatible = "arkmiro,ark-clk-sys";
  368. clocks = <&cpupll>,<&xtal24mhz>;
  369. reg = <0x234>;
  370. index-offset = <29>;
  371. index-mask = <0x7>;
  372. index-value = <2>;
  373. div-offset = <24>;
  374. div-mask = <0xf>;
  375. div-value = <8>;
  376. div-mode = <ARK_CLK_DIVMODE_PLUSONE>;
  377. enable-reg = <0x234>;
  378. enable-offset = <28>;
  379. clk-can-change;
  380. status = "disabled";
  381. };
  382. i2s0_adac_clk: i2s0_adac_clk {
  383. #clock-cells = <0>;
  384. compatible = "arkmiro,ark-clk-sys";
  385. clocks = <&syspll>, <&cpupll>,<&xtal24mhz>;
  386. reg = <0x4c>;
  387. index-offset = <0>;
  388. index-mask = <0x1>;
  389. index-value = <0>;
  390. };
  391. i2s1_adac_clk: i2s1_adac_clk {
  392. #clock-cells = <0>;
  393. compatible = "arkmiro,ark-clk-sys";
  394. clocks = <&syspll>, <&cpupll>,<&xtal24mhz>;
  395. reg = <0x4c>;
  396. index-offset = <8>;
  397. index-mask = <0x1>;
  398. index-value = <0>;
  399. };
  400. i2s2_adac_clk: i2s2_adac_clk {
  401. #clock-cells = <0>;
  402. compatible = "arkmiro,ark-clk-sys";
  403. clocks = <&syspll>, <&cpupll>,<&xtal24mhz>;
  404. reg = <0x4c>;
  405. index-offset = <16>;
  406. index-mask = <0x1>;
  407. index-value = <0>;
  408. };
  409. };
  410. };
  411. soc {
  412. compatible = "simple-bus";
  413. #address-cells = <1>;
  414. #size-cells = <1>;
  415. ranges;
  416. gic: interrupt-controller@e0b01000 {
  417. compatible = "arm,cortex-a7-gic";
  418. interrupt-controller;
  419. #interrupt-cells = <3>;
  420. reg = <0xe0b01000 0x1000>,
  421. <0xe0b02000 0x2000>,
  422. <0xe0b04000 0x2000>,
  423. <0xe0b06000 0x2000>;
  424. //interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  425. };
  426. pinctrl0: pinctrl@50000000 {
  427. compatible = "arkmicro,arke-pinctrl";/**"arkmicro,ark1668ed-pinctrl";**/
  428. reg = <0x50000000 0x1000>;
  429. pad-reg-offset = <0x140>;
  430. npins = <192>;//189
  431. gpio-mux-pins = <189>;
  432. };
  433. #if 1
  434. dmac: dmac@40E00000 {
  435. compatible = "arkmicro,ark-dma";
  436. reg = <0x40e00000 0x1000>;
  437. interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;//A7(5) M7(15)
  438. dma-channels = <8>;
  439. dma-masters = <2>;
  440. chan_allocation_order = <1>;
  441. chan_priority = <1>;
  442. block_size = <0xfff>;
  443. data-width = <4 4>;
  444. /* multi-block = <1 1 1 1 1 1 1 1>; */
  445. clocks = <&clk24mhz>;
  446. clock-names = "hclk";
  447. #dma-cells = <3>;
  448. };
  449. #else
  450. dmac: dmac@40200000 {
  451. compatible = "snps,dma-spear1340";
  452. reg = <0x40200000 0x1000>;
  453. interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
  454. dma-channels = <8>;
  455. dma-requests = <32>;
  456. dma-masters = <2>;
  457. #dma-cells = <3>;
  458. dma-cap-mask = <0x600>;
  459. chan_allocation_order = <1>;
  460. chan_priority = <1>;
  461. block_size = <0xfff>;
  462. data-width = <4 4>;
  463. multi-block = <0 0 0 0 0 0 0 0>;
  464. snps,max-burst-len = <16 16 4 4 4 4 4 4>;
  465. };
  466. #endif
  467. i2s0_adac: i2s0-adac@50d00000 {
  468. compatible = "arkmicro,ark1668ed-i2s";
  469. reg = <0x50d00000 0x1000
  470. 0x50000000 0x1000>;
  471. interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
  472. adc-nco-reg = <0x50000080>;
  473. nco-reg = <0x5000007c>;
  474. //full-duplex-mode;
  475. index = <0>;
  476. dmas = <&dmac 16 0 1>, <&dmac 17 1 0>;
  477. dma-names = "rx", "tx";
  478. clocks = <&i2s0_adac_clk>;
  479. pinctrl-0 = <&pinctrl_i2s0dac_sadata_out0 &pinctrl_i2s0dac_sadata_out1 &pinctrl_i2s0dac_sadata_out2
  480. &pinctrl_i2s0dac_sync &pinctrl_i2s0dac_mclk &pinctrl_i2s0dac_bclk
  481. &pinctrl_i2s0adc_sadata_in0 &pinctrl_i2s0adc_sadata_in1
  482. &pinctrl_i2s0adc_sync &pinctrl_i2s0adc_mclk &pinctrl_i2s0adc_bclk>;
  483. pinctrl-names = "default";
  484. #sound-dai-cells = <0>;
  485. };
  486. i2s1_adac: i2s1-adac@50e00000 {
  487. compatible = "arkmicro,ark1668ed-i2s";
  488. reg = <0x50e00000 0x1000
  489. 0x50000000 0x1000>;
  490. interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
  491. adc-nco-reg = <0x50000088>;
  492. nco-reg = <0x50000084>;
  493. //full-duplex-mode;
  494. index = <1>;
  495. dmas = <&dmac 18 0 1>, <&dmac 19 1 0>;
  496. dma-names = "rx", "tx";
  497. clocks = <&i2s1_adac_clk>;
  498. pinctrl-0 = <&pinctrl_i2s1dac_sadata_out0 &pinctrl_i2s1dac_sadata_out1 &pinctrl_i2s1dac_sadata_out2
  499. &pinctrl_i2s1dac_sync &pinctrl_i2s1dac_mclk &pinctrl_i2s1dac_bclk
  500. &pinctrl_i2s1adc_sadata_in0 &pinctrl_i2s1adc_sadata_in1
  501. &pinctrl_i2s1adc_sync &pinctrl_i2s1adc_mclk &pinctrl_i2s1adc_bclk>;
  502. pinctrl-names = "default";
  503. #sound-dai-cells = <0>;
  504. };
  505. i2s_audio: i2s-audio@50100000 {
  506. compatible = "arkmicro,ark1668ed-i2s";
  507. reg = <0x50100000 0x1000
  508. 0x50000000 0x1000>;
  509. interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
  510. adc-nco-reg = <0x50000090>;
  511. nco-reg = <0x5000008c>;
  512. full-duplex-mode;
  513. index = <2>;
  514. dmas = <&dmac 20 0 1>, <&dmac 21 1 0>;
  515. dma-names = "rx", "tx";
  516. clocks = <&i2s2_adac_clk>;
  517. #sound-dai-cells = <0>;
  518. };
  519. uart0: uart@50500000 {
  520. compatible = "snps,dw-apb-uart";
  521. reg = <0x50500000 0x1000>;
  522. interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
  523. clocks = <&clk24mhz>;
  524. reg-shift = <2>;
  525. // pinctrl-names = "default";
  526. // pinctrl-0 = <&pinctrl_uart0>;
  527. //dmas = <&dmac 6 1 0>, <&dmac 7 0 1>;
  528. //dma-names = "rx", "tx";
  529. };
  530. uart1: uart@50600000 {
  531. compatible = "snps,dw-apb-uart";
  532. reg = <0x50600000 0x1000>;
  533. interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
  534. current-speed = <115200>;
  535. clocks = <&clk24mhz>;
  536. reg-shift = <2>;
  537. pinctrl-names = "default";
  538. pinctrl-0 = <&pinctrl_uart1>;
  539. //dmas = <&dmac 12 1 0>, <&dmac 13 0 1>;
  540. //dma-names = "rx", "tx";
  541. status = "okay";
  542. };
  543. uart2: uart@50700000 {
  544. compatible = "snps,dw-apb-uart";
  545. reg = <0x50700000 0x1000>;
  546. interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
  547. current-speed = <115200>;
  548. clocks = <&clk24mhz>;
  549. reg-shift = <2>;
  550. pinctrl-names = "default";
  551. pinctrl-0 = <&pinctrl_uart2>;
  552. //dmas = <&dmac 19 1 0>, <&dmac 20 0 1>;
  553. //dma-names = "rx", "tx";
  554. status = "okay";
  555. };
  556. uart3: uart@50800000 {
  557. //compatible = "arkmicro,ark-uart";
  558. compatible = "snps,dw-apb-uart";
  559. reg = <0x50800000 0x1000>;
  560. interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
  561. current-speed = <115200>;
  562. pinctrl-names = "default";
  563. pinctrl-0 = <&pinctrl_uart3>;
  564. clocks = <&clk24mhz>;
  565. reg-shift = <2>;
  566. //dmas = <&dmac 21 1 0>, <&dmac 22 0 1>;
  567. //dma-names = "rx", "tx";
  568. status = "disabled";
  569. };
  570. uart4: uart@51300000 {
  571. //compatible = "arkmicro,ark-uart";
  572. compatible = "snps,dw-apb-uart";
  573. reg = <0x51300000 0x4000>;
  574. interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  575. clocks = <&clk24mhz>;
  576. reg-shift = <2>;
  577. pinctrl-names = "default";
  578. pinctrl-0 = <&pinctrl_uart4>;
  579. //dmas = <&dmac 14 1 0>, <&dmac 15 0 1>;
  580. //dma-names = "rx", "tx";
  581. status = "disabled";
  582. };
  583. uart5: uart@51d00000 {
  584. //compatible = "arkmicro,ark-uart";
  585. compatible = "snps,dw-apb-uart";
  586. reg = <0x51d00000 0x4000>;
  587. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
  588. clocks = <&clk24mhz>;
  589. reg-shift = <2>;
  590. pinctrl-names = "default";
  591. pinctrl-0 = <&pinctrl_uart5>;
  592. //dmas = <&dmac 16 1 0>, <&dmac 17 0 1>;
  593. //dma-names = "rx", "tx";
  594. status = "okay";
  595. };
  596. timer: timer@50a00000 {
  597. compatible = "snps,dw-apb-timer-osc";
  598. reg = <0x50a00000 0x1000>;
  599. interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
  600. clocks = <&clk12mhz>, <&clk24mhz>;
  601. clock-names = "timer", "pclk";
  602. status = "disabled";
  603. };
  604. watchdog: watchdog@50c00000 {
  605. compatible = "arkmicro,ark-wdt";
  606. reg = <0x50c00000 0x20>;
  607. interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
  608. clocks = <&pclk>;
  609. };
  610. gpio0: gpio@50900000 {
  611. #address-cells = <1>;
  612. #size-cells = <0>;
  613. compatible = "snps,dw-apb-gpio";
  614. reg = <0x50900000 0x80>;
  615. gporta: gpio-port@0 {
  616. compatible = "snps,dw-apb-gpio-port";
  617. gpio-controller;
  618. #gpio-cells = <2>;
  619. snps,nr-gpios = <32>;
  620. reg = <0>;
  621. interrupt-controller;
  622. #interrupt-cells = <2>;
  623. interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
  624. gpio-ranges = <&pinctrl0 0 0 32>;
  625. };
  626. };
  627. gpio1: gpio@50900080 {
  628. #address-cells = <1>;
  629. #size-cells = <0>;
  630. compatible = "snps,dw-apb-gpio";
  631. reg = <0x50900080 0x80>;
  632. gportb: gpio-port@1 {
  633. compatible = "snps,dw-apb-gpio-port";
  634. gpio-controller;
  635. #gpio-cells = <2>;
  636. snps,nr-gpios = <32>;
  637. reg = <0>;
  638. interrupt-controller;
  639. #interrupt-cells = <2>;
  640. interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
  641. gpio-ranges = <&pinctrl0 0 32 32>;
  642. };
  643. };
  644. gpio2: gpio@50900100 {
  645. #address-cells = <1>;
  646. #size-cells = <0>;
  647. compatible = "snps,dw-apb-gpio";
  648. reg = <0x50900100 0x80>;
  649. // status = "disabled";
  650. gportc: gpio-port@2 {
  651. compatible = "snps,dw-apb-gpio-port";
  652. gpio-controller;
  653. #gpio-cells = <2>;
  654. snps,nr-gpios = <32>;
  655. reg = <0>;
  656. interrupt-controller;
  657. #interrupt-cells = <2>;
  658. interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
  659. gpio-ranges = <&pinctrl0 0 64 32>;
  660. };
  661. };
  662. gpio3: gpio@50900180 {
  663. #address-cells = <1>;
  664. #size-cells = <0>;
  665. compatible = "snps,dw-apb-gpio";
  666. reg = <0x50900180 0x80>;
  667. // status = "disabled";
  668. gportd: gpio-port@3 {
  669. compatible = "snps,dw-apb-gpio-port";
  670. gpio-controller;
  671. #gpio-cells = <2>;
  672. snps,nr-gpios = <32>;
  673. reg = <0>;
  674. interrupt-controller;
  675. #interrupt-cells = <2>;
  676. interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
  677. gpio-ranges = <&pinctrl0 0 96 32>;
  678. };
  679. };
  680. gpio4: gpio@50900200 {
  681. #address-cells = <1>;
  682. #size-cells = <0>;
  683. compatible = "snps,dw-apb-gpio";
  684. reg = <0x50900200 0x80>;
  685. gporte: gpio-port@4 {
  686. compatible = "snps,dw-apb-gpio-port";
  687. gpio-controller;
  688. #gpio-cells = <2>;
  689. snps,nr-gpios = <32>;
  690. reg = <0>;
  691. interrupt-controller;
  692. #interrupt-cells = <2>;
  693. interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
  694. gpio-ranges = <&pinctrl0 0 128 32>;
  695. };
  696. };
  697. gpio5: gpio@50900280 {
  698. #address-cells = <1>;
  699. #size-cells = <0>;
  700. compatible = "snps,dw-apb-gpio";
  701. reg = <0x50900280 0x80>;
  702. gportf: gpio-port@5 {
  703. compatible = "snps,dw-apb-gpio-port";
  704. gpio-controller;
  705. #gpio-cells = <2>;
  706. snps,nr-gpios = <32>;
  707. reg = <0>;
  708. interrupt-controller;
  709. #interrupt-cells = <2>;
  710. interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
  711. gpio-ranges = <&pinctrl0 0 160 32>;
  712. };
  713. };
  714. nfc: nand@20000000 {
  715. compatible = "arkmicro,ark-nand";
  716. reg = <0x20000000 0x1000>;
  717. max-chips = <1>;
  718. interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  719. nand-bus-width = <8>;
  720. //nand-ecc-mode = "hw_syndrome";
  721. nand-ecc-mode = "hw";
  722. nand-ecc-placement = "oob";
  723. nand-on-flash-bbt;
  724. };
  725. pwm0: pwm@50b00000 {
  726. compatible = "arkmicro,ark-pwm";
  727. reg = <0x50b00000 0x1000>;
  728. #pwm-cells = <3>;
  729. pinctrl-names = "default";
  730. pinctrl-0 = <&pinctrl_pwm0 &pinctrl_pwm3 &pinctrl_pwm4>;
  731. clocks = <&clk24mhz>;
  732. };
  733. mmc0: mmc@40100000 {
  734. compatible = "snps,dw-mshc";
  735. #address-cells = <1>;
  736. #size-cells = <0>;
  737. reg = <0x40100000 0x1000>;
  738. interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
  739. fifo-depth = <64>;
  740. bus-width = <8>;
  741. cap-mmc-highspeed;
  742. disable-wp;
  743. non-removable;
  744. clocks = <&mmc0clk>;
  745. //clock-frequency= <24000000>;
  746. clock-names = "ciu";
  747. };
  748. mmc1: mmc@40400000 {
  749. compatible = "snps,dw-mshc";
  750. #address-cells = <1>;
  751. #size-cells = <0>;
  752. reg = <0x40400000 0x1000>;
  753. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  754. fifo-depth = <64>;
  755. bus-width = <8>;
  756. //non-removable;
  757. //cap-power-off-card;
  758. //keep-power-in-suspend;
  759. //supports-SDIO;
  760. cap-sd-highspeed;
  761. cap-sdio-irq;
  762. //broken-cd;
  763. clocks = <&mmc1clk>;
  764. pinctrl-names = "default";
  765. pinctrl-0 = <&pinctrl_mmc1>;
  766. clock-names = "ciu";
  767. };
  768. i2c0: i2c@50300000 {
  769. #address-cells = <1>;
  770. #size-cells = <0>;
  771. compatible = "snps,designware-i2c";
  772. reg = <0x50300000 0x1000>;
  773. interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
  774. pinctrl-names = "default";
  775. pinctrl-0 = <&pinctrl_i2c0>;
  776. clocks = <&clk24mhz>;
  777. clock-frequency = <400000>;
  778. };
  779. i2c1: i2c@50400000 {
  780. #address-cells = <1>;
  781. #size-cells = <0>;
  782. compatible = "snps,designware-i2c";
  783. reg = <0x50400000 0x1000>;
  784. interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
  785. pinctrl-names = "default";
  786. // pinctrl-0 = <&pinctrl_i2c1>;
  787. clocks = <&clk12mhz>;
  788. status = "disabled";
  789. };
  790. #if 0
  791. dwssi: dwssi@30000000 {
  792. //compatible = "arkmicro,ark-dw-ssi";
  793. //compatible = "snps,dw-apb-ssi";
  794. compatible = "snps,dwc-ssi-1.01a";
  795. #address-cells = <1>;
  796. #size-cells = <0>;
  797. reg = <0x30000000 0x100>;
  798. interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
  799. num-cs = <1>;
  800. //cs-gpios = <&gportd 14 0>;
  801. //dmas = <&dmac 0 1 0>, <&dmac 1 0 1>;
  802. //dma-names = "rx", "tx";
  803. //pinctrl-names = "default";
  804. //pinctrl-0 = <&pinctrl_dwssi_0>;
  805. clocks = <&clk24mhz>;
  806. //reg-io-width = <1>;
  807. status = "disabled";
  808. m25p80@0 {
  809. #address-cells = <1>;
  810. #size-cells = <1>;
  811. compatible = "w25q256";
  812. reg = <0>; /* Chip select 0 */
  813. spi-max-frequency = <3000000>;
  814. //spi-tx-bus-width = <1>;
  815. //spi-rx-bus-width = <4>;
  816. //status = "disabled";
  817. };
  818. gd5f@0 {
  819. #address-cells = <1>;
  820. #size-cells = <1>;
  821. compatible = "gd5f";
  822. reg = <0>; /* Chip select 0 */
  823. spi-max-frequency = <3000000>;
  824. status = "disabled";
  825. };
  826. };
  827. #endif
  828. gpu0: gpu@40600000 {
  829. compatible = "arkmicro,ark1668ed_gc555";
  830. reg = <0x40600000 0x1000>;
  831. interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
  832. };
  833. vdec0: vdec@40700000 {
  834. compatible = "on2,ark-vdec";
  835. reg = <0x40700000 0x1000
  836. 0x7c000000 0x500000>;
  837. interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  838. clocks = <&mfcclk>;
  839. clock-names = "vdec_clk";
  840. //status = "disabled";
  841. };
  842. axi_scale: axi-scale@41000000 {
  843. compatible = "arkmicro,ark1668ed-axi-scale";
  844. reg = <0x41000000 0x1000
  845. 0x50000000 0x1000>;
  846. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
  847. clocks = <&scalclk>;
  848. clock-names = "scale_clk";
  849. //softreset-reg = <0x74>;
  850. //softreset-offset = <28>;
  851. };
  852. gpu_2d: gpu-2d@40500000 {
  853. compatible = "arkmicro,gpu-2d";
  854. reg = <0x40500000 0x1000>;
  855. interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
  856. contiguousSize = <0x1000000>;
  857. powerManagement = <0>;
  858. };
  859. ethernet: ethernet@40b00000 {
  860. compatible = "snps,dwc-qos-ethernet-4.10";
  861. reg = <0x40b00000 0x4000>;
  862. interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
  863. snps,write-requests = <2>;
  864. snps,read-requests = <16>;
  865. snps,txpbl = <8>;
  866. snps,rxpbl = <2>;
  867. // snps,reset-gpio = <&gportd 15 GPIO_ACTIVE_LOW>;
  868. snps,reset-active-low;
  869. snps,reset-delays-us = <0 10000 1000000>;
  870. // clocks = <&eth_phy_ref_clk>, <&eth_phy_ref_clk>;
  871. clock-names = "phy_ref_clk", "apb_pclk";
  872. // status = "disabled";
  873. };
  874. lcdc: lcd@40300000 {
  875. compatible = "arkmicro,ark1668e-lcdc";
  876. reg = <0x40300000 0x1000
  877. 0x7d000000 0x3000000
  878. 0x51b00000 0x100>;
  879. interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
  880. clocks = <&lcdclk>, <&lcdscalclk>;
  881. clock-names = "lcdc_clk", "lcd_scalclk";
  882. };
  883. usb0_phy: usb0-phy {
  884. compatible = "usb-nop-xceiv";
  885. #phy-cells = <0>;
  886. status = "OK";
  887. };
  888. usb1_phy: usb1-phy {
  889. compatible = "usb-nop-xceiv";
  890. #phy-cells = <0>;
  891. status = "OK";
  892. };
  893. usb0: usb@40000000 {
  894. compatible = "snps,dwc2";
  895. #address-cells = <1>;
  896. #size-cells = <0>;
  897. reg = <0x40000000 0x40000 /* usb base address */
  898. 0x50000000 0x1000>;/* sys base address */
  899. interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  900. phys = <&usb0_phy>;
  901. phy-names = "usb0-phy";
  902. //dr_mode = "host";
  903. usb-role-switch;
  904. role-switch-default-mode = "host";
  905. dr_mode = "otg";
  906. usb-id-reg = <0x100>;
  907. usb-id-bit-offset = <16>;
  908. };
  909. usb1: usb@40c00000 {
  910. compatible = "snps,dwc2";
  911. #address-cells = <1>;
  912. #size-cells = <0>;
  913. reg = <0x40c00000 0x40000 /* usb base address */
  914. 0x50000000 0x1000>;/* sys base address */
  915. interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
  916. phys = <&usb1_phy>;
  917. phy-names = "usb1-phy";
  918. //dr_mode = "host";
  919. usb-role-switch;
  920. role-switch-default-mode = "host";
  921. dr_mode = "otg";
  922. usb-id-reg = <0x100>;
  923. usb-id-bit-offset = <24>;
  924. };
  925. };
  926. };