LINKIT7688.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. spi-max-frequency = <40000000>;
  97. m25p,chunked-io = <31>;
  98. partition@0 {
  99. label = "u-boot";
  100. reg = <0x0 0x30000>;
  101. read-only;
  102. };
  103. partition@30000 {
  104. label = "u-boot-env";
  105. reg = <0x30000 0x10000>;
  106. };
  107. factory: partition@40000 {
  108. label = "factory";
  109. reg = <0x40000 0x10000>;
  110. read-only;
  111. };
  112. partition@50000 {
  113. label = "firmware";
  114. reg = <0x50000 0x1fb0000>;
  115. };
  116. };
  117. spidev@1 {
  118. #address-cells = <1>;
  119. #size-cells = <1>;
  120. compatible = "linux,spidev";
  121. reg = <1>;
  122. spi-max-frequency = <40000000>;
  123. };
  124. };
  125. &i2c {
  126. status = "okay";
  127. };
  128. &uart1 {
  129. status = "okay";
  130. };
  131. &uart2 {
  132. status = "okay";
  133. };
  134. &pwm {
  135. status = "okay";
  136. };
  137. &ethernet {
  138. mtd-mac-address = <&factory 0x28>;
  139. };
  140. &sdhci {
  141. status = "okay";
  142. mediatek,cd-high;
  143. };
  144. &wmac {
  145. status = "okay";
  146. };