W150M.dts 1.7 KB

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