3G300M.dts 1.8 KB

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