WF-2881.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "netis,wf-2881", "mediatek,mt7621-soc";
  7. model = "NETIS WF-2881";
  8. aliases {
  9. led-boot = &led_wps;
  10. led-failsafe = &led_wps;
  11. led-running = &led_wps;
  12. led-upgrade = &led_wps;
  13. };
  14. memory@0 {
  15. device_type = "memory";
  16. reg = <0x0 0x8000000>;
  17. };
  18. chosen {
  19. bootargs = "console=ttyS0,57600";
  20. };
  21. gpio-leds {
  22. compatible = "gpio-leds";
  23. usb {
  24. label = "wf-2881:green:usb";
  25. gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
  26. trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
  27. linux,default-trigger = "usbport";
  28. };
  29. led_wps: wps {
  30. label = "wf-2881:green:wps";
  31. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  32. };
  33. };
  34. gpio-keys-polled {
  35. compatible = "gpio-keys-polled";
  36. poll-interval = <20>;
  37. reset {
  38. label = "reset";
  39. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  40. linux,code = <KEY_RESTART>;
  41. };
  42. };
  43. };
  44. &nand {
  45. status = "okay";
  46. partitions {
  47. compatible = "fixed-partitions";
  48. #address-cells = <1>;
  49. #size-cells = <1>;
  50. partition@0 {
  51. label = "u-boot";
  52. reg = <0x0 0x30000>;
  53. read-only;
  54. };
  55. partition@30000 {
  56. label = "u-boot-env";
  57. reg = <0x30000 0x1000>;
  58. read-only;
  59. };
  60. partition@80000 {
  61. label = "config";
  62. reg = <0x80000 0x80000>;
  63. read-only;
  64. };
  65. factory: partition@100000 {
  66. label = "factory";
  67. reg = <0x100000 0x40000>;
  68. read-only;
  69. };
  70. partition@140000 {
  71. label = "firmware";
  72. reg = <0x140000 0x7E40000>;
  73. };
  74. };
  75. };
  76. &pcie {
  77. status = "okay";
  78. };
  79. &pcie0 {
  80. mt76@0,0 {
  81. reg = <0x0000 0 0 0 0>;
  82. mediatek,mtd-eeprom = <&factory 0x8000>;
  83. ieee80211-freq-limit = <5000000 6000000>;
  84. };
  85. };
  86. &pcie1 {
  87. mt76@0,0 {
  88. reg = <0x0000 0 0 0 0>;
  89. mediatek,mtd-eeprom = <&factory 0x0000>;
  90. ieee80211-freq-limit = <2400000 2500000>;
  91. };
  92. };
  93. &ethernet {
  94. mtd-mac-address = <&factory 0xe006>;
  95. };
  96. &pinctrl {
  97. state_default: pinctrl0 {
  98. gpio {
  99. ralink,group = "uart3", "jtag";
  100. ralink,function = "gpio";
  101. };
  102. };
  103. };