1
0

WIDORA-NEO.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /dts-v1/;
  2. #include "mt7628an.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "mediatek,widora-neo", "mediatek,mt7628an-soc";
  6. model = "Widora-NEO";
  7. chosen {
  8. bootargs = "console=ttyS0,115200";
  9. };
  10. memory@0 {
  11. device_type = "memory";
  12. reg = <0x0 0x8000000>;
  13. };
  14. gpio-leds {
  15. compatible = "gpio-leds";
  16. wifi {
  17. label = "widora:orange:wifi";
  18. gpios = <&wgpio 0 0>;
  19. default-state = "on";
  20. };
  21. };
  22. gpio-keys-polled {
  23. compatible = "gpio-keys-polled";
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. poll-interval = <20>;
  27. wps {
  28. label = "reset";
  29. gpios = <&gpio1 6 1>;
  30. linux,code = <KEY_WPS_BUTTON>;
  31. };
  32. };
  33. wgpio: gpio-wifi {
  34. compatible = "mediatek,gpio-wifi";
  35. #address-cells = <1>;
  36. #size-cells = <0>;
  37. gpio-controller;
  38. #gpio-cells = <2>;
  39. };
  40. };
  41. &pinctrl {
  42. state_default: pinctrl0 {
  43. gpio {
  44. ralink,group = "gpio";
  45. ralink,function = "gpio";
  46. };
  47. perst {
  48. ralink,group = "perst";
  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_kn {
  64. ralink,group = "wled_kn";
  65. ralink,function = "gpio";
  66. };
  67. wled_an {
  68. ralink,group = "wled_an";
  69. ralink,function = "wled_an";
  70. };
  71. wdt {
  72. ralink,group = "wdt";
  73. ralink,function = "gpio";
  74. };
  75. };
  76. };
  77. &spi0 {
  78. status = "okay";
  79. pinctrl-names = "default";
  80. pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
  81. m25p80@0 {
  82. #address-cells = <1>;
  83. #size-cells = <1>;
  84. compatible = "jedec,spi-nor";
  85. reg = <0>;
  86. linux,modalias = "m25p80", "w25q128";
  87. spi-max-frequency = <40000000>;
  88. m25p,chunked-io = <31>;
  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 0x0fb0000>;
  106. };
  107. };
  108. spidev@1 {
  109. #address-cells = <1>;
  110. #size-cells = <1>;
  111. compatible = "linux,spidev";
  112. reg = <1>;
  113. spi-max-frequency = <40000000>;
  114. };
  115. };
  116. &i2c {
  117. status = "okay";
  118. };
  119. &uart1 {
  120. status = "okay";
  121. };
  122. &uart2 {
  123. status = "okay";
  124. };
  125. &pwm {
  126. status = "okay";
  127. };
  128. &ethernet {
  129. mtd-mac-address = <&factory 0x28>;
  130. };
  131. &sdhci {
  132. status = "okay";
  133. mediatek,cd-low;
  134. };
  135. &wmac {
  136. status = "okay";
  137. };