WT3020-4M.dts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /dts-v1/;
  2. #include "mt7620n.dtsi"
  3. / {
  4. compatible = "wt3020", "ralink,mt7620n-soc";
  5. model = "Nexx WT3020";
  6. gpio-keys-polled {
  7. compatible = "gpio-keys-polled";
  8. #address-cells = <1>;
  9. #size-cells = <0>;
  10. poll-interval = <20>;
  11. reset {
  12. label = "reset";
  13. gpios = <&gpio0 1 1>;
  14. linux,code = <0x198>;
  15. };
  16. };
  17. gpio-leds {
  18. compatible = "gpio-leds";
  19. power {
  20. label = "wt3020:blue:power";
  21. gpios = <&gpio3 0 0>;
  22. };
  23. };
  24. };
  25. &gpio2 {
  26. status = "okay";
  27. };
  28. &gpio3 {
  29. status = "okay";
  30. };
  31. &spi0 {
  32. status = "okay";
  33. m25p80@0 {
  34. #address-cells = <1>;
  35. #size-cells = <1>;
  36. compatible = "jedec,spi-nor";
  37. reg = <0>;
  38. linux,modalias = "m25p80", "w25q32";
  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 0x3b0000>;
  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. };