1
0

TEW-714TRU.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. spi-max-frequency = <10000000>;
  55. partition@0 {
  56. label = "u-boot";
  57. reg = <0x0 0x30000>;
  58. read-only;
  59. };
  60. partition@30000 {
  61. label = "u-boot-env";
  62. reg = <0x30000 0x10000>;
  63. read-only;
  64. };
  65. factory: partition@40000 {
  66. label = "factory";
  67. reg = <0x40000 0x10000>;
  68. read-only;
  69. };
  70. partition@50000 {
  71. label = "firmware";
  72. reg = <0x50000 0x7b0000>;
  73. };
  74. };
  75. };
  76. &pinctrl {
  77. state_default: pinctrl0 {
  78. gpio {
  79. ralink,group = "i2c", "jtag", "uartf";
  80. ralink,function = "gpio";
  81. };
  82. };
  83. };
  84. &ethernet {
  85. mtd-mac-address = <&factory 0x4>;
  86. };
  87. &esw {
  88. mediatek,portmap = <0x1>;
  89. mediatek,portdisable = <0x3e>;
  90. };
  91. &wmac {
  92. ralink,mtd-eeprom = <&factory 0>;
  93. };
  94. &ehci {
  95. status = "okay";
  96. };
  97. &ohci {
  98. status = "okay";
  99. };