1
0

WT3020-8M.dts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 (8M)";
  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. spi-max-frequency = <10000000>;
  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 0x10000>;
  48. read-only;
  49. };
  50. factory: partition@40000 {
  51. label = "factory";
  52. reg = <0x40000 0x10000>;
  53. read-only;
  54. };
  55. partition@50000 {
  56. label = "firmware";
  57. reg = <0x50000 0x7b0000>;
  58. };
  59. };
  60. };
  61. &ehci {
  62. status = "okay";
  63. };
  64. &ohci {
  65. status = "okay";
  66. };
  67. &ethernet {
  68. mtd-mac-address = <&factory 0x4>;
  69. mediatek,portmap = "wllll";
  70. };
  71. &wmac {
  72. ralink,mtd-eeprom = <&factory 0>;
  73. };
  74. &pinctrl {
  75. state_default: pinctrl0 {
  76. default {
  77. ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf";
  78. ralink,function = "gpio";
  79. };
  80. };
  81. };