2
0

LINKIT7688.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. /dts-v1/;
  2. #include "mt7628an.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "mediatek,linkit", "mediatek,mt7628an-soc";
  6. model = "MediaTek LinkIt Smart 7688";
  7. chosen {
  8. bootargs = "console=ttyS2,57600";
  9. };
  10. aliases {
  11. serial0 = &uart2;
  12. };
  13. memory@0 {
  14. device_type = "memory";
  15. reg = <0x0 0x8000000>;
  16. };
  17. bootstrap {
  18. compatible = "mediatek,linkit";
  19. status = "okay";
  20. };
  21. gpio-leds {
  22. compatible = "gpio-leds";
  23. wifi {
  24. label = "mediatek:orange:wifi";
  25. gpios = <&wgpio 0 0>;
  26. default-state = "on";
  27. };
  28. };
  29. gpio-keys-polled {
  30. compatible = "gpio-keys-polled";
  31. #address-cells = <1>;
  32. #size-cells = <0>;
  33. poll-interval = <20>;
  34. wps {
  35. label = "reset";
  36. gpios = <&gpio1 6 1>;
  37. linux,code = <KEY_WPS_BUTTON>;
  38. };
  39. };
  40. wgpio: gpio-wifi {
  41. compatible = "mediatek,gpio-wifi";
  42. #address-cells = <1>;
  43. #size-cells = <0>;
  44. gpio-controller;
  45. #gpio-cells = <2>;
  46. };
  47. };
  48. &pinctrl {
  49. state_default: pinctrl0 {
  50. gpio {
  51. ralink,group = "gpio";
  52. ralink,function = "gpio";
  53. };
  54. perst {
  55. ralink,group = "perst";
  56. ralink,function = "gpio";
  57. };
  58. refclk {
  59. ralink,group = "refclk";
  60. ralink,function = "gpio";
  61. };
  62. i2s {
  63. ralink,group = "i2s";
  64. ralink,function = "gpio";
  65. };
  66. spis {
  67. ralink,group = "spis";
  68. ralink,function = "gpio";
  69. };
  70. wled_kn {
  71. ralink,group = "wled_kn";
  72. ralink,function = "gpio";
  73. };
  74. wled_an {
  75. ralink,group = "wled_an";
  76. ralink,function = "wled_an";
  77. };
  78. wdt {
  79. ralink,group = "wdt";
  80. ralink,function = "gpio";
  81. };
  82. };
  83. };
  84. &wmac {
  85. status = "okay";
  86. };
  87. &spi0 {
  88. status = "okay";
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
  91. m25p80@0 {
  92. #address-cells = <1>;
  93. #size-cells = <1>;
  94. compatible = "jedec,spi-nor";
  95. reg = <0>;
  96. linux,modalias = "m25p80", "mx25l25635e";
  97. spi-max-frequency = <40000000>;
  98. m25p,chunked-io = <31>;
  99. partition@0 {
  100. label = "u-boot";
  101. reg = <0x0 0x30000>;
  102. read-only;
  103. };
  104. partition@30000 {
  105. label = "u-boot-env";
  106. reg = <0x30000 0x10000>;
  107. };
  108. factory: partition@40000 {
  109. label = "factory";
  110. reg = <0x40000 0x10000>;
  111. read-only;
  112. };
  113. partition@50000 {
  114. label = "firmware";
  115. reg = <0x50000 0x1fb0000>;
  116. };
  117. };
  118. spidev@1 {
  119. #address-cells = <1>;
  120. #size-cells = <1>;
  121. compatible = "linux,spidev";
  122. reg = <1>;
  123. spi-max-frequency = <40000000>;
  124. };
  125. };
  126. &i2c {
  127. status = "okay";
  128. };
  129. &uart1 {
  130. status = "okay";
  131. };
  132. &uart2 {
  133. status = "okay";
  134. };
  135. &pwm {
  136. status = "okay";
  137. };
  138. &ethernet {
  139. mtd-mac-address = <&factory 0x28>;
  140. };
  141. &sdhci {
  142. status = "okay";
  143. mediatek,cd-high;
  144. };
  145. &wmac {
  146. status = "okay";
  147. };