ipq40xx: drop ESSEDMA + AR40xx DTS nodes
[openwrt/staging/jow.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4029-ws-ap3915i.dts
1 // SPDX-License-Identifier: GPL-2.0-only 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 = "Extreme Networks WS-AP3915i";
10 compatible = "extreme-networks,ws-ap3915i";
11
12 aliases {
13 led-boot = &led_system_green;
14 led-failsafe = &led_system_amber;
15 led-running = &led_system_green;
16 led-upgrade = &led_system_amber;
17 };
18
19 soc {
20 rng@22000 {
21 status = "okay";
22 };
23
24 mdio@90000 {
25 status = "okay";
26 pinctrl-0 = <&mdio_pins>;
27 pinctrl-names = "default";
28 };
29
30 tcsr@1949000 {
31 compatible = "qcom,tcsr";
32 reg = <0x1949000 0x100>;
33 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
34 };
35
36 ess_tcsr@1953000 {
37 compatible = "qcom,tcsr";
38 reg = <0x1953000 0x1000>;
39 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
40 };
41
42 tcsr@1957000 {
43 compatible = "qcom,tcsr";
44 reg = <0x1957000 0x100>;
45 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
46 };
47
48 crypto@8e3a000 {
49 status = "okay";
50 };
51
52 watchdog@b017000 {
53 status = "okay";
54 };
55 };
56
57 leds {
58 compatible = "gpio-leds";
59
60 led_system_green: system_green {
61 label = "green:system";
62 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
63 };
64
65 led_system_amber: system_amber {
66 label = "amber:system";
67 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
68 };
69
70 led_wlan24_green: wlan24_green {
71 label = "green:wlan24";
72 gpios = <&tlmm 23 GPIO_ACTIVE_LOW>;
73 linux,default-trigger = "phy0tpt";
74 };
75
76 led_wlan24_amber: wlan24_amber {
77 label = "amber:wlan24";
78 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
79 };
80
81 led_wlan5_green: wlan5_green {
82 label = "green:wlan5";
83 gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
84 linux,default-trigger = "phy1tpt";
85 };
86
87 led_wlan5_amber: wlan5_amber {
88 label = "amber:wlan5";
89 gpios = <&tlmm 26 GPIO_ACTIVE_LOW>;
90 };
91
92 iot {
93 label = "blue:iot";
94 gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
95 };
96 };
97
98 keys {
99 compatible = "gpio-keys";
100
101 reset {
102 label = "reset";
103 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_RESTART >;
105 };
106 };
107 };
108
109 &blsp_dma {
110 status = "okay";
111 };
112
113 &blsp1_uart1 {
114 pinctrl-0 = <&serial_pins>;
115 pinctrl-names = "default";
116 status = "okay";
117 };
118
119 &cryptobam {
120 status = "okay";
121 };
122
123 &qpic_bam {
124 status = "okay";
125 };
126
127 &tlmm {
128 mdio_pins: mdio_pinmux {
129 mux_1 {
130 pins = "gpio6";
131 function = "mdio";
132 bias-pull-up;
133 };
134 mux_2 {
135 pins = "gpio7";
136 function = "mdc";
137 bias-pull-up;
138 };
139 };
140
141 spi_0_pins: spi_0_pinmux {
142 pin {
143 function = "blsp_spi0";
144 pins = "gpio13", "gpio14", "gpio15";
145 drive-strength = <12>;
146 bias-disable;
147 };
148 pin_cs {
149 function = "gpio";
150 pins = "gpio12";
151 drive-strength = <2>;
152 bias-disable;
153 output-high;
154 };
155 };
156
157 serial_pins: serial_0_pinmux {
158 mux {
159 pins = "gpio16", "gpio17";
160 function = "blsp_uart0";
161 bias-disable;
162 };
163 };
164 };
165
166 &wifi0 {
167 status = "okay";
168 qcom,ath10k-calibration-variant = "Extreme-Networks-WS-AP3915i";
169 };
170
171 &wifi1 {
172 status = "okay";
173 qcom,ath10k-calibration-variant = "Extreme-Networks-WS-AP3915i";
174 };
175
176 &blsp1_spi1 {
177 pinctrl-0 = <&spi_0_pins>;
178 pinctrl-names = "default";
179 status = "okay";
180 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
181
182 flash@0 {
183 compatible = "jedec,spi-nor";
184 reg = <0>;
185 spi-max-frequency = <24000000>;
186
187 partitions {
188 compatible = "fixed-partitions";
189 #address-cells = <1>;
190 #size-cells = <1>;
191
192 /* Layout for 0x0 - 0xe0000 unknown */
193
194 partition@e0000 {
195 label = "CFG1";
196 reg = <0xe0000 0x10000>;
197 read-only;
198 };
199
200 partition@f0000 {
201 label = "BootBAK";
202 reg = <0xf0000 0x70000>;
203 read-only;
204 };
205
206 partition@160000 {
207 label = "WINGCFG1";
208 reg = <0x160000 0x10000>;
209 read-only;
210 };
211
212 partition@170000 {
213 label = "ART";
214 reg = <0x170000 0x10000>;
215 read-only;
216 };
217
218 partition@180000 {
219 label = "BootPRI";
220 reg = <0x180000 0x70000>;
221 read-only;
222 };
223
224 partition@1f0000 {
225 label = "WINGCFG2";
226 reg = <0x1f0000 0x10000>;
227 read-only;
228 };
229
230 partition@200000 {
231 label = "FS";
232 reg = <0x200000 0x80000>;
233 read-only;
234 };
235
236 partition@280000 {
237 label = "firmware";
238 reg = <0x280000 0x1d60000>;
239 };
240
241 partition@1fe0000 {
242 label = "CFG2";
243 reg = <0x1fe0000 0x10000>;
244 read-only;
245 };
246 };
247 };
248 };