3G300M.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. / {
  4. compatible = "3G300M", "ralink,rt3052-soc";
  5. model = "Tenda 3G300M";
  6. gpio-leds {
  7. compatible = "gpio-leds";
  8. 3grouter {
  9. label = "3g300m:blue:3grouter";
  10. gpios = <&gpio0 11 1>;
  11. };
  12. ap {
  13. label = "3g300m:blue:ap";
  14. gpios = <&gpio0 12 1>;
  15. };
  16. wisprouter {
  17. label = "3g300m:blue:wisprouter";
  18. gpios = <&gpio0 9 1>;
  19. };
  20. wirelessrouter {
  21. label = "3g300m:blue:wirelessrouter";
  22. gpios = <&gpio0 13 1>;
  23. };
  24. 3g {
  25. label = "3g300m:blue:3g";
  26. gpios = <&gpio0 7 1>;
  27. };
  28. wpsreset {
  29. label = "3g300m:blue:wpsreset";
  30. gpios = <&gpio0 14 1>;
  31. };
  32. };
  33. gpio-keys-polled {
  34. compatible = "gpio-keys-polled";
  35. #address-cells = <1>;
  36. #size-cells = <0>;
  37. poll-interval = <20>;
  38. reset {
  39. label = "reset";
  40. gpios = <&gpio0 0 1>;
  41. linux,code = <0x198>;
  42. };
  43. mode {
  44. label = "mode";
  45. gpios = <&gpio0 10 1>;
  46. linux,code = <0x100>;
  47. };
  48. };
  49. };
  50. &spi0 {
  51. status = "okay";
  52. m25p80@0 {
  53. #address-cells = <1>;
  54. #size-cells = <1>;
  55. compatible = "jedec,spi-nor";
  56. reg = <0>;
  57. linux,modalias = "m25p80", "mx25l3205d";
  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. };