W2914NSV2.dtsi 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. #include "mt7621.dtsi"
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "wevo,w2914ns-v2", "mediatek,mt7621-soc";
  6. chosen {
  7. bootargs = "console=ttyS0,57600";
  8. };
  9. gpio-keys-polled {
  10. compatible = "gpio-keys-polled";
  11. poll-interval = <20>;
  12. reset {
  13. label = "reset";
  14. gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
  15. linux,code = <KEY_RESTART>;
  16. };
  17. wps {
  18. label = "wps";
  19. gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
  20. linux,code = <KEY_WPS_BUTTON>;
  21. };
  22. };
  23. };
  24. &xhci {
  25. status = "okay";
  26. };
  27. &spi0 {
  28. status = "okay";
  29. m25p80@0 {
  30. compatible = "jedec,spi-nor";
  31. reg = <0>;
  32. spi-max-frequency = <10000000>;
  33. m25p,chunked-io = <32>;
  34. partitions {
  35. compatible = "fixed-partitions";
  36. #address-cells = <1>;
  37. #size-cells = <1>;
  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 0x10000>;
  46. read-only;
  47. };
  48. factory: partition@40000 {
  49. label = "factory";
  50. reg = <0x40000 0x10000>;
  51. read-only;
  52. };
  53. partition@50000 {
  54. label = "firmware";
  55. reg = <0x50000 0xfb0000>;
  56. };
  57. };
  58. };
  59. };
  60. &pcie {
  61. status = "okay";
  62. };
  63. &pcie0 {
  64. wifi@0,0 {
  65. compatible = "pci14c3,7603";
  66. reg = <0x0000 0 0 0 0>;
  67. mediatek,mtd-eeprom = <&factory 0x0000>;
  68. };
  69. };
  70. &pcie1 {
  71. wifi@0,0 {
  72. compatible = "pci14c3,7662";
  73. reg = <0x0000 0 0 0 0>;
  74. mediatek,mtd-eeprom = <&factory 0x8000>;
  75. ieee80211-freq-limit = <5000000 6000000>;
  76. };
  77. };
  78. &ethernet {
  79. mtd-mac-address = <&factory 0xe000>;
  80. };
  81. &pinctrl {
  82. state_default: pinctrl0 {
  83. gpio {
  84. ralink,group = "wdt", "rgmii2", "jtag", "mdio";
  85. ralink,function = "gpio";
  86. };
  87. };
  88. };