WL-WN575A3.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. mediatek,2ghz = <0>;
  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. linux,modalias = "m25p80", "en25q64";
  78. spi-max-frequency = <10000000>;
  79. m25p,chunked-io = <32>;
  80. partition@0 {
  81. label = "u-boot";
  82. reg = <0x0 0x30000>;
  83. read-only;
  84. };
  85. partition@30000 {
  86. label = "u-boot-env";
  87. reg = <0x30000 0x10000>;
  88. read-only;
  89. };
  90. factory: partition@40000 {
  91. label = "factory";
  92. reg = <0x40000 0x10000>;
  93. read-only;
  94. };
  95. partition@50000 {
  96. label = "firmware";
  97. reg = <0x50000 0x7b0000>;
  98. };
  99. };
  100. };
  101. &wmac {
  102. status = "okay";
  103. ralink,mtd-eeprom = <&factory 0x4>;
  104. };
  105. &ethernet {
  106. mtd-mac-address = <&factory 0x2e>;
  107. ralink,port-map = "llllw";
  108. };