RT-N14U.dts 1.7 KB

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