1
0

R6120.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /dts-v1/;
  2. #include "mt7628an.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "netgear,r6120", "mediatek,mt7628an-soc";
  7. model = "Netgear AC1200 R6120";
  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 0x4000000>;
  17. };
  18. gpio-keys-polled {
  19. compatible = "gpio-keys-polled";
  20. poll-interval = <20>;
  21. reset {
  22. label = "reset";
  23. gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
  24. linux,code = <KEY_RESTART>;
  25. };
  26. };
  27. gpio-leds {
  28. compatible = "gpio-leds";
  29. lan {
  30. label = "r6120:green:lan";
  31. gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  32. };
  33. led_power: power {
  34. label = "r6120:green:power";
  35. gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
  36. };
  37. wlan {
  38. label = "r6120:green:wlan2g";
  39. gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
  40. };
  41. wlan_orange {
  42. label = "r6120:orange:wlan2g";
  43. gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
  44. };
  45. wlan5 {
  46. label = "r6120:green:wlan5g";
  47. gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
  48. };
  49. wlan5_orange {
  50. label = "r6120:orange:wlan5g";
  51. gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
  52. };
  53. };
  54. };
  55. &pinctrl {
  56. state_default: pinctrl0 {
  57. gpio {
  58. ralink,group = "p0led_an", "p1led_an", "p2led_an",
  59. "p3led_an", "p4led_an", "wdt", "wled_an";
  60. ralink,function = "gpio";
  61. };
  62. };
  63. };
  64. &spi0 {
  65. status = "okay";
  66. flash@0 {
  67. compatible = "jedec,spi-nor";
  68. reg = <0>;
  69. spi-max-frequency = <10000000>;
  70. m25p,chunked-io = <32>;
  71. partitions {
  72. compatible = "fixed-partitions";
  73. #address-cells = <1>;
  74. #size-cells = <1>;
  75. partition@0 {
  76. label = "u-boot";
  77. reg = <0x0 0x40000>;
  78. read-only;
  79. };
  80. factory: partition@40000 {
  81. label = "factory";
  82. reg = <0x40000 0x20000>;
  83. read-only;
  84. };
  85. nvram: partition@60000 {
  86. label = "nvram";
  87. reg = <0x60000 0x30000>;
  88. read-only;
  89. };
  90. partition@90000 {
  91. label = "firmware";
  92. reg = <0x90000 0xf60000>;
  93. };
  94. partition@ff0000 {
  95. label = "reserved";
  96. reg = <0xff0000 0x10000>;
  97. read-only;
  98. };
  99. };
  100. };
  101. };
  102. &wmac {
  103. status = "okay";
  104. mtd-mac-address = <&nvram 0x100b0>;
  105. mediatek,mtd-eeprom = <&factory 0x20000>;
  106. };
  107. &ethernet {
  108. mtd-mac-address = <&nvram 0x100b0>;
  109. };
  110. &pcie {
  111. status = "okay";
  112. };
  113. &pcie0 {
  114. wifi@0,0 {
  115. reg = <0x0000 0 0 0 0>;
  116. mediatek,mtd-eeprom = <&factory 0x28000>;
  117. ieee80211-freq-limit = <5000000 6000000>;
  118. mtd-mac-address = <&nvram 0x100b0>;
  119. mtd-mac-address-increment = <(2)>;
  120. };
  121. };