WF-2881.dts 1.6 KB

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