ipq40xx: D-Link DAP-2610: convert to DSA
[openwrt/openwrt.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-dap-2610.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/soc/qcom,tcsr.h>
7
8 / {
9 model = "D-Link DAP 2610";
10 compatible = "dlink,dap-2610";
11
12 aliases {
13 led-boot = &led_red;
14 led-failsafe = &led_red;
15 led-running = &led_green;
16 led-upgrade = &led_red;
17 };
18
19 soc {
20 tcsr@1949000 {
21 compatible = "qcom,tcsr";
22 reg = <0x1949000 0x100>;
23 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
24 };
25
26 ess_tcsr@1953000 {
27 compatible = "qcom,tcsr";
28 reg = <0x1953000 0x1000>;
29 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
30 };
31
32 tcsr@1957000 {
33 compatible = "qcom,tcsr";
34 reg = <0x1957000 0x100>;
35 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
36 };
37
38 rng@22000 {
39 status = "okay";
40 };
41
42 crypto@8e3a000 {
43 status = "okay";
44 };
45
46 watchdog@b017000 {
47 status = "okay";
48 };
49 };
50
51 leds {
52 compatible = "gpio-leds";
53
54 led_red: red {
55 label = "red:power";
56 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
57 };
58
59 led_green: green {
60 label = "green:power";
61 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
62 };
63 };
64
65 keys {
66 compatible = "gpio-keys";
67
68 reset {
69 label = "reset";
70 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_RESTART>;
72 };
73 };
74 };
75
76 &blsp1_spi1 {
77 pinctrl-0 = <&spi_0_pins>;
78 pinctrl-names = "default";
79 status = "okay";
80 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
81
82 flash@0 {
83 compatible = "jedec,spi-nor";
84 reg = <0>;
85 spi-max-frequency = <24000000>;
86
87 partitions {
88 #address-cells = <1>;
89 #size-cells = <1>;
90 compatible = "fixed-partitions";
91
92 partition@0 {
93 label = "SBL1";
94 reg = <0x0 0x40000>;
95 read-only;
96 };
97 partition@40000 {
98 label = "MIBIB";
99 reg = <0x40000 0x20000>;
100 read-only;
101 };
102 partition@60000 {
103 label = "QSEE";
104 reg = <0x60000 0x60000>;
105 read-only;
106 };
107 partition@c0000 {
108 label = "CDT";
109 reg = <0xc0000 0x10000>;
110 read-only;
111 };
112 partition@d0000 {
113 label = "DDRPARAMS";
114 reg = <0xd0000 0x10000>;
115 read-only;
116 };
117 partition@e0000 {
118 label = "APPSBLENV";
119 reg = <0xe0000 0x10000>;
120 read-only;
121 };
122 partition@f0000 {
123 label = "APPSBL";
124 reg = <0xf0000 0x80000>;
125 read-only;
126 };
127 partition@170000 {
128 label = "ART";
129 reg = <0x170000 0x10000>;
130 read-only;
131 };
132 partition@180000 {
133 compatible = "wrg";
134 label = "firmware";
135 reg = <0x180000 0xdc0000>;
136 };
137 partition@fb0000 {
138 label = "rgbd";
139 reg = <0xfb0000 0x10000>;
140 read-only;
141 };
142 partition@fc0000 {
143 label = "bdcfg";
144 reg = <0xfc0000 0x10000>;
145 read-only;
146 };
147 partition@fd0000 {
148 label = "langpack";
149 reg = <0xfd0000 0x20000>;
150 read-only;
151 };
152 partition@ff0000 {
153 label = "certificate";
154 reg = <0xff0000 0x10000>;
155 read-only;
156 };
157 partition@f40000 {
158 label = "captival";
159 reg = <0xf40000 0x70000>;
160 read-only;
161 };
162 };
163 };
164 };
165
166 &blsp_dma {
167 status = "okay";
168 };
169
170 &blsp1_uart1 {
171 pinctrl-0 = <&serial_pins>;
172 pinctrl-names = "default";
173 status = "okay";
174 };
175
176 &cryptobam {
177 status = "okay";
178 };
179
180 &mdio {
181 status = "okay";
182 };
183
184 &gmac {
185 status = "okay";
186 };
187
188 &switch {
189 status = "okay";
190 };
191
192 &swport5 {
193 status = "okay";
194
195 label = "lan";
196 };
197
198 &tlmm {
199 serial_pins: serial_pinmux {
200 mux {
201 pins = "gpio60", "gpio61";
202 function = "blsp_uart0";
203 bias-disable;
204 };
205 };
206
207 spi_0_pins: spi_0_pinmux {
208 mux {
209 function = "blsp_spi0";
210 pins = "gpio55", "gpio56", "gpio57";
211 drive-strength = <12>;
212 bias-disable;
213 };
214 mux_cs {
215 function = "gpio";
216 pins = "gpio54";
217 drive-strength = <2>;
218 bias-disable;
219 output-high;
220 };
221 };
222 };
223
224 &wifi0 {
225 status = "okay";
226 qcom,ath10k-calibration-variant = "dlink,dap-2610";
227 };
228
229 &wifi1 {
230 status = "okay";
231 qcom,ath10k-calibration-variant = "dlink,dap-2610";
232 };