1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include "ipq8074.dtsi"
6 #include "ipq8074-hk-cpu.dtsi"
7 #include "ipq8074-ess.dtsi"
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/leds/common.h>
13 model = "Netgear WAX630";
14 compatible = "netgear,wax630", "qcom,ipq8074";
17 serial0 = &blsp1_uart5;
21 label-mac-device = &dp6_syn;
23 led-boot = &led_system_blue;
24 led-failsafe = &led_system_red;
25 led-running = &led_system_green;
26 led-upgrade = &led_system_blue;
30 stdout-path = "serial0:115200n8";
31 bootargs-append = " root=/dev/ubiblock0_1";
35 compatible = "gpio-keys";
39 gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
45 compatible = "spi-gpio";
49 sck-gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>;
50 mosi-gpios = <&tlmm 19 GPIO_ACTIVE_HIGH>;
52 led_gpio: led-gpio@0 {
53 compatible = "fairchild,74hc595";
57 registers-number = <1>;
58 enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>;
59 spi-max-frequency = <1000000>;
64 compatible = "gpio-leds";
66 led_system_red: system-red {
68 gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
69 default-state = "off";
72 led_system_green: system-green {
73 label = "system:green";
74 gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
75 default-state = "off";
78 led_system_blue: system-blue {
79 label = "system:blue";
80 gpios = <&tlmm 21 GPIO_ACTIVE_LOW>;
81 default-state = "off";
86 gpios = <&tlmm 26 GPIO_ACTIVE_LOW>;
87 default-state = "off";
91 label = "lan1:orange";
92 gpios = <&tlmm 27 GPIO_ACTIVE_LOW>;
93 default-state = "off";
98 gpios = <&tlmm 57 GPIO_ACTIVE_LOW>;
99 default-state = "off";
103 label = "lan2:orange";
104 gpios = <&tlmm 60 GPIO_ACTIVE_LOW>;
105 default-state = "off";
109 label = "wlan2g:blue";
110 gpios = <&tlmm 29 GPIO_ACTIVE_LOW>;
111 default-state = "off";
115 label = "wlan2g:green";
116 gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
117 default-state = "off";
121 label = "wlan5g_low:blue";
122 gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
123 default-state = "off";
127 label = "wlan5g_low:green";
128 gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
129 default-state = "off";
133 label = "wlan5g_high:blue";
134 gpios = <&tlmm 31 GPIO_ACTIVE_LOW>;
135 default-state = "off";
139 label = "wlan5g_high:green";
140 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
141 default-state = "off";
154 switch_cpu_bmp = <0x01>;
155 switch_lan_bmp = <0x3e>;
156 switch_wan_bmp = <0x40>;
157 switch_mac_mode = <0x00>;
158 switch_mac_mode1 = <0xff>;
159 switch_mac_mode2 = <0x0d>;
160 bm_tick_mode = <0x00>;
161 tm_tick_mode = <0x00>;
172 port_mac_sel = "QGMAC_PORT";
178 mdio_pins: mdio-pins {
182 drive-strength = <8>;
189 drive-strength = <8>;
198 pinctrl-0 = <&mdio_pins>;
199 pinctrl-names = "default";
200 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
202 qca8075: ethernet-phy@3 {
203 compatible = "ethernet-phy-ieee802.3-c22";
207 qca8081: ethernet-phy@28 {
208 compatible = "ethernet-phy-id004d.d101";
210 reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
216 phy-handle = <&qca8075>;
222 phy-handle = <&qca8081>;
235 nand-ecc-strength = <4>;
236 nand-ecc-step-size = <512>;
237 nand-bus-width = <8>;
240 compatible = "qcom,smem-part";
252 qcom,ath11k-calibration-variant = "Netgear-WAX630";