intel-ixp42x-ixdpg425.dts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. // SPDX-License-Identifier: ISC
  2. /*
  3. * Device Tree file for the Intel IXDPG425 reference design.
  4. * Derived from boardfiles written by MontaVista software.
  5. * Ethernet set-up from OpenWrt.
  6. *
  7. * The device has 4 x FXS RJ11 ports for analog phones for
  8. * internet telephony. (Not supported yet.)
  9. *
  10. * The device has 9 status LEDs we do not support yet.
  11. *
  12. * This device is very similar to ADI engingeering Coyote.
  13. */
  14. /dts-v1/;
  15. #include "intel-ixp42x.dtsi"
  16. #include <dt-bindings/input/input.h>
  17. / {
  18. model = "Intel IXDPG425 reference design";
  19. compatible = "intel,ixdpg425", "intel,ixp42x";
  20. #address-cells = <1>;
  21. #size-cells = <1>;
  22. memory@0 {
  23. /* 32 MB SDRAM */
  24. device_type = "memory";
  25. reg = <0x00000000 0x02000000>;
  26. };
  27. chosen {
  28. bootargs = "console=ttyS0,115200n8 root=/dev/sda1 rw rootwait";
  29. stdout-path = "uart0:115200n8";
  30. };
  31. aliases {
  32. serial0 = &uart0;
  33. };
  34. soc {
  35. bus@c4000000 {
  36. flash@0,0 {
  37. compatible = "intel,ixp4xx-flash", "cfi-flash";
  38. bank-width = <2>;
  39. /*
  40. * CHECKME: the product brief says 16MB in a flash
  41. * socket.
  42. */
  43. reg = <0 0x00000000 0x1000000>;
  44. /* Configure expansion bus to allow writes */
  45. intel,ixp4xx-eb-write-enable = <1>;
  46. partitions {
  47. compatible = "redboot-fis";
  48. /* CHECKME: guess this is Redboot FIS */
  49. fis-index-block = <0x7f>;
  50. };
  51. };
  52. };
  53. pci@c0000000 {
  54. status = "ok";
  55. /*
  56. * Taken from IXDPG425 PCI boardfile.
  57. * We have slots (IDSEL) 12, 13 and 14 with one assigned IRQ
  58. * for 12 & 13 and one for 14.
  59. */
  60. #interrupt-cells = <1>;
  61. interrupt-map-mask = <0xf800 0 0 7>;
  62. interrupt-map =
  63. /* IDSEL 12 */
  64. <0x6000 0 0 1 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 12 is irq 7 */
  65. <0x6000 0 0 2 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 12 is irq 7 */
  66. <0x6000 0 0 3 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 12 is irq 7 */
  67. <0x6000 0 0 4 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 12 is irq 7 */
  68. /* IDSEL 13 */
  69. <0x6800 0 0 1 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 13 is irq 7 */
  70. <0x6800 0 0 2 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 13 is irq 7 */
  71. <0x6800 0 0 3 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 13 is irq 7 */
  72. <0x6800 0 0 4 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 13 is irq 7 */
  73. /* IDSEL 14 */
  74. <0x7000 0 0 1 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 14 is irq 6 */
  75. <0x7000 0 0 2 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 14 is irq 6 */
  76. <0x7000 0 0 3 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 14 is irq 6 */
  77. <0x7000 0 0 4 &gpio0 6 IRQ_TYPE_LEVEL_LOW>; /* INT D on slot 14 is irq 6 */
  78. };
  79. /*
  80. * CHECKME: this ethernet setup seems dubious. Photos of the board shows some kind
  81. * of Realtek DSA switch on the board.
  82. */
  83. /* EthB */
  84. ethernet@c8009000 {
  85. status = "ok";
  86. queue-rx = <&qmgr 3>;
  87. queue-txready = <&qmgr 20>;
  88. phy-mode = "rgmii";
  89. phy-handle = <&phy5>;
  90. mdio {
  91. #address-cells = <1>;
  92. #size-cells = <0>;
  93. phy4: ethernet-phy@4 {
  94. reg = <4>;
  95. };
  96. phy5: ethernet-phy@5 {
  97. reg = <5>;
  98. };
  99. };
  100. };
  101. /* EthC */
  102. ethernet@c800a000 {
  103. status = "ok";
  104. queue-rx = <&qmgr 4>;
  105. queue-txready = <&qmgr 21>;
  106. phy-mode = "rgmii";
  107. phy-handle = <&phy4>;
  108. };
  109. };
  110. };