1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca956x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 model = "Netgear EX7300 v2";
11 compatible = "netgear,ex7300-v2", "qca,qcn5500", "qca,qca9560";
14 led-boot = &led_power_green;
15 led-failsafe = &led_power_amber;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_amber;
18 label-mac-device = ð0;
22 compatible = "spi-gpio";
26 sck-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
27 mosi-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
28 num-chipselects = <0>;
30 led_gpio: led_gpio@0 {
31 compatible = "fairchild,74hc595";
35 registers-number = <1>;
36 spi-max-frequency = <500000>;
41 compatible = "gpio-leds";
43 led_power_green: power_green {
44 function = LED_FUNCTION_POWER;
45 color = <LED_COLOR_ID_GREEN>;
46 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
49 led_power_amber: power_amber {
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_AMBER>;
52 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
56 function = LED_FUNCTION_WPS;
57 color = <LED_COLOR_ID_GREEN>;
58 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
63 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
67 label = "green:router";
68 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
73 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
77 label = "green:client";
78 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
83 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
88 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
93 compatible = "gpio-keys";
96 label = "Reset button";
97 linux,code = <KEY_RESTART>;
98 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
99 debounce-interval = <60>;
103 label = "WPS button";
104 linux,code = <KEY_WPS_BUTTON>;
105 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
106 debounce-interval = <60>;
110 label = "EXTENDER/APMODE switch";
111 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
112 linux,code = <BTN_0>;
113 linux,input-type = <EV_SW>;
114 debounce-interval = <60>;
123 compatible = "qcom,ath10k";
126 nvmem-cells = <&macaddr_artmtd_c>, <&precal_art_5000>;
127 nvmem-cell-names = "mac-address", "pre-calibration";
135 compatible = "jedec,spi-nor";
137 spi-max-frequency = <25000000>;
140 compatible = "fixed-partitions";
141 #address-cells = <1>;
146 reg = <0x000000 0x040000>;
151 label = "u-boot-env";
152 reg = <0x040000 0x010000>;
158 reg = <0x050000 0x010000>;
163 reg = <0x060000 0x010000>;
169 reg = <0x70000 0xe30000>;
170 compatible = "denx,uimage";
175 reg = <0xea0000 0x100000>;
181 reg = <0xfa0000 0x40000>;
187 reg = <0xfe0000 0x10000>;
190 compatible = "fixed-layout";
191 #address-cells = <1>;
194 macaddr_artmtd_0: macaddr@0 {
198 macaddr_artmtd_6: macaddr@6 {
202 macaddr_artmtd_c: macaddr@c {
210 reg = <0xff0000 0x10000>;
214 compatible = "fixed-layout";
215 #address-cells = <1>;
218 cal_art_1000: cal@1000 {
219 reg = <0x1000 0x440>;
222 precal_art_5000: precal@5000 {
223 reg = <0x5000 0x2f20>;
233 /* Does not work due to lack of QCN5502 support in ath9k. */
236 nvmem-cells = <&macaddr_artmtd_6>, <&cal_art_1000>;
237 nvmem-cell-names = "mac-address", "calibration";
243 phy5: ethernet-phy@5 {
252 nvmem-cells = <&macaddr_artmtd_0>;
253 nvmem-cell-names = "mac-address";
255 phy-handle = <&phy5>;
258 pll-data = <0x03000000 0x00000101 0x00001313>;