1
0

RT-N14U.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /dts-v1/;
  2. #include "mt7620n.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "asus,rt-n14u", "ralink,mt7620n-soc";
  7. model = "Asus RT-N14U";
  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. wan {
  17. label = "rt-n14u:blue:wan";
  18. gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
  19. };
  20. lan {
  21. label = "rt-n14u:blue:lan";
  22. gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
  23. };
  24. usb {
  25. label = "rt-n14u:blue:usb";
  26. gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
  27. trigger-sources = <&ohci_port1>, <&ehci_port1>;
  28. linux,default-trigger = "usbport";
  29. };
  30. led_power: power {
  31. label = "rt-n14u:blue:power";
  32. gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
  33. };
  34. air {
  35. label = "rt-n14u:blue:air";
  36. gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
  37. };
  38. };
  39. gpio-keys-polled {
  40. compatible = "gpio-keys-polled";
  41. poll-interval = <20>;
  42. reset {
  43. label = "reset";
  44. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  45. linux,code = <KEY_RESTART>;
  46. };
  47. wps {
  48. label = "wps";
  49. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  50. linux,code = <KEY_WPS_BUTTON>;
  51. };
  52. };
  53. };
  54. &gpio2 {
  55. status = "okay";
  56. };
  57. &gpio3 {
  58. status = "okay";
  59. };
  60. &spi0 {
  61. status = "okay";
  62. m25p80@0 {
  63. compatible = "jedec,spi-nor";
  64. reg = <0>;
  65. spi-max-frequency = <10000000>;
  66. partitions {
  67. compatible = "fixed-partitions";
  68. #address-cells = <1>;
  69. #size-cells = <1>;
  70. partition@0 {
  71. label = "u-boot";
  72. reg = <0x0 0x30000>;
  73. read-only;
  74. };
  75. partition@30000 {
  76. label = "u-boot-env";
  77. reg = <0x30000 0x10000>;
  78. read-only;
  79. };
  80. factory: partition@40000 {
  81. label = "factory";
  82. reg = <0x40000 0x10000>;
  83. read-only;
  84. };
  85. partition@50000 {
  86. label = "firmware";
  87. reg = <0x50000 0xfb0000>;
  88. };
  89. };
  90. };
  91. };
  92. &ehci {
  93. status = "okay";
  94. };
  95. &ohci {
  96. status = "okay";
  97. };
  98. &ethernet {
  99. mtd-mac-address = <&factory 0x4>;
  100. mediatek,portmap = "wllll";
  101. };
  102. &wmac {
  103. ralink,mtd-eeprom = <&factory 0>;
  104. };
  105. &pinctrl {
  106. state_default: pinctrl0 {
  107. default {
  108. ralink,group = "ephy", "wled", "i2c";
  109. ralink,function = "gpio";
  110. };
  111. };
  112. };