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