1
0

RT-AC51U.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. aliases {
  9. led-boot = &led_power;
  10. led-failsafe = &led_power;
  11. led-running = &led_power;
  12. led-upgrade = &led_power;
  13. };
  14. gpio-leds {
  15. compatible = "gpio-leds";
  16. led_power: power {
  17. label = "rt-ac51u:blue:power";
  18. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  19. };
  20. usb {
  21. label = "rt-ac51u:blue:usb";
  22. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  23. trigger-sources = <&ohci_port1>, <&ehci_port1>;
  24. linux,default-trigger = "usbport";
  25. };
  26. wifi {
  27. label = "rt-ac51u:blue:wifi";
  28. gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
  29. };
  30. };
  31. gpio-keys-polled {
  32. compatible = "gpio-keys-polled";
  33. poll-interval = <20>;
  34. reset {
  35. label = "reset";
  36. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  37. linux,code = <KEY_RESTART>;
  38. };
  39. wps {
  40. label = "wps";
  41. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  42. linux,code = <KEY_WPS_BUTTON>;
  43. };
  44. };
  45. gpio_export {
  46. compatible = "gpio-export";
  47. #size-cells = <0>;
  48. enable-leds {
  49. gpio-export,name = "enable-leds";
  50. gpio-export,output = <1>;
  51. gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
  52. };
  53. };
  54. };
  55. &spi0 {
  56. status = "okay";
  57. m25p80@0 {
  58. compatible = "jedec,spi-nor";
  59. reg = <0>;
  60. spi-max-frequency = <10000000>;
  61. partitions {
  62. compatible = "fixed-partitions";
  63. #address-cells = <1>;
  64. #size-cells = <1>;
  65. partition@0 {
  66. label = "u-boot";
  67. reg = <0x0 0x30000>;
  68. read-only;
  69. };
  70. partition@30000 {
  71. label = "u-boot-env";
  72. reg = <0x30000 0x10000>;
  73. read-only;
  74. };
  75. factory: partition@40000 {
  76. label = "factory";
  77. reg = <0x40000 0x10000>;
  78. read-only;
  79. };
  80. partition@50000 {
  81. label = "firmware";
  82. reg = <0x50000 0xfb0000>;
  83. };
  84. };
  85. };
  86. };
  87. &ehci {
  88. status = "okay";
  89. };
  90. &ohci {
  91. status = "okay";
  92. };
  93. &gpio3 {
  94. status = "okay";
  95. };
  96. &ethernet {
  97. status = "okay";
  98. mtd-mac-address = <&factory 0x4>;
  99. mediatek,portmap = "wllll";
  100. };
  101. &wmac {
  102. ralink,mtd-eeprom = <&factory 0>;
  103. };
  104. &pinctrl {
  105. state_default: pinctrl0 {
  106. gpio {
  107. ralink,group = "i2c", "wled", "uartf";
  108. ralink,function = "gpio";
  109. };
  110. };
  111. };