LINKIT7688.dts 2.4 KB

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