RP-N53.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. / {
  4. compatible = "asus,rp-n53", "ralink,mt7620a-soc";
  5. model = "Asus RP-N53";
  6. gpio-keys-polled {
  7. compatible = "gpio-keys-polled";
  8. #address-cells = <1>;
  9. #size-cells = <0>;
  10. poll-interval = <20>;
  11. touch {
  12. label = "touch";
  13. gpios = <&gpio1 0 1>;
  14. linux,code = <0x100>;
  15. };
  16. wps {
  17. label = "wps";
  18. gpios = <&gpio1 1 1>;
  19. linux,code = <0x100>;
  20. };
  21. reset {
  22. label = "reset";
  23. gpios = <&gpio1 2 1>;
  24. linux,code = <0x100>;
  25. };
  26. audio {
  27. label = "audio";
  28. gpios = <&gpio1 3 0>;
  29. linux,code = <0x101>;
  30. };
  31. };
  32. gpio-leds {
  33. compatible = "gpio-leds";
  34. backlight {
  35. label = "rp-n53:white:back";
  36. gpios = <&gpio1 4 1>;
  37. };
  38. wifi0 {
  39. label = "rp-n53:blue:5g3";
  40. gpios = <&gpio1 5 1>;
  41. };
  42. wifi1 {
  43. label = "rp-n53:blue:5g2";
  44. gpios = <&gpio1 6 1>;
  45. };
  46. wifi2 {
  47. label = "rp-n53:blue:5g1";
  48. gpios = <&gpio1 7 1>;
  49. };
  50. wifi3 {
  51. label = "rp-n53:blue:wifi";
  52. gpios = <&gpio1 8 1>;
  53. };
  54. wifi4 {
  55. label = "rp-n53:blue:2g1";
  56. gpios = <&gpio1 9 1>;
  57. };
  58. wifi5 {
  59. label = "rp-n53:blue:2g2";
  60. gpios = <&gpio1 10 1>;
  61. };
  62. wifi6 {
  63. label = "rp-n53:blue:2g3";
  64. gpios = <&gpio1 11 1>;
  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. #address-cells = <1>;
  83. #size-cells = <1>;
  84. compatible = "jedec,spi-nor";
  85. reg = <0>;
  86. linux,modalias = "m25p80";
  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. };