1
0

F5D8235_V1.dts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. /dts-v1/;
  2. #include "rt2880.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. #address-cells = <1>;
  7. #size-cells = <1>;
  8. compatible = "F5D8235_V1", "ralink,rt2880-soc";
  9. model = "Belkin F5D8235 v1";
  10. pci@440000 {
  11. status = "ok";
  12. };
  13. cfi@1f000000 {
  14. compatible = "cfi-flash";
  15. reg = <0xbc400000 0x800000>;
  16. bank-width = <2>;
  17. device-width = <2>;
  18. #address-cells = <1>;
  19. #size-cells = <1>;
  20. partition@0 {
  21. label = "uboot";
  22. reg = <0x0 0x30000>;
  23. read-only;
  24. };
  25. partition@30000 {
  26. label = "uboot-env";
  27. reg = <0x30000 0x10000>;
  28. read-only;
  29. };
  30. factory: partition@40000 {
  31. label = "factory";
  32. reg = <0x40000 0x10000>;
  33. read-only;
  34. };
  35. partition@50000 {
  36. label = "firmware";
  37. reg = <0x50000 0x7b0000>;
  38. };
  39. };
  40. rtl8366s {
  41. compatible = "realtek,rtl8366s";
  42. gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  43. gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
  44. };
  45. gpio-keys-polled {
  46. compatible = "gpio-keys-polled";
  47. #address-cells = <1>;
  48. #size-cells = <0>;
  49. poll-interval = <100>;
  50. wps {
  51. label = "wps";
  52. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  53. linux,code = <KEY_WPS_BUTTON>;
  54. };
  55. reset {
  56. label = "reset";
  57. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  58. linux,code = <KEY_RESTART>;
  59. };
  60. };
  61. gpio-leds {
  62. compatible = "gpio-leds";
  63. internet {
  64. label = "f5d8235-v1:blue:internet";
  65. gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
  66. };
  67. internet2 {
  68. label = "f5d8235-v1:amber:internet";
  69. gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
  70. };
  71. modem {
  72. label = "f5d8235-v1:blue:modem";
  73. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  74. };
  75. modem2 {
  76. label = "f5d8235-v1:amber:modem";
  77. gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
  78. };
  79. router {
  80. label = "f5d8235-v1:blue:router";
  81. gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
  82. };
  83. storage {
  84. label = "f5d8235-v1:blue:storage";
  85. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  86. };
  87. storage2 {
  88. label = "f5d8235-v1:amber:storage";
  89. gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
  90. };
  91. security {
  92. label = "f5d8235-v1:blue:security";
  93. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  94. };
  95. security2 {
  96. label = "f5d8235-v1:amber:security";
  97. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  98. };
  99. wired {
  100. label = "f5d8235-v1:blue:wired";
  101. gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
  102. };
  103. wired2 {
  104. label = "f5d8235-v1:amber:wired";
  105. gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
  106. };
  107. wireless {
  108. label = "f5d8235-v1:blue:wireless";
  109. gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
  110. };
  111. wireless2 {
  112. label = "f5d8235-v1:amber:wireless";
  113. gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
  114. };
  115. };
  116. };
  117. &gpio0 {
  118. status = "okay";
  119. };
  120. &pinctrl {
  121. state_default: pinctrl0 {
  122. gpio {
  123. ralink,group = "spi", "i2c", "jtag", "mdio", "uartlite";
  124. ralink,function = "gpio";
  125. };
  126. };
  127. };
  128. &ethernet {
  129. status = "okay";
  130. mtd-mac-address = <&factory 0x4>;
  131. port@0 {
  132. mediatek,fixed-link = <1000 1 1 1>;
  133. };
  134. };
  135. &wmac {
  136. status = "okay";
  137. ralink,mtd-eeprom = <&factory 0x0>;
  138. };