ipq40xx: add support for Luma Home WRTQ-329ACN
[openwrt/staging/chunkeey.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-wrtq-329acn.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/soc/qcom,tcsr.h>
7
8 #include "qcom-ipq4019.dtsi"
9
10 / {
11 model = "Luma Home WRTQ-329ACN";
12 compatible = "luma,wrtq-329acn";
13
14 i2c-gpio {
15 compatible = "i2c-gpio";
16 sda-gpios = <&tlmm 1 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
17 scl-gpios = <&tlmm 0 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
18 #address-cells = <1>;
19 #size-cells = <0>;
20
21 /* No driver exists */
22 led_ring@48 {
23 compatible = "ti,msp430";
24 reg = <0x48>;
25 };
26
27 eeprom@50 {
28 compatible = "atmel,24c16";
29 reg = <0x50>;
30 pagesize = <16>;
31 read-only;
32 };
33 };
34
35 keys {
36 compatible = "gpio-keys";
37
38 reset {
39 label = "reset";
40 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
42 };
43 };
44
45 soc {
46 rng@22000 {
47 status = "okay";
48 };
49
50 mdio@90000 {
51 status = "okay";
52
53 /delete-node/ ethernet-phy@0;
54 /delete-node/ ethernet-phy@1;
55 /delete-node/ ethernet-phy@3;
56 };
57
58 ess-psgmii@98000 {
59 status = "okay";
60 };
61
62 tcsr@1949000 {
63 compatible = "qcom,tcsr";
64 reg = <0x1949000 0x100>;
65 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
66 };
67
68 tcsr@194b000 {
69 compatible = "qcom,tcsr";
70 reg = <0x194b000 0x100>;
71 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
72 };
73
74 ess_tcsr@1953000 {
75 compatible = "qcom,tcsr";
76 reg = <0x1953000 0x1000>;
77 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
78 };
79
80 tcsr@1957000 {
81 compatible = "qcom,tcsr";
82 reg = <0x1957000 0x100>;
83 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
84 };
85
86 usb2@60f8800 {
87 status = "okay";
88 };
89
90 usb3@8af8800 {
91 status = "okay";
92 };
93
94 crypto@8e3a000 {
95 status = "okay";
96 };
97
98 watchdog@b017000 {
99 status = "okay";
100 };
101
102 ess-switch@c000000 {
103 status = "okay";
104
105 switch_lan_bmp = <0x1e>;
106 switch_wan_bmp = <0x20>;
107 };
108
109 edma@c080000 {
110 status = "okay";
111 };
112 };
113 };
114
115 &blsp_dma {
116 status = "okay";
117 };
118
119
120 &blsp1_spi1 {
121 status = "okay";
122
123 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
124 <&tlmm 59 GPIO_ACTIVE_HIGH>;
125 pinctrl-0 = <&spi0_pins>;
126 pinctrl-names = "default";
127
128 flash@0 {
129 compatible = "jedec,spi-nor";
130 reg = <0>;
131 spi-max-frequency = <24000000>;
132
133 partitions {
134 compatible = "fixed-partitions";
135 #address-cells = <1>;
136 #size-cells = <1>;
137
138 partition@0 {
139 label = "0:SBL1";
140 reg = <0x000000 0x040000>;
141 read-only;
142 };
143
144 partition@40000 {
145 label = "0:MIBIB";
146 reg = <0x040000 0x020000>;
147 read-only;
148 };
149
150 partition@60000 {
151 label = "0:QSEE";
152 reg = <0x060000 0x060000>;
153 read-only;
154 };
155
156 partition@c0000 {
157 label = "0:CDT";
158 reg = <0x0c0000 0x010000>;
159 read-only;
160 };
161
162 partition@d0000 {
163 label = "0:DDRPARAMS";
164 reg = <0x0d0000 0x010000>;
165 read-only;
166 };
167
168 partition@e0000 {
169 label = "0:APPSBLENV";
170 reg = <0x0e0000 0x010000>;
171 };
172
173 partition@f0000 {
174 label = "0:APPSBL";
175 reg = <0x0f0000 0x080000>;
176 read-only;
177 };
178
179 partition@170000 {
180 label = "0:ART";
181 reg = <0x170000 0x010000>;
182 read-only;
183 };
184 };
185 };
186
187 flash@1 {
188 status = "okay";
189
190 compatible = "spi-nand";
191 reg = <1>;
192 spi-max-frequency = <24000000>;
193
194 partitions {
195 compatible = "fixed-partitions";
196 #address-cells = <1>;
197 #size-cells = <1>;
198
199 partition@0 {
200 label = "ubi";
201 reg = <0x0000000 0x8000000>;
202 };
203 };
204 };
205 };
206
207 &blsp1_uart1 {
208 status = "okay";
209
210 pinctrl-0 = <&serial0_pins>;
211 pinctrl-names = "default";
212 };
213
214 &cryptobam {
215 status = "okay";
216 };
217
218 &gmac0 {
219 qcom,phy_mdio_addr = <2>;
220 qcom,poll_required = <1>;
221 };
222
223 &gmac1 {
224 qcom,phy_mdio_addr = <4>;
225 qcom,poll_required = <1>;
226 };
227
228 &tlmm {
229 serial0_pins: serial0_pinmux {
230 mux {
231 function = "blsp_uart0";
232 pins = "gpio60", "gpio61";
233 bias-disable;
234 };
235 };
236
237 spi0_pins: spi0_pinmux {
238 mux {
239 function = "blsp_spi0";
240 pins = "gpio55", "gpio56", "gpio57";
241 bias-disable;
242 drive-strength = <12>;
243 };
244
245 mux_cs {
246 function = "gpio";
247 pins = "gpio54", "gpio59";
248 bias-disable;
249 drive-strength = <2>;
250 output-high;
251 };
252 };
253 };
254
255 &usb2_hs_phy {
256 status = "okay";
257 };
258
259 &usb3_hs_phy {
260 status = "okay";
261 };
262
263 &usb3_ss_phy {
264 status = "okay";
265 };
266
267 &wifi0 {
268 status = "okay";
269
270 qcom,ath10k-calibration-variant = "Luma-WRTQ-329ACN";
271 };
272
273 &wifi1 {
274 status = "okay";
275
276 qcom,ath10k-calibration-variant = "Luma-WRTQ-329ACN";
277 };