WF-2881.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. memory@0 {
  9. device_type = "memory";
  10. reg = <0x0 0x8000000>;
  11. };
  12. chosen {
  13. bootargs = "console=ttyS0,57600";
  14. };
  15. gpio-leds {
  16. compatible = "gpio-leds";
  17. usb {
  18. label = "wf-2881:green:usb";
  19. gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
  20. };
  21. wps {
  22. label = "wf-2881:green:wps";
  23. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  24. };
  25. };
  26. gpio-keys-polled {
  27. compatible = "gpio-keys-polled";
  28. #address-cells = <1>;
  29. #size-cells = <0>;
  30. poll-interval = <20>;
  31. reset {
  32. label = "reset";
  33. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  34. linux,code = <KEY_RESTART>;
  35. };
  36. };
  37. };
  38. &nand {
  39. status = "okay";
  40. partition@0 {
  41. label = "u-boot";
  42. reg = <0x0 0x30000>;
  43. read-only;
  44. };
  45. partition@30000 {
  46. label = "u-boot-env";
  47. reg = <0x30000 0x1000>;
  48. read-only;
  49. };
  50. partition@80000 {
  51. label = "config";
  52. reg = <0x80000 0x80000>;
  53. read-only;
  54. };
  55. factory: partition@100000 {
  56. label = "factory";
  57. reg = <0x100000 0x40000>;
  58. read-only;
  59. };
  60. partition@140000 {
  61. label = "firmware";
  62. reg = <0x140000 0x7E40000>;
  63. };
  64. };
  65. &pcie {
  66. status = "okay";
  67. pcie0 {
  68. mt76@0,0 {
  69. reg = <0x0000 0 0 0 0>;
  70. device_type = "pci";
  71. mediatek,mtd-eeprom = <&factory 0x8000>;
  72. ieee80211-freq-limit = <5000000 6000000>;
  73. };
  74. };
  75. pcie1 {
  76. mt76@1,0 {
  77. reg = <0x0000 0 0 0 0>;
  78. device_type = "pci";
  79. mediatek,mtd-eeprom = <&factory 0x0000>;
  80. ieee80211-freq-limit = <2400000 2500000>;
  81. };
  82. };
  83. };
  84. &ethernet {
  85. mtd-mac-address = <&factory 0xe006>;
  86. };
  87. &pinctrl {
  88. state_default: pinctrl0 {
  89. gpio {
  90. ralink,group = "uart3", "jtag";
  91. ralink,function = "gpio";
  92. };
  93. };
  94. };