RT-N14U.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. gpio-leds {
  9. compatible = "gpio-leds";
  10. wan {
  11. label = "rt-n14u:blue:wan";
  12. gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
  13. };
  14. lan {
  15. label = "rt-n14u:blue:lan";
  16. gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
  17. };
  18. usb {
  19. label = "rt-n14u:blue:usb";
  20. gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
  21. };
  22. power {
  23. label = "rt-n14u:blue:power";
  24. gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
  25. };
  26. air {
  27. label = "rt-n14u:blue:air";
  28. gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
  29. };
  30. };
  31. gpio-keys-polled {
  32. compatible = "gpio-keys-polled";
  33. #address-cells = <1>;
  34. #size-cells = <0>;
  35. poll-interval = <20>;
  36. reset {
  37. label = "reset";
  38. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  39. linux,code = <KEY_RESTART>;
  40. };
  41. wps {
  42. label = "wps";
  43. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  44. linux,code = <KEY_WPS_BUTTON>;
  45. };
  46. };
  47. };
  48. &gpio2 {
  49. status = "okay";
  50. };
  51. &gpio3 {
  52. status = "okay";
  53. };
  54. &spi0 {
  55. status = "okay";
  56. m25p80@0 {
  57. #address-cells = <1>;
  58. #size-cells = <1>;
  59. compatible = "jedec,spi-nor";
  60. reg = <0>;
  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. };