RT-N14U.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. linux,modalias = "m25p80", "w25q128";
  61. spi-max-frequency = <10000000>;
  62. partition@0 {
  63. label = "u-boot";
  64. reg = <0x0 0x30000>;
  65. read-only;
  66. };
  67. partition@30000 {
  68. label = "u-boot-env";
  69. reg = <0x30000 0x10000>;
  70. read-only;
  71. };
  72. factory: partition@40000 {
  73. label = "factory";
  74. reg = <0x40000 0x10000>;
  75. read-only;
  76. };
  77. partition@50000 {
  78. label = "firmware";
  79. reg = <0x50000 0xfb0000>;
  80. };
  81. };
  82. };
  83. &ehci {
  84. status = "okay";
  85. };
  86. &ohci {
  87. status = "okay";
  88. };
  89. &ethernet {
  90. mtd-mac-address = <&factory 0x4>;
  91. mediatek,portmap = "wllll";
  92. };
  93. &wmac {
  94. ralink,mtd-eeprom = <&factory 0>;
  95. };
  96. &pinctrl {
  97. state_default: pinctrl0 {
  98. default {
  99. ralink,group = "ephy", "wled", "i2c";
  100. ralink,function = "gpio";
  101. };
  102. };
  103. };