WL-WN575A3.dts 2.1 KB

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