WF-2881.dts 1.6 KB

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