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