ArcherC50.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. / {
  4. compatible = "ralink,mt7620a-soc";
  5. model = "TP-Link Archer C50";
  6. chosen {
  7. bootargs = "console=ttyS0,115200";
  8. };
  9. gpio-leds {
  10. compatible = "gpio-leds";
  11. lan {
  12. label = "tp-link:blue:lan";
  13. gpios = <&gpio0 1 1>;
  14. };
  15. power {
  16. label = "tp-link:blue:power";
  17. gpios = <&gpio0 7 0>;
  18. };
  19. usb {
  20. label = "tp-link:blue:usb";
  21. gpios = <&gpio0 9 1>;
  22. };
  23. wlan5g {
  24. label = "tp-link:blue:wlan5g";
  25. gpios = <&gpio0 11 1>;
  26. };
  27. wlan2g {
  28. label = "tp-link:blue:wlan2g";
  29. gpios = <&gpio3 0 1>;
  30. };
  31. };
  32. gpio-keys-polled {
  33. compatible = "gpio-keys-polled";
  34. #address-cells = <1>;
  35. #size-cells = <0>;
  36. poll-interval = <20>;
  37. reset {
  38. label = "reset";
  39. gpios = <&gpio0 13 1>;
  40. linux,code = <0x198>;
  41. };
  42. rfkill {
  43. label = "rfkill";
  44. gpios = <&gpio0 2 1>;
  45. linux,code = <0xf7>;
  46. }; };
  47. };
  48. &gpio2 {
  49. status = "okay";
  50. };
  51. &gpio3 {
  52. status = "okay";
  53. };
  54. &spi0 {
  55. status = "okay";
  56. m25p80@0 {
  57. #address-cells = <1>;
  58. #size-cells = <1>;
  59. compatible = "jedec,spi-nor";
  60. reg = <0>;
  61. linux,modalias = "m25p80", "mx25l6405d";
  62. spi-max-frequency = <10000000>;
  63. partition@0 {
  64. label = "u-boot";
  65. reg = <0x0 0x20000>;
  66. read-only;
  67. };
  68. partition@20000 {
  69. label = "firmware";
  70. reg = <0x20000 0x7a0000>;
  71. };
  72. partition@7c0000 {
  73. label = "config";
  74. reg = <0x7c0000 0x10000>;
  75. };
  76. rom: partition@7d0000 {
  77. label = "rom";
  78. reg = <0x7d0000 0x10000>;
  79. };
  80. partition@7e0000 {
  81. label = "romfile";
  82. reg = <0x7e0000 0x10000>;
  83. };
  84. radio: partition@7f0000 {
  85. label = "radio";
  86. reg = <0x7f0000 0x10000>;
  87. };
  88. };
  89. };
  90. &pinctrl {
  91. state_default: pinctrl0 {
  92. gpio {
  93. ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
  94. ralink,function = "gpio";
  95. };
  96. };
  97. };
  98. &ethernet {
  99. pinctrl-names = "default";
  100. pinctrl-0 = <&ephy_pins>;
  101. mtd-mac-address = <&rom 0xf100>;
  102. mediatek,portmap = "wllll";
  103. };
  104. &ehci {
  105. status = "okay";
  106. };
  107. &ohci {
  108. status = "okay";
  109. };
  110. &gsw {
  111. mediatek,port4 = "ephy";
  112. };
  113. &wmac {
  114. ralink,mtd-eeprom = <&radio 0>;
  115. };
  116. &pcie {
  117. status = "okay";
  118. pcie-bridge {
  119. mt76@0,0 {
  120. reg = <0x0000 0 0 0 0>;
  121. device_type = "pci";
  122. mediatek,mtd-eeprom = <&radio 32768>;
  123. mediatek,2ghz = <0>;
  124. };
  125. };
  126. };