1
0

MicroWRT.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. spi-max-frequency = <10000000>;
  41. partition@0 {
  42. label = "u-boot";
  43. reg = <0x0 0x20000>;
  44. read-only;
  45. };
  46. partition@20000 {
  47. label = "u-boot-env";
  48. reg = <0x20000 0x10000>;
  49. read-only;
  50. };
  51. factory: partition@30000 {
  52. label = "factory";
  53. reg = <0x30000 0x10000>;
  54. read-only;
  55. };
  56. partition@40000 {
  57. label = "firmware";
  58. reg = <0x40000 0xfc0000>;
  59. };
  60. };
  61. };
  62. &ehci {
  63. status = "okay";
  64. };
  65. &ohci {
  66. status = "okay";
  67. };
  68. &pcie {
  69. status = "okay";
  70. };
  71. &ethernet {
  72. pinctrl-names = "default";
  73. pinctrl-0 = <&ephy_pins>;
  74. mtd-mac-address = <&factory 0x4>;
  75. mediatek,portmap = "llllw";
  76. };
  77. &wmac {
  78. ralink,mtd-eeprom = <&factory 0>;
  79. };
  80. &pinctrl {
  81. state_default: pinctrl0 {
  82. default {
  83. ralink,group = "wled", "i2c", "wdt", "uartf";
  84. ralink,function = "gpio";
  85. };
  86. };
  87. };