ipq40xx: add support for Pakedge WR-1
[openwrt/staging/pepe2k.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-wr-1.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/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
8
9 / {
10 model = "Pakedge WR-1";
11 compatible = "pakedge,wr-1";
12
13 aliases {
14 label-mac-device = &gmac0;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23 pinctrl-0 = <&key_pins>;
24 pinctrl-names = "default";
25
26 reset {
27 label = "reset";
28 gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 };
31 };
32
33 leds {
34 compatible = "gpio-leds";
35 pinctrl-0 = <&led_pins>;
36 pinctrl-names = "default";
37
38 led_power: power {
39 label = "blue:power";
40 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
41 color = <LED_COLOR_ID_BLUE>;
42 function = LED_FUNCTION_POWER;
43 };
44
45 wlan2g {
46 label = "blue:wlan2g";
47 gpios = <&tlmm 1 GPIO_ACTIVE_LOW>;
48 color = <LED_COLOR_ID_BLUE>;
49 function = LED_FUNCTION_WLAN;
50 linux,default-trigger = "phy0tpt";
51 };
52
53 wlan5g {
54 label = "blue:wlan5g";
55 gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
56 color = <LED_COLOR_ID_BLUE>;
57 function = LED_FUNCTION_WLAN;
58 linux,default-trigger = "phy1tpt";
59 };
60 };
61
62 soc {
63 ess-psgmii@98000 {
64 status = "okay";
65 };
66
67 tcsr@1949000 {
68 compatible = "qcom,tcsr";
69 reg = <0x1949000 0x100>;
70 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
71 };
72
73 tcsr@194b000 {
74 compatible = "qcom,tcsr";
75 reg = <0x194b000 0x100>;
76 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
77 };
78
79 ess_tcsr@1953000 {
80 compatible = "qcom,tcsr";
81 reg = <0x1953000 0x1000>;
82 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
83 };
84
85 tcsr@1957000 {
86 compatible = "qcom,tcsr";
87 reg = <0x1957000 0x100>;
88 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
89 };
90
91 ess-switch@c000000 {
92 status = "okay";
93 };
94
95 edma@c080000 {
96 status = "okay";
97 };
98 };
99 };
100
101 &blsp_dma {
102 status = "okay";
103 };
104
105 &blsp1_spi1 {
106 status = "okay";
107
108 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
109 pinctrl-0 = <&spi_0_pins>;
110 pinctrl-names = "default";
111
112 flash@0 {
113 compatible = "jedec,spi-nor";
114 reg = <0>;
115 spi-max-frequency = <24000000>;
116
117 partitions {
118 compatible = "fixed-partitions";
119 #address-cells = <1>;
120 #size-cells = <1>;
121
122 partition@0 {
123 label = "0:SBL1";
124 reg = <0x0000000 0x0040000>;
125 read-only;
126 };
127
128 partition@40000 {
129 label = "0:MIBIB";
130 reg = <0x0040000 0x0020000>;
131 read-only;
132 };
133
134 partition@60000 {
135 label = "0:QSEE";
136 reg = <0x0060000 0x0060000>;
137 read-only;
138 };
139
140 partition@c0000 {
141 label = "0:CDT";
142 reg = <0x00c0000 0x0010000>;
143 read-only;
144 };
145
146 partition@d0000 {
147 label = "0:DDRPARAMS";
148 reg = <0x00d0000 0x0010000>;
149 read-only;
150 };
151
152 partition@e0000 {
153 label = "0:APPSBLENV";
154 reg = <0x00e0000 0x0010000>;
155 read-only;
156 };
157
158 partition@f0000 {
159 label = "0:APPSBL";
160 reg = <0x00f0000 0x0080000>;
161 read-only;
162 };
163
164 partition@170000 {
165 label = "0:ART";
166 reg = <0x0170000 0x0010000>;
167 read-only;
168 };
169
170 partition@180000 {
171 label = "firmware";
172 reg = <0x0180000 0x1e80000>;
173 };
174 };
175 };
176 };
177
178 &blsp1_uart1 {
179 status = "okay";
180
181 pinctrl-0 = <&serial_pins>;
182 pinctrl-names = "default";
183 };
184
185 &crypto {
186 status = "okay";
187 };
188
189 &cryptobam {
190 status = "okay";
191 };
192
193 &mdio {
194 status = "okay";
195 };
196
197 &prng {
198 status = "okay";
199 };
200
201 &tlmm {
202 key_pins: key_pinmux {
203 mux {
204 function = "gpio";
205 pins = "gpio59";
206 bias-pull-up;
207 };
208 };
209
210 led_pins: led_pinmux {
211 mux {
212 function = "gpio";
213 pins = "gpio0", "gpio1", "gpio2";
214 bias-none;
215 drive-strength = <2>;
216 output-low;
217 };
218 };
219
220 serial_pins: serial_pinmux {
221 mux {
222 function = "blsp_uart0";
223 pins = "gpio60", "gpio61";
224 bias-disable;
225 };
226 };
227
228 spi_0_pins: spi_0_pinmux {
229 mux {
230 function = "blsp_spi0";
231 pins = "gpio55", "gpio56", "gpio57";
232 bias-disable;
233 drive-strength = <12>;
234 };
235
236 mux_cs {
237 function = "gpio";
238 pins = "gpio54";
239 bias-disable;
240 drive-strength = <2>;
241 output-high;
242 };
243 };
244 };
245
246 &usb2 {
247 status = "okay";
248 };
249
250 &usb2_hs_phy {
251 status = "okay";
252 };
253
254 &watchdog {
255 status = "okay";
256 };
257
258 &wifi0 {
259 status = "okay";
260 };
261
262 &wifi1 {
263 status = "okay";
264 };