keystone-k2hk-netcp.dtsi 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. /*
  2. * Device Tree Source for Keystone 2 Hawking 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 0x4000>;
  18. linkram0 = <0x100000 0x8000>;
  19. linkram1 = <0x0 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. qmgr1 {
  36. managed-queues = <0x2000 0x2000>;
  37. reg = <0x2a60000 0x20000>,
  38. <0x2a06400 0x400>,
  39. <0x2a04000 0x1000>,
  40. <0x2a05000 0x1000>,
  41. <0x23aa0000 0x20000>,
  42. <0x2aa0000 0x20000>;
  43. reg-names = "peek", "status", "config",
  44. "region", "push", "pop";
  45. };
  46. };
  47. queue-pools {
  48. qpend {
  49. qpend-0 {
  50. qrange = <658 8>;
  51. interrupts =<0 40 0xf04 0 41 0xf04 0 42 0xf04
  52. 0 43 0xf04 0 44 0xf04 0 45 0xf04
  53. 0 46 0xf04 0 47 0xf04>;
  54. };
  55. qpend-1 {
  56. qrange = <8704 16>;
  57. interrupts = <0 48 0xf04 0 49 0xf04 0 50 0xf04
  58. 0 51 0xf04 0 52 0xf04 0 53 0xf04
  59. 0 54 0xf04 0 55 0xf04 0 56 0xf04
  60. 0 57 0xf04 0 58 0xf04 0 59 0xf04
  61. 0 60 0xf04 0 61 0xf04 0 62 0xf04
  62. 0 63 0xf04>;
  63. qalloc-by-id;
  64. };
  65. qpend-2 {
  66. qrange = <8720 16>;
  67. interrupts = <0 64 0xf04 0 65 0xf04 0 66 0xf04
  68. 0 59 0xf04 0 68 0xf04 0 69 0xf04
  69. 0 70 0xf04 0 71 0xf04 0 72 0xf04
  70. 0 73 0xf04 0 74 0xf04 0 75 0xf04
  71. 0 76 0xf04 0 77 0xf04 0 78 0xf04
  72. 0 79 0xf04>;
  73. };
  74. };
  75. general-purpose {
  76. gp-0 {
  77. qrange = <4000 64>;
  78. };
  79. netcp-tx {
  80. qrange = <640 9>;
  81. qalloc-by-id;
  82. };
  83. netcpx-tx {
  84. qrange = <8752 8>;
  85. qalloc-by-id;
  86. };
  87. };
  88. };
  89. descriptor-regions {
  90. #address-cells = <1>;
  91. #size-cells = <1>;
  92. ranges;
  93. region-12 {
  94. id = <12>;
  95. region-spec = <8192 128>; /* num_desc desc_size */
  96. link-index = <0x4000>;
  97. };
  98. };
  99. }; /* qmss */
  100. knav_dmas: knav_dmas@0 {
  101. compatible = "ti,keystone-navigator-dma";
  102. clocks = <&papllclk>;
  103. #address-cells = <1>;
  104. #size-cells = <1>;
  105. ranges;
  106. ti,navigator-cloud-address = <0x23a80000 0x23a90000
  107. 0x23aa0000 0x23ab0000>;
  108. dma_gbe: dma_gbe@0 {
  109. reg = <0x2004000 0x100>,
  110. <0x2004400 0x120>,
  111. <0x2004800 0x300>,
  112. <0x2004c00 0x120>,
  113. <0x2005000 0x400>;
  114. reg-names = "global", "txchan", "rxchan",
  115. "txsched", "rxflow";
  116. };
  117. dma_srio: dma_srio@0 {
  118. reg = <0x2901000 0x020>,
  119. <0x2901400 0x200>,
  120. <0x2901800 0x200>,
  121. <0x2901c00 0x200>,
  122. <0x2902000 0x280>;
  123. reg-names = "global", "txchan", "rxchan",
  124. "txsched", "rxflow";
  125. };
  126. };
  127. netcp: netcp@2000000 {
  128. reg = <0x2620110 0x8>;
  129. reg-names = "efuse";
  130. compatible = "ti,netcp-1.0";
  131. #address-cells = <1>;
  132. #size-cells = <1>;
  133. /* NetCP address range */
  134. ranges = <0 0x2000000 0x100000>;
  135. clocks = <&papllclk>, <&clkcpgmac>, <&chipclk12>;
  136. dma-coherent;
  137. ti,navigator-dmas = <&dma_gbe 22>,
  138. <&dma_gbe 23>,
  139. <&dma_gbe 8>;
  140. ti,navigator-dma-names = "netrx0", "netrx1", "nettx";
  141. netcp-devices {
  142. ranges;
  143. #address-cells = <1>;
  144. #size-cells = <1>;
  145. gbe@90000 { /* ETHSS */
  146. #address-cells = <1>;
  147. #size-cells = <1>;
  148. label = "netcp-gbe";
  149. compatible = "ti,netcp-gbe";
  150. reg = <0x90000 0x300>, <0x90400 0x400>, <0x90800 0x700>;
  151. /* enable-ale; */
  152. tx-queue = <648>;
  153. tx-channel = "nettx";
  154. interfaces {
  155. gbe0: interface-0 {
  156. slave-port = <0>;
  157. link-interface = <1>;
  158. phy-handle = <&ethphy0>;
  159. };
  160. gbe1: interface-1 {
  161. slave-port = <1>;
  162. link-interface = <1>;
  163. phy-handle = <&ethphy1>;
  164. };
  165. };
  166. secondary-slave-ports {
  167. port-2 {
  168. slave-port = <2>;
  169. link-interface = <2>;
  170. };
  171. port-3 {
  172. slave-port = <3>;
  173. link-interface = <2>;
  174. };
  175. };
  176. };
  177. };
  178. netcp-interfaces {
  179. interface-0 {
  180. rx-channel = "netrx0";
  181. rx-pool = <1024 12>;
  182. tx-pool = <1024 12>;
  183. rx-queue-depth = <128 128 0 0>;
  184. rx-buffer-size = <1518 4096 0 0>;
  185. rx-queue = <8704>;
  186. tx-completion-queue = <8706>;
  187. efuse-mac = <1>;
  188. netcp-gbe = <&gbe0>;
  189. };
  190. interface-1 {
  191. rx-channel = "netrx1";
  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 = <8705>;
  197. tx-completion-queue = <8707>;
  198. efuse-mac = <0>;
  199. local-mac-address = [02 18 31 7e 3e 6f];
  200. netcp-gbe = <&gbe1>;
  201. };
  202. };
  203. };