BDCOM-WAP2100-SK.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include "mt7620a.dtsi"
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6. / {
  7. compatible = "bdcom,wap2100-sk", "ralink,mt7620a-soc";
  8. model = "BDCOM WAP2100-SK";
  9. aliases {
  10. led-boot = &led_power;
  11. led-failsafe = &led_power;
  12. };
  13. chosen {
  14. bootargs = "console=ttyS0,115200";
  15. };
  16. leds {
  17. compatible = "gpio-leds";
  18. usb {
  19. label = "wap2100-sk:green:usb";
  20. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  21. trigger-sources = <&ohci_port1>, <&ehci_port1>;
  22. linux,default-trigger = "usbport";
  23. };
  24. led_power: wps {
  25. label = "wap2100-sk:green:wps";
  26. gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
  27. };
  28. wlan2g {
  29. label = "wap2100-sk:green:wlan2g";
  30. gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
  31. };
  32. };
  33. keys {
  34. compatible = "gpio-keys-polled";
  35. poll-interval = <20>;
  36. wps {
  37. label = "wps";
  38. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  39. linux,code = <KEY_WPS_BUTTON>;
  40. };
  41. reset {
  42. label = "reset";
  43. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  44. linux,code = <KEY_RESTART>;
  45. };
  46. };
  47. };
  48. &spi0 {
  49. status = "okay";
  50. flash@0 {
  51. compatible = "jedec,spi-nor";
  52. reg = <0>;
  53. spi-max-frequency = <10000000>;
  54. partitions {
  55. compatible = "fixed-partitions";
  56. #address-cells = <1>;
  57. #size-cells = <1>;
  58. partition@0 {
  59. label = "u-boot";
  60. reg = <0x0 0x30000>;
  61. read-only;
  62. };
  63. partition@30000 {
  64. label = "u-boot-env";
  65. reg = <0x30000 0x10000>;
  66. read-only;
  67. };
  68. factory: partition@40000 {
  69. label = "factory";
  70. reg = <0x40000 0x10000>;
  71. read-only;
  72. };
  73. partition@50000 {
  74. compatible = "denx,uimage";
  75. label = "firmware";
  76. reg = <0x50000 0xf70000>;
  77. };
  78. };
  79. };
  80. };
  81. &gpio0 {
  82. status = "okay";
  83. };
  84. &gpio1 {
  85. status = "okay";
  86. };
  87. &gpio3 {
  88. status = "okay";
  89. };
  90. &sdhci {
  91. status = "okay";
  92. };
  93. &ehci {
  94. status = "okay";
  95. };
  96. &ohci {
  97. status = "okay";
  98. };
  99. &ethernet {
  100. mtd-mac-address = <&factory 0x4>;
  101. mediatek,portmap = "llllw";
  102. };
  103. &wmac {
  104. ralink,mtd-eeprom = <&factory 0>;
  105. };
  106. &pcie {
  107. status = "okay";
  108. };
  109. &pcie0 {
  110. wifi@0,0 {
  111. reg = <0x0000 0 0 0 0>;
  112. mediatek,mtd-eeprom = <&factory 0x8000>;
  113. ieee80211-freq-limit = <5000000 6000000>;
  114. };
  115. };
  116. &pinctrl {
  117. state_default: pinctrl0 {
  118. default {
  119. ralink,group = "spi refclk", "uartf", "wled";
  120. ralink,function = "gpio";
  121. };
  122. };
  123. };