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