WL-341V3.dts 1.8 KB

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