MicroWRT.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "microduino,microwrt", "ralink,mt7620a-soc";
  7. model = "Microduino MicroWRT";
  8. chosen {
  9. bootargs = "console=ttyS0,115200";
  10. };
  11. gpio-keys-polled {
  12. compatible = "gpio-keys-polled";
  13. poll-interval = <20>;
  14. reset {
  15. label = "reset";
  16. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  17. linux,code = <KEY_RESTART>;
  18. };
  19. wps {
  20. label = "wps";
  21. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  22. linux,code = <KEY_WPS_BUTTON>;
  23. };
  24. };
  25. };
  26. &gpio2 {
  27. status = "okay";
  28. };
  29. &gpio3 {
  30. status = "okay";
  31. };
  32. &spi0 {
  33. status = "okay";
  34. m25p80@0 {
  35. compatible = "jedec,spi-nor";
  36. reg = <0>;
  37. spi-max-frequency = <10000000>;
  38. partitions {
  39. compatible = "fixed-partitions";
  40. #address-cells = <1>;
  41. #size-cells = <1>;
  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. };
  64. &ehci {
  65. status = "okay";
  66. };
  67. &ohci {
  68. status = "okay";
  69. };
  70. &pcie {
  71. status = "okay";
  72. };
  73. &ethernet {
  74. pinctrl-names = "default";
  75. pinctrl-0 = <&ephy_pins>;
  76. mtd-mac-address = <&factory 0x4>;
  77. mediatek,portmap = "llllw";
  78. };
  79. &wmac {
  80. ralink,mtd-eeprom = <&factory 0>;
  81. };
  82. &pinctrl {
  83. state_default: pinctrl0 {
  84. default {
  85. ralink,group = "wled", "i2c", "wdt", "uartf";
  86. ralink,function = "gpio";
  87. };
  88. };
  89. };