keystone-k2l-netcp.dtsi 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for Keystone 2 Lamarr 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 = <0x70000000 0x10000>; /* 1MB OSR mem */
  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. };
  77. };
  78. };
  79. descriptor-regions {
  80. #address-cells = <1>;
  81. #size-cells = <1>;
  82. ranges;
  83. region-12 {
  84. id = <12>;
  85. region-spec = <8192 128>; /* num_desc desc_size */
  86. link-index = <0x4000>;
  87. };
  88. };
  89. pdsps {
  90. #address-cells = <1>;
  91. #size-cells = <1>;
  92. ranges;
  93. pdsp0@2a10000 {
  94. reg = <0x2a10000 0x1000 /*iram */
  95. 0x2a0f000 0x100 /*reg*/
  96. 0x2a0c000 0x3c8 /*intd */
  97. 0x2a20000 0x4000>; /*cmd*/
  98. id = <0>;
  99. };
  100. };
  101. }; /* qmss */
  102. knav_dmas: knav_dmas@0 {
  103. compatible = "ti,keystone-navigator-dma";
  104. clocks = <&papllclk>;
  105. #address-cells = <1>;
  106. #size-cells = <1>;
  107. ranges;
  108. ti,navigator-cloud-address = <0x23a80000 0x23a90000>;
  109. dma_gbe: dma_gbe@0 {
  110. reg = <0x26186000 0x100>,
  111. <0x26187000 0x2a0>,
  112. <0x26188000 0xb60>,
  113. <0x26186100 0x80>,
  114. <0x26189000 0x1000>;
  115. reg-names = "global", "txchan", "rxchan",
  116. "txsched", "rxflow";
  117. };
  118. };
  119. netcp: netcp@26000000 {
  120. reg = <0x2620110 0x8>;
  121. reg-names = "efuse";
  122. compatible = "ti,netcp-1.0";
  123. #address-cells = <1>;
  124. #size-cells = <1>;
  125. /* NetCP address range */
  126. ranges = <0 0x26000000 0x1000000>;
  127. clocks = <&clkpa>, <&clkcpgmac>;
  128. clock-names = "pa_clk", "ethss_clk";
  129. dma-coherent;
  130. ti,navigator-dmas = <&dma_gbe 0>,
  131. <&dma_gbe 8>,
  132. <&dma_gbe 0>;
  133. ti,navigator-dma-names = "netrx0", "netrx1", "nettx";
  134. netcp-devices {
  135. #address-cells = <1>;
  136. #size-cells = <1>;
  137. ranges;
  138. gbe@200000 { /* ETHSS */
  139. label = "netcp-gbe";
  140. compatible = "ti,netcp-gbe-5";
  141. reg = <0x200000 0x900>, <0x220000 0x20000>;
  142. /* enable-ale; */
  143. tx-queue = <896>;
  144. tx-channel = "nettx";
  145. cpts {
  146. clocks = <&cpts_refclk_mux>;
  147. clock-names = "cpts";
  148. cpts_refclk_mux: cpts-refclk-mux {
  149. #clock-cells = <0>;
  150. clocks = <&chipclk12>, <&chipclk13>,
  151. <&timi0>, <&timi1>,
  152. <&tsrefclk>;
  153. ti,mux-tbl = <0x0>, <0x1>, <0x2>,
  154. <0x3>, <0x8>;
  155. assigned-clocks = <&cpts_refclk_mux>;
  156. assigned-clock-parents = <&chipclk12>;
  157. };
  158. };
  159. interfaces {
  160. gbe0: interface-0 {
  161. slave-port = <0>;
  162. link-interface = <1>;
  163. phy-handle = <&ethphy0>;
  164. };
  165. gbe1: interface-1 {
  166. slave-port = <1>;
  167. link-interface = <1>;
  168. phy-handle = <&ethphy1>;
  169. };
  170. };
  171. secondary-slave-ports {
  172. port-2 {
  173. slave-port = <2>;
  174. link-interface = <2>;
  175. };
  176. port-3 {
  177. slave-port = <3>;
  178. link-interface = <2>;
  179. };
  180. };
  181. };
  182. };
  183. netcp-interfaces {
  184. interface-0 {
  185. rx-channel = "netrx0";
  186. rx-pool = <1024 12>;
  187. tx-pool = <1024 12>;
  188. rx-queue-depth = <128 128 0 0>;
  189. rx-buffer-size = <1518 4096 0 0>;
  190. rx-queue = <528>;
  191. tx-completion-queue = <530>;
  192. efuse-mac = <1>;
  193. netcp-gbe = <&gbe0>;
  194. };
  195. interface-1 {
  196. rx-channel = "netrx1";
  197. rx-pool = <1024 12>;
  198. tx-pool = <1024 12>;
  199. rx-queue-depth = <128 128 0 0>;
  200. rx-buffer-size = <1518 4096 0 0>;
  201. rx-queue = <529>;
  202. tx-completion-queue = <531>;
  203. efuse-mac = <0>;
  204. local-mac-address = [02 18 31 7e 3e 7f];
  205. netcp-gbe = <&gbe1>;
  206. };
  207. };
  208. };
  209. sa_subsys: subsys@26080000 {
  210. #address-cells = <1>;
  211. #size-cells = <1>;
  212. compatible = "simple-bus";
  213. ranges = <0 0x26080000 0x40000>;
  214. sa_config: subsys@0 {
  215. compatible = "syscon";
  216. reg = <0x0 0x100>;
  217. };
  218. rng@24000 {
  219. compatible = "ti,keystone-rng";
  220. reg = <0x24000 0x1000>;
  221. ti,syscon-sa-cfg = <&sa_config>;
  222. clocks = <&clksa>;
  223. clock-names = "fck";
  224. };
  225. };