MIWIFI-MINI.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. spi-max-frequency = <10000000>;
  54. partition@0 {
  55. label = "u-boot";
  56. reg = <0x0 0x30000>;
  57. };
  58. partition@30000 {
  59. label = "u-boot-env";
  60. reg = <0x30000 0x10000>;
  61. read-only;
  62. };
  63. factory: partition@40000 {
  64. label = "factory";
  65. reg = <0x40000 0x10000>;
  66. read-only;
  67. };
  68. partition@50000 {
  69. label = "firmware";
  70. reg = <0x50000 0xf80000>;
  71. };
  72. partition@fd0000 {
  73. label = "crash";
  74. reg = <0xfd0000 0x10000>;
  75. };
  76. partition@fe0000 {
  77. label = "reserved";
  78. reg = <0xfe0000 0x10000>;
  79. read-only;
  80. };
  81. partition@ff0000 {
  82. label = "Bdata";
  83. reg = <0xff0000 0x10000>;
  84. };
  85. };
  86. };
  87. &ehci {
  88. status = "okay";
  89. };
  90. &ohci {
  91. status = "okay";
  92. };
  93. &ethernet {
  94. pinctrl-names = "default";
  95. pinctrl-0 = <&ephy_pins>;
  96. mtd-mac-address = <&factory 0x28>;
  97. mediatek,portmap = "llllw";
  98. };
  99. &wmac {
  100. ralink,mtd-eeprom = <&factory 0>;
  101. };
  102. &pcie {
  103. status = "okay";
  104. pcie-bridge {
  105. mt76@0,0 {
  106. reg = <0x0000 0 0 0 0>;
  107. device_type = "pci";
  108. mediatek,mtd-eeprom = <&factory 0x8000>;
  109. ieee80211-freq-limit = <5000000 6000000>;
  110. };
  111. };
  112. };
  113. &pinctrl {
  114. state_default: pinctrl0 {
  115. gpio {
  116. ralink,group = "i2c", "rgmii1";
  117. ralink,function = "gpio";
  118. };
  119. pa {
  120. ralink,group = "pa";
  121. ralink,function = "pa";
  122. };
  123. };
  124. };