R6350.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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,r6350", "mediatek,mt7621-soc";
  7. model = "Netgear R6350";
  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. gpio-leds {
  22. compatible = "gpio-leds";
  23. led_power: power {
  24. label = "r6350:green:power";
  25. gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
  26. };
  27. usb {
  28. label = "r6350: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 = "r6350:green:wan";
  35. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  36. };
  37. wifi {
  38. label = "r6350:green:wifi";
  39. gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
  40. };
  41. };
  42. gpio-keys-polled {
  43. compatible = "gpio-keys-polled";
  44. poll-interval = <20>;
  45. wps {
  46. label = "wps";
  47. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  48. linux,code = <KEY_WPS_BUTTON>;
  49. };
  50. reset {
  51. label = "reset";
  52. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  53. linux,code = <KEY_RESTART>;
  54. };
  55. };
  56. gpio_export {
  57. compatible = "gpio-export";
  58. #size-cells = <0>;
  59. usbpower {
  60. gpio-export,name = "usbpower";
  61. gpio-export,output = <1>;
  62. gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
  63. };
  64. };
  65. };
  66. &nand {
  67. status = "okay";
  68. partitions {
  69. compatible = "fixed-partitions";
  70. #address-cells = <1>;
  71. #size-cells = <1>;
  72. partition@0 {
  73. label = "u-boot";
  74. reg = <0x0 0x100000>;
  75. read-only;
  76. };
  77. partition@100000 {
  78. label = "SC PART_MAP";
  79. reg = <0x100000 0x100000>;
  80. read-only;
  81. };
  82. partition@200000 {
  83. label = "kernel";
  84. reg = <0x200000 0x400000>;
  85. };
  86. partition@600000 {
  87. label = "ubi";
  88. reg = <0x600000 0x2800000>;
  89. };
  90. partition@2e00000 {
  91. label = "reserved0";
  92. reg = <0x2e00000 0x1800000>;
  93. read-only;
  94. };
  95. factory: partition@4600000 {
  96. label = "factory";
  97. reg = <0x4600000 0x200000>;
  98. read-only;
  99. };
  100. partition@4800000 {
  101. label = "reserved1";
  102. reg = <0x4800000 0x3800000>;
  103. read-only;
  104. };
  105. };
  106. };
  107. &pcie {
  108. status = "okay";
  109. };
  110. &pcie1 {
  111. wifi@0,0 {
  112. reg = <0x0 0 0 0 0>;
  113. mediatek,mtd-eeprom = <&factory 0x0>;
  114. ieee80211-freq-limit = <2400000 2500000>;
  115. };
  116. };
  117. &ethernet {
  118. mtd-mac-address = <&factory 0x4>;
  119. };
  120. &pinctrl {
  121. state_default: pinctrl0 {
  122. gpio {
  123. ralink,group = "uart3", "uart2", "jtag", "wdt";
  124. ralink,function = "gpio";
  125. };
  126. };
  127. };