1
0

ark1668e.dtsi 27 KB

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