ae350.dts 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. /dts-v1/;
  2. / {
  3. #address-cells = <2>;
  4. #size-cells = <2>;
  5. compatible = "andestech,ae350";
  6. model = "andestech,ax45";
  7. aliases {
  8. uart0 = &serial0;
  9. spi0 = &spi;
  10. };
  11. chosen {
  12. bootargs = "console=ttyS0,38400n8 earlycon=sbi debug loglevel=7";
  13. stdout-path = "uart0:38400n8";
  14. };
  15. cpus {
  16. #address-cells = <1>;
  17. #size-cells = <0>;
  18. timebase-frequency = <60000000>;
  19. CPU0: cpu@0 {
  20. device_type = "cpu";
  21. reg = <0>;
  22. status = "okay";
  23. compatible = "riscv";
  24. riscv,isa = "rv64i2p0m2p0a2p0f2p0d2p0c2p0xv5-1p1xdsp0p0";
  25. riscv,priv-major = <1>;
  26. riscv,priv-minor = <10>;
  27. mmu-type = "riscv,sv48";
  28. clock-frequency = <60000000>;
  29. i-cache-size = <0x8000>;
  30. i-cache-sets = <256>;
  31. i-cache-block-size = <64>;
  32. i-cache-line-size = <64>;
  33. d-cache-size = <0x8000>;
  34. d-cache-sets = <128>;
  35. d-cache-block-size = <64>;
  36. d-cache-line-size = <64>;
  37. next-level-cache = <&L2>;
  38. CPU0_intc: interrupt-controller {
  39. #interrupt-cells = <1>;
  40. interrupt-controller;
  41. compatible = "riscv,cpu-intc";
  42. };
  43. };
  44. CPU1: cpu@1 {
  45. device_type = "cpu";
  46. reg = <1>;
  47. status = "okay";
  48. compatible = "riscv";
  49. riscv,isa = "rv64i2p0m2p0a2p0f2p0d2p0c2p0xv5-1p1xdsp0p0";
  50. riscv,priv-major = <1>;
  51. riscv,priv-minor = <10>;
  52. mmu-type = "riscv,sv48";
  53. clock-frequency = <60000000>;
  54. i-cache-size = <0x8000>;
  55. i-cache-sets = <256>;
  56. i-cache-block-size = <64>;
  57. i-cache-line-size = <64>;
  58. d-cache-size = <0x8000>;
  59. d-cache-sets = <128>;
  60. d-cache-block-size = <64>;
  61. d-cache-line-size = <64>;
  62. next-level-cache = <&L2>;
  63. CPU1_intc: interrupt-controller {
  64. #interrupt-cells = <1>;
  65. interrupt-controller;
  66. compatible = "riscv,cpu-intc";
  67. };
  68. };
  69. CPU2: cpu@2 {
  70. device_type = "cpu";
  71. reg = <2>;
  72. status = "okay";
  73. compatible = "riscv";
  74. riscv,isa = "rv64i2p0m2p0a2p0f2p0d2p0c2p0xv5-1p1xdsp0p0";
  75. riscv,priv-major = <1>;
  76. riscv,priv-minor = <10>;
  77. mmu-type = "riscv,sv48";
  78. clock-frequency = <60000000>;
  79. i-cache-size = <0x8000>;
  80. i-cache-sets = <256>;
  81. i-cache-block-size = <64>;
  82. i-cache-line-size = <64>;
  83. d-cache-size = <0x8000>;
  84. d-cache-sets = <128>;
  85. d-cache-block-size = <64>;
  86. d-cache-line-size = <64>;
  87. next-level-cache = <&L2>;
  88. CPU2_intc: interrupt-controller {
  89. #interrupt-cells = <1>;
  90. interrupt-controller;
  91. compatible = "riscv,cpu-intc";
  92. };
  93. };
  94. CPU3: cpu@3 {
  95. device_type = "cpu";
  96. reg = <3>;
  97. status = "okay";
  98. compatible = "riscv";
  99. riscv,isa = "rv64i2p0m2p0a2p0f2p0d2p0c2p0xv5-1p1xdsp0p0";
  100. riscv,priv-major = <1>;
  101. riscv,priv-minor = <10>;
  102. mmu-type = "riscv,sv48";
  103. clock-frequency = <60000000>;
  104. i-cache-size = <0x8000>;
  105. i-cache-sets = <256>;
  106. i-cache-block-size = <64>;
  107. i-cache-line-size = <64>;
  108. d-cache-size = <0x8000>;
  109. d-cache-sets = <128>;
  110. d-cache-block-size = <64>;
  111. d-cache-line-size = <64>;
  112. next-level-cache = <&L2>;
  113. CPU3_intc: interrupt-controller {
  114. #interrupt-cells = <1>;
  115. interrupt-controller;
  116. compatible = "riscv,cpu-intc";
  117. };
  118. };
  119. };
  120. L2: l2-cache@e0500000 {
  121. compatible = "cache";
  122. cache-level = <2>;
  123. cache-size = <0x80000>;
  124. reg = <0x00000000 0xe0500000 0x00000000 0x00001000>;
  125. andes,inst-prefetch = <3>;
  126. andes,data-prefetch = <3>;
  127. // The value format is <XRAMOCTL XRAMICTL>
  128. andes,tag-ram-ctl = <0 0>;
  129. andes,data-ram-ctl = <0 0>;
  130. };
  131. memory@0 {
  132. reg = <0x00000000 0x00000000 0x00000000 0x80000000>;
  133. device_type = "memory";
  134. };
  135. soc {
  136. #address-cells = <2>;
  137. #size-cells = <2>;
  138. compatible = "andestech,riscv-ae350-soc", "simple-bus";
  139. ranges;
  140. plic0: interrupt-controller@e4000000 {
  141. compatible = "riscv,plic0";
  142. reg = <0x00000000 0xe4000000 0x00000000 0x02000000>;
  143. interrupts-extended = < &CPU0_intc 11 &CPU0_intc 9 &CPU1_intc 11 &CPU1_intc 9 &CPU2_intc 11 &CPU2_intc 9 &CPU3_intc 11 &CPU3_intc 9>;
  144. interrupt-controller;
  145. #address-cells = <2>;
  146. #interrupt-cells = <2>;
  147. riscv,ndev = <71>;
  148. };
  149. plic1: interrupt-controller@e6400000 {
  150. compatible = "riscv,plic1";
  151. reg = <0x00000000 0xe6400000 0x00000000 0x00400000>;
  152. interrupts-extended = < &CPU0_intc 3 &CPU1_intc 3 &CPU2_intc 3 &CPU3_intc 3>;
  153. interrupt-controller;
  154. #address-cells = <2>;
  155. #interrupt-cells = <2>;
  156. riscv,ndev = <4>;
  157. };
  158. plmt0: plmt0@e6000000 {
  159. compatible = "riscv,plmt0";
  160. reg = <0x00000000 0xe6000000 0x00000000 0x00100000>;
  161. interrupts-extended = < &CPU0_intc 7 &CPU1_intc 7 &CPU2_intc 7 &CPU3_intc 7>;
  162. };
  163. spiclk: virt_100mhz {
  164. compatible = "fixed-clock";
  165. #clock-cells = <0>;
  166. clock-frequency = <100000000>;
  167. };
  168. timer0: timer@f0400000 {
  169. compatible = "andestech,atcpit100";
  170. reg = <0x00000000 0xf0400000 0x00000000 0x00001000>;
  171. interrupts = <3 4>;
  172. interrupt-parent = <&plic0>;
  173. clock-frequency = <60000000>;
  174. };
  175. pwm: pwm@f0400000 {
  176. compatible = "andestech,atcpit100-pwm";
  177. reg = <0x00000000 0xf0400000 0x00000000 0x00001000>;
  178. interrupts = <3 4>;
  179. interrupt-parent = <&plic0>;
  180. clock-frequency = <60000000>;
  181. pwm-cells = <2>;
  182. };
  183. wdt: wdt@f0500000 {
  184. compatible = "andestech,atcwdt200";
  185. reg = <0x00000000 0xf0500000 0x00000000 0x00001000>;
  186. interrupts = <3 4>;
  187. interrupt-parent = <&plic0>;
  188. clock-frequency = <15000000>;
  189. };
  190. serial0: serial@f0300000 {
  191. compatible = "andestech,uart16550", "ns16550a";
  192. reg = <0x00000000 0xf0300000 0x00000000 0x00001000>;
  193. interrupts = <9 4>;
  194. interrupt-parent = <&plic0>;
  195. clock-frequency = <19660800>;
  196. reg-shift = <2>;
  197. reg-offset = <32>;
  198. no-loopback-test = <1>;
  199. };
  200. rtc0: rtc@f0600000 {
  201. compatible = "andestech,atcrtc100";
  202. reg = <0x00000000 0xf0600000 0x00000000 0x00001000>;
  203. interrupts = <1 4 2 4>;
  204. interrupt-parent = <&plic0>;
  205. wakeup-source;
  206. };
  207. gpio: gpio@f0700000 {
  208. compatible = "andestech,atcgpio100";
  209. reg = <0x00000000 0xf0700000 0x00000000 0x00001000>;
  210. interrupts = <7 4>;
  211. interrupt-parent = <&plic0>;
  212. wakeup-source;
  213. };
  214. mac0: mac@e0100000 {
  215. compatible = "andestech,atmac100";
  216. reg = <0x00000000 0xe0100000 0x00000000 0x00001000>;
  217. interrupts = <19 4>;
  218. interrupt-parent = <&plic0>;
  219. dma-coherent;
  220. };
  221. smu: smu@f0100000 {
  222. compatible = "andestech,atcsmu";
  223. reg = <0x00000000 0xf0100000 0x00000000 0x00001000>;
  224. };
  225. mmc0: mmc@f0e00000 {
  226. compatible = "andestech,atfsdc010";
  227. reg = <0x00000000 0xf0e00000 0x00000000 0x00001000>;
  228. interrupts = <18 4>;
  229. interrupt-parent = <&plic0>;
  230. clock-freq-min-max = <400000 100000000>;
  231. max-frequency = <100000000>;
  232. fifo-depth = <16>;
  233. cap-sd-highspeed;
  234. dma-coherent;
  235. };
  236. dma0: dma@f0c00000 {
  237. compatible = "andestech,atcdmac300";
  238. reg = <0x00000000 0xf0c00000 0x00000000 0x00001000>;
  239. interrupts = <10 4 64 4 65 4 66 4 67 4 68 4 69 4 70 4 71 4>;
  240. interrupt-parent = <&plic0>;
  241. dma-channels = <8>;
  242. };
  243. lcd0: lcd@e0200000 {
  244. compatible = "andestech,atflcdc100";
  245. reg = <0x00000000 0xe0200000 0x00000000 0x00001000>;
  246. interrupts = <20 4>;
  247. interrupt-parent = <&plic0>;
  248. dma-coherent;
  249. };
  250. pmu: pmu {
  251. compatible = "riscv,andes-pmu";
  252. device_type = "pmu";
  253. };
  254. spi: spi@f0b00000 {
  255. compatible = "andestech,atcspi200";
  256. reg = <0x00000000 0xf0b00000 0x00000000 0x00001000>;
  257. interrupts = <4 4>;
  258. interrupt-parent = <&plic0>;
  259. #address-cells = <1>;
  260. #size-cells = <0>;
  261. num-cs = <1>;
  262. clocks = <&spiclk>;
  263. flash@0 {
  264. compatible = "jedec,spi-nor";
  265. reg = <0x00000000>;
  266. spi-max-frequency = <50000000>;
  267. spi-cpol;
  268. spi-cpha;
  269. };
  270. };
  271. };
  272. };