RP-N53.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. spi-max-frequency = <10000000>;
  88. partition@0 {
  89. label = "u-boot";
  90. reg = <0x0 0x30000>;
  91. read-only;
  92. };
  93. partition@30000 {
  94. label = "u-boot-env";
  95. reg = <0x30000 0x10000>;
  96. read-only;
  97. };
  98. factory: partition@40000 {
  99. label = "factory";
  100. reg = <0x40000 0x10000>;
  101. read-only;
  102. };
  103. partition@50000 {
  104. label = "firmware";
  105. reg = <0x50000 0x7b0000>;
  106. };
  107. };
  108. };
  109. &pcm {
  110. status = "okay";
  111. };
  112. &gdma {
  113. status = "okay";
  114. };
  115. &wmac {
  116. ralink,mtd-eeprom = <&factory 0>;
  117. };
  118. &pinctrl {
  119. state_default: pinctrl0 {
  120. gpio {
  121. ralink,group = "mdio", "rgmii1";
  122. ralink,function = "gpio";
  123. };
  124. };
  125. };
  126. &gsw {
  127. mediatek,port4 = "ephy";
  128. pinctrl-names = "default";
  129. pinctrl-0 = <&ephy_pins>;
  130. };
  131. &pcie {
  132. status = "okay";
  133. pcie-bridge {
  134. wifi@1814,5592 {
  135. compatible = "pci1814,5592";
  136. reg = <0x0000 0 0 0 0>;
  137. ralink,2ghz = <0>;
  138. ralink,mtd-eeprom = <&factory 0x8000>;
  139. };
  140. };
  141. };