1
0

WIDORA-NEO.dts 2.4 KB

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