qca9558_netgear_ex7300.dts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "qca955x.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. model = "Netgear EX7300";
  7. compatible = "netgear,ex7300", "qca,qca9558";
  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 18 GPIO_ACTIVE_HIGH>;
  20. mosi-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
  21. num-chipselects = <0>;
  22. led_gpio: led_gpio@0 {
  23. compatible = "nxp,74lvc594";
  24. reg = <0>;
  25. gpio-controller;
  26. #gpio-cells = <2>;
  27. registers-number = <1>;
  28. spi-max-frequency = <500000>;
  29. gpio_latch_bit {
  30. gpio-hog;
  31. gpios = <4 GPIO_ACTIVE_HIGH>;
  32. output-high;
  33. line-name = "gpio-latch-bit";
  34. };
  35. };
  36. };
  37. leds {
  38. compatible = "gpio-leds";
  39. led_power_green: power_green {
  40. label = "green:power";
  41. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  42. };
  43. led_power_amber: power_amber {
  44. label = "amber:power";
  45. gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
  46. };
  47. left_blue {
  48. label = "blue:left";
  49. gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
  50. };
  51. right_blue {
  52. label = "blue:right";
  53. gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
  54. };
  55. wps_green {
  56. label = "green:wps";
  57. gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
  58. };
  59. client_red {
  60. label = "red:client";
  61. gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
  62. };
  63. client_green {
  64. label = "green:client";
  65. gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
  66. };
  67. router_red {
  68. label = "red:router";
  69. gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
  70. };
  71. router_green {
  72. label = "green:router";
  73. gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
  74. };
  75. };
  76. keys {
  77. compatible = "gpio-keys";
  78. reset {
  79. label = "Reset button";
  80. linux,code = <KEY_RESTART>;
  81. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  82. debounce-interval = <60>;
  83. };
  84. wps {
  85. label = "WPS button";
  86. linux,code = <KEY_WPS_BUTTON>;
  87. gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
  88. debounce-interval = <60>;
  89. };
  90. extender_apmode {
  91. label = "EXTENDER/APMODE switch";
  92. gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
  93. linux,code = <BTN_0>;
  94. linux,input-type = <EV_SW>;
  95. debounce-interval = <60>;
  96. };
  97. };
  98. };
  99. &pcie0 {
  100. status = "okay";
  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. uboot: 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. };
  121. caldata: partition@50000 {
  122. label = "caldata";
  123. reg = <0x050000 0x010000>;
  124. read-only;
  125. };
  126. partition@60000 {
  127. label = "caldata-backup";
  128. reg = <0x060000 0x010000>;
  129. read-only;
  130. };
  131. partition@70000 {
  132. label = "config";
  133. reg = <0x070000 0x010000>;
  134. };
  135. partition@80000 {
  136. label = "pot";
  137. reg = <0x080000 0x010000>;
  138. };
  139. partition@90000 {
  140. label = "firmware";
  141. reg = <0x090000 0xf30000>;
  142. compatible = "denx,uimage";
  143. };
  144. partition@fc0000 {
  145. label = "language";
  146. reg = <0xfc0000 0x040000>;
  147. };
  148. };
  149. };
  150. };
  151. &wmac {
  152. status = "okay";
  153. mtd-cal-data = <&caldata 0x1000>;
  154. nvmem-cells = <&macaddr_caldata_6>;
  155. nvmem-cell-names = "mac-address";
  156. };
  157. &mdio0 {
  158. status = "okay";
  159. phy4: ethernet-phy@4 {
  160. reg = <4>;
  161. phy-mode = "rgmii";
  162. };
  163. };
  164. &eth0 {
  165. status = "okay";
  166. nvmem-cells = <&macaddr_caldata_0>;
  167. nvmem-cell-names = "mac-address";
  168. phy-handle = <&phy4>;
  169. phy-mode = "rgmii-rxid";
  170. pll-data = <0x86000000 0x80000101 0x80001313>;
  171. };
  172. &caldata {
  173. compatible = "nvmem-cells";
  174. #address-cells = <1>;
  175. #size-cells = <1>;
  176. macaddr_caldata_0: macaddr@0 {
  177. reg = <0x0 0x6>;
  178. };
  179. macaddr_caldata_6: macaddr@6 {
  180. reg = <0x6 0x6>;
  181. };
  182. };