ar7161_netgear_wndr3800.dts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include "ar7100.dtsi"
  6. / {
  7. compatible = "netgear,wndr3800", "qca,ar7161";
  8. model = "Netgear WNDR3800";
  9. memory@0 {
  10. device_type = "memory";
  11. reg = <0x0 0x8000000>;
  12. };
  13. extosc: ref {
  14. compatible = "fixed-clock";
  15. #clock-cells = <0>;
  16. clock-output-names = "ref";
  17. clock-frequency = <40000000>;
  18. };
  19. reset-leds {
  20. compatible = "reset-leds";
  21. wps {
  22. label = "netgear:green:usb";
  23. resets = <&rst 12>;
  24. };
  25. };
  26. gpio-leds {
  27. compatible = "gpio-leds";
  28. wps {
  29. label = "netgear:orange:wps";
  30. gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
  31. default-state = "off";
  32. };
  33. power_green {
  34. label = "netgear:green:power";
  35. gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
  36. default-state = "off";
  37. };
  38. power_orange {
  39. label = "netgear:orange:power";
  40. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  41. default-state = "off";
  42. };
  43. wps_green {
  44. label = "netgear:green:wps";
  45. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  46. default-state = "off";
  47. };
  48. wan_green {
  49. label = "netgear:green:wan";
  50. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  51. default-state = "off";
  52. };
  53. };
  54. gpio-keys-polled {
  55. compatible = "gpio-keys-polled";
  56. #address-cells = <1>;
  57. #size-cells = <0>;
  58. poll-interval = <100>;
  59. button@0 {
  60. label = "wps";
  61. linux,code = <KEY_WPS_BUTTON>;
  62. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  63. };
  64. button@1 {
  65. label = "reset";
  66. linux,code = <KEY_RESTART>;
  67. gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
  68. };
  69. button@2 {
  70. label = "wifi";
  71. linux,code = <BTN_2>;
  72. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  73. };
  74. };
  75. rtl8366s {
  76. compatible = "realtek,rtl8366s";
  77. gpio-sda = <&gpio 5 GPIO_ACTIVE_HIGH>;
  78. gpio-sck = <&gpio 7 GPIO_ACTIVE_HIGH>;
  79. mdio-bus {
  80. status = "okay";
  81. phy-mask = <0x10>;
  82. phy4: ethernet-phy@4 {
  83. reg = <4>;
  84. phy-mode = "rgmii";
  85. };
  86. };
  87. };
  88. };
  89. &usb_phy {
  90. status = "okay";
  91. };
  92. &usb1 {
  93. status = "okay";
  94. };
  95. &usb2 {
  96. status = "okay";
  97. };
  98. &pcie0 {
  99. status = "okay";
  100. };
  101. &uart {
  102. status = "okay";
  103. };
  104. &spi {
  105. status = "okay";
  106. num-cs = <1>;
  107. flash@0 {
  108. #address-cells = <1>;
  109. #size-cells = <1>;
  110. compatible = "mx25l12805d";
  111. reg = <0>;
  112. spi-max-frequency = <25000000>;
  113. partition@0 {
  114. label = "u-boot";
  115. reg = <0x000000 0x050000>;
  116. read-only;
  117. };
  118. partition@1 {
  119. label = "u-boot-env";
  120. reg = <0x050000 0x020000>;
  121. };
  122. partition@2 {
  123. label = "firmware";
  124. reg = <0x70000 0xf80000>;
  125. };
  126. partition@3 {
  127. label = "art";
  128. reg = <0xff0000 0x010000>;
  129. read-only;
  130. };
  131. };
  132. };
  133. &eth0 {
  134. status = "okay";
  135. pll-data = <0x11110000 0x00001099 0x00991099>;
  136. fixed-link {
  137. speed = <1000>;
  138. full-duplex;
  139. };
  140. };
  141. &eth1 {
  142. status = "okay";
  143. pll-data = <0x11110000 0x00001099 0x00991099>;
  144. resets = <&rst 13>;
  145. reset-names = "mac";
  146. phy-handle = <&phy4>;
  147. };