2
0

RP-N53.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "asus,rp-n53", "ralink,mt7620a-soc";
  6. model = "Asus RP-N53";
  7. gpio-keys-polled {
  8. compatible = "gpio-keys-polled";
  9. #address-cells = <1>;
  10. #size-cells = <0>;
  11. poll-interval = <20>;
  12. touch {
  13. label = "touch";
  14. gpios = <&gpio1 0 1>;
  15. linux,code = <BTN_0>;
  16. };
  17. wps {
  18. label = "wps";
  19. gpios = <&gpio1 1 1>;
  20. linux,code = <BTN_0>;
  21. };
  22. reset {
  23. label = "reset";
  24. gpios = <&gpio1 2 1>;
  25. linux,code = <BTN_0>;
  26. };
  27. audio {
  28. label = "audio";
  29. gpios = <&gpio1 3 0>;
  30. linux,code = <BTN_1>;
  31. };
  32. };
  33. gpio-leds {
  34. compatible = "gpio-leds";
  35. backlight {
  36. label = "rp-n53:white:back";
  37. gpios = <&gpio1 4 1>;
  38. };
  39. wifi0 {
  40. label = "rp-n53:blue:5g3";
  41. gpios = <&gpio1 5 1>;
  42. };
  43. wifi1 {
  44. label = "rp-n53:blue:5g2";
  45. gpios = <&gpio1 6 1>;
  46. };
  47. wifi2 {
  48. label = "rp-n53:blue:5g1";
  49. gpios = <&gpio1 7 1>;
  50. };
  51. wifi3 {
  52. label = "rp-n53:blue:wifi";
  53. gpios = <&gpio1 8 1>;
  54. };
  55. wifi4 {
  56. label = "rp-n53:blue:2g1";
  57. gpios = <&gpio1 9 1>;
  58. };
  59. wifi5 {
  60. label = "rp-n53:blue:2g2";
  61. gpios = <&gpio1 10 1>;
  62. };
  63. wifi6 {
  64. label = "rp-n53:blue:2g3";
  65. gpios = <&gpio1 11 1>;
  66. };
  67. };
  68. };
  69. &gpio1 {
  70. status = "okay";
  71. };
  72. &i2c {
  73. status = "okay";
  74. };
  75. &i2s {
  76. status = "okay";
  77. pinctrl-names = "default";
  78. pinctrl-0 = <&pcm_i2s_pins>;
  79. };
  80. &spi0 {
  81. status = "okay";
  82. m25p80@0 {
  83. #address-cells = <1>;
  84. #size-cells = <1>;
  85. compatible = "jedec,spi-nor";
  86. reg = <0>;
  87. linux,modalias = "m25p80";
  88. spi-max-frequency = <10000000>;
  89. partition@0 {
  90. label = "u-boot";
  91. reg = <0x0 0x30000>;
  92. read-only;
  93. };
  94. partition@30000 {
  95. label = "u-boot-env";
  96. reg = <0x30000 0x10000>;
  97. read-only;
  98. };
  99. factory: partition@40000 {
  100. label = "factory";
  101. reg = <0x40000 0x10000>;
  102. read-only;
  103. };
  104. partition@50000 {
  105. label = "firmware";
  106. reg = <0x50000 0x7b0000>;
  107. };
  108. };
  109. };
  110. &pcm {
  111. status = "okay";
  112. };
  113. &gdma {
  114. status = "okay";
  115. };
  116. &wmac {
  117. ralink,mtd-eeprom = <&factory 0>;
  118. };
  119. &pinctrl {
  120. state_default: pinctrl0 {
  121. gpio {
  122. ralink,group = "mdio", "rgmii1";
  123. ralink,function = "gpio";
  124. };
  125. };
  126. };
  127. &gsw {
  128. mediatek,port4 = "ephy";
  129. pinctrl-names = "default";
  130. pinctrl-0 = <&ephy_pins>;
  131. };
  132. &pcie {
  133. status = "okay";
  134. };