intel-ixp42x-dlink-dsm-g600.dts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. // SPDX-License-Identifier: ISC
  2. /*
  3. * Device Tree file for D-Link DSM-G600 revision A based on IXP420
  4. * NOTE: revision B of this device uses PowerPC and is NOT supported by
  5. * this device tree.
  6. *
  7. * Inspired by the boardfile by Rod Whitby, Tower Technologies, Alessandro Zummo
  8. * and Michael Westerhof.
  9. */
  10. /dts-v1/;
  11. #include "intel-ixp42x.dtsi"
  12. #include <dt-bindings/input/input.h>
  13. / {
  14. model = "D-Link DSM-G600 rev A";
  15. compatible = "dlink,dsm-g600-a", "intel,ixp42x";
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. memory@0 {
  19. /* 64 MB SDRAM */
  20. device_type = "memory";
  21. reg = <0x00000000 0x4000000>;
  22. };
  23. chosen {
  24. bootargs = "console=ttyS0,115200n8 root=/dev/sda1 rw rootwait";
  25. stdout-path = "uart0:115200n8";
  26. };
  27. aliases {
  28. serial0 = &uart0;
  29. };
  30. leds {
  31. compatible = "gpio-leds";
  32. led-power {
  33. label = "dsmg600:green:power";
  34. gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
  35. default-state = "on";
  36. linux,default-trigger = "heartbeat";
  37. };
  38. led-wlan {
  39. label = "dsmg600:green:wlan";
  40. /* CHECKME: flagged as active low in the old board file */
  41. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  42. default-state = "on";
  43. /* We don't have WLAN trigger in the kernel (yet) */
  44. linux,default-trigger = "netdev";
  45. };
  46. };
  47. gpio_keys {
  48. compatible = "gpio-keys";
  49. button-reset {
  50. wakeup-source;
  51. linux,code = <KEY_ESC>;
  52. label = "reset";
  53. gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
  54. };
  55. };
  56. gpio_keys_polled {
  57. compatible = "gpio-keys-polled";
  58. /*
  59. * According to the board file this key cannot handle interrupts and
  60. * need to be polled. Investigate if this is really the case or if
  61. * this can be moved adjacent to the ordinary gpio-keys above.
  62. */
  63. button-power {
  64. wakeup-source;
  65. linux,code = <KEY_POWER>;
  66. label = "power";
  67. gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
  68. };
  69. };
  70. i2c {
  71. compatible = "i2c-gpio";
  72. sda-gpios = <&gpio0 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  73. scl-gpios = <&gpio0 4 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  74. #address-cells = <1>;
  75. #size-cells = <0>;
  76. rtc@51 {
  77. compatible = "nxp,pcf8563";
  78. reg = <0x51>;
  79. };
  80. };
  81. gpio-poweroff {
  82. compatible = "gpio-poweroff";
  83. gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
  84. timeout-ms = <5000>;
  85. };
  86. soc {
  87. bus@c4000000 {
  88. /* The first 16MB region at CS0 on the expansion bus */
  89. flash@0,0 {
  90. compatible = "intel,ixp4xx-flash", "cfi-flash";
  91. bank-width = <2>;
  92. /*
  93. * 16 MB of Flash in 128 0x20000 sized blocks
  94. * mapped in at CS0.
  95. */
  96. reg = <0 0x00000000 0x1000000>;
  97. partitions {
  98. compatible = "redboot-fis";
  99. /*
  100. * A boot log says the directory is at 0xfe0000
  101. * 0x7f * 0x20000 = 0xfe0000
  102. */
  103. fis-index-block = <0x7f>;
  104. };
  105. };
  106. };
  107. pci@c0000000 {
  108. status = "ok";
  109. /*
  110. * Taken from DSM-G600 PCI boardfile (dsmg600-pci.c)
  111. * We have slots (IDSEL) 1, 2, 3, 4 and pins 1, 2 and 3.
  112. * Only slot 3 have three IRQs.
  113. */
  114. #interrupt-cells = <1>;
  115. interrupt-map-mask = <0xf800 0 0 7>;
  116. interrupt-map =
  117. /* IDSEL 1 */
  118. <0x0800 0 0 1 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT E on slot 1 is irq 7 */
  119. /* IDSEL 2 */
  120. <0x1000 0 0 1 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 2 is irq 11 */
  121. /* IDSEL 3 */
  122. <0x1800 0 0 1 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 3 is irq 10 */
  123. <0x1800 0 0 2 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 3 is irq 9 */
  124. <0x1800 0 0 3 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 3 is irq 8 */
  125. /* IDSEL 4 */
  126. <0x2000 0 0 3 &gpio0 6 IRQ_TYPE_LEVEL_LOW>; /* INT F on slot 4 is irq 6 */
  127. };
  128. };
  129. };