ipq40xx: switch default to 6.6
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / qcom-ipq4018-emd1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
8
9 / {
10 model = "EnGenius EMD1";
11 compatible = "engenius,emd1";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 soc {
21 rng@22000 {
22 status = "okay";
23 };
24
25 mdio@90000 {
26 status = "okay";
27 };
28
29 tcsr@1949000 {
30 compatible = "qcom,tcsr";
31 reg = <0x1949000 0x100>;
32 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
33 };
34
35 ess_tcsr@1953000 {
36 compatible = "qcom,tcsr";
37 reg = <0x1953000 0x1000>;
38 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
39 };
40
41 tcsr@1957000 {
42 compatible = "qcom,tcsr";
43 reg = <0x1957000 0x100>;
44 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
45 };
46
47 crypto@8e3a000 {
48 status = "okay";
49 };
50
51 watchdog@b017000 {
52 status = "okay";
53 };
54 };
55
56 keys {
57 compatible = "gpio-keys";
58
59 reset {
60 label = "reset";
61 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_RESTART>;
63 };
64 };
65
66 leds {
67 compatible = "gpio-leds";
68
69 led_power: power {
70 function = LED_FUNCTION_POWER;
71 color = <LED_COLOR_ID_WHITE>;
72 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
73 };
74
75 wlan2g {
76 label = "red:wlan2g";
77 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
78 linux,default-trigger = "phy0tpt";
79 };
80
81 wlan5g {
82 label = "blue:wlan5g";
83 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
84 linux,default-trigger = "phy1tpt";
85 };
86
87 mesh {
88 label = "orange:mesh";
89 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
90 };
91 };
92 };
93
94 &tlmm {
95 serial_pins: serial_pinmux {
96 mux {
97 pins = "gpio60", "gpio61";
98 function = "blsp_uart0";
99 bias-disable;
100 };
101 };
102
103 spi_0_pins: spi_0_pinmux {
104 pin {
105 function = "blsp_spi0";
106 pins = "gpio54", "gpio55", "gpio56", "gpio57";
107 drive-strength = <12>;
108 bias-disable;
109 };
110
111 pin_cs {
112 function = "gpio";
113 pins = "gpio54";
114 drive-strength = <2>;
115 bias-disable;
116 output-high;
117 };
118 };
119 };
120
121 &blsp_dma {
122 status = "okay";
123 };
124
125 &blsp1_spi1 {
126 pinctrl-0 = <&spi_0_pins>;
127 pinctrl-names = "default";
128 status = "okay";
129 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
130
131 flash@0 {
132 compatible = "jedec,spi-nor";
133 reg = <0>;
134 spi-max-frequency = <24000000>;
135 partitions {
136 compatible = "fixed-partitions";
137 #address-cells = <1>;
138 #size-cells = <1>;
139
140 partition0@0 {
141 label = "0:SBL1";
142 reg = <0x00000000 0x00040000>;
143 read-only;
144 };
145 partition1@40000 {
146 label = "0:MIBIB";
147 reg = <0x00040000 0x00020000>;
148 read-only;
149 };
150 partition2@60000 {
151 label = "0:QSEE";
152 reg = <0x00060000 0x00060000>;
153 read-only;
154 };
155 partition3@c0000 {
156 label = "0:CDT";
157 reg = <0x000c0000 0x00010000>;
158 read-only;
159 };
160 partition4@d0000 {
161 label = "0:DDRPARAMS";
162 reg = <0x000d0000 0x00010000>;
163 read-only;
164 };
165 partition5@e0000 {
166 label = "0:APPSBLENV";
167 reg = <0x000e0000 0x00010000>;
168 read-only;
169 };
170 partition6@f0000 {
171 label = "0:APPSBL";
172 reg = <0x000f0000 0x00080000>;
173 read-only;
174 };
175 partition7@170000 {
176 label = "0:ART";
177 reg = <0x00170000 0x00010000>;
178 read-only;
179 };
180 partition8@180000 {
181 label = "userconfig";
182 reg = <0x00180000 0x00080000>;
183 read-only;
184 };
185 partition9@200000 {
186 compatible = "denx,fit";
187 label = "firmware";
188 reg = <0x200000 0x01e00000>;
189 };
190 };
191 };
192 };
193
194 &blsp1_uart1 {
195 pinctrl-0 = <&serial_pins>;
196 pinctrl-names = "default";
197 status = "okay";
198 };
199
200 &cryptobam {
201 status = "okay";
202 };
203
204 &wifi0 {
205 status = "okay";
206 qcom,ath10k-calibration-variant = "EnGenius-EMD1";
207 };
208
209 &wifi1 {
210 status = "okay";
211 qcom,ath10k-calibration-variant = "EnGenius-EMD1";
212 };