3G300M.dts 1.8 KB

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