WIDORA-NEO.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /dts-v1/;
  2. #include "mt7628an.dtsi"
  3. / {
  4. compatible = "mediatek,widora-neo", "mediatek,mt7628an-soc";
  5. model = "Widora-NEO";
  6. chosen {
  7. bootargs = "console=ttyS0,115200";
  8. };
  9. memory@0 {
  10. device_type = "memory";
  11. reg = <0x0 0x8000000>;
  12. };
  13. gpio-leds {
  14. compatible = "gpio-leds";
  15. wifi {
  16. label = "widora:orange:wifi";
  17. gpios = <&wgpio 0 0>;
  18. default-state = "on";
  19. };
  20. };
  21. gpio-keys-polled {
  22. compatible = "gpio-keys-polled";
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. poll-interval = <20>;
  26. wps {
  27. label = "reset";
  28. gpios = <&gpio1 6 1>;
  29. linux,code = <0x211>;
  30. };
  31. };
  32. wgpio: gpio-wifi {
  33. compatible = "mediatek,gpio-wifi";
  34. #address-cells = <1>;
  35. #size-cells = <0>;
  36. gpio-controller;
  37. #gpio-cells = <2>;
  38. };
  39. };
  40. &pinctrl {
  41. state_default: pinctrl0 {
  42. gpio {
  43. ralink,group = "gpio";
  44. ralink,function = "gpio";
  45. };
  46. perst {
  47. ralink,group = "perst";
  48. ralink,function = "gpio";
  49. };
  50. refclk {
  51. ralink,group = "refclk";
  52. ralink,function = "gpio";
  53. };
  54. i2s {
  55. ralink,group = "i2s";
  56. ralink,function = "gpio";
  57. };
  58. spis {
  59. ralink,group = "spis";
  60. ralink,function = "gpio";
  61. };
  62. wled_kn {
  63. ralink,group = "wled_kn";
  64. ralink,function = "gpio";
  65. };
  66. wled_an {
  67. ralink,group = "wled_an";
  68. ralink,function = "wled_an";
  69. };
  70. wdt {
  71. ralink,group = "wdt";
  72. ralink,function = "gpio";
  73. };
  74. };
  75. };
  76. &spi0 {
  77. status = "okay";
  78. pinctrl-names = "default";
  79. pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
  80. m25p80@0 {
  81. #address-cells = <1>;
  82. #size-cells = <1>;
  83. compatible = "jedec,spi-nor";
  84. reg = <0>;
  85. linux,modalias = "m25p80", "w25q128";
  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. };