ipq807x: fix wrong define for LAN and WAN ess mask
[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_wan_bmp = <ESS_PORT6>;
121 switch_mac_mode = <0x00>;
122 switch_mac_mode1 = <0xff>;
123 switch_mac_mode2 = <0x0f>;
124 bm_tick_mode = <0x00>;
125 tm_tick_mode = <0x00>;
126
127 qcom,port_phyinfo {
128 port@5 {
129 port_id = <6>;
130 phy_address = <28>;
131 port_mac_sel = "QGMAC_PORT";
132 };
133 };
134 };
135
136 &tlmm {
137 mdio_pins: mdio-pins {
138 mdc {
139 pins = "gpio68";
140 function = "mdc";
141 drive-strength = <8>;
142 bias-pull-up;
143 };
144
145 mdio {
146 pins = "gpio69";
147 function = "mdio";
148 drive-strength = <8>;
149 bias-pull-up;
150 };
151 };
152 };
153
154 &mdio {
155 status = "okay";
156
157 pinctrl-0 = <&mdio_pins>;
158 pinctrl-names = "default";
159 reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
160
161 qca8081_28: ethernet-phy@28 {
162 reg = <28>;
163 };
164 };
165
166 &dp6 {
167 status = "okay";
168 phy-handle = <&qca8081_28>;
169 label = "lan";
170 };
171
172 &qpic_bam {
173 status = "okay";
174 };
175
176 &qpic_nand {
177 status = "okay";
178
179 nand@0 {
180 reg = <0>;
181 nand-ecc-strength = <4>;
182 nand-ecc-step-size = <512>;
183 nand-bus-width = <8>;
184
185 partitions {
186 compatible = "qcom,smem-part";
187 };
188 };
189 };
190
191 &blsp1_uart5 {
192 status = "okay";
193 };
194
195 &wifi {
196 status = "okay";
197
198 qcom,ath11k-calibration-variant = "Netgear-WAX620";
199 };