1
0

TEW-691GR.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /dts-v1/;
  2. #include "rt3883.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "trendnet,tew-691gr", "ralink,rt3883-soc";
  7. model = "TRENDnet TEW-691GR";
  8. aliases {
  9. led-boot = &led_wps;
  10. led-failsafe = &led_wps;
  11. led-running = &led_wps;
  12. led-upgrade = &led_wps;
  13. };
  14. nor-flash@1c000000 {
  15. compatible = "cfi-flash";
  16. reg = <0x1c000000 0x800000>;
  17. bank-width = <2>;
  18. partitions {
  19. compatible = "fixed-partitions";
  20. #address-cells = <1>;
  21. #size-cells = <1>;
  22. partition@0 {
  23. reg = <0x0 0x0030000>;
  24. label = "u-boot";
  25. read-only;
  26. };
  27. partition@30000 {
  28. reg = <0x00030000 0x00010000>;
  29. label = "u-boot-env";
  30. read-only;
  31. };
  32. factory: partition@40000 {
  33. reg = <0x00040000 0x00010000>;
  34. label = "factory";
  35. read-only;
  36. };
  37. partition@50000 {
  38. reg = <0x00050000 0x007b0000>;
  39. label = "firmware";
  40. };
  41. };
  42. };
  43. gpio-keys-polled {
  44. compatible = "gpio-keys-polled";
  45. poll-interval = <100>;
  46. reset {
  47. label = "reset";
  48. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  49. linux,code = <KEY_RESTART>;
  50. };
  51. wps {
  52. label = "wps";
  53. gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
  54. linux,code = <KEY_WPS_BUTTON>;
  55. };
  56. rfkill {
  57. label = "rfkill";
  58. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  59. linux,code = <KEY_RFKILL>;
  60. };
  61. };
  62. gpio-leds {
  63. compatible = "gpio-leds";
  64. led_wps: wps {
  65. label = "tew-691gr:green:wps";
  66. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  67. };
  68. };
  69. };
  70. &gpio1 {
  71. status = "okay";
  72. };
  73. &pinctrl {
  74. state_default: pinctrl0 {
  75. gpio {
  76. ralink,group = "spi", "i2c", "jtag", "uartf";
  77. ralink,function = "gpio";
  78. };
  79. };
  80. };
  81. &ethernet {
  82. mtd-mac-address = <&factory 0x4>;
  83. port@0 {
  84. phy-handle = <&phy0>;
  85. phy-mode = "rgmii";
  86. };
  87. mdio-bus {
  88. status = "okay";
  89. phy0: ethernet-phy@0 {
  90. reg = <0>;
  91. phy-mode = "rgmii";
  92. };
  93. };
  94. };
  95. &wmac {
  96. status = "okay";
  97. ralink,mtd-eeprom = <&factory 0x0>;
  98. ralink,5ghz = <0>;
  99. mtd-mac-address = <&factory 0x4>;
  100. mtd-mac-address-increment = <1>;
  101. };