ark1668e.dtsi 28 KB

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