1
0

TEW-714TRU.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "TEW-714TRU", "ralink,rt5350-soc";
  6. model = "TRENDnet TEW714TRU";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. usb {
  10. label = "tew-714tru:red:usb";
  11. gpios = <&gpio0 9 1>;
  12. };
  13. wifi {
  14. label = "tew-714tru:green:wifi";
  15. gpios = <&gpio0 13 1>;
  16. };
  17. };
  18. gpio-keys-polled {
  19. compatible = "gpio-keys-polled";
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. poll-interval = <20>;
  23. reset {
  24. label = "reset";
  25. gpios = <&gpio0 10 1>;
  26. linux,code = <KEY_RESTART>;
  27. };
  28. wps {
  29. label = "wps";
  30. gpios = <&gpio0 0 1>;
  31. linux,code = <KEY_WPS_BUTTON>;
  32. };
  33. };
  34. gpio_export {
  35. compatible = "gpio-export";
  36. #size-cells = <0>;
  37. repeater {
  38. gpio-export,name = "repeater_switch";
  39. gpios = <&gpio0 7 0>;
  40. };
  41. wisp {
  42. gpio-export,name = "wisp_switch";
  43. gpios = <&gpio0 12 0>;
  44. };
  45. };
  46. };
  47. &spi0 {
  48. status = "okay";
  49. m25p80@0 {
  50. #address-cells = <1>;
  51. #size-cells = <1>;
  52. compatible = "jedec,spi-nor";
  53. reg = <0>;
  54. linux,modalias = "m25p80", "s25fl064k";
  55. spi-max-frequency = <10000000>;
  56. partition@0 {
  57. label = "u-boot";
  58. reg = <0x0 0x30000>;
  59. read-only;
  60. };
  61. partition@30000 {
  62. label = "u-boot-env";
  63. reg = <0x30000 0x10000>;
  64. read-only;
  65. };
  66. factory: partition@40000 {
  67. label = "factory";
  68. reg = <0x40000 0x10000>;
  69. read-only;
  70. };
  71. partition@50000 {
  72. label = "firmware";
  73. reg = <0x50000 0x7b0000>;
  74. };
  75. };
  76. };
  77. &pinctrl {
  78. state_default: pinctrl0 {
  79. gpio {
  80. ralink,group = "i2c", "jtag", "uartf";
  81. ralink,function = "gpio";
  82. };
  83. };
  84. };
  85. &ethernet {
  86. mtd-mac-address = <&factory 0x4>;
  87. };
  88. &esw {
  89. mediatek,portmap = <0x1>;
  90. mediatek,portdisable = <0x3e>;
  91. };
  92. &wmac {
  93. ralink,mtd-eeprom = <&factory 0>;
  94. };
  95. &ehci {
  96. status = "okay";
  97. };
  98. &ohci {
  99. status = "okay";
  100. };