WL-341V3.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "WL-341V3", "ralink,rt3052-soc";
  6. model = "Sitecom WL-341 v3";
  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 0x20000>;
  17. read-only;
  18. };
  19. boardnvram: partition@20000 {
  20. label = "board-nvram";
  21. reg = <0x20000 0x10000>;
  22. read-only;
  23. };
  24. partition@30000 {
  25. label = "u-boot-env";
  26. reg = <0x30000 0x10000>;
  27. read-only;
  28. };
  29. partition@40000 {
  30. label = "firmware";
  31. reg = <0x40000 0x3b0000>;
  32. };
  33. };
  34. gpio-leds {
  35. compatible = "gpio-leds";
  36. first {
  37. label = "wl-341v3:amber:first";
  38. gpios = <&gpio0 9 1>;
  39. };
  40. first2 {
  41. label = "wl-341v3:blue:first";
  42. gpios = <&gpio0 13 1>;
  43. };
  44. third {
  45. label = "wl-341v3:amber:third";
  46. gpios = <&gpio0 11 1>;
  47. };
  48. third2 {
  49. label = "wl-341v3:blue:third";
  50. gpios = <&gpio0 14 1>;
  51. };
  52. fourth {
  53. label = "wl-341v3:blue:fourth";
  54. gpios = <&gpio0 10 1>;
  55. };
  56. fifth {
  57. label = "wl-341v3:amber:fifth";
  58. gpios = <&gpio0 12 1>;
  59. };
  60. fifth2 {
  61. label = "wl-341v3:blue:fifth";
  62. gpios = <&gpio0 8 1>;
  63. };
  64. };
  65. gpio-keys-polled {
  66. compatible = "gpio-keys-polled";
  67. #address-cells = <1>;
  68. #size-cells = <0>;
  69. poll-interval = <20>;
  70. reset {
  71. label = "reset";
  72. gpios = <&gpio0 7 1>;
  73. linux,code = <KEY_RESTART>;
  74. };
  75. wps {
  76. label = "wps";
  77. gpios = <&gpio0 5 1>;
  78. linux,code = <KEY_WPS_BUTTON>;
  79. };
  80. };
  81. };
  82. &pinctrl {
  83. state_default: pinctrl0 {
  84. gpio {
  85. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  86. ralink,function = "gpio";
  87. };
  88. };
  89. };
  90. &ethernet {
  91. mtd-mac-address = <&boardnvram 0xffa0>;
  92. };
  93. &esw {
  94. mediatek,portmap = <0x3e>;
  95. };
  96. &wmac {
  97. ralink,mtd-eeprom = <&boardnvram 0xfd70>;
  98. };
  99. &otg {
  100. status = "okay";
  101. };