keystone-k2e-netcp.dtsi 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. /*
  2. * Device Tree Source for Keystone 2 Edison Netcp driver
  3. *
  4. * Copyright 2015 Texas Instruments, Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. qmss: qmss@2a40000 {
  11. compatible = "ti,keystone-navigator-qmss";
  12. dma-coherent;
  13. #address-cells = <1>;
  14. #size-cells = <1>;
  15. clocks = <&chipclk13>;
  16. ranges;
  17. queue-range = <0 0x2000>;
  18. linkram0 = <0x100000 0x4000>;
  19. linkram1 = <0 0x10000>;
  20. qmgrs {
  21. #address-cells = <1>;
  22. #size-cells = <1>;
  23. ranges;
  24. qmgr0 {
  25. managed-queues = <0 0x2000>;
  26. reg = <0x2a40000 0x20000>,
  27. <0x2a06000 0x400>,
  28. <0x2a02000 0x1000>,
  29. <0x2a03000 0x1000>,
  30. <0x23a80000 0x20000>,
  31. <0x2a80000 0x20000>;
  32. reg-names = "peek", "status", "config",
  33. "region", "push", "pop";
  34. };
  35. };
  36. queue-pools {
  37. qpend {
  38. qpend-0 {
  39. qrange = <658 8>;
  40. interrupts =<0 40 0xf04 0 41 0xf04 0 42 0xf04
  41. 0 43 0xf04 0 44 0xf04 0 45 0xf04
  42. 0 46 0xf04 0 47 0xf04>;
  43. };
  44. qpend-1 {
  45. qrange = <528 16>;
  46. interrupts = <0 48 0xf04 0 49 0xf04 0 50 0xf04
  47. 0 51 0xf04 0 52 0xf04 0 53 0xf04
  48. 0 54 0xf04 0 55 0xf04 0 56 0xf04
  49. 0 57 0xf04 0 58 0xf04 0 59 0xf04
  50. 0 60 0xf04 0 61 0xf04 0 62 0xf04
  51. 0 63 0xf04>;
  52. qalloc-by-id;
  53. };
  54. qpend-2 {
  55. qrange = <544 16>;
  56. interrupts = <0 64 0xf04 0 65 0xf04 0 66 0xf04
  57. 0 59 0xf04 0 68 0xf04 0 69 0xf04
  58. 0 70 0xf04 0 71 0xf04 0 72 0xf04
  59. 0 73 0xf04 0 74 0xf04 0 75 0xf04
  60. 0 76 0xf04 0 77 0xf04 0 78 0xf04
  61. 0 79 0xf04>;
  62. };
  63. };
  64. general-purpose {
  65. gp-0 {
  66. qrange = <4000 64>;
  67. };
  68. netcp-tx {
  69. qrange = <896 128>;
  70. qalloc-by-id;
  71. };
  72. };
  73. accumulator {
  74. acc-low-0 {
  75. qrange = <480 32>;
  76. accumulator = <0 47 16 2 50>;
  77. interrupts = <0 226 0xf01>;
  78. multi-queue;
  79. qalloc-by-id;
  80. };
  81. };
  82. };
  83. descriptor-regions {
  84. #address-cells = <1>;
  85. #size-cells = <1>;
  86. ranges;
  87. region-12 {
  88. id = <12>;
  89. region-spec = <8192 128>; /* num_desc desc_size */
  90. link-index = <0x4000>;
  91. };
  92. };
  93. pdsps {
  94. #address-cells = <1>;
  95. #size-cells = <1>;
  96. ranges;
  97. pdsp0@0x2a10000 {
  98. reg = <0x2a10000 0x1000 /*iram */
  99. 0x2a0f000 0x100 /*reg*/
  100. 0x2a0c000 0x3c8 /*intd */
  101. 0x2a20000 0x4000>; /*cmd*/
  102. id = <0>;
  103. };
  104. };
  105. }; /* qmss */
  106. knav_dmas: knav_dmas@0 {
  107. compatible = "ti,keystone-navigator-dma";
  108. clocks = <&papllclk>;
  109. #address-cells = <1>;
  110. #size-cells = <1>;
  111. ranges;
  112. ti,navigator-cloud-address = <0x23a80000 0x23a90000
  113. 0x23a80000 0x23a90000>;
  114. dma_gbe: dma_gbe@0 {
  115. reg = <0x24186000 0x100>,
  116. <0x24187000 0x2a0>,
  117. <0x24188000 0xb60>,
  118. <0x24186100 0x80>,
  119. <0x24189000 0x1000>;
  120. reg-names = "global", "txchan", "rxchan",
  121. "txsched", "rxflow";
  122. };
  123. };
  124. netcp: netcp@24000000 {
  125. reg = <0x2620110 0x8>;
  126. reg-names = "efuse";
  127. compatible = "ti,netcp-1.0";
  128. #address-cells = <1>;
  129. #size-cells = <1>;
  130. /* NetCP address range */
  131. ranges = <0 0x24000000 0x1000000>;
  132. clocks = <&papllclk>, <&clkcpgmac>, <&chipclk12>;
  133. dma-coherent;
  134. ti,navigator-dmas = <&dma_gbe 0>,
  135. <&dma_gbe 8>,
  136. <&dma_gbe 0>;
  137. ti,navigator-dma-names = "netrx0", "netrx1", "nettx";
  138. netcp-devices {
  139. #address-cells = <1>;
  140. #size-cells = <1>;
  141. ranges;
  142. gbe@200000 { /* ETHSS */
  143. label = "netcp-gbe";
  144. compatible = "ti,netcp-gbe-9";
  145. reg = <0x200000 0x900>, <0x220000 0x20000>;
  146. /* enable-ale; */
  147. tx-queue = <896>;
  148. tx-channel = "nettx";
  149. interfaces {
  150. gbe0: interface-0 {
  151. slave-port = <0>;
  152. link-interface = <1>;
  153. phy-handle = <&ethphy0>;
  154. };
  155. gbe1: interface-1 {
  156. slave-port = <1>;
  157. link-interface = <1>;
  158. phy-handle = <&ethphy1>;
  159. };
  160. };
  161. secondary-slave-ports {
  162. port-2 {
  163. slave-port = <2>;
  164. link-interface = <2>;
  165. };
  166. port-3 {
  167. slave-port = <3>;
  168. link-interface = <2>;
  169. };
  170. port-4 {
  171. slave-port = <4>;
  172. link-interface = <2>;
  173. };
  174. port-5 {
  175. slave-port = <5>;
  176. link-interface = <2>;
  177. };
  178. port-6 {
  179. slave-port = <6>;
  180. link-interface = <2>;
  181. };
  182. port-7 {
  183. slave-port = <7>;
  184. link-interface = <2>;
  185. };
  186. };
  187. };
  188. };
  189. netcp-interfaces {
  190. interface-0 {
  191. rx-channel = "netrx0";
  192. rx-pool = <1024 12>;
  193. tx-pool = <1024 12>;
  194. rx-queue-depth = <128 128 0 0>;
  195. rx-buffer-size = <1518 4096 0 0>;
  196. rx-queue = <528>;
  197. tx-completion-queue = <530>;
  198. efuse-mac = <1>;
  199. netcp-gbe = <&gbe0>;
  200. };
  201. interface-1 {
  202. rx-channel = "netrx1";
  203. rx-pool = <1024 12>;
  204. tx-pool = <1024 12>;
  205. rx-queue-depth = <128 128 0 0>;
  206. rx-buffer-size = <1518 4096 0 0>;
  207. rx-queue = <529>;
  208. tx-completion-queue = <531>;
  209. efuse-mac = <0>;
  210. local-mac-address = [02 18 31 7e 3e 00];
  211. netcp-gbe = <&gbe1>;
  212. };
  213. };
  214. };