RT-N14U.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /dts-v1/;
  2. #include "mt7620n.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "asus,rt-n14u", "ralink,mt7620n-soc";
  6. model = "Asus RT-N14U";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. wan {
  10. label = "rt-n14u:blue:wan";
  11. gpios = <&gpio2 0 1>;
  12. };
  13. lan {
  14. label = "rt-n14u:blue:lan";
  15. gpios = <&gpio2 1 1>;
  16. };
  17. usb {
  18. label = "rt-n14u:blue:usb";
  19. gpios = <&gpio2 2 1>;
  20. };
  21. power {
  22. label = "rt-n14u:blue:power";
  23. gpios = <&gpio2 3 1>;
  24. };
  25. air {
  26. label = "rt-n14u:blue:air";
  27. gpios = <&gpio3 0 1>;
  28. };
  29. };
  30. gpio-keys-polled {
  31. compatible = "gpio-keys-polled";
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. poll-interval = <20>;
  35. reset {
  36. label = "reset";
  37. gpios = <&gpio0 1 1>;
  38. linux,code = <KEY_RESTART>;
  39. };
  40. wps {
  41. label = "wps";
  42. gpios = <&gpio0 2 1>;
  43. linux,code = <KEY_WPS_BUTTON>;
  44. };
  45. };
  46. };
  47. &gpio2 {
  48. status = "okay";
  49. };
  50. &gpio3 {
  51. status = "okay";
  52. };
  53. &spi0 {
  54. status = "okay";
  55. m25p80@0 {
  56. #address-cells = <1>;
  57. #size-cells = <1>;
  58. compatible = "jedec,spi-nor";
  59. reg = <0>;
  60. spi-max-frequency = <10000000>;
  61. partition@0 {
  62. label = "u-boot";
  63. reg = <0x0 0x30000>;
  64. read-only;
  65. };
  66. partition@30000 {
  67. label = "u-boot-env";
  68. reg = <0x30000 0x10000>;
  69. read-only;
  70. };
  71. factory: partition@40000 {
  72. label = "factory";
  73. reg = <0x40000 0x10000>;
  74. read-only;
  75. };
  76. partition@50000 {
  77. label = "firmware";
  78. reg = <0x50000 0xfb0000>;
  79. };
  80. };
  81. };
  82. &ehci {
  83. status = "okay";
  84. };
  85. &ohci {
  86. status = "okay";
  87. };
  88. &ethernet {
  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. default {
  98. ralink,group = "ephy", "wled", "i2c";
  99. ralink,function = "gpio";
  100. };
  101. };
  102. };