1
0

WL-WN575A3.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. /dts-v1/;
  2. #include <dt-bindings/input/input.h>
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include "mt7628an.dtsi"
  5. / {
  6. compatible = "wavlink,wl-wn575a3", "mediatek,mt7628an-soc";
  7. model = "Wavlink WL-WN575A3";
  8. chosen {
  9. bootargs = "console=ttyS0,57600";
  10. };
  11. memory@0 {
  12. device_type = "memory";
  13. reg = <0x0 0x4000000>;
  14. };
  15. gpio-keys-polled {
  16. compatible = "gpio-keys-polled";
  17. poll-interval = <20>;
  18. reset {
  19. label = "reset";
  20. gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
  21. linux,code = <KEY_RESTART>;
  22. };
  23. wps {
  24. label = "wps";
  25. gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
  26. linux,code = <KEY_WPS_BUTTON>;
  27. };
  28. };
  29. gpio-leds {
  30. compatible = "gpio-leds";
  31. wifi-high {
  32. label = "wl-wn575a3:green:wifi-high";
  33. gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
  34. };
  35. wifi-med {
  36. label = "wl-wn575a3:green:wifi-med";
  37. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  38. };
  39. wifi-low {
  40. label = "wl-wn575a3:green:wifi-low";
  41. gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  42. };
  43. wps {
  44. label = "wl-wn575a3:green:wps";
  45. gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
  46. };
  47. };
  48. };
  49. &pinctrl {
  50. state_default: pinctrl0 {
  51. gpio {
  52. ralink,group = "i2c", "wled_an";
  53. ralink,function = "gpio";
  54. };
  55. };
  56. };
  57. &pcie {
  58. status = "okay";
  59. };
  60. &pcie0 {
  61. mt76@0,0 {
  62. reg = <0x0000 0 0 0 0>;
  63. mediatek,mtd-eeprom = <&factory 0x8000>;
  64. ieee80211-freq-limit = <5000000 6000000>;
  65. };
  66. };
  67. &spi0 {
  68. status = "okay";
  69. m25p80@0 {
  70. compatible = "jedec,spi-nor";
  71. reg = <0>;
  72. spi-max-frequency = <10000000>;
  73. m25p,chunked-io = <32>;
  74. partitions {
  75. compatible = "fixed-partitions";
  76. #address-cells = <1>;
  77. #size-cells = <1>;
  78. partition@0 {
  79. label = "u-boot";
  80. reg = <0x0 0x30000>;
  81. read-only;
  82. };
  83. partition@30000 {
  84. label = "u-boot-env";
  85. reg = <0x30000 0x10000>;
  86. read-only;
  87. };
  88. factory: partition@40000 {
  89. label = "factory";
  90. reg = <0x40000 0x10000>;
  91. read-only;
  92. };
  93. partition@50000 {
  94. label = "firmware";
  95. reg = <0x50000 0x7b0000>;
  96. };
  97. };
  98. };
  99. };
  100. &wmac {
  101. status = "okay";
  102. ralink,mtd-eeprom = <&factory 0x4>;
  103. };
  104. &ethernet {
  105. mtd-mac-address = <&factory 0x2e>;
  106. mediatek,portmap = "llllw";
  107. };