keystone-k2hk-netcp.dtsi 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for Keystone 2 Hawking Netcp driver
  4. *
  5. * Copyright (C) 2015-2017 Texas Instruments Incorporated - http://www.ti.com/
  6. */
  7. qmss: qmss@2a40000 {
  8. compatible = "ti,keystone-navigator-qmss";
  9. dma-coherent;
  10. #address-cells = <1>;
  11. #size-cells = <1>;
  12. clocks = <&chipclk13>;
  13. ranges;
  14. queue-range = <0 0x4000>;
  15. linkram0 = <0x100000 0x8000>;
  16. linkram1 = <0x0 0x10000>;
  17. qmgrs {
  18. #address-cells = <1>;
  19. #size-cells = <1>;
  20. ranges;
  21. qmgr0 {
  22. managed-queues = <0 0x2000>;
  23. reg = <0x2a40000 0x20000>,
  24. <0x2a06000 0x400>,
  25. <0x2a02000 0x1000>,
  26. <0x2a03000 0x1000>,
  27. <0x23a80000 0x20000>,
  28. <0x2a80000 0x20000>;
  29. reg-names = "peek", "status", "config",
  30. "region", "push", "pop";
  31. };
  32. qmgr1 {
  33. managed-queues = <0x2000 0x2000>;
  34. reg = <0x2a60000 0x20000>,
  35. <0x2a06400 0x400>,
  36. <0x2a04000 0x1000>,
  37. <0x2a05000 0x1000>,
  38. <0x23aa0000 0x20000>,
  39. <0x2aa0000 0x20000>;
  40. reg-names = "peek", "status", "config",
  41. "region", "push", "pop";
  42. };
  43. };
  44. queue-pools {
  45. qpend {
  46. qpend-0 {
  47. qrange = <658 8>;
  48. interrupts =<0 40 0xf04 0 41 0xf04 0 42 0xf04
  49. 0 43 0xf04 0 44 0xf04 0 45 0xf04
  50. 0 46 0xf04 0 47 0xf04>;
  51. };
  52. qpend-1 {
  53. qrange = <8704 16>;
  54. interrupts = <0 48 0xf04 0 49 0xf04 0 50 0xf04
  55. 0 51 0xf04 0 52 0xf04 0 53 0xf04
  56. 0 54 0xf04 0 55 0xf04 0 56 0xf04
  57. 0 57 0xf04 0 58 0xf04 0 59 0xf04
  58. 0 60 0xf04 0 61 0xf04 0 62 0xf04
  59. 0 63 0xf04>;
  60. qalloc-by-id;
  61. };
  62. qpend-2 {
  63. qrange = <8720 16>;
  64. interrupts = <0 64 0xf04 0 65 0xf04 0 66 0xf04
  65. 0 59 0xf04 0 68 0xf04 0 69 0xf04
  66. 0 70 0xf04 0 71 0xf04 0 72 0xf04
  67. 0 73 0xf04 0 74 0xf04 0 75 0xf04
  68. 0 76 0xf04 0 77 0xf04 0 78 0xf04
  69. 0 79 0xf04>;
  70. };
  71. };
  72. general-purpose {
  73. gp-0 {
  74. qrange = <4000 64>;
  75. };
  76. netcp-tx {
  77. qrange = <640 9>;
  78. qalloc-by-id;
  79. };
  80. netcpx-tx {
  81. qrange = <8752 8>;
  82. qalloc-by-id;
  83. };
  84. };
  85. accumulator {
  86. acc-low-0 {
  87. qrange = <480 32>;
  88. accumulator = <0 47 16 2 50>;
  89. interrupts = <0 226 0xf01>;
  90. multi-queue;
  91. qalloc-by-id;
  92. };
  93. };
  94. };
  95. descriptor-regions {
  96. #address-cells = <1>;
  97. #size-cells = <1>;
  98. ranges;
  99. region-12 {
  100. id = <12>;
  101. region-spec = <8192 128>; /* num_desc desc_size */
  102. link-index = <0x4000>;
  103. };
  104. };
  105. pdsps {
  106. #address-cells = <1>;
  107. #size-cells = <1>;
  108. ranges;
  109. pdsp0@2a10000 {
  110. reg = <0x2a10000 0x1000 /*iram */
  111. 0x2a0f000 0x100 /*reg*/
  112. 0x2a0c000 0x3c8 /*intd */
  113. 0x2a20000 0x4000>; /*cmd*/
  114. id = <0>;
  115. };
  116. };
  117. }; /* qmss */
  118. knav_dmas: knav_dmas@0 {
  119. compatible = "ti,keystone-navigator-dma";
  120. clocks = <&papllclk>;
  121. #address-cells = <1>;
  122. #size-cells = <1>;
  123. ranges;
  124. ti,navigator-cloud-address = <0x23a80000 0x23a90000
  125. 0x23aa0000 0x23ab0000>;
  126. dma_gbe: dma_gbe@0 {
  127. reg = <0x2004000 0x100>,
  128. <0x2004400 0x120>,
  129. <0x2004800 0x300>,
  130. <0x2004c00 0x120>,
  131. <0x2005000 0x400>;
  132. reg-names = "global", "txchan", "rxchan",
  133. "txsched", "rxflow";
  134. };
  135. };
  136. netcp: netcp@2000000 {
  137. reg = <0x2620110 0x8>;
  138. reg-names = "efuse";
  139. compatible = "ti,netcp-1.0";
  140. #address-cells = <1>;
  141. #size-cells = <1>;
  142. /* NetCP address range */
  143. ranges = <0 0x2000000 0x100000>;
  144. clocks = <&clkpa>, <&clkcpgmac>;
  145. clock-names = "pa_clk", "ethss_clk";
  146. dma-coherent;
  147. ti,navigator-dmas = <&dma_gbe 22>,
  148. <&dma_gbe 23>,
  149. <&dma_gbe 8>;
  150. ti,navigator-dma-names = "netrx0", "netrx1", "nettx";
  151. netcp-devices {
  152. ranges;
  153. #address-cells = <1>;
  154. #size-cells = <1>;
  155. gbe@90000 { /* ETHSS */
  156. #address-cells = <1>;
  157. #size-cells = <1>;
  158. label = "netcp-gbe";
  159. compatible = "ti,netcp-gbe";
  160. reg = <0x90000 0x300>, <0x90400 0x400>, <0x90800 0x700>;
  161. /* enable-ale; */
  162. tx-queue = <648>;
  163. tx-channel = "nettx";
  164. cpts {
  165. clocks = <&cpts_refclk_mux>;
  166. clock-names = "cpts";
  167. cpts_refclk_mux: cpts-refclk-mux {
  168. #clock-cells = <0>;
  169. clocks = <&chipclk12>, <&chipclk13>,
  170. <&timi0>, <&timi1>,
  171. <&tsrefclk>;
  172. ti,mux-tbl = <0x0>, <0x1>, <0x2>,
  173. <0x3>, <0x8>;
  174. assigned-clocks = <&cpts_refclk_mux>;
  175. assigned-clock-parents = <&chipclk12>;
  176. };
  177. };
  178. interfaces {
  179. gbe0: interface-0 {
  180. slave-port = <0>;
  181. link-interface = <1>;
  182. phy-handle = <&ethphy0>;
  183. };
  184. gbe1: interface-1 {
  185. slave-port = <1>;
  186. link-interface = <1>;
  187. phy-handle = <&ethphy1>;
  188. };
  189. };
  190. secondary-slave-ports {
  191. port-2 {
  192. slave-port = <2>;
  193. link-interface = <2>;
  194. };
  195. port-3 {
  196. slave-port = <3>;
  197. link-interface = <2>;
  198. };
  199. };
  200. };
  201. };
  202. netcp-interfaces {
  203. interface-0 {
  204. rx-channel = "netrx0";
  205. rx-pool = <1024 12>;
  206. tx-pool = <1024 12>;
  207. rx-queue-depth = <128 128 0 0>;
  208. rx-buffer-size = <1518 4096 0 0>;
  209. rx-queue = <8704>;
  210. tx-completion-queue = <8706>;
  211. efuse-mac = <1>;
  212. netcp-gbe = <&gbe0>;
  213. };
  214. interface-1 {
  215. rx-channel = "netrx1";
  216. rx-pool = <1024 12>;
  217. tx-pool = <1024 12>;
  218. rx-queue-depth = <128 128 0 0>;
  219. rx-buffer-size = <1518 4096 0 0>;
  220. rx-queue = <8705>;
  221. tx-completion-queue = <8707>;
  222. efuse-mac = <0>;
  223. local-mac-address = [02 18 31 7e 3e 6f];
  224. netcp-gbe = <&gbe1>;
  225. };
  226. };
  227. };
  228. sa_subsys: subsys@20c0000 {
  229. compatible = "simple-bus";
  230. #address-cells = <1>;
  231. #size-cells = <1>;
  232. ranges = <0 0x20c0000 0x40000>;
  233. sa_config: subsys@0 {
  234. compatible = "syscon";
  235. reg = <0x0 0x100>;
  236. };
  237. rng@24000 {
  238. compatible = "ti,keystone-rng";
  239. reg = <0x24000 0x1000>;
  240. ti,syscon-sa-cfg = <&sa_config>;
  241. clocks = <&clksa>;
  242. clock-names = "fck";
  243. };
  244. };