XIAOMI-MIWIFI-MINI.dts 2.3 KB

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