x86: Add kmod-dwmac-intel
[openwrt/staging/hauke.git] / target / linux / qualcommax / files / arch / arm64 / boot / dts / qcom / ipq8072-wax620.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
11 / {
12 model = "Netgear WAX620";
13 compatible = "netgear,wax620", "qcom,ipq8074";
14
15 aliases {
16 serial0 = &blsp1_uart5;
17 ethernet0 = &dp6;
18 led-boot = &led_system_blue;
19 led-failsafe = &led_system_red;
20 led-running = &led_system_green;
21 led-upgrade = &led_system_blue;
22 };
23
24 chosen {
25 stdout-path = "serial0:115200n8";
26 /*
27 * Netgear's U-Boot adds "ubi.mtd=rootfs root=mtd:ubi_rootfs"
28 * That fails to create a UBI block device, so add it here.
29 */
30 bootargs-append = " root=/dev/ubiblock0_1";
31 };
32
33 keys {
34 compatible = "gpio-keys";
35
36 reset {
37 label = "reset";
38 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
40 };
41 };
42
43 led_spi {
44 compatible = "spi-gpio";
45 #address-cells = <1>;
46 #size-cells = <0>;
47
48 sck-gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>;
49 mosi-gpios = <&tlmm 19 GPIO_ACTIVE_HIGH>;
50
51 led_gpio: led_gpio@0 {
52 compatible = "fairchild,74hc595";
53 reg = <0>;
54 gpio-controller;
55 #gpio-cells = <2>;
56 registers-number = <1>;
57 enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>;
58 spi-max-frequency = <1000000>;
59 };
60 };
61
62 leds {
63 compatible = "gpio-leds";
64
65 led_system_red: system-red {
66 label = "system:red";
67 gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
68 };
69
70 led_system_green: system-green {
71 label = "system:green";
72 gpios = <&tlmm 55 GPIO_ACTIVE_HIGH>;
73 };
74
75 led_system_blue: system-blue {
76 label = "system:blue";
77 gpios = <&tlmm 56 GPIO_ACTIVE_HIGH>;
78 };
79
80 led_lan_g {
81 label = "lan:green";
82 gpios = <&led_gpio 0 GPIO_ACTIVE_HIGH>;
83 };
84
85 led_lan_o {
86 label = "lan:orange";
87 gpios = <&led_gpio 1 GPIO_ACTIVE_HIGH>;
88 };
89
90 led_2g_b {
91 label = "wlan2g:blue";
92 gpios = <&led_gpio 2 GPIO_ACTIVE_HIGH>;
93 };
94
95 led_2g_g {
96 label = "wlan2g:green";
97 gpios = <&led_gpio 3 GPIO_ACTIVE_HIGH>;
98 };
99
100 led_5g_b {
101 label = "wlan5g:blue";
102 gpios = <&led_gpio 4 GPIO_ACTIVE_HIGH>;
103 };
104
105 led_5g_g {
106 label = "wlan5g:green";
107 gpios = <&led_gpio 5 GPIO_ACTIVE_HIGH>;
108 };
109
110 };
111 };
112
113 &edma {
114 status = "okay";
115 };
116
117 &switch {
118 status = "okay";
119
120 switch_lan_bmp = <ESS_PORT6>;
121 switch_mac_mode = <MAC_MODE_PSGMII>;
122 switch_mac_mode2 = <MAC_MODE_SGMII_CHANNEL0>;
123
124 qcom,port_phyinfo {
125 port@6 {
126 port_id = <6>;
127 phy_address = <28>;
128 port_mac_sel = "QGMAC_PORT";
129 };
130 };
131 };
132
133 &tlmm {
134 mdio_pins: mdio-pins {
135 mdc {
136 pins = "gpio68";
137 function = "mdc";
138 drive-strength = <8>;
139 bias-pull-up;
140 };
141
142 mdio {
143 pins = "gpio69";
144 function = "mdio";
145 drive-strength = <8>;
146 bias-pull-up;
147 };
148 };
149 };
150
151 &mdio {
152 status = "okay";
153
154 pinctrl-0 = <&mdio_pins>;
155 pinctrl-names = "default";
156 reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
157
158 qca8081_28: ethernet-phy@28 {
159 reg = <28>;
160 };
161 };
162
163 &dp6 {
164 status = "okay";
165 phy-handle = <&qca8081_28>;
166 label = "lan";
167 };
168
169 &qpic_bam {
170 status = "okay";
171 };
172
173 &qpic_nand {
174 status = "okay";
175
176 nand@0 {
177 reg = <0>;
178 nand-ecc-strength = <4>;
179 nand-ecc-step-size = <512>;
180 nand-bus-width = <8>;
181
182 partitions {
183 compatible = "qcom,smem-part";
184 };
185 };
186 };
187
188 &blsp1_uart5 {
189 status = "okay";
190 };
191
192 &wifi {
193 status = "okay";
194
195 qcom,ath11k-calibration-variant = "Netgear-WAX620";
196 };