1
0

WT3020-4M.dts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /dts-v1/;
  2. #include "mt7620n.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "wt3020", "ralink,mt7620n-soc";
  6. model = "Nexx WT3020 (4M)";
  7. gpio-keys-polled {
  8. compatible = "gpio-keys-polled";
  9. #address-cells = <1>;
  10. #size-cells = <0>;
  11. poll-interval = <20>;
  12. reset {
  13. label = "reset";
  14. gpios = <&gpio0 1 1>;
  15. linux,code = <KEY_RESTART>;
  16. };
  17. };
  18. gpio-leds {
  19. compatible = "gpio-leds";
  20. power {
  21. label = "wt3020:blue:power";
  22. gpios = <&gpio3 0 0>;
  23. };
  24. };
  25. };
  26. &gpio2 {
  27. status = "okay";
  28. };
  29. &gpio3 {
  30. status = "okay";
  31. };
  32. &spi0 {
  33. status = "okay";
  34. m25p80@0 {
  35. #address-cells = <1>;
  36. #size-cells = <1>;
  37. compatible = "jedec,spi-nor";
  38. reg = <0>;
  39. linux,modalias = "m25p80", "w25q32";
  40. spi-max-frequency = <10000000>;
  41. partition@0 {
  42. label = "u-boot";
  43. reg = <0x0 0x30000>;
  44. read-only;
  45. };
  46. partition@30000 {
  47. label = "u-boot-env";
  48. reg = <0x30000 0x10000>;
  49. read-only;
  50. };
  51. factory: partition@40000 {
  52. label = "factory";
  53. reg = <0x40000 0x10000>;
  54. read-only;
  55. };
  56. partition@50000 {
  57. label = "firmware";
  58. reg = <0x50000 0x3b0000>;
  59. };
  60. };
  61. };
  62. &ehci {
  63. status = "okay";
  64. };
  65. &ohci {
  66. status = "okay";
  67. };
  68. &ethernet {
  69. mtd-mac-address = <&factory 0x4>;
  70. mediatek,portmap = "wllll";
  71. };
  72. &wmac {
  73. ralink,mtd-eeprom = <&factory 0>;
  74. };
  75. &pinctrl {
  76. state_default: pinctrl0 {
  77. default {
  78. ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf";
  79. ralink,function = "gpio";
  80. };
  81. };
  82. };