MicroWRT.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "microwrt", "ralink,mt7620a-soc";
  6. model = "Microduino MicroWRT";
  7. chosen {
  8. bootargs = "console=ttyS0,115200";
  9. };
  10. gpio-keys-polled {
  11. compatible = "gpio-keys-polled";
  12. #address-cells = <1>;
  13. #size-cells = <0>;
  14. poll-interval = <20>;
  15. reset {
  16. label = "reset";
  17. gpios = <&gpio0 1 1>;
  18. linux,code = <KEY_RESTART>;
  19. };
  20. wps {
  21. label = "wps";
  22. gpios = <&gpio0 2 1>;
  23. linux,code = <KEY_WPS_BUTTON>;
  24. };
  25. };
  26. };
  27. &gpio2 {
  28. status = "okay";
  29. };
  30. &gpio3 {
  31. status = "okay";
  32. };
  33. &spi0 {
  34. status = "okay";
  35. m25p80@0 {
  36. #address-cells = <1>;
  37. #size-cells = <1>;
  38. compatible = "jedec,spi-nor";
  39. reg = <0>;
  40. linux,modalias = "m25p80", "w25q128";
  41. spi-max-frequency = <10000000>;
  42. partition@0 {
  43. label = "u-boot";
  44. reg = <0x0 0x20000>;
  45. read-only;
  46. };
  47. partition@20000 {
  48. label = "u-boot-env";
  49. reg = <0x20000 0x10000>;
  50. read-only;
  51. };
  52. factory: partition@30000 {
  53. label = "factory";
  54. reg = <0x30000 0x10000>;
  55. read-only;
  56. };
  57. partition@40000 {
  58. label = "firmware";
  59. reg = <0x40000 0xfc0000>;
  60. };
  61. };
  62. };
  63. &ehci {
  64. status = "okay";
  65. };
  66. &ohci {
  67. status = "okay";
  68. };
  69. &pcie {
  70. status = "okay";
  71. };
  72. &ethernet {
  73. pinctrl-names = "default";
  74. pinctrl-0 = <&ephy_pins>;
  75. mtd-mac-address = <&factory 0x4>;
  76. mediatek,portmap = "llllw";
  77. };
  78. &wmac {
  79. ralink,mtd-eeprom = <&factory 0>;
  80. };
  81. &pinctrl {
  82. state_default: pinctrl0 {
  83. default {
  84. ralink,group = "wled", "i2c", "wdt", "uartf";
  85. ralink,function = "gpio";
  86. };
  87. };
  88. };