keystone-k2e-netcp.dtsi 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for Keystone 2 Edison 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 0x2000>;
  15. linkram0 = <0x100000 0x4000>;
  16. linkram1 = <0 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. };
  33. queue-pools {
  34. qpend {
  35. qpend-0 {
  36. qrange = <658 8>;
  37. interrupts =<0 40 0xf04 0 41 0xf04 0 42 0xf04
  38. 0 43 0xf04 0 44 0xf04 0 45 0xf04
  39. 0 46 0xf04 0 47 0xf04>;
  40. };
  41. qpend-1 {
  42. qrange = <528 16>;
  43. interrupts = <0 48 0xf04 0 49 0xf04 0 50 0xf04
  44. 0 51 0xf04 0 52 0xf04 0 53 0xf04
  45. 0 54 0xf04 0 55 0xf04 0 56 0xf04
  46. 0 57 0xf04 0 58 0xf04 0 59 0xf04
  47. 0 60 0xf04 0 61 0xf04 0 62 0xf04
  48. 0 63 0xf04>;
  49. qalloc-by-id;
  50. };
  51. qpend-2 {
  52. qrange = <544 16>;
  53. interrupts = <0 64 0xf04 0 65 0xf04 0 66 0xf04
  54. 0 59 0xf04 0 68 0xf04 0 69 0xf04
  55. 0 70 0xf04 0 71 0xf04 0 72 0xf04
  56. 0 73 0xf04 0 74 0xf04 0 75 0xf04
  57. 0 76 0xf04 0 77 0xf04 0 78 0xf04
  58. 0 79 0xf04>;
  59. };
  60. };
  61. general-purpose {
  62. gp-0 {
  63. qrange = <4000 64>;
  64. };
  65. netcp-tx {
  66. qrange = <896 128>;
  67. qalloc-by-id;
  68. };
  69. };
  70. accumulator {
  71. acc-low-0 {
  72. qrange = <480 32>;
  73. accumulator = <0 47 16 2 50>;
  74. interrupts = <0 226 0xf01>;
  75. multi-queue;
  76. qalloc-by-id;
  77. };
  78. };
  79. };
  80. descriptor-regions {
  81. #address-cells = <1>;
  82. #size-cells = <1>;
  83. ranges;
  84. region-12 {
  85. id = <12>;
  86. region-spec = <8192 128>; /* num_desc desc_size */
  87. link-index = <0x4000>;
  88. };
  89. };
  90. pdsps {
  91. #address-cells = <1>;
  92. #size-cells = <1>;
  93. ranges;
  94. pdsp0@2a10000 {
  95. reg = <0x2a10000 0x1000 /*iram */
  96. 0x2a0f000 0x100 /*reg*/
  97. 0x2a0c000 0x3c8 /*intd */
  98. 0x2a20000 0x4000>; /*cmd*/
  99. id = <0>;
  100. };
  101. };
  102. }; /* qmss */
  103. knav_dmas: knav_dmas@0 {
  104. compatible = "ti,keystone-navigator-dma";
  105. clocks = <&papllclk>;
  106. #address-cells = <1>;
  107. #size-cells = <1>;
  108. ranges;
  109. ti,navigator-cloud-address = <0x23a80000 0x23a90000
  110. 0x23a80000 0x23a90000>;
  111. dma_gbe: dma_gbe@0 {
  112. reg = <0x24186000 0x100>,
  113. <0x24187000 0x2a0>,
  114. <0x24188000 0xb60>,
  115. <0x24186100 0x80>,
  116. <0x24189000 0x1000>;
  117. reg-names = "global", "txchan", "rxchan",
  118. "txsched", "rxflow";
  119. };
  120. };
  121. netcp: netcp@24000000 {
  122. reg = <0x2620110 0x8>;
  123. reg-names = "efuse";
  124. compatible = "ti,netcp-1.0";
  125. #address-cells = <1>;
  126. #size-cells = <1>;
  127. /* NetCP address range */
  128. ranges = <0 0x24000000 0x1000000>;
  129. clocks = <&clkpa>, <&clkcpgmac>;
  130. clock-names = "pa_clk", "ethss_clk";
  131. dma-coherent;
  132. ti,navigator-dmas = <&dma_gbe 0>,
  133. <&dma_gbe 8>,
  134. <&dma_gbe 0>;
  135. ti,navigator-dma-names = "netrx0", "netrx1", "nettx";
  136. netcp-devices {
  137. #address-cells = <1>;
  138. #size-cells = <1>;
  139. ranges;
  140. gbe@200000 { /* ETHSS */
  141. label = "netcp-gbe";
  142. compatible = "ti,netcp-gbe-9";
  143. reg = <0x200000 0x900>, <0x220000 0x20000>;
  144. /* enable-ale; */
  145. tx-queue = <896>;
  146. tx-channel = "nettx";
  147. cpts {
  148. clocks = <&cpts_refclk_mux>;
  149. clock-names = "cpts";
  150. cpts_refclk_mux: cpts-refclk-mux {
  151. #clock-cells = <0>;
  152. clocks = <&chipclk12>, <&chipclk13>,
  153. <&timi0>, <&timi1>,
  154. <&tsipclka>, <&tsrefclk>,
  155. <&tsipclkb>;
  156. ti,mux-tbl = <0x0>, <0x1>, <0x2>,
  157. <0x3>, <0x4>, <0x8>, <0xC>;
  158. assigned-clocks = <&cpts_refclk_mux>;
  159. assigned-clock-parents = <&chipclk12>;
  160. };
  161. };
  162. interfaces {
  163. gbe0: interface-0 {
  164. slave-port = <0>;
  165. link-interface = <1>;
  166. phy-handle = <&ethphy0>;
  167. };
  168. gbe1: interface-1 {
  169. slave-port = <1>;
  170. link-interface = <1>;
  171. phy-handle = <&ethphy1>;
  172. };
  173. };
  174. secondary-slave-ports {
  175. port-2 {
  176. slave-port = <2>;
  177. link-interface = <2>;
  178. };
  179. port-3 {
  180. slave-port = <3>;
  181. link-interface = <2>;
  182. };
  183. port-4 {
  184. slave-port = <4>;
  185. link-interface = <2>;
  186. };
  187. port-5 {
  188. slave-port = <5>;
  189. link-interface = <2>;
  190. };
  191. port-6 {
  192. slave-port = <6>;
  193. link-interface = <2>;
  194. };
  195. port-7 {
  196. slave-port = <7>;
  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 = <528>;
  210. tx-completion-queue = <530>;
  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 = <529>;
  221. tx-completion-queue = <531>;
  222. efuse-mac = <0>;
  223. local-mac-address = [02 18 31 7e 3e 00];
  224. netcp-gbe = <&gbe1>;
  225. };
  226. };
  227. };
  228. sa_subsys: subsys@24080000 {
  229. #address-cells = <1>;
  230. #size-cells = <1>;
  231. compatible = "simple-bus";
  232. ranges = <0 0x24080000 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. };