RT-AC51U.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "asus,rt-ac51u", "ralink,mt7620a-soc";
  7. model = "Asus RT-AC51U";
  8. gpio-leds {
  9. compatible = "gpio-leds";
  10. power {
  11. label = "rt-ac51u:blue:power";
  12. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  13. };
  14. usb {
  15. label = "rt-ac51u:blue:usb";
  16. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  17. };
  18. wifi {
  19. label = "rt-ac51u:blue:wifi";
  20. gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
  21. };
  22. };
  23. gpio-keys-polled {
  24. compatible = "gpio-keys-polled";
  25. #address-cells = <1>;
  26. #size-cells = <0>;
  27. poll-interval = <20>;
  28. reset {
  29. label = "reset";
  30. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  31. linux,code = <KEY_RESTART>;
  32. };
  33. wps {
  34. label = "wps";
  35. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  36. linux,code = <KEY_WPS_BUTTON>;
  37. };
  38. };
  39. gpio_export {
  40. compatible = "gpio-export";
  41. #size-cells = <0>;
  42. enable-leds {
  43. gpio-export,name = "enable-leds";
  44. gpio-export,output = <1>;
  45. gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
  46. };
  47. };
  48. };
  49. &spi0 {
  50. status = "okay";
  51. m25p80@0 {
  52. #address-cells = <1>;
  53. #size-cells = <1>;
  54. compatible = "jedec,spi-nor";
  55. reg = <0>;
  56. spi-max-frequency = <10000000>;
  57. partition@0 {
  58. label = "u-boot";
  59. reg = <0x0 0x30000>;
  60. read-only;
  61. };
  62. partition@30000 {
  63. label = "u-boot-env";
  64. reg = <0x30000 0x10000>;
  65. read-only;
  66. };
  67. factory: partition@40000 {
  68. label = "factory";
  69. reg = <0x40000 0x10000>;
  70. read-only;
  71. };
  72. partition@50000 {
  73. label = "firmware";
  74. reg = <0x50000 0xfb0000>;
  75. };
  76. };
  77. };
  78. &ehci {
  79. status = "okay";
  80. };
  81. &ohci {
  82. status = "okay";
  83. };
  84. &gpio3 {
  85. status = "okay";
  86. };
  87. &ethernet {
  88. status = "okay";
  89. mtd-mac-address = <&factory 0x4>;
  90. mediatek,portmap = "wllll";
  91. };
  92. &wmac {
  93. ralink,mtd-eeprom = <&factory 0>;
  94. };
  95. &pinctrl {
  96. state_default: pinctrl0 {
  97. gpio {
  98. ralink,group = "i2c", "wled", "uartf";
  99. ralink,function = "gpio";
  100. };
  101. };
  102. };