artpec6.dtsi 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  1. /*
  2. * Device Tree Source for the Axis ARTPEC-6 SoC
  3. *
  4. * This file is dual-licensed: you can use it either under the terms
  5. * of the GPL or the X11 license, at your option. Note that this dual
  6. * licensing only applies to this file, and not this project as a
  7. * whole.
  8. *
  9. * a) This file is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of the
  12. * License, or (at your option) any later version.
  13. *
  14. * This file is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * Or, alternatively,
  20. *
  21. * b) Permission is hereby granted, free of charge, to any person
  22. * obtaining a copy of this software and associated documentation
  23. * files (the "Software"), to deal in the Software without
  24. * restriction, including without limitation the rights to use,
  25. * copy, modify, merge, publish, distribute, sublicense, and/or
  26. * sell copies of the Software, and to permit persons to whom the
  27. * Software is furnished to do so, subject to the following
  28. * conditions:
  29. *
  30. * The above copyright notice and this permission notice shall be
  31. * included in all copies or substantial portions of the Software.
  32. *
  33. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  34. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  35. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  36. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  37. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  38. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  39. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  40. * OTHER DEALINGS IN THE SOFTWARE.
  41. */
  42. #include <dt-bindings/interrupt-controller/arm-gic.h>
  43. #include <dt-bindings/dma/nbpfaxi.h>
  44. #include <dt-bindings/clock/axis,artpec6-clkctrl.h>
  45. / {
  46. #address-cells = <1>;
  47. #size-cells = <1>;
  48. compatible = "axis,artpec6";
  49. interrupt-parent = <&intc>;
  50. cpus {
  51. #address-cells = <1>;
  52. #size-cells = <0>;
  53. cpu0: cpu@0 {
  54. device_type = "cpu";
  55. compatible = "arm,cortex-a9";
  56. reg = <0>;
  57. next-level-cache = <&pl310>;
  58. };
  59. cpu1: cpu@1 {
  60. device_type = "cpu";
  61. compatible = "arm,cortex-a9";
  62. reg = <1>;
  63. next-level-cache = <&pl310>;
  64. };
  65. };
  66. syscon: syscon@f8000000 {
  67. compatible = "axis,artpec6-syscon", "syscon";
  68. reg = <0xf8000000 0x48>;
  69. };
  70. psci {
  71. compatible = "arm,psci-0.2", "arm,psci";
  72. method = "smc";
  73. psci_version = <0x84000000>;
  74. cpu_on = <0x84000003>;
  75. system_reset = <0x84000009>;
  76. };
  77. scu@faf00000 {
  78. compatible = "arm,cortex-a9-scu";
  79. reg = <0xfaf00000 0x58>;
  80. };
  81. /* Main external clock driving CPU and peripherals */
  82. ext_clk: ext_clk {
  83. #clock-cells = <0>;
  84. compatible = "fixed-clock";
  85. clock-frequency = <50000000>;
  86. };
  87. eth_phy_ref_clk: eth_phy_ref_clk {
  88. #clock-cells = <0>;
  89. compatible = "fixed-clock";
  90. clock-frequency = <125000000>;
  91. };
  92. clkctrl: clkctrl@f8000000 {
  93. #clock-cells = <1>;
  94. compatible = "axis,artpec6-clkctrl";
  95. reg = <0xf8000000 0x48>;
  96. clocks = <&ext_clk>;
  97. clock-names = "sys_refclk";
  98. };
  99. gtimer@faf00200 {
  100. compatible = "arm,cortex-a9-global-timer";
  101. reg = <0xfaf00200 0x20>;
  102. interrupts = <GIC_PPI 11 0xf01>;
  103. clocks = <&clkctrl ARTPEC6_CLK_CPU_PERIPH>;
  104. };
  105. timer@faf00600 {
  106. compatible = "arm,cortex-a9-twd-timer";
  107. reg = <0xfaf00600 0x20>;
  108. interrupts = <GIC_PPI 13 0xf04>;
  109. clocks = <&clkctrl ARTPEC6_CLK_CPU_PERIPH>;
  110. status = "disabled";
  111. };
  112. intc: interrupt-controller@faf01000 {
  113. interrupt-controller;
  114. compatible = "arm,cortex-a9-gic";
  115. #interrupt-cells = <3>;
  116. reg = < 0xfaf01000 0x1000 >, < 0xfaf00100 0x0100 >;
  117. };
  118. pl310: cache-controller@faf10000 {
  119. compatible = "arm,pl310-cache";
  120. cache-unified;
  121. cache-level = <2>;
  122. reg = <0xfaf10000 0x1000>;
  123. interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
  124. arm,data-latency = <1 1 1>;
  125. arm,tag-latency = <1 1 1>;
  126. arm,filter-ranges = <0x0 0x80000000>;
  127. arm,double-linefill = <1>;
  128. arm,double-linefill-incr = <0>;
  129. arm,double-linefill-wrap = <0>;
  130. prefetch-data = <1>;
  131. prefetch-instr = <1>;
  132. arm,prefetch-offset = <0>;
  133. arm,prefetch-drop = <1>;
  134. };
  135. pmu {
  136. compatible = "arm,cortex-a9-pmu";
  137. interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
  138. <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  139. interrupt-affinity = <&cpu0>, <&cpu1>;
  140. };
  141. /*
  142. * Both pci nodes cannot be enabled at the same time,
  143. * leave the unwanted node as disabled.
  144. */
  145. pcie: pcie@f8050000 {
  146. compatible = "axis,artpec6-pcie", "snps,dw-pcie";
  147. reg = <0xf8050000 0x2000
  148. 0xf8040000 0x1000
  149. 0xc0000000 0x2000>;
  150. reg-names = "dbi", "phy", "config";
  151. #address-cells = <3>;
  152. #size-cells = <2>;
  153. device_type = "pci";
  154. /* downstream I/O */
  155. ranges = <0x81000000 0 0 0xc0002000 0 0x00010000
  156. /* non-prefetchable memory */
  157. 0x82000000 0 0xc0012000 0xc0012000 0 0x1ffee000>;
  158. num-lanes = <2>;
  159. bus-range = <0x00 0xff>;
  160. interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
  161. interrupt-names = "msi";
  162. #interrupt-cells = <1>;
  163. interrupt-map-mask = <0 0 0 0x7>;
  164. interrupt-map = <0 0 0 1 &intc GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
  165. <0 0 0 2 &intc GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
  166. <0 0 0 3 &intc GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
  167. <0 0 0 4 &intc GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
  168. axis,syscon-pcie = <&syscon>;
  169. status = "disabled";
  170. };
  171. pcie_ep: pcie_ep@f8050000 {
  172. compatible = "axis,artpec6-pcie-ep", "snps,dw-pcie";
  173. reg = <0xf8050000 0x2000
  174. 0xf8051000 0x2000
  175. 0xf8040000 0x1000
  176. 0xc0000000 0x20000000>;
  177. reg-names = "dbi", "dbi2", "phy", "addr_space";
  178. num-ib-windows = <6>;
  179. num-ob-windows = <2>;
  180. num-lanes = <2>;
  181. axis,syscon-pcie = <&syscon>;
  182. status = "disabled";
  183. };
  184. pinctrl: pinctrl@f801d000 {
  185. compatible = "axis,artpec6-pinctrl";
  186. reg = <0xf801d000 0x400>;
  187. pinctrl_uart0: uart0grp {
  188. function = "uart0";
  189. groups = "uart0grp2";
  190. bias-pull-up;
  191. };
  192. pinctrl_uart1: uart1grp {
  193. function = "uart1";
  194. groups = "uart1grp0";
  195. bias-pull-up;
  196. };
  197. pinctrl_uart2: uart2grp {
  198. function = "uart2";
  199. groups = "uart2grp1";
  200. bias-pull-up;
  201. };
  202. pinctrl_uart3: uart3grp {
  203. function = "uart3";
  204. groups = "uart3grp0";
  205. bias-pull-up;
  206. };
  207. };
  208. amba@0 {
  209. compatible = "simple-bus";
  210. #address-cells = <0x1>;
  211. #size-cells = <0x1>;
  212. ranges;
  213. dma-ranges;
  214. crypto@f4264000 {
  215. compatible = "axis,artpec6-crypto";
  216. reg = <0xf4264000 0x4000>;
  217. interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
  218. };
  219. dma0: dma@f8019000 {
  220. compatible = "renesas,nbpfaxi64dmac8b16";
  221. reg = <0xf8019000 0x400>;
  222. interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>, /* error */
  223. <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>,
  224. <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>,
  225. <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
  226. <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
  227. <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
  228. <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
  229. <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
  230. <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
  231. interrupt-names = "error",
  232. "ch0", "ch1", "ch2", "ch3",
  233. "ch4", "ch5", "ch6", "ch7",
  234. "ch8", "ch9", "ch10", "ch12",
  235. "ch12", "ch13", "ch14", "ch15";
  236. clocks = <&clkctrl ARTPEC6_CLK_DMA_ACLK>;
  237. #dma-cells = <2>;
  238. dma-channels = <8>;
  239. dma-requests = <8>;
  240. };
  241. dma1: dma@f8019400 {
  242. compatible = "renesas,nbpfaxi64dmac8b16";
  243. reg = <0xf8019400 0x400>;
  244. interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>, /* error */
  245. <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
  246. <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
  247. <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
  248. <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
  249. <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
  250. <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
  251. <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>,
  252. <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
  253. interrupt-names = "error",
  254. "ch0", "ch1", "ch2", "ch3",
  255. "ch4", "ch5", "ch6", "ch7",
  256. "ch8", "ch9", "ch10", "ch12",
  257. "ch12", "ch13", "ch14", "ch15";
  258. clocks = <&clkctrl ARTPEC6_CLK_DMA_ACLK>;
  259. #dma-cells = <2>;
  260. dma-channels = <8>;
  261. dma-requests = <8>;
  262. };
  263. ethernet: ethernet@f8010000 {
  264. clock-names = "stmmaceth", "ptp_ref";
  265. clocks = <&clkctrl ARTPEC6_CLK_ETH_ACLK>,
  266. <&clkctrl ARTPEC6_CLK_PTP_REF>;
  267. compatible = "snps,dwmac-4.10a", "snps,dwmac";
  268. interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
  269. <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
  270. interrupt-names = "macirq", "eth_lpi";
  271. reg = <0xf8010000 0x4000>;
  272. snps,axi-config = <&stmmac_axi_setup>;
  273. snps,mtl-rx-config = <&mtl_rx_setup>;
  274. snps,mtl-tx-config = <&mtl_tx_setup>;
  275. snps,txpbl = <8>;
  276. snps,rxpbl = <2>;
  277. snps,aal;
  278. snps,tso;
  279. status = "disabled";
  280. stmmac_axi_setup: stmmac-axi-config {
  281. snps,wr_osr_lmt = <1>;
  282. snps,rd_osr_lmt = <15>;
  283. /* If FB is disabled, the AXI master chooses
  284. * a burst length of any value less than the
  285. * maximum enabled burst length
  286. * (all lesser burst length enables are redundant).
  287. */
  288. snps,blen = <0 0 0 0 16 0 0>;
  289. };
  290. mtl_rx_setup: rx-queues-config {
  291. snps,rx-queues-to-use = <1>;
  292. queue0 {};
  293. };
  294. mtl_tx_setup: tx-queues-config {
  295. snps,tx-queues-to-use = <2>;
  296. queue0 {};
  297. queue1 {};
  298. };
  299. };
  300. uart0: serial@f8036000 {
  301. compatible = "arm,pl011", "arm,primecell";
  302. reg = <0xf8036000 0x1000>;
  303. interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
  304. clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>,
  305. <&clkctrl ARTPEC6_CLK_UART_PCLK>;
  306. clock-names = "uart_clk", "apb_pclk";
  307. pinctrl-names = "default";
  308. pinctrl-0 = <&pinctrl_uart0>;
  309. dmas = <&dma0 4 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>,
  310. <&dma0 5 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>;
  311. dma-names = "rx", "tx";
  312. status = "disabled";
  313. };
  314. uart1: serial@f8037000 {
  315. compatible = "arm,pl011", "arm,primecell";
  316. reg = <0xf8037000 0x1000>;
  317. interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
  318. clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>,
  319. <&clkctrl ARTPEC6_CLK_UART_PCLK>;
  320. clock-names = "uart_clk", "apb_pclk";
  321. pinctrl-names = "default";
  322. pinctrl-0 = <&pinctrl_uart1>;
  323. dmas = <&dma0 6 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>,
  324. <&dma0 7 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>;
  325. dma-names = "rx", "tx";
  326. status = "disabled";
  327. };
  328. uart2: serial@f8038000 {
  329. compatible = "arm,pl011", "arm,primecell";
  330. reg = <0xf8038000 0x1000>;
  331. interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
  332. clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>,
  333. <&clkctrl ARTPEC6_CLK_UART_PCLK>;
  334. clock-names = "uart_clk", "apb_pclk";
  335. pinctrl-names = "default";
  336. pinctrl-0 = <&pinctrl_uart2>;
  337. dmas = <&dma1 0 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>,
  338. <&dma1 1 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>;
  339. dma-names = "rx", "tx";
  340. status = "disabled";
  341. };
  342. uart3: serial@f8039000 {
  343. compatible = "arm,pl011", "arm,primecell";
  344. reg = <0xf8039000 0x1000>;
  345. interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>;
  346. clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>,
  347. <&clkctrl ARTPEC6_CLK_UART_PCLK>;
  348. clock-names = "uart_clk", "apb_pclk";
  349. pinctrl-names = "default";
  350. pinctrl-0 = <&pinctrl_uart3>;
  351. dmas = <&dma1 2 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>,
  352. <&dma1 3 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>;
  353. dma-names = "rx", "tx";
  354. status = "disabled";
  355. };
  356. };
  357. };