intel-ixp4xx.dtsi 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. // SPDX-License-Identifier: ISC
  2. /*
  3. * Device Tree file for Intel XScale Network Processors
  4. * in the IXP 4xx series.
  5. */
  6. #include <dt-bindings/interrupt-controller/irq.h>
  7. #include <dt-bindings/gpio/gpio.h>
  8. / {
  9. soc {
  10. #address-cells = <1>;
  11. #size-cells = <1>;
  12. ranges;
  13. compatible = "simple-bus";
  14. interrupt-parent = <&intcon>;
  15. /*
  16. * The IXP4xx expansion bus is a set of up to 7 each up to 16MB
  17. * windows in the 256MB space from 0x50000000 to 0x5fffffff.
  18. */
  19. bus@c4000000 {
  20. /* compatible and reg filled in by per-soc device tree */
  21. native-endian;
  22. #address-cells = <2>;
  23. #size-cells = <1>;
  24. ranges = <0 0x0 0x50000000 0x01000000>,
  25. <1 0x0 0x51000000 0x01000000>,
  26. <2 0x0 0x52000000 0x01000000>,
  27. <3 0x0 0x53000000 0x01000000>,
  28. <4 0x0 0x54000000 0x01000000>,
  29. <5 0x0 0x55000000 0x01000000>,
  30. <6 0x0 0x56000000 0x01000000>,
  31. <7 0x0 0x57000000 0x01000000>;
  32. dma-ranges = <0 0x0 0x50000000 0x01000000>,
  33. <1 0x0 0x51000000 0x01000000>,
  34. <2 0x0 0x52000000 0x01000000>,
  35. <3 0x0 0x53000000 0x01000000>,
  36. <4 0x0 0x54000000 0x01000000>,
  37. <5 0x0 0x55000000 0x01000000>,
  38. <6 0x0 0x56000000 0x01000000>,
  39. <7 0x0 0x57000000 0x01000000>;
  40. };
  41. qmgr: queue-manager@60000000 {
  42. compatible = "intel,ixp4xx-ahb-queue-manager";
  43. reg = <0x60000000 0x4000>;
  44. interrupts = <3 IRQ_TYPE_LEVEL_HIGH>, <4 IRQ_TYPE_LEVEL_HIGH>;
  45. };
  46. pci@c0000000 {
  47. /* compatible filled in by per-soc device tree */
  48. reg = <0xc0000000 0x1000>;
  49. interrupts = <8 IRQ_TYPE_LEVEL_HIGH>,
  50. <9 IRQ_TYPE_LEVEL_HIGH>,
  51. <10 IRQ_TYPE_LEVEL_HIGH>;
  52. #address-cells = <3>;
  53. #size-cells = <2>;
  54. device_type = "pci";
  55. bus-range = <0x00 0xff>;
  56. status = "disabled";
  57. ranges =
  58. /*
  59. * 64MB 32bit non-prefetchable memory 0x48000000-0x4bffffff
  60. * done in 4 chunks of 16MB each.
  61. */
  62. <0x02000000 0 0x48000000 0x48000000 0 0x04000000>,
  63. /* 64KB I/O space at 0x4c000000 */
  64. <0x01000000 0 0x00000000 0x4c000000 0 0x00010000>;
  65. /*
  66. * This needs to map to the start of physical memory so
  67. * PCI devices can see all (hopefully) memory. This is done
  68. * using 4 1:1 16MB windows, so the RAM should not be more than
  69. * 64 MB for this to work. If your memory is anywhere else
  70. * than at 0x0 you need to alter this.
  71. */
  72. dma-ranges =
  73. <0x02000000 0 0x00000000 0x00000000 0 0x04000000>;
  74. /* Each unique DTS using PCI must specify the swizzling */
  75. };
  76. uart0: serial@c8000000 {
  77. compatible = "intel,xscale-uart";
  78. reg = <0xc8000000 0x1000>;
  79. /*
  80. * The reg-offset and reg-shift is a side effect
  81. * of running the platform in big endian mode.
  82. */
  83. reg-offset = <3>;
  84. reg-shift = <2>;
  85. interrupts = <15 IRQ_TYPE_LEVEL_HIGH>;
  86. clock-frequency = <14745600>;
  87. no-loopback-test;
  88. };
  89. uart1: serial@c8001000 {
  90. compatible = "intel,xscale-uart";
  91. reg = <0xc8001000 0x1000>;
  92. /*
  93. * The reg-offset and reg-shift is a side effect
  94. * of running the platform in big endian mode.
  95. */
  96. reg-offset = <3>;
  97. reg-shift = <2>;
  98. interrupts = <13 IRQ_TYPE_LEVEL_HIGH>;
  99. clock-frequency = <14745600>;
  100. no-loopback-test;
  101. };
  102. gpio0: gpio@c8004000 {
  103. compatible = "intel,ixp4xx-gpio";
  104. reg = <0xc8004000 0x1000>;
  105. gpio-controller;
  106. #gpio-cells = <2>;
  107. interrupt-controller;
  108. #interrupt-cells = <2>;
  109. };
  110. intcon: interrupt-controller@c8003000 {
  111. /*
  112. * Note: no compatible string. The subvariant of the
  113. * chip needs to define what version it is. The
  114. * location of the interrupt controller is fixed in
  115. * memory across all variants.
  116. */
  117. reg = <0xc8003000 0x100>;
  118. interrupt-controller;
  119. #interrupt-cells = <2>;
  120. };
  121. timer@c8005000 {
  122. compatible = "intel,ixp4xx-timer";
  123. reg = <0xc8005000 0x100>;
  124. interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
  125. };
  126. npe: npe@c8006000 {
  127. compatible = "intel,ixp4xx-network-processing-engine";
  128. reg = <0xc8006000 0x1000>, <0xc8007000 0x1000>, <0xc8008000 0x1000>;
  129. #address-cells = <1>;
  130. #size-cells = <0>;
  131. /* NPE-A contains two high-speed serial links */
  132. hss@0 {
  133. compatible = "intel,ixp4xx-hss";
  134. reg = <0>;
  135. intel,npe-handle = <&npe 0>;
  136. status = "disabled";
  137. };
  138. hss@1 {
  139. compatible = "intel,ixp4xx-hss";
  140. reg = <1>;
  141. intel,npe-handle = <&npe 0>;
  142. status = "disabled";
  143. };
  144. /* NPE-C contains a crypto accelerator */
  145. crypto {
  146. compatible = "intel,ixp4xx-crypto";
  147. intel,npe-handle = <&npe 2>;
  148. queue-rx = <&qmgr 30>;
  149. queue-txready = <&qmgr 29>;
  150. };
  151. };
  152. /* This is known as EthB */
  153. ethernet@c8009000 {
  154. compatible = "intel,ixp4xx-ethernet";
  155. reg = <0xc8009000 0x1000>;
  156. status = "disabled";
  157. /* Dummy values that depend on firmware */
  158. queue-rx = <&qmgr 3>;
  159. queue-txready = <&qmgr 20>;
  160. intel,npe-handle = <&npe 1>;
  161. };
  162. /* This is known as EthC */
  163. ethernet@c800a000 {
  164. compatible = "intel,ixp4xx-ethernet";
  165. reg = <0xc800a000 0x1000>;
  166. status = "disabled";
  167. /* Dummy values that depend on firmware */
  168. queue-rx = <&qmgr 0>;
  169. queue-txready = <&qmgr 0>;
  170. intel,npe-handle = <&npe 2>;
  171. };
  172. /* This is known as EthA */
  173. ethernet@c800c000 {
  174. compatible = "intel,ixp4xx-ethernet";
  175. reg = <0xc800c000 0x1000>;
  176. status = "disabled";
  177. intel,npe = <0>;
  178. /* Dummy values that depend on firmware */
  179. queue-rx = <&qmgr 0>;
  180. queue-txready = <&qmgr 0>;
  181. };
  182. };
  183. };