keystone-k2e-netcp.dtsi 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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. };
  74. descriptor-regions {
  75. #address-cells = <1>;
  76. #size-cells = <1>;
  77. ranges;
  78. region-12 {
  79. id = <12>;
  80. region-spec = <8192 128>; /* num_desc desc_size */
  81. link-index = <0x4000>;
  82. };
  83. };
  84. }; /* qmss */
  85. knav_dmas: knav_dmas@0 {
  86. compatible = "ti,keystone-navigator-dma";
  87. clocks = <&papllclk>;
  88. #address-cells = <1>;
  89. #size-cells = <1>;
  90. ranges;
  91. ti,navigator-cloud-address = <0x23a80000 0x23a90000
  92. 0x23a80000 0x23a90000>;
  93. dma_gbe: dma_gbe@0 {
  94. reg = <0x24186000 0x100>,
  95. <0x24187000 0x2a0>,
  96. <0x24188000 0xb60>,
  97. <0x24186100 0x80>,
  98. <0x24189000 0x1000>;
  99. reg-names = "global", "txchan", "rxchan",
  100. "txsched", "rxflow";
  101. };
  102. };
  103. netcp: netcp@24000000 {
  104. reg = <0x2620110 0x8>;
  105. reg-names = "efuse";
  106. compatible = "ti,netcp-1.0";
  107. #address-cells = <1>;
  108. #size-cells = <1>;
  109. /* NetCP address range */
  110. ranges = <0 0x24000000 0x1000000>;
  111. clocks = <&papllclk>, <&clkcpgmac>, <&chipclk12>;
  112. dma-coherent;
  113. ti,navigator-dmas = <&dma_gbe 0>,
  114. <&dma_gbe 8>,
  115. <&dma_gbe 0>;
  116. ti,navigator-dma-names = "netrx0", "netrx1", "nettx";
  117. netcp-devices {
  118. #address-cells = <1>;
  119. #size-cells = <1>;
  120. ranges;
  121. gbe@200000 { /* ETHSS */
  122. label = "netcp-gbe";
  123. compatible = "ti,netcp-gbe-9";
  124. reg = <0x200000 0x900>, <0x220000 0x20000>;
  125. /* enable-ale; */
  126. tx-queue = <896>;
  127. tx-channel = "nettx";
  128. interfaces {
  129. gbe0: interface-0 {
  130. slave-port = <0>;
  131. link-interface = <1>;
  132. phy-handle = <&ethphy0>;
  133. };
  134. gbe1: interface-1 {
  135. slave-port = <1>;
  136. link-interface = <1>;
  137. phy-handle = <&ethphy1>;
  138. };
  139. };
  140. secondary-slave-ports {
  141. port-2 {
  142. slave-port = <2>;
  143. link-interface = <2>;
  144. };
  145. port-3 {
  146. slave-port = <3>;
  147. link-interface = <2>;
  148. };
  149. port-4 {
  150. slave-port = <4>;
  151. link-interface = <2>;
  152. };
  153. port-5 {
  154. slave-port = <5>;
  155. link-interface = <2>;
  156. };
  157. port-6 {
  158. slave-port = <6>;
  159. link-interface = <2>;
  160. };
  161. port-7 {
  162. slave-port = <7>;
  163. link-interface = <2>;
  164. };
  165. };
  166. };
  167. };
  168. netcp-interfaces {
  169. interface-0 {
  170. rx-channel = "netrx0";
  171. rx-pool = <1024 12>;
  172. tx-pool = <1024 12>;
  173. rx-queue-depth = <128 128 0 0>;
  174. rx-buffer-size = <1518 4096 0 0>;
  175. rx-queue = <528>;
  176. tx-completion-queue = <530>;
  177. efuse-mac = <1>;
  178. netcp-gbe = <&gbe0>;
  179. };
  180. interface-1 {
  181. rx-channel = "netrx1";
  182. rx-pool = <1024 12>;
  183. tx-pool = <1024 12>;
  184. rx-queue-depth = <128 128 0 0>;
  185. rx-buffer-size = <1518 4096 0 0>;
  186. rx-queue = <529>;
  187. tx-completion-queue = <531>;
  188. efuse-mac = <0>;
  189. local-mac-address = [02 18 31 7e 3e 00];
  190. netcp-gbe = <&gbe1>;
  191. };
  192. };
  193. };