WIDORA-NEO.dtsi 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. #include "mt7628an.dtsi"
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "widora,neo", "mediatek,mt7628an-soc";
  6. aliases {
  7. led-boot = &led_wifi;
  8. led-failsafe = &led_wifi;
  9. led-running = &led_wifi;
  10. led-upgrade = &led_wifi;
  11. };
  12. chosen {
  13. bootargs = "console=ttyS0,115200";
  14. };
  15. memory@0 {
  16. device_type = "memory";
  17. reg = <0x0 0x8000000>;
  18. };
  19. gpio-leds {
  20. compatible = "gpio-leds";
  21. led_wifi: wifi {
  22. label = "widora:orange:wifi";
  23. gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>;
  24. default-state = "on";
  25. };
  26. };
  27. gpio-keys-polled {
  28. compatible = "gpio-keys-polled";
  29. poll-interval = <20>;
  30. wps {
  31. label = "reset";
  32. gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
  33. linux,code = <KEY_WPS_BUTTON>;
  34. };
  35. };
  36. wgpio: gpio-wifi {
  37. compatible = "mediatek,gpio-wifi";
  38. #address-cells = <1>;
  39. #size-cells = <0>;
  40. gpio-controller;
  41. #gpio-cells = <2>;
  42. };
  43. };
  44. &pinctrl {
  45. state_default: pinctrl0 {
  46. gpio {
  47. ralink,group = "gpio";
  48. ralink,function = "gpio";
  49. };
  50. perst {
  51. ralink,group = "perst";
  52. ralink,function = "gpio";
  53. };
  54. refclk {
  55. ralink,group = "refclk";
  56. ralink,function = "gpio";
  57. };
  58. i2s {
  59. ralink,group = "i2s";
  60. ralink,function = "gpio";
  61. };
  62. spis {
  63. ralink,group = "spis";
  64. ralink,function = "gpio";
  65. };
  66. wled_kn {
  67. ralink,group = "wled_kn";
  68. ralink,function = "gpio";
  69. };
  70. wled_an {
  71. ralink,group = "wled_an";
  72. ralink,function = "wled_an";
  73. };
  74. wdt {
  75. ralink,group = "wdt";
  76. ralink,function = "gpio";
  77. };
  78. };
  79. };
  80. &i2c {
  81. status = "okay";
  82. };
  83. &uart1 {
  84. status = "okay";
  85. };
  86. &uart2 {
  87. status = "okay";
  88. };
  89. &pwm {
  90. status = "okay";
  91. };
  92. &ethernet {
  93. mtd-mac-address = <&factory 0x28>;
  94. };
  95. &sdhci {
  96. status = "okay";
  97. mediatek,cd-low;
  98. };
  99. &wmac {
  100. status = "okay";
  101. };