W150M.dts 1.9 KB

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