TEW-691GR.dts 1.7 KB

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