1
0

3G300M.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "tenda,3g300m", "ralink,rt3052-soc";
  7. model = "Tenda 3G300M";
  8. aliases {
  9. led-boot = &led_ap;
  10. led-failsafe = &led_ap;
  11. led-running = &led_ap;
  12. led-upgrade = &led_ap;
  13. };
  14. gpio-leds {
  15. compatible = "gpio-leds";
  16. 3grouter {
  17. label = "3g300m:blue:3grouter";
  18. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  19. };
  20. led_ap: ap {
  21. label = "3g300m:blue:ap";
  22. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  23. };
  24. wisprouter {
  25. label = "3g300m:blue:wisprouter";
  26. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  27. };
  28. wirelessrouter {
  29. label = "3g300m:blue:wirelessrouter";
  30. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  31. };
  32. 3g {
  33. label = "3g300m:blue:3g";
  34. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  35. trigger-sources = <&otg_port1>;
  36. linux,default-trigger = "usbport";
  37. };
  38. wpsreset {
  39. label = "3g300m:blue:wpsreset";
  40. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  41. };
  42. };
  43. gpio-keys-polled {
  44. compatible = "gpio-keys-polled";
  45. poll-interval = <20>;
  46. reset {
  47. label = "reset";
  48. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  49. linux,code = <KEY_RESTART>;
  50. };
  51. mode {
  52. label = "mode";
  53. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  54. linux,code = <BTN_0>;
  55. };
  56. };
  57. };
  58. &spi0 {
  59. status = "okay";
  60. m25p80@0 {
  61. compatible = "jedec,spi-nor";
  62. reg = <0>;
  63. spi-max-frequency = <10000000>;
  64. partitions {
  65. compatible = "fixed-partitions";
  66. #address-cells = <1>;
  67. #size-cells = <1>;
  68. partition@0 {
  69. label = "u-boot";
  70. reg = <0x0 0x30000>;
  71. read-only;
  72. };
  73. partition@30000 {
  74. label = "u-boot-env";
  75. reg = <0x30000 0x10000>;
  76. read-only;
  77. };
  78. factory: partition@40000 {
  79. label = "factory";
  80. reg = <0x40000 0x10000>;
  81. read-only;
  82. };
  83. partition@50000 {
  84. label = "firmware";
  85. reg = <0x50000 0x3b0000>;
  86. };
  87. };
  88. };
  89. };
  90. &pinctrl {
  91. state_default: pinctrl0 {
  92. gpio {
  93. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  94. ralink,function = "gpio";
  95. };
  96. };
  97. };
  98. &ethernet {
  99. mtd-mac-address = <&factory 0x4>;
  100. };
  101. &esw {
  102. mediatek,portmap = <0x2f>;
  103. };
  104. &wmac {
  105. ralink,mtd-eeprom = <&factory 0>;
  106. };
  107. &otg {
  108. status = "okay";
  109. };