F5D8235_V1.dts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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 = "belkin,f5d8235-v1", "ralink,rt2880-soc";
  9. model = "Belkin F5D8235 v1";
  10. aliases {
  11. led-boot = &led_wired_blue;
  12. led-failsafe = &led_wired_blue;
  13. };
  14. cfi@1f000000 {
  15. compatible = "cfi-flash";
  16. reg = <0xbc400000 0x800000>;
  17. bank-width = <2>;
  18. device-width = <2>;
  19. partitions {
  20. compatible = "fixed-partitions";
  21. #address-cells = <1>;
  22. #size-cells = <1>;
  23. partition@0 {
  24. label = "uboot";
  25. reg = <0x0 0x30000>;
  26. read-only;
  27. };
  28. partition@30000 {
  29. label = "uboot-env";
  30. reg = <0x30000 0x10000>;
  31. read-only;
  32. };
  33. factory: partition@40000 {
  34. label = "factory";
  35. reg = <0x40000 0x10000>;
  36. read-only;
  37. };
  38. partition@50000 {
  39. label = "firmware";
  40. reg = <0x50000 0x7b0000>;
  41. };
  42. };
  43. };
  44. rtl8366s {
  45. compatible = "realtek,rtl8366s";
  46. gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  47. gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
  48. realtek,initvals = <
  49. 0x0242 0x02BF
  50. 0x0245 0x02BF
  51. 0x0248 0x02BF
  52. 0x024B 0x02BF
  53. 0x024E 0x02BF
  54. 0x0251 0x02BF
  55. 0x0254 0x0A3F
  56. 0x0256 0x0A3F
  57. 0x0258 0x0A3F
  58. 0x025A 0x0A3F
  59. 0x025C 0x0A3F
  60. 0x025E 0x0A3F
  61. 0x0263 0x007C
  62. 0x0100 0x0004
  63. 0xBE5B 0x3500
  64. 0x800E 0x200F
  65. 0xBE1D 0x0F00
  66. 0x8001 0x5011
  67. 0x800A 0xA2F4
  68. 0x800B 0x17A3
  69. 0xBE4B 0x17A3
  70. 0xBE41 0x5011
  71. 0xBE17 0x2100
  72. 0x8000 0x8304
  73. 0xBE40 0x8304
  74. 0xBE4A 0xA2F4
  75. 0x800C 0xA8D5
  76. 0x8014 0x5500
  77. 0x8015 0x0004
  78. 0xBE4C 0xA8D5
  79. 0xBE59 0x0008
  80. 0xBE09 0x0E00
  81. 0xBE36 0x1036
  82. 0xBE37 0x1036
  83. 0x800D 0x00FF
  84. 0xBE4D 0x00FF
  85. >;
  86. realtek,green-ethernet-features;
  87. };
  88. gpio-keys-polled {
  89. compatible = "gpio-keys-polled";
  90. poll-interval = <100>;
  91. wps {
  92. label = "wps";
  93. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  94. linux,code = <KEY_WPS_BUTTON>;
  95. };
  96. reset {
  97. label = "reset";
  98. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  99. linux,code = <KEY_RESTART>;
  100. };
  101. };
  102. gpio-leds {
  103. compatible = "gpio-leds";
  104. internet {
  105. label = "f5d8235-v1:blue:internet";
  106. gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
  107. };
  108. internet2 {
  109. label = "f5d8235-v1:amber:internet";
  110. gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
  111. };
  112. modem {
  113. label = "f5d8235-v1:blue:modem";
  114. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  115. };
  116. modem2 {
  117. label = "f5d8235-v1:amber:modem";
  118. gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
  119. };
  120. router {
  121. label = "f5d8235-v1:blue:router";
  122. gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
  123. };
  124. storage {
  125. label = "f5d8235-v1:blue:storage";
  126. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  127. trigger-sources = <&ohci_port1>, <&ehci_port1>;
  128. linux,default-trigger = "usbport";
  129. };
  130. storage2 {
  131. label = "f5d8235-v1:amber:storage";
  132. gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
  133. };
  134. security {
  135. label = "f5d8235-v1:blue:security";
  136. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  137. };
  138. security2 {
  139. label = "f5d8235-v1:amber:security";
  140. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  141. };
  142. led_wired_blue: wired {
  143. label = "f5d8235-v1:blue:wired";
  144. gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
  145. };
  146. wired2 {
  147. label = "f5d8235-v1:amber:wired";
  148. gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
  149. };
  150. wireless {
  151. label = "f5d8235-v1:blue:wireless";
  152. gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
  153. };
  154. wireless2 {
  155. label = "f5d8235-v1:amber:wireless";
  156. gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
  157. };
  158. };
  159. };
  160. &gpio0 {
  161. status = "okay";
  162. };
  163. &pinctrl {
  164. state_default: pinctrl0 {
  165. gpio {
  166. ralink,group = "spi", "i2c", "jtag", "mdio", "uartlite";
  167. ralink,function = "gpio";
  168. };
  169. };
  170. };
  171. &ethernet {
  172. status = "okay";
  173. mtd-mac-address = <&factory 0x4>;
  174. port@0 {
  175. mediatek,fixed-link = <1000 1 1 1>;
  176. };
  177. };
  178. &pci {
  179. status = "okay";
  180. usb@11,0 {
  181. #address-cells = <1>;
  182. #size-cells = <0>;
  183. compatible = "pci1033,0035";
  184. reg = <0x8800 0 0 0 0>;
  185. ohci_port1: port@1 {
  186. reg = <1>;
  187. #trigger-source-cells = <0>;
  188. };
  189. };
  190. usb@11,1 {
  191. #address-cells = <1>;
  192. #size-cells = <0>;
  193. compatible = "pci1033,00e0";
  194. reg = <0x8900 0 0 0 0>;
  195. ehci_port1: port@1 {
  196. reg = <1>;
  197. #trigger-source-cells = <0>;
  198. };
  199. };
  200. };
  201. &wmac {
  202. status = "okay";
  203. ralink,mtd-eeprom = <&factory 0x0>;
  204. };