1
0

RP-N53.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "asus,rp-n53", "ralink,mt7620a-soc";
  7. model = "Asus RP-N53";
  8. gpio-keys-polled {
  9. compatible = "gpio-keys-polled";
  10. poll-interval = <20>;
  11. touch {
  12. label = "touch";
  13. gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
  14. linux,code = <BTN_0>;
  15. };
  16. wps {
  17. label = "wps";
  18. gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
  19. linux,code = <BTN_0>;
  20. };
  21. reset {
  22. label = "reset";
  23. gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
  24. linux,code = <BTN_0>;
  25. };
  26. audio {
  27. label = "audio";
  28. gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
  29. linux,code = <BTN_1>;
  30. };
  31. };
  32. gpio-leds {
  33. compatible = "gpio-leds";
  34. backlight {
  35. label = "rp-n53:white:back";
  36. gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
  37. };
  38. wifi0 {
  39. label = "rp-n53:blue:5g3";
  40. gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
  41. };
  42. wifi1 {
  43. label = "rp-n53:blue:5g2";
  44. gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
  45. };
  46. wifi2 {
  47. label = "rp-n53:blue:5g1";
  48. gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
  49. };
  50. wifi3 {
  51. label = "rp-n53:blue:wifi";
  52. gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
  53. };
  54. wifi4 {
  55. label = "rp-n53:blue:2g1";
  56. gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
  57. };
  58. wifi5 {
  59. label = "rp-n53:blue:2g2";
  60. gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
  61. };
  62. wifi6 {
  63. label = "rp-n53:blue:2g3";
  64. gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
  65. };
  66. };
  67. };
  68. &gpio1 {
  69. status = "okay";
  70. };
  71. &i2c {
  72. status = "okay";
  73. };
  74. &i2s {
  75. status = "okay";
  76. pinctrl-names = "default";
  77. pinctrl-0 = <&pcm_i2s_pins>;
  78. };
  79. &spi0 {
  80. status = "okay";
  81. m25p80@0 {
  82. compatible = "jedec,spi-nor";
  83. reg = <0>;
  84. spi-max-frequency = <10000000>;
  85. partitions {
  86. compatible = "fixed-partitions";
  87. #address-cells = <1>;
  88. #size-cells = <1>;
  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. };
  111. &pcm {
  112. status = "okay";
  113. };
  114. &gdma {
  115. status = "okay";
  116. };
  117. &wmac {
  118. ralink,mtd-eeprom = <&factory 0>;
  119. };
  120. &pinctrl {
  121. state_default: pinctrl0 {
  122. gpio {
  123. ralink,group = "mdio", "rgmii1";
  124. ralink,function = "gpio";
  125. };
  126. };
  127. };
  128. &gsw {
  129. mediatek,port4 = "ephy";
  130. pinctrl-names = "default";
  131. pinctrl-0 = <&ephy_pins>;
  132. };
  133. &pcie {
  134. status = "okay";
  135. };
  136. &pcie0 {
  137. wifi@0,0 {
  138. compatible = "pci1814,5592";
  139. reg = <0x0000 0 0 0 0>;
  140. ralink,2ghz = <0>;
  141. ralink,mtd-eeprom = <&factory 0x8000>;
  142. };
  143. };