W150M.dts 1.7 KB

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