keystone-k2l-netcp.dtsi 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. /*
  2. * Device Tree Source for Keystone 2 Lamarr 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 = <0x70000000 0x10000>; /* 1MB OSR mem */
  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. dma_gbe: dma_gbe@0 {
  93. reg = <0x26186000 0x100>,
  94. <0x26187000 0x2a0>,
  95. <0x26188000 0xb60>,
  96. <0x26186100 0x80>,
  97. <0x26189000 0x1000>;
  98. reg-names = "global", "txchan", "rxchan",
  99. "txsched", "rxflow";
  100. };
  101. };
  102. netcp: netcp@26000000 {
  103. reg = <0x2620110 0x8>;
  104. reg-names = "efuse";
  105. compatible = "ti,netcp-1.0";
  106. #address-cells = <1>;
  107. #size-cells = <1>;
  108. /* NetCP address range */
  109. ranges = <0 0x26000000 0x1000000>;
  110. clocks = <&papllclk>, <&clkcpgmac>, <&chipclk12>;
  111. dma-coherent;
  112. ti,navigator-dmas = <&dma_gbe 0>,
  113. <&dma_gbe 8>,
  114. <&dma_gbe 0>;
  115. ti,navigator-dma-names = "netrx0", "netrx1", "nettx";
  116. netcp-devices {
  117. #address-cells = <1>;
  118. #size-cells = <1>;
  119. ranges;
  120. gbe@200000 { /* ETHSS */
  121. label = "netcp-gbe";
  122. compatible = "ti,netcp-gbe-5";
  123. reg = <0x200000 0x900>, <0x220000 0x20000>;
  124. /* enable-ale; */
  125. tx-queue = <896>;
  126. tx-channel = "nettx";
  127. interfaces {
  128. gbe0: interface-0 {
  129. slave-port = <0>;
  130. link-interface = <1>;
  131. phy-handle = <&ethphy0>;
  132. };
  133. gbe1: interface-1 {
  134. slave-port = <1>;
  135. link-interface = <1>;
  136. phy-handle = <&ethphy1>;
  137. };
  138. };
  139. secondary-slave-ports {
  140. port-2 {
  141. slave-port = <2>;
  142. link-interface = <2>;
  143. };
  144. port-3 {
  145. slave-port = <3>;
  146. link-interface = <2>;
  147. };
  148. };
  149. };
  150. };
  151. netcp-interfaces {
  152. interface-0 {
  153. rx-channel = "netrx0";
  154. rx-pool = <1024 12>;
  155. tx-pool = <1024 12>;
  156. rx-queue-depth = <128 128 0 0>;
  157. rx-buffer-size = <1518 4096 0 0>;
  158. rx-queue = <528>;
  159. tx-completion-queue = <530>;
  160. efuse-mac = <1>;
  161. netcp-gbe = <&gbe0>;
  162. };
  163. interface-1 {
  164. rx-channel = "netrx1";
  165. rx-pool = <1024 12>;
  166. tx-pool = <1024 12>;
  167. rx-queue-depth = <128 128 0 0>;
  168. rx-buffer-size = <1518 4096 0 0>;
  169. rx-queue = <529>;
  170. tx-completion-queue = <531>;
  171. efuse-mac = <0>;
  172. local-mac-address = [02 18 31 7e 3e 7f];
  173. netcp-gbe = <&gbe1>;
  174. };
  175. };
  176. };