dnsmasq: rework network interface ignore
[openwrt/staging/jow.git] / target / linux / qualcommax / files / arch / arm64 / boot / dts / qcom / ipq8072-dl-wrx36.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2022, Robert Marko <robimarko@gmail.com> */
3
4 /dts-v1/;
5
6 #include "ipq8074.dtsi"
7 #include "ipq8074-hk-cpu.dtsi"
8 #include "ipq8074-ess.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
12
13 / {
14 model = "Dynalink DL-WRX36";
15 compatible = "dynalink,dl-wrx36", "qcom,ipq8074";
16
17 aliases {
18 led-boot = &led_system_red;
19 led-failsafe = &led_system_red;
20 led-running = &led_system_blue;
21 led-upgrade = &led_system_red;
22 serial0 = &blsp1_uart5;
23 /* Aliases as required by u-boot to patch MAC addresses */
24 ethernet0 = &dp6_syn;
25 ethernet1 = &dp4;
26 ethernet2 = &dp3;
27 ethernet3 = &dp2;
28 ethernet4 = &dp1;
29 label-mac-device = &dp6_syn;
30 };
31
32 chosen {
33 stdout-path = "serial0:115200n8";
34 bootargs-append = " root=/dev/ubiblock0_1";
35 };
36
37 keys {
38 compatible = "gpio-keys";
39
40 reset {
41 label = "reset";
42 gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
44 };
45
46 wps {
47 label = "wps";
48 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_WPS_BUTTON>;
50 };
51 };
52
53 leds {
54 compatible = "gpio-leds";
55
56 led_system_blue: system-blue {
57 gpios = <&tlmm 26 GPIO_ACTIVE_HIGH>;
58 color = <LED_COLOR_ID_BLUE>;
59 };
60
61 led_system_red: system-red {
62 gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
63 color = <LED_COLOR_ID_RED>;
64 };
65 };
66 };
67
68 &tlmm {
69 mdio_pins: mdio-pins {
70 mdc {
71 pins = "gpio68";
72 function = "mdc";
73 drive-strength = <8>;
74 bias-pull-up;
75 };
76
77 mdio {
78 pins = "gpio69";
79 function = "mdio";
80 drive-strength = <8>;
81 bias-pull-up;
82 };
83 };
84 };
85
86 &blsp1_uart5 {
87 status = "okay";
88 };
89
90 &prng {
91 status = "okay";
92 };
93
94 &cryptobam {
95 status = "okay";
96 };
97
98 &crypto {
99 status = "okay";
100 };
101
102 &qpic_bam {
103 status = "okay";
104 };
105
106 &qpic_nand {
107 status = "okay";
108
109 nand@0 {
110 reg = <0>;
111 nand-ecc-strength = <8>;
112 nand-ecc-step-size = <512>;
113 nand-bus-width = <8>;
114
115 partitions {
116 compatible = "qcom,smem-part";
117 };
118 };
119 };
120
121 &qusb_phy_0 {
122 status = "okay";
123 };
124
125 &ssphy_0 {
126 status = "okay";
127 };
128
129 &usb_0 {
130 status = "okay";
131 };
132
133 &mdio {
134 status = "okay";
135
136 pinctrl-0 = <&mdio_pins>;
137 pinctrl-names = "default";
138 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
139
140 ethernet-phy-package@0 {
141 #address-cells = <1>;
142 #size-cells = <0>;
143 compatible = "qcom,qca8075-package";
144 reg = <0>;
145
146 qcom,package-mode = "qsgmii";
147
148 qca8075_0: ethernet-phy@0 {
149 compatible = "ethernet-phy-ieee802.3-c22";
150 reg = <0>;
151 };
152
153 qca8075_1: ethernet-phy@1 {
154 compatible = "ethernet-phy-ieee802.3-c22";
155 reg = <1>;
156 };
157
158 qca8075_2: ethernet-phy@2 {
159 compatible = "ethernet-phy-ieee802.3-c22";
160 reg = <2>;
161 };
162
163 qca8075_3: ethernet-phy@3 {
164 compatible = "ethernet-phy-ieee802.3-c22";
165 reg = <3>;
166 };
167 };
168
169 qca8081: ethernet-phy@28 {
170 compatible = "ethernet-phy-id004d.d101";
171 reg = <28>;
172 reset-deassert-us = <10000>;
173 reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
174
175 leds {
176 #address-cells = <1>;
177 #size-cells = <0>;
178
179 led@0 {
180 reg = <0>;
181 color = <LED_COLOR_ID_GREEN>;
182 function = LED_FUNCTION_WAN;
183 default-state = "keep";
184 };
185
186 led@1 {
187 reg = <1>;
188 color = <LED_COLOR_ID_YELLOW>;
189 function = LED_FUNCTION_WAN;
190 default-state = "keep";
191 };
192 };
193 };
194 };
195
196 &switch {
197 status = "okay";
198
199 switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
200 switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
201 switch_mac_mode = <MAC_MODE_QSGMII>; /* mac mode for uniphy instance0*/
202 switch_mac_mode2 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance2*/
203
204 qcom,port_phyinfo {
205 port@1 {
206 port_id = <1>;
207 phy_address = <0>;
208 };
209 port@2 {
210 port_id = <2>;
211 phy_address = <1>;
212 };
213 port@3 {
214 port_id = <3>;
215 phy_address = <2>;
216 };
217 port@4 {
218 port_id = <4>;
219 phy_address = <3>;
220 };
221 port@6 {
222 port_id = <6>;
223 phy_address = <28>;
224 port_mac_sel = "QGMAC_PORT";
225 };
226 };
227 };
228
229 &edma {
230 status = "okay";
231 };
232
233 &dp1 {
234 status = "okay";
235 phy-mode = "qsgmii";
236 phy-handle = <&qca8075_0>;
237 label = "lan4";
238 };
239
240 &dp2 {
241 status = "okay";
242 phy-mode = "qsgmii";
243 phy-handle = <&qca8075_1>;
244 label = "lan3";
245 };
246
247 &dp3 {
248 status = "okay";
249 phy-mode = "qsgmii";
250 phy-handle = <&qca8075_2>;
251 label = "lan2";
252 };
253
254 &dp4 {
255 status = "okay";
256 phy-mode = "qsgmii";
257 phy-handle = <&qca8075_3>;
258 label = "lan1";
259 };
260
261 &dp6_syn {
262 status = "okay";
263 phy-handle = <&qca8081>;
264 label = "wan";
265 };
266
267 &wifi {
268 status = "okay";
269 qcom,ath11k-calibration-variant = "Dynalink-DL-WRX36";
270 };