ipq807x: fix wrong define for LAN and WAN ess mask
[openwrt/staging/jow.git] / target / linux / qualcommax / files / arch / arm64 / boot / dts / qcom / ipq8074-wax630.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 /dts-v1/;
4
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>
11
12 / {
13 model = "Netgear WAX630";
14 compatible = "netgear,wax630", "qcom,ipq8074";
15
16 aliases {
17 serial0 = &blsp1_uart5;
18
19 ethernet0 = &dp6_syn;
20 ethernet1 = &dp4;
21 label-mac-device = &dp6_syn;
22
23 led-boot = &led_system_blue;
24 led-failsafe = &led_system_red;
25 led-running = &led_system_green;
26 led-upgrade = &led_system_blue;
27 };
28
29 chosen {
30 stdout-path = "serial0:115200n8";
31 bootargs-append = " root=/dev/ubiblock0_1";
32 };
33
34 keys {
35 compatible = "gpio-keys";
36
37 reset {
38 label = "reset";
39 gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
41 };
42 };
43
44 led-spi {
45 compatible = "spi-gpio";
46 #address-cells = <1>;
47 #size-cells = <0>;
48
49 sck-gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>;
50 mosi-gpios = <&tlmm 19 GPIO_ACTIVE_HIGH>;
51
52 led_gpio: led-gpio@0 {
53 compatible = "fairchild,74hc595";
54 reg = <0>;
55 gpio-controller;
56 #gpio-cells = <2>;
57 registers-number = <1>;
58 enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>;
59 spi-max-frequency = <1000000>;
60 };
61 };
62
63 leds {
64 compatible = "gpio-leds";
65
66 led_system_red: system-red {
67 label = "system:red";
68 gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
69 default-state = "off";
70 };
71
72 led_system_green: system-green {
73 label = "system:green";
74 gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
75 default-state = "off";
76 };
77
78 led_system_blue: system-blue {
79 label = "system:blue";
80 gpios = <&tlmm 21 GPIO_ACTIVE_LOW>;
81 default-state = "off";
82 };
83
84 lan1-green {
85 label = "lan1:green";
86 gpios = <&tlmm 26 GPIO_ACTIVE_LOW>;
87 default-state = "off";
88 };
89
90 lan1-orange {
91 label = "lan1:orange";
92 gpios = <&tlmm 27 GPIO_ACTIVE_LOW>;
93 default-state = "off";
94 };
95
96 lan2-green {
97 label = "lan2:green";
98 gpios = <&tlmm 57 GPIO_ACTIVE_LOW>;
99 default-state = "off";
100 };
101
102 lan2-orange {
103 label = "lan2:orange";
104 gpios = <&tlmm 60 GPIO_ACTIVE_LOW>;
105 default-state = "off";
106 };
107
108 2g-blue {
109 label = "wlan2g:blue";
110 gpios = <&tlmm 29 GPIO_ACTIVE_LOW>;
111 default-state = "off";
112 };
113
114 2g-green {
115 label = "wlan2g:green";
116 gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
117 default-state = "off";
118 };
119
120 5g-low-blue {
121 label = "wlan5g_low:blue";
122 gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
123 default-state = "off";
124 };
125
126 5g-low-green {
127 label = "wlan5g_low:green";
128 gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
129 default-state = "off";
130 };
131
132 5g-high-blue {
133 label = "wlan5g_high:blue";
134 gpios = <&tlmm 31 GPIO_ACTIVE_LOW>;
135 default-state = "off";
136 };
137
138 5g-high-green {
139 label = "wlan5g_high:green";
140 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
141 default-state = "off";
142 };
143
144 };
145 };
146
147 &edma {
148 status = "okay";
149 };
150
151 &switch {
152 status = "okay";
153
154 switch_lan_bmp = <ESS_PORT4>;
155 switch_wan_bmp = <ESS_PORT6>;
156 switch_mac_mode = <0x00>;
157 switch_mac_mode1 = <0xff>;
158 switch_mac_mode2 = <0x0d>;
159 bm_tick_mode = <0x00>;
160 tm_tick_mode = <0x00>;
161
162 qcom,port_phyinfo {
163 port@3 {
164 port_id = <4>;
165 phy_address = <3>;
166 };
167
168 port@5 {
169 port_id = <6>;
170 phy_address = <28>;
171 port_mac_sel = "QGMAC_PORT";
172 };
173 };
174 };
175
176 &tlmm {
177 mdio_pins: mdio-pins {
178 mdc {
179 pins = "gpio68";
180 function = "mdc";
181 drive-strength = <8>;
182 bias-pull-up;
183 };
184
185 mdio {
186 pins = "gpio69";
187 function = "mdio";
188 drive-strength = <8>;
189 bias-pull-up;
190 };
191 };
192 };
193
194 &mdio {
195 status = "okay";
196
197 pinctrl-0 = <&mdio_pins>;
198 pinctrl-names = "default";
199 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
200
201 qca8075: ethernet-phy@3 {
202 compatible = "ethernet-phy-ieee802.3-c22";
203 reg = <3>;
204 };
205
206 qca8081: ethernet-phy@28 {
207 compatible = "ethernet-phy-id004d.d101";
208 reg = <28>;
209 reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
210 };
211 };
212
213 &dp4 {
214 status = "okay";
215 phy-handle = <&qca8075>;
216 label = "lan2";
217 };
218
219 &dp6_syn {
220 status = "okay";
221 phy-handle = <&qca8081>;
222 label = "lan1";
223 };
224
225 &qpic_bam {
226 status = "okay";
227 };
228
229 &qpic_nand {
230 status = "okay";
231
232 nand@0 {
233 reg = <0>;
234 nand-ecc-strength = <4>;
235 nand-ecc-step-size = <512>;
236 nand-bus-width = <8>;
237
238 partitions {
239 compatible = "qcom,smem-part";
240 };
241 };
242 };
243
244 &blsp1_uart5 {
245 status = "okay";
246 };
247
248 &wifi {
249 status = "okay";
250
251 qcom,ath11k-calibration-variant = "Netgear-WAX630";
252 };