ipq40xx: add support for GL.iNet GL-AP1300
[openwrt/staging/dedeckeh.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-gl-ap1300.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 = "GL.iNet GL-AP1300";
10 compatible = "glinet,gl-ap1300";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 memory {
20 device_type = "memory";
21 reg = <0x80000000 0x10000000>;
22 };
23
24 chosen {
25 bootargs-append = " ubi.mtd=ubi root=/dev/ubiblock0_1 clk_ignore_unused";
26 };
27
28 soc {
29 rng@22000 {
30 status = "okay";
31 };
32
33 mdio@90000 {
34 status = "okay";
35 };
36
37 ess-psgmii@98000 {
38 status = "okay";
39 };
40
41 tcsr@1949000 {
42 compatible = "qcom,tcsr";
43 reg = <0x1949000 0x100>;
44 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
45 };
46
47 tcsr@194b000 {
48 /* select hostmode */
49 compatible = "qcom,tcsr";
50 reg = <0x194b000 0x100>;
51 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
52 status = "okay";
53 };
54
55 ess_tcsr@1953000 {
56 compatible = "qcom,tcsr";
57 reg = <0x1953000 0x1000>;
58 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
59 };
60
61 tcsr@1957000 {
62 compatible = "qcom,tcsr";
63 reg = <0x1957000 0x100>;
64 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
65 };
66
67 usb2@60f8800 {
68 status = "okay";
69 };
70
71 usb3@8af8800 {
72 status = "okay";
73 };
74
75 crypto@8e3a000 {
76 status = "okay";
77 };
78
79 watchdog@b017000 {
80 status = "okay";
81 };
82
83 ess-switch@c000000 {
84 status = "okay";
85 switch_lan_bmp = <0x18>;
86 switch_wan_bmp = <0x20>;
87 };
88
89 edma@c080000 {
90 status = "okay";
91 };
92 };
93
94 keys {
95 compatible = "gpio-keys";
96
97 reset {
98 label = "reset";
99 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
100 linux,code = <KEY_RESTART>;
101 };
102 };
103
104 leds {
105 compatible = "gpio-leds";
106
107 led_power: power {
108 label = "green:power";
109 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
110 default-state = "on";
111 };
112
113 wan {
114 label = "green:wan";
115 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
116 };
117 };
118 };
119
120 &blsp_dma {
121 status = "okay";
122 };
123
124 &cryptobam {
125 status = "okay";
126 };
127
128 &blsp1_spi1 {
129 status = "okay";
130
131 pinctrl-0 = <&spi0_pins>;
132 pinctrl-names = "default";
133 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 5 GPIO_ACTIVE_HIGH>;
134
135 flash@0 {
136 status = "okay";
137
138 compatible = "jedec,spi-nor";
139 reg = <0>;
140 spi-max-frequency = <24000000>;
141
142 partitions {
143 compatible = "fixed-partitions";
144 #address-cells = <1>;
145 #size-cells = <1>;
146
147 partition@0 {
148 label = "SBL1";
149 reg = <0x00000000 0x00040000>;
150 read-only;
151 };
152
153 partition@40000 {
154 label = "MIBIB";
155 reg = <0x00040000 0x00020000>;
156 read-only;
157 };
158
159 partition@60000 {
160 label = "QSEE";
161 reg = <0x00060000 0x00060000>;
162 read-only;
163 };
164
165 partition@c0000 {
166 label = "CDT";
167 reg = <0x000c0000 0x00010000>;
168 read-only;
169 };
170
171 partition@d0000 {
172 label = "DDRPARAMS";
173 reg = <0x000d0000 0x00010000>;
174 read-only;
175 };
176
177 partition@e0000 {
178 label = "APPSBLENV"; /* uboot env*/
179 reg = <0x000e0000 0x00010000>;
180 };
181
182 partition@f0000 {
183 label = "APPSBL"; /* uboot */
184 reg = <0x000f0000 0x00080000>;
185 read-only;
186 };
187
188 partition@170000 {
189 label = "ART";
190 reg = <0x00170000 0x00010000>;
191 read-only;
192 };
193 };
194 };
195
196 spi-nand@1 {
197 status = "okay";
198
199 compatible = "spi-nand";
200 reg = <1>;
201 spi-max-frequency = <24000000>;
202
203 partitions {
204 compatible = "fixed-partitions";
205 #address-cells = <1>;
206 #size-cells = <1>;
207
208 partition@0 {
209 label = "ubi";
210 reg = <0x00000000 0x08000000>;
211 };
212 };
213 };
214 };
215
216 &blsp1_uart1 {
217 pinctrl-0 = <&serial_pins>;
218 pinctrl-names = "default";
219 status = "okay";
220 };
221
222 &tlmm {
223 serial_pins: serial_pinmux {
224 mux {
225 pins = "gpio60", "gpio61";
226 function = "blsp_uart0";
227 bias-disable;
228 };
229 };
230
231 spi0_pins: spi0_pinmux {
232 mux_spi {
233 function = "blsp_spi0";
234 pins = "gpio55", "gpio56", "gpio57";
235 drive-strength = <12>;
236 bias-disable;
237 };
238
239 mux_cs {
240 function = "gpio";
241 pins = "gpio54", "gpio5";
242 drive-strength = <2>;
243 bias-disable;
244 output-high;
245 };
246 };
247 };
248
249 &usb2_hs_phy {
250 status = "okay";
251 };
252
253 &usb3_hs_phy {
254 status = "okay";
255 };
256
257 &usb3_ss_phy {
258 status = "okay";
259 };
260
261 &wifi0 {
262 status = "okay";
263 qcom,ath10k-calibration-variant = "GL-AP1300";
264 };
265
266 &wifi1 {
267 status = "okay";
268 qcom,ath10k-calibration-variant = "GL-AP1300";
269 };