3G300M.dts 1.9 KB

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