intel-ixp42x-gateworks-gw2348.dts 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. // SPDX-License-Identifier: ISC
  2. /*
  3. * Device Tree file for the Gateworks Avila GW2348 board.
  4. * This machine is based on IXP425.
  5. */
  6. /dts-v1/;
  7. #include "intel-ixp42x.dtsi"
  8. #include <dt-bindings/input/input.h>
  9. / {
  10. model = "Gateworks Avila GW2348";
  11. compatible = "gateworks,gw2348", "intel,ixp42x";
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. memory@0 {
  15. device_type = "memory";
  16. reg = <0x00000000 0x4000000>;
  17. };
  18. chosen {
  19. bootargs = "console=ttyS0,115200n8";
  20. stdout-path = "uart0:115200n8";
  21. };
  22. aliases {
  23. serial0 = &uart0;
  24. };
  25. leds {
  26. compatible = "gpio-leds";
  27. led-user {
  28. label = "gw2348:green:user";
  29. gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
  30. default-state = "on";
  31. linux,default-trigger = "heartbeat";
  32. };
  33. };
  34. i2c {
  35. compatible = "i2c-gpio";
  36. sda-gpios = <&gpio0 7 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  37. scl-gpios = <&gpio0 6 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  38. #address-cells = <1>;
  39. #size-cells = <0>;
  40. hwmon@28 {
  41. compatible = "adi,ad7418";
  42. reg = <0x28>;
  43. };
  44. rtc: ds1672@68 {
  45. compatible = "dallas,ds1672";
  46. reg = <0x68>;
  47. };
  48. eeprom@51 {
  49. compatible = "atmel,24c08";
  50. reg = <0x51>;
  51. pagesize = <16>;
  52. size = <1024>;
  53. read-only;
  54. };
  55. };
  56. soc {
  57. bus@c4000000 {
  58. flash@0,0 {
  59. compatible = "intel,ixp4xx-flash", "cfi-flash";
  60. bank-width = <2>;
  61. /* Enable writes on the expansion bus */
  62. intel,ixp4xx-eb-write-enable = <1>;
  63. /* 16 MB of Flash mapped in at CS0 */
  64. reg = <0 0x00000000 0x1000000>;
  65. partitions {
  66. compatible = "redboot-fis";
  67. /* Eraseblock at 0x0fe0000 */
  68. fis-index-block = <0x7f>;
  69. };
  70. };
  71. ide@1,0 {
  72. compatible = "intel,ixp4xx-compact-flash";
  73. /*
  74. * Set up expansion bus config to a really slow timing.
  75. * The CF driver will dynamically reconfigure these timings
  76. * depending on selected PIO mode (0-4).
  77. */
  78. intel,ixp4xx-eb-t1 = <3>; // 3 cycles extra address phase
  79. intel,ixp4xx-eb-t2 = <3>; // 3 cycles extra setup phase
  80. intel,ixp4xx-eb-t3 = <15>; // 15 cycles extra strobe phase
  81. intel,ixp4xx-eb-t4 = <3>; // 3 cycles extra hold phase
  82. intel,ixp4xx-eb-t5 = <15>; // 15 cycles extra recovery phase
  83. intel,ixp4xx-eb-cycle-type = <0>; // Intel cycle type
  84. intel,ixp4xx-eb-byte-access-on-halfword = <1>;
  85. intel,ixp4xx-eb-mux-address-and-data = <0>;
  86. intel,ixp4xx-eb-ahb-split-transfers = <0>;
  87. intel,ixp4xx-eb-write-enable = <1>;
  88. intel,ixp4xx-eb-byte-access = <1>;
  89. /* First register set is CMD second is CTL (notice it uses CS2) */
  90. reg = <1 0x00000000 0x1000000>, <2 0x00000000 0x1000000>;
  91. interrupt-parent = <&gpio0>;
  92. interrupts = <12 IRQ_TYPE_EDGE_RISING>;
  93. };
  94. /*
  95. * FIXME: Latch LEDs or extra UARTs at CS4
  96. */
  97. };
  98. pci@c0000000 {
  99. status = "ok";
  100. /*
  101. * Taken from Avila PCI boardfile.
  102. *
  103. * We have up to 4 slots (IDSEL) with 4 swizzled IRQs.
  104. */
  105. #interrupt-cells = <1>;
  106. interrupt-map-mask = <0xf800 0 0 7>;
  107. interrupt-map =
  108. /* IDSEL 1 */
  109. <0x0800 0 0 1 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 11 */
  110. <0x0800 0 0 2 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 1 is irq 10 */
  111. <0x0800 0 0 3 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 1 is irq 9 */
  112. <0x0800 0 0 4 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 1 is irq 8 */
  113. /* IDSEL 2 */
  114. <0x1000 0 0 1 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 2 is irq 10 */
  115. <0x1000 0 0 2 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 2 is irq 9 */
  116. <0x1000 0 0 3 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 2 is irq 8 */
  117. <0x1000 0 0 4 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 2 is irq 11 */
  118. /* IDSEL 3 */
  119. <0x1800 0 0 1 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 3 is irq 9 */
  120. <0x1800 0 0 2 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 3 is irq 8 */
  121. <0x1800 0 0 3 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 3 is irq 11 */
  122. <0x1800 0 0 4 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 3 is irq 10 */
  123. /* IDSEL 4 */
  124. <0x2000 0 0 1 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 4 is irq 8 */
  125. <0x2000 0 0 2 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 4 is irq 11 */
  126. <0x2000 0 0 3 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 4 is irq 10 */
  127. <0x2000 0 0 4 &gpio0 9 IRQ_TYPE_LEVEL_LOW>; /* INT D on slot 4 is irq 9 */
  128. };
  129. /* EthB */
  130. ethernet@c8009000 {
  131. status = "ok";
  132. queue-rx = <&qmgr 3>;
  133. queue-txready = <&qmgr 20>;
  134. phy-mode = "rgmii";
  135. phy-handle = <&phy0>;
  136. mdio {
  137. #address-cells = <1>;
  138. #size-cells = <0>;
  139. phy0: ethernet-phy@0 {
  140. reg = <0>;
  141. };
  142. phy1: ethernet-phy@1 {
  143. reg = <1>;
  144. };
  145. };
  146. };
  147. /* EthC */
  148. ethernet@c800a000 {
  149. status = "ok";
  150. queue-rx = <&qmgr 4>;
  151. queue-txready = <&qmgr 21>;
  152. phy-mode = "rgmii";
  153. phy-handle = <&phy1>;
  154. };
  155. };
  156. };