MIWIFI-MINI.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. / {
  4. compatible = "xiaomi,miwifi-mini", "ralink,mt7620a-soc";
  5. model = "Xiaomi MiWiFi Mini";
  6. chosen {
  7. bootargs = "console=ttyS0,115200";
  8. };
  9. gpio-leds {
  10. compatible = "gpio-leds";
  11. blue {
  12. label = "miwifi-mini:blue:status";
  13. gpios = <&gpio1 0 1>;
  14. };
  15. yellow {
  16. label = "miwifi-mini:yellow:status";
  17. gpios = <&gpio1 2 1>;
  18. };
  19. red {
  20. label = "miwifi-mini:red:status";
  21. gpios = <&gpio1 5 1>;
  22. };
  23. };
  24. gpio-keys-polled {
  25. compatible = "gpio-keys-polled";
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. poll-interval = <20>;
  29. reset {
  30. label = "reset";
  31. gpios = <&gpio1 6 0>;
  32. linux,code = <0x198>;
  33. };
  34. };
  35. };
  36. &gpio0 {
  37. status = "okay";
  38. };
  39. &gpio1 {
  40. status = "okay";
  41. };
  42. &gpio2 {
  43. status = "okay";
  44. };
  45. &spi0 {
  46. status = "okay";
  47. m25p80@0 {
  48. #address-cells = <1>;
  49. #size-cells = <1>;
  50. compatible = "jedec,spi-nor";
  51. reg = <0>;
  52. linux,modalias = "m25p80", "w25q128";
  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 0x4>;
  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. mediatek,2ghz = <0>;
  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. };