intel-ixp42x-goramo-multilink.dts 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. // SPDX-License-Identifier: ISC
  2. /*
  3. * Device Tree file for the Goramo MultiLink Router
  4. * There are two variants:
  5. * - MultiLink Basic (a box)
  6. * - MultiLink Max (19" rack mount)
  7. * This device tree supports MultiLink Basic.
  8. * This machine is based on IXP425.
  9. * This is one of the few devices supporting the IXP4xx High-Speed Serial
  10. * (HSS) link for a V.35 WAN interface.
  11. * The hardware originates in Poland.
  12. */
  13. /dts-v1/;
  14. #include "intel-ixp42x.dtsi"
  15. #include <dt-bindings/input/input.h>
  16. / {
  17. model = "Goramo MultiLink Router";
  18. compatible = "goramo,multilink-router", "intel,ixp42x";
  19. #address-cells = <1>;
  20. #size-cells = <1>;
  21. memory@0 {
  22. /*
  23. * 64 MB of RAM according to the manual. The MultiLink
  24. * Max has 128 MB.
  25. */
  26. device_type = "memory";
  27. reg = <0x00000000 0x4000000>;
  28. };
  29. chosen {
  30. bootargs = "console=ttyS0,115200n8";
  31. stdout-path = "uart0:115200n8";
  32. };
  33. aliases {
  34. serial0 = &uart0;
  35. serial1 = &uart1;
  36. };
  37. /*
  38. * 74HC4094 which is used as a rudimentary GPIO expander
  39. * FIXME:
  40. * - Create device tree bindings for this as GPIO expander
  41. * - Write a pure DT GPIO driver using these bindings
  42. * - Support cascading in the style of gpio-74x164.c (cannot be reused, very different)
  43. */
  44. gpio_74: gpio-74hc4094 {
  45. compatible = "nxp,74hc4094";
  46. cp-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
  47. d-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  48. str-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
  49. /* oe-gpios is optional */
  50. gpio-controller;
  51. #gpio-cells = <2>;
  52. /* We are not cascaded */
  53. registers-number = <1>;
  54. gpio-line-names = "CONTROL_HSS0_CLK_INT", "CONTROL_HSS1_CLK_INT", "CONTROL_HSS0_DTR_N",
  55. "CONTROL_HSS1_DTR_N", "CONTROL_EXT", "CONTROL_AUTO_RESET",
  56. "CONTROL_PCI_RESET_N", "CONTROL_EEPROM_WC_N";
  57. };
  58. soc {
  59. bus@c4000000 {
  60. flash@0,0 {
  61. compatible = "intel,ixp4xx-flash", "cfi-flash";
  62. bank-width = <2>;
  63. /* Enable writes on the expansion bus */
  64. intel,ixp4xx-eb-write-enable = <1>;
  65. /* 16 MB of Flash mapped in at CS0 */
  66. reg = <0 0x00000000 0x1000000>;
  67. partitions {
  68. compatible = "redboot-fis";
  69. /* Eraseblock at 0x0fe0000 */
  70. fis-index-block = <0x7f>;
  71. };
  72. };
  73. };
  74. pci@c0000000 {
  75. status = "ok";
  76. /*
  77. * The device has 4 slots (IDSEL) with one dedicated IRQ per slot.
  78. * The slots have Ethernet, Ethernet, NEC and MPCI.
  79. * The IDSELs are 11, 12, 13, 14.
  80. */
  81. interrupt-map =
  82. /* IDSEL 11 - Ethernet A */
  83. <0x5800 0 0 1 &gpio0 4 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 11 is irq 4 */
  84. <0x5800 0 0 2 &gpio0 4 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 11 is irq 4 */
  85. <0x5800 0 0 3 &gpio0 4 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 11 is irq 4 */
  86. <0x5800 0 0 4 &gpio0 4 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 11 is irq 4 */
  87. /* IDSEL 12 - Ethernet B */
  88. <0x6000 0 0 1 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 12 is irq 5 */
  89. <0x6000 0 0 2 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 12 is irq 5 */
  90. <0x6000 0 0 3 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 12 is irq 5 */
  91. <0x6000 0 0 4 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 12 is irq 5 */
  92. /* IDSEL 13 - MPCI */
  93. <0x6800 0 0 1 &gpio0 12 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 13 is irq 12 */
  94. <0x6800 0 0 2 &gpio0 12 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 13 is irq 12 */
  95. <0x6800 0 0 3 &gpio0 12 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 13 is irq 12 */
  96. <0x6800 0 0 4 &gpio0 12 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 13 is irq 12 */
  97. /* IDSEL 14 - NEC */
  98. <0x7000 0 0 1 &gpio0 3 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 14 is irq 3 */
  99. <0x7000 0 0 2 &gpio0 3 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 14 is irq 3 */
  100. <0x7000 0 0 3 &gpio0 3 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 14 is irq 3 */
  101. <0x7000 0 0 4 &gpio0 3 IRQ_TYPE_LEVEL_LOW>; /* INT D on slot 14 is irq 3 */
  102. };
  103. /* HSS links */
  104. npe@c8006000 {
  105. hss@0 {
  106. status = "okay";
  107. intel,queue-chl-rxtrig = <&qmgr 12>;
  108. intel,queue-chl-txready = <&qmgr 34>;
  109. intel,queue-pkt-rx = <&qmgr 13>;
  110. intel,queue-pkt-tx = <&qmgr 14>, <&qmgr 15>, <&qmgr 16>, <&qmgr 17>;
  111. intel,queue-pkt-rxfree = <&qmgr 18>, <&qmgr 19>, <&qmgr 20>, <&qmgr 21>;
  112. intel,queue-pkt-txdone = <&qmgr 22>;
  113. /* The Goramo GPIO-based clock etc control */
  114. cts-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  115. rts-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  116. dcd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
  117. dtr-gpios = <&gpio_74 2 GPIO_ACTIVE_LOW>;
  118. clk-internal-gpios = <&gpio_74 0 GPIO_ACTIVE_HIGH>;
  119. };
  120. hss@1 {
  121. status = "okay";
  122. intel,queue-chl-rxtrig = <&qmgr 10>;
  123. intel,queue-chl-txready = <&qmgr 35>;
  124. intel,queue-pkt-rx = <&qmgr 0>;
  125. intel,queue-pkt-tx = <&qmgr 5>, <&qmgr 6>, <&qmgr 7>, <&qmgr 8>;
  126. intel,queue-pkt-rxfree = <&qmgr 1>, <&qmgr 2>, <&qmgr 3>, <&qmgr 4>;
  127. intel,queue-pkt-txdone = <&qmgr 9>;
  128. /* The Goramo GPIO-based clock etc control */
  129. cts-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  130. rts-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  131. dcd-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  132. dtr-gpios = <&gpio_74 3 GPIO_ACTIVE_LOW>;
  133. clk-internal-gpios = <&gpio_74 1 GPIO_ACTIVE_HIGH>;
  134. };
  135. };
  136. /* EthB */
  137. ethernet@c8009000 {
  138. status = "ok";
  139. queue-rx = <&qmgr 3>;
  140. queue-txready = <&qmgr 32>;
  141. phy-mode = "rgmii";
  142. phy-handle = <&phy0>;
  143. mdio {
  144. #address-cells = <1>;
  145. #size-cells = <0>;
  146. phy0: ethernet-phy@0 {
  147. reg = <0>;
  148. };
  149. phy1: ethernet-phy@1 {
  150. reg = <1>;
  151. };
  152. };
  153. };
  154. /* EthC */
  155. ethernet@c800a000 {
  156. status = "ok";
  157. queue-rx = <&qmgr 4>;
  158. queue-txready = <&qmgr 33>;
  159. phy-mode = "rgmii";
  160. phy-handle = <&phy1>;
  161. };
  162. };
  163. };