R6120.dts 2.4 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 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. keys {
  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. 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. wan {
  46. label = "r6120:green:wan";
  47. gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
  48. };
  49. wan_orange {
  50. label = "r6120:orange:wan";
  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. partitions {
  71. compatible = "fixed-partitions";
  72. #address-cells = <1>;
  73. #size-cells = <1>;
  74. partition@0 {
  75. label = "u-boot";
  76. reg = <0x0 0x40000>;
  77. read-only;
  78. };
  79. factory: partition@40000 {
  80. label = "factory";
  81. reg = <0x40000 0x20000>;
  82. read-only;
  83. };
  84. partition@60000 {
  85. label = "nvram";
  86. reg = <0x60000 0x30000>;
  87. read-only;
  88. };
  89. partition@90000 {
  90. compatible = "denx,uimage";
  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 = <&factory 0x4>;
  105. mediatek,mtd-eeprom = <&factory 0x0>;
  106. };
  107. &ethernet {
  108. mtd-mac-address = <&factory 0x4>;
  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 0x8000>;
  117. ieee80211-freq-limit = <5000000 6000000>;
  118. mtd-mac-address = <&factory 0x4>;
  119. mtd-mac-address-increment = <(2)>;
  120. };
  121. };