R6220.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "netgear,r6220", "mediatek,mt7621-soc";
  7. model = "Netgear R6220";
  8. aliases {
  9. led-boot = &led_power;
  10. led-failsafe = &led_power;
  11. led-running = &led_power;
  12. led-upgrade = &led_power;
  13. };
  14. memory@0 {
  15. device_type = "memory";
  16. reg = <0x0 0x8000000>;
  17. };
  18. chosen {
  19. bootargs = "console=ttyS0,57600";
  20. };
  21. leds {
  22. compatible = "gpio-leds";
  23. led_power: power {
  24. label = "r6220:green:power";
  25. gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
  26. };
  27. usb {
  28. label = "r6220:green:usb";
  29. gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
  30. trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
  31. linux,default-trigger = "usbport";
  32. };
  33. internet {
  34. label = "r6220:green:wan";
  35. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  36. };
  37. wifi {
  38. label = "r6220:green:wifi";
  39. gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
  40. };
  41. wps {
  42. label = "r6220:green:wps";
  43. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  44. };
  45. };
  46. keys {
  47. compatible = "gpio-keys-polled";
  48. poll-interval = <20>;
  49. wps {
  50. label = "wps";
  51. gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
  52. linux,code = <KEY_WPS_BUTTON>;
  53. };
  54. wifi {
  55. label = "wifi";
  56. gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
  57. linux,code = <KEY_RFKILL>;
  58. };
  59. reset {
  60. label = "reset";
  61. gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
  62. linux,code = <KEY_RESTART>;
  63. };
  64. };
  65. gpio_export {
  66. compatible = "gpio-export";
  67. #size-cells = <0>;
  68. usbpower {
  69. gpio-export,name = "usbpower";
  70. gpio-export,output = <1>;
  71. gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
  72. };
  73. };
  74. };
  75. &nand {
  76. status = "okay";
  77. partitions {
  78. compatible = "fixed-partitions";
  79. #address-cells = <1>;
  80. #size-cells = <1>;
  81. partition@0 {
  82. label = "u-boot";
  83. reg = <0x0 0x100000>;
  84. read-only;
  85. };
  86. partition@100000 {
  87. label = "SC PID";
  88. reg = <0x100000 0x100000>;
  89. read-only;
  90. };
  91. partition@200000 {
  92. label = "kernel";
  93. reg = <0x200000 0x400000>;
  94. };
  95. partition@600000 {
  96. label = "ubi";
  97. reg = <0x600000 0x1c00000>;
  98. };
  99. factory: partition@2e00000 {
  100. label = "factory";
  101. reg = <0x2e00000 0x100000>;
  102. read-only;
  103. };
  104. partition@4200000 {
  105. label = "reserved";
  106. reg = <0x4200000 0x3c00000>;
  107. read-only;
  108. };
  109. };
  110. };
  111. &pcie {
  112. status = "okay";
  113. };
  114. &pcie0 {
  115. mt76@0,0 {
  116. reg = <0x0000 0 0 0 0>;
  117. mediatek,mtd-eeprom = <&factory 0x8000>;
  118. ieee80211-freq-limit = <5000000 6000000>;
  119. };
  120. };
  121. &pcie1 {
  122. mt76@0,0 {
  123. reg = <0x0000 0 0 0 0>;
  124. mediatek,mtd-eeprom = <&factory 0x0000>;
  125. ieee80211-freq-limit = <2400000 2500000>;
  126. };
  127. };
  128. &ethernet {
  129. mtd-mac-address = <&factory 0x00000004>;
  130. };
  131. &pinctrl {
  132. state_default: pinctrl0 {
  133. gpio {
  134. ralink,group = "uart3", "jtag";
  135. ralink,function = "gpio";
  136. };
  137. };
  138. };