MicroWRT.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. #address-cells = <1>;
  14. #size-cells = <0>;
  15. poll-interval = <20>;
  16. reset {
  17. label = "reset";
  18. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  19. linux,code = <KEY_RESTART>;
  20. };
  21. wps {
  22. label = "wps";
  23. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  24. linux,code = <KEY_WPS_BUTTON>;
  25. };
  26. };
  27. };
  28. &gpio2 {
  29. status = "okay";
  30. };
  31. &gpio3 {
  32. status = "okay";
  33. };
  34. &spi0 {
  35. status = "okay";
  36. m25p80@0 {
  37. #address-cells = <1>;
  38. #size-cells = <1>;
  39. compatible = "jedec,spi-nor";
  40. reg = <0>;
  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. };