1
0

TEW-692GR.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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-692gr", "ralink,rt3883-soc";
  7. model = "TRENDnet TEW-692GR";
  8. aliases {
  9. led-boot = &led_wps_green;
  10. led-failsafe = &led_wps_green;
  11. led-running = &led_wps_green;
  12. led-upgrade = &led_wps_green;
  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. };
  57. gpio-leds {
  58. compatible = "gpio-leds";
  59. wps {
  60. label = "tew-692gr:orange:wps";
  61. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  62. };
  63. led_wps_green: wps2 {
  64. label = "tew-692gr:green:wps";
  65. gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
  66. };
  67. };
  68. };
  69. &gpio1 {
  70. status = "okay";
  71. };
  72. &pinctrl {
  73. state_default: pinctrl0 {
  74. gpio {
  75. ralink,group = "spi", "i2c", "jtag", "uartf";
  76. ralink,function = "gpio";
  77. };
  78. };
  79. };
  80. &ethernet {
  81. status = "okay";
  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. qca,ar8327-initvals = <
  93. 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
  94. 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
  95. 0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */
  96. 0x50 0xc437c437 /* LED Control Register 0 */
  97. 0x54 0xc337c337 /* LED Control Register 1 */
  98. 0x58 0x00000000 /* LED Control Register 2 */
  99. 0x5c 0x03ffff00 /* LED Control Register 3 */
  100. 0x7c 0x0000007e /* PORT0_STATUS */
  101. 0x94 0x0000007e /* PORT6 STATUS */
  102. >;
  103. };
  104. };
  105. };
  106. &pci {
  107. status = "okay";
  108. };
  109. &pci1 {
  110. status = "okay";
  111. wifi@0,0 {
  112. compatible = "pci0,0";
  113. reg = < 0x10000 0 0 0 0 >;
  114. ralink,2ghz = <0>;
  115. };
  116. };
  117. &wmac {
  118. status = "okay";
  119. ralink,mtd-eeprom = <&factory 0x0>;
  120. ralink,5ghz = <0>;
  121. mtd-mac-address = <&factory 0x4>;
  122. mtd-mac-address-increment = <3>;
  123. };