WL-341V3.dts 2.1 KB

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