MicroWRT.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. / {
  4. compatible = "microwrt", "ralink,mt7620a-soc";
  5. model = "Microduino MicroWRT";
  6. chosen {
  7. bootargs = "console=ttyS0,115200";
  8. };
  9. gpio-keys-polled {
  10. compatible = "gpio-keys-polled";
  11. #address-cells = <1>;
  12. #size-cells = <0>;
  13. poll-interval = <20>;
  14. reset {
  15. label = "reset";
  16. gpios = <&gpio0 1 1>;
  17. linux,code = <0x198>;
  18. };
  19. wps {
  20. label = "wps";
  21. gpios = <&gpio0 2 1>;
  22. linux,code = <0x211>;
  23. };
  24. };
  25. };
  26. &gpio2 {
  27. status = "okay";
  28. };
  29. &gpio3 {
  30. status = "okay";
  31. };
  32. &spi0 {
  33. status = "okay";
  34. m25p80@0 {
  35. #address-cells = <1>;
  36. #size-cells = <1>;
  37. compatible = "jedec,spi-nor";
  38. reg = <0>;
  39. linux,modalias = "m25p80", "w25q128";
  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. };