qcn5502_netgear_ex7300-v2.dts 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "qca956x.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. model = "Netgear EX7300 v2";
  7. compatible = "netgear,ex7300-v2", "qca,qcn5500", "qca,qca9560";
  8. aliases {
  9. led-boot = &led_power_green;
  10. led-failsafe = &led_power_amber;
  11. led-running = &led_power_green;
  12. led-upgrade = &led_power_amber;
  13. label-mac-device = &eth0;
  14. };
  15. led_spi {
  16. compatible = "spi-gpio";
  17. #address-cells = <1>;
  18. #size-cells = <0>;
  19. sck-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
  20. mosi-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
  21. num-chipselects = <0>;
  22. led_gpio: led_gpio@0 {
  23. compatible = "fairchild,74hc595";
  24. reg = <0>;
  25. gpio-controller;
  26. #gpio-cells = <2>;
  27. registers-number = <1>;
  28. spi-max-frequency = <500000>;
  29. };
  30. };
  31. leds {
  32. compatible = "gpio-leds";
  33. led_power_green: power_green {
  34. label = "green:power";
  35. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  36. };
  37. led_power_amber: power_amber {
  38. label = "amber:power";
  39. gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
  40. };
  41. wps_green {
  42. label = "green:wps";
  43. gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
  44. };
  45. router_red {
  46. label = "red:router";
  47. gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
  48. };
  49. router_green {
  50. label = "green:router";
  51. gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
  52. };
  53. client_red {
  54. label = "red:client";
  55. gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
  56. };
  57. client_green {
  58. label = "green:client";
  59. gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
  60. };
  61. left_blue {
  62. label = "blue:left";
  63. gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
  64. };
  65. right_blue {
  66. label = "blue:right";
  67. gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
  68. };
  69. };
  70. keys {
  71. compatible = "gpio-keys";
  72. reset {
  73. label = "Reset button";
  74. linux,code = <KEY_RESTART>;
  75. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  76. debounce-interval = <60>;
  77. };
  78. wps {
  79. label = "WPS button";
  80. linux,code = <KEY_WPS_BUTTON>;
  81. gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
  82. debounce-interval = <60>;
  83. };
  84. extender_apmode {
  85. label = "EXTENDER/APMODE switch";
  86. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  87. linux,code = <BTN_0>;
  88. linux,input-type = <EV_SW>;
  89. debounce-interval = <60>;
  90. };
  91. };
  92. };
  93. &pcie {
  94. status = "okay";
  95. wifi@0,0 {
  96. compatible = "qcom,ath10k";
  97. reg = <0 0 0 0 0>;
  98. nvmem-cells = <&macaddr_artmtd_c>, <&precal_art_5000>;
  99. nvmem-cell-names = "mac-address", "pre-calibration";
  100. };
  101. };
  102. &spi {
  103. status = "okay";
  104. flash@0 {
  105. compatible = "jedec,spi-nor";
  106. reg = <0>;
  107. spi-max-frequency = <25000000>;
  108. partitions {
  109. compatible = "fixed-partitions";
  110. #address-cells = <1>;
  111. #size-cells = <1>;
  112. partition@0 {
  113. label = "u-boot";
  114. reg = <0x000000 0x040000>;
  115. read-only;
  116. };
  117. partition@40000 {
  118. label = "u-boot-env";
  119. reg = <0x040000 0x010000>;
  120. read-only;
  121. };
  122. partition@50000 {
  123. label = "config";
  124. reg = <0x050000 0x010000>;
  125. };
  126. partition@60000 {
  127. label = "pot";
  128. reg = <0x060000 0x010000>;
  129. read-only;
  130. };
  131. partition@70000 {
  132. label = "firmware";
  133. reg = <0x70000 0xe30000>;
  134. compatible = "denx,uimage";
  135. };
  136. partition@ea0000 {
  137. label = "rae";
  138. reg = <0xea0000 0x100000>;
  139. read-only;
  140. };
  141. partition@fa0000 {
  142. label = "oopsdump";
  143. reg = <0xfa0000 0x40000>;
  144. read-only;
  145. };
  146. partition@fe0000 {
  147. label = "artmtd";
  148. reg = <0xfe0000 0x10000>;
  149. nvmem-layout {
  150. compatible = "fixed-layout";
  151. #address-cells = <1>;
  152. #size-cells = <1>;
  153. macaddr_artmtd_0: macaddr@0 {
  154. reg = <0x0 0x6>;
  155. };
  156. macaddr_artmtd_6: macaddr@6 {
  157. reg = <0x6 0x6>;
  158. };
  159. macaddr_artmtd_c: macaddr@c {
  160. reg = <0xc 0x6>;
  161. };
  162. };
  163. };
  164. partition@ff0000 {
  165. label = "art";
  166. reg = <0xff0000 0x10000>;
  167. read-only;
  168. nvmem-layout {
  169. compatible = "fixed-layout";
  170. #address-cells = <1>;
  171. #size-cells = <1>;
  172. cal_art_1000: cal@1000 {
  173. reg = <0x1000 0x440>;
  174. };
  175. precal_art_5000: precal@5000 {
  176. reg = <0x5000 0x2f20>;
  177. };
  178. };
  179. };
  180. };
  181. };
  182. };
  183. &wmac {
  184. /* Does not work due to lack of QCN5502 support in ath9k. */
  185. status = "disabled";
  186. nvmem-cells = <&macaddr_artmtd_6>, <&cal_art_1000>;
  187. nvmem-cell-names = "mac-address", "calibration";
  188. };
  189. &mdio0 {
  190. status = "okay";
  191. phy5: ethernet-phy@5 {
  192. reg = <5>;
  193. phy-mode = "sgmii";
  194. };
  195. };
  196. &eth0 {
  197. status = "okay";
  198. nvmem-cells = <&macaddr_artmtd_0>;
  199. nvmem-cell-names = "mac-address";
  200. phy-handle = <&phy5>;
  201. phy-mode = "sgmii";
  202. pll-data = <0x03000000 0x00000101 0x00001313>;
  203. };