ipq40xx: use existing labels for watchdog node
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / qcom-ipq4018-emr3500.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 EMR3500";
11 compatible = "engenius,emr3500";
12
13 soc {
14 rng@22000 {
15 status = "okay";
16 };
17
18 mdio@90000 {
19 status = "okay";
20 };
21
22 tcsr@1949000 {
23 compatible = "qcom,tcsr";
24 reg = <0x1949000 0x100>;
25 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
26 };
27
28 ess_tcsr@1953000 {
29 compatible = "qcom,tcsr";
30 reg = <0x1953000 0x1000>;
31 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
32 };
33
34 tcsr@1957000 {
35 compatible = "qcom,tcsr";
36 reg = <0x1957000 0x100>;
37 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
38 };
39
40 crypto@8e3a000 {
41 status = "okay";
42 };
43 };
44
45 keys {
46 compatible = "gpio-keys";
47
48 reset {
49 label = "reset";
50 gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RESTART>;
52 };
53 };
54
55 aliases {
56 led-boot = &power;
57 led-failsafe = &power;
58 led-running = &power;
59 led-upgrade = &power;
60 };
61
62 leds {
63 compatible = "gpio-leds";
64
65 power: white {
66 function = LED_FUNCTION_POWER;
67 color = <LED_COLOR_ID_WHITE>;
68 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
69 };
70
71 blue {
72 label = "blue";
73 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
74 };
75
76 red {
77 label = "red";
78 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
79 };
80
81 orange {
82 label = "orange";
83 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
84 };
85 };
86 };
87
88 &watchdog {
89 status = "okay";
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 pin_cs {
109 function = "gpio";
110 pins = "gpio54";
111 drive-strength = <2>;
112 bias-disable;
113 output-high;
114 };
115 };
116 };
117
118 &blsp_dma {
119 status = "okay";
120 };
121
122 &blsp1_spi1 {
123 pinctrl-0 = <&spi_0_pins>;
124 pinctrl-names = "default";
125 status = "okay";
126 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
127
128 m25p80@0 {
129 compatible = "jedec,spi-nor";
130 reg = <0>;
131 spi-max-frequency = <24000000>;
132 partitions {
133 compatible = "fixed-partitions";
134 #address-cells = <1>;
135 #size-cells = <1>;
136
137 partition@0 {
138 label = "0:SBL1";
139 reg = <0x00000000 0x00040000>;
140 read-only;
141 };
142 partition@40000 {
143 label = "0:MIBIB";
144 reg = <0x00040000 0x00020000>;
145 read-only;
146 };
147 partition@60000 {
148 label = "0:QSEE";
149 reg = <0x00060000 0x00060000>;
150 read-only;
151 };
152 partition@c0000 {
153 label = "0:CDT";
154 reg = <0x000c0000 0x00010000>;
155 read-only;
156 };
157 partition@d0000 {
158 label = "0:DDRPARAMS";
159 reg = <0x000d0000 0x00010000>;
160 read-only;
161 };
162 partition@e0000 {
163 label = "0:APPSBLENV";
164 reg = <0x000e0000 0x00010000>;
165 read-only;
166 };
167 partition@f0000 {
168 label = "0:APPSBL";
169 reg = <0x000f0000 0x00080000>;
170 read-only;
171 };
172 partition@170000 {
173 label = "0:ART";
174 reg = <0x00170000 0x00010000>;
175 read-only;
176 };
177 partition@180000 {
178 label = "userconfig";
179 reg = <0x00180000 0x00080000>;
180 read-only;
181 };
182 partition@200000 {
183 compatible = "denx,fit";
184 label = "firmware";
185 reg = <0x200000 0x1e00000>;
186 };
187 };
188 };
189 };
190
191 &blsp1_uart1 {
192 pinctrl-0 = <&serial_pins>;
193 pinctrl-names = "default";
194 status = "okay";
195 };
196
197 &cryptobam {
198 status = "okay";
199 };
200
201 &usb2_hs_phy {
202 status = "okay";
203 };
204
205 &wifi0 {
206 status = "okay";
207 qcom,ath10k-calibration-variant = "EnGenius-EMR3500";
208 };
209
210 &wifi1 {
211 status = "okay";
212 qcom,ath10k-calibration-variant = "EnGenius-EMR3500";
213 };