3G300M.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. gpio-leds {
  9. compatible = "gpio-leds";
  10. 3grouter {
  11. label = "3g300m:blue:3grouter";
  12. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  13. };
  14. ap {
  15. label = "3g300m:blue:ap";
  16. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  17. };
  18. wisprouter {
  19. label = "3g300m:blue:wisprouter";
  20. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  21. };
  22. wirelessrouter {
  23. label = "3g300m:blue:wirelessrouter";
  24. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  25. };
  26. 3g {
  27. label = "3g300m:blue:3g";
  28. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  29. };
  30. wpsreset {
  31. label = "3g300m:blue:wpsreset";
  32. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  33. };
  34. };
  35. gpio-keys-polled {
  36. compatible = "gpio-keys-polled";
  37. #address-cells = <1>;
  38. #size-cells = <0>;
  39. poll-interval = <20>;
  40. reset {
  41. label = "reset";
  42. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  43. linux,code = <KEY_RESTART>;
  44. };
  45. mode {
  46. label = "mode";
  47. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  48. linux,code = <BTN_0>;
  49. };
  50. };
  51. };
  52. &spi0 {
  53. status = "okay";
  54. m25p80@0 {
  55. #address-cells = <1>;
  56. #size-cells = <1>;
  57. compatible = "jedec,spi-nor";
  58. reg = <0>;
  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. };