MIWIFI-MINI.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "xiaomi,miwifi-mini", "ralink,mt7620a-soc";
  6. model = "Xiaomi MiWiFi Mini";
  7. chosen {
  8. bootargs = "console=ttyS0,115200";
  9. };
  10. gpio-leds {
  11. compatible = "gpio-leds";
  12. blue {
  13. label = "miwifi-mini:blue:status";
  14. gpios = <&gpio1 0 1>;
  15. };
  16. yellow {
  17. label = "miwifi-mini:yellow:status";
  18. gpios = <&gpio1 2 1>;
  19. };
  20. red {
  21. label = "miwifi-mini:red:status";
  22. gpios = <&gpio1 5 1>;
  23. };
  24. };
  25. gpio-keys-polled {
  26. compatible = "gpio-keys-polled";
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. poll-interval = <20>;
  30. reset {
  31. label = "reset";
  32. gpios = <&gpio1 6 0>;
  33. linux,code = <KEY_RESTART>;
  34. };
  35. };
  36. };
  37. &gpio0 {
  38. status = "okay";
  39. };
  40. &gpio1 {
  41. status = "okay";
  42. };
  43. &gpio2 {
  44. status = "okay";
  45. };
  46. &spi0 {
  47. status = "okay";
  48. m25p80@0 {
  49. #address-cells = <1>;
  50. #size-cells = <1>;
  51. compatible = "jedec,spi-nor";
  52. reg = <0>;
  53. linux,modalias = "m25p80", "w25q128";
  54. spi-max-frequency = <10000000>;
  55. partition@0 {
  56. label = "u-boot";
  57. reg = <0x0 0x30000>;
  58. };
  59. partition@30000 {
  60. label = "u-boot-env";
  61. reg = <0x30000 0x10000>;
  62. read-only;
  63. };
  64. factory: partition@40000 {
  65. label = "factory";
  66. reg = <0x40000 0x10000>;
  67. read-only;
  68. };
  69. partition@50000 {
  70. label = "firmware";
  71. reg = <0x50000 0xf80000>;
  72. };
  73. partition@fd0000 {
  74. label = "crash";
  75. reg = <0xfd0000 0x10000>;
  76. };
  77. partition@fe0000 {
  78. label = "reserved";
  79. reg = <0xfe0000 0x10000>;
  80. read-only;
  81. };
  82. partition@ff0000 {
  83. label = "Bdata";
  84. reg = <0xff0000 0x10000>;
  85. };
  86. };
  87. };
  88. &ehci {
  89. status = "okay";
  90. };
  91. &ohci {
  92. status = "okay";
  93. };
  94. &ethernet {
  95. pinctrl-names = "default";
  96. pinctrl-0 = <&ephy_pins>;
  97. mtd-mac-address = <&factory 0x4>;
  98. mediatek,portmap = "llllw";
  99. };
  100. &wmac {
  101. ralink,mtd-eeprom = <&factory 0>;
  102. };
  103. &pcie {
  104. status = "okay";
  105. pcie-bridge {
  106. mt76@0,0 {
  107. reg = <0x0000 0 0 0 0>;
  108. device_type = "pci";
  109. mediatek,mtd-eeprom = <&factory 0x8000>;
  110. mediatek,2ghz = <0>;
  111. };
  112. };
  113. };
  114. &pinctrl {
  115. state_default: pinctrl0 {
  116. gpio {
  117. ralink,group = "i2c", "rgmii1";
  118. ralink,function = "gpio";
  119. };
  120. pa {
  121. ralink,group = "pa";
  122. ralink,function = "pa";
  123. };
  124. };
  125. };