summaryrefslogtreecommitdiff
path: root/arch/arm/dts/qcs404-evb.dts
blob: 8d7893c116956b7703c4ea0233f1afb616690375 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
// SPDX-License-Identifier: GPL-2.0+
/*
 * Qualcomm QCS404 based evaluation board device tree source
 *
 * (C) Copyright 2022 Sumit Garg <sumit.garg@linaro.org>
 */

/dts-v1/;

#include "skeleton64.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/clock/qcom,gcc-qcs404.h>

/ {
	model = "Qualcomm Technologies, Inc. QCS404 EVB";
	compatible = "qcom,qcs404-evb", "qcom,qcs404";
	#address-cells = <0x2>;
	#size-cells = <0x2>;

	chosen {
		stdout-path = "serial0:115200n8";
	};

	aliases {
		serial0 = &debug_uart;
		i2c0 = &blsp1_i2c0;
		i2c1 = &blsp1_i2c1;
		i2c2 = &blsp1_i2c2;
		i2c3 = &blsp1_i2c3;
		i2c4 = &blsp1_i2c4;
	};

	memory {
		device_type = "memory";
		reg = <0 0x80000000 0 0x40000000>;
	};

	soc {
		#address-cells = <0x1>;
		#size-cells = <0x1>;
		ranges = <0x0 0x0 0x0 0xffffffff>;
		compatible = "simple-bus";

		soc_gpios: pinctrl_north@1300000 {
			compatible = "qcom,qcs404-pinctrl";
			reg = <0x1300000 0x200000>;
			gpio-controller;
			gpio-count = <120>;
			gpio-bank-name="soc";
			#gpio-cells = <2>;

			blsp1_uart2: uart {
				pins = "GPIO_17", "GPIO_18";
				function = "blsp_uart2";
			};

			blsp1_i2c0_default: blsp1-i2c0-default {
				pins = "GPIO_32", "GPIO_33";
				function = "blsp_i2c0";
			};

			blsp1_i2c1_default: blsp1-i2c1-default {
				pins = "GPIO_24", "GPIO_25";
				function = "blsp_i2c1";
			};

			blsp1_i2c2_default: blsp1-i2c2-default {
				sda {
					pins = "GPIO_19";
					function = "blsp_i2c_sda_a2";
				};

				scl {
					pins = "GPIO_20";
					function = "blsp_i2c_scl_a2";
				};
			};

			blsp1_i2c3_default: blsp1-i2c3-default {
				pins = "GPIO_84", "GPIO_85";
				function = "blsp_i2c3";
			};

			blsp1_i2c4_default: blsp1-i2c4-default {
				pins = "GPIO_117", "GPIO_118";
				function = "blsp_i2c4";
			};

			ethernet_defaults: ethernet-defaults {
				int {
					pins = "GPIO_61";
					function = "rgmii_int";
					bias-disable;
					drive-strength = <2>;
				};
				mdc {
					pins = "GPIO_76";
					function = "rgmii_mdc";
					bias-pull-up;
				};
				mdio {
					pins = "GPIO_75";
					function = "rgmii_mdio";
					bias-pull-up;
				};
				tx {
					pins = "GPIO_67", "GPIO_66", "GPIO_65", "GPIO_64";
					function = "rgmii_tx";
					bias-pull-up;
					drive-strength = <16>;
				};
				rx {
					pins = "GPIO_73", "GPIO_72", "GPIO_71", "GPIO_70";
					function = "rgmii_rx";
					bias-disable;
					drive-strength = <2>;
				};
				tx-ctl {
					pins = "GPIO_68";
					function = "rgmii_ctl";
					bias-pull-up;
					drive-strength = <16>;
				};
				rx-ctl {
					pins = "GPIO_74";
					function = "rgmii_ctl";
					bias-disable;
					drive-strength = <2>;
				};
				tx-ck {
					pins = "GPIO_63";
					function = "rgmii_ck";
					bias-pull-up;
					drive-strength = <16>;
				};
				rx-ck {
					pins = "GPIO_69";
					function = "rgmii_ck";
					bias-disable;
					drive-strength = <2>;
				};
			};
		};

		blsp1_i2c0: i2c@78b5000 {
			compatible = "qcom,i2c-qup-v2.2.1";
			reg = <0x078b5000 0x600>;
			clocks = <&gcc GCC_BLSP1_AHB_CLK>,
				 <&gcc GCC_BLSP1_QUP0_I2C_APPS_CLK>;
			clock-names = "iface", "core";
			pinctrl-names = "default";
			pinctrl-0 = <&blsp1_i2c0_default>;
			#address-cells = <1>;
			#size-cells = <0>;
		};

		blsp1_i2c1: i2c@78b6000 {
			compatible = "qcom,i2c-qup-v2.2.1";
			reg = <0x078b6000 0x600>;
			clocks = <&gcc GCC_BLSP1_AHB_CLK>,
				 <&gcc GCC_BLSP1_QUP1_I2C_APPS_CLK>;
			clock-names = "iface", "core";
			pinctrl-names = "default";
			pinctrl-0 = <&blsp1_i2c1_default>;
			#address-cells = <1>;
			#size-cells = <0>;
		};

		blsp1_i2c2: i2c@78b7000 {
			compatible = "qcom,i2c-qup-v2.2.1";
			reg = <0x078b7000 0x600>;
			clocks = <&gcc GCC_BLSP1_AHB_CLK>,
				 <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>;
			clock-names = "iface", "core";
			pinctrl-names = "default";
			pinctrl-0 = <&blsp1_i2c2_default>;
			#address-cells = <1>;
			#size-cells = <0>;
		};

		blsp1_i2c3: i2c@78b8000 {
			compatible = "qcom,i2c-qup-v2.2.1";
			reg = <0x078b8000 0x600>;
			clocks = <&gcc GCC_BLSP1_AHB_CLK>,
				 <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>;
			clock-names = "iface", "core";
			pinctrl-names = "default";
			pinctrl-0 = <&blsp1_i2c3_default>;
			#address-cells = <1>;
			#size-cells = <0>;
		};

		blsp1_i2c4: i2c@78b9000 {
			compatible = "qcom,i2c-qup-v2.2.1";
			reg = <0x078b9000 0x600>;
			clocks = <&gcc GCC_BLSP1_AHB_CLK>,
				 <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>;
			clock-names = "iface", "core";
			pinctrl-names = "default";
			pinctrl-0 = <&blsp1_i2c4_default>;
			#address-cells = <1>;
			#size-cells = <0>;
		};

		gcc: clock-controller@1800000 {
			compatible = "qcom,gcc-qcs404";
			reg = <0x1800000 0x80000>;
			#address-cells = <0x1>;
			#size-cells = <0x0>;
			#clock-cells = <1>;
		};

		reset: gcc-reset@1800000 {
			compatible = "qcom,gcc-reset-qcs404";
			reg = <0x1800000 0x80000>;
			#reset-cells = <1>;
		};

		debug_uart: serial@78b1000 {
			compatible = "qcom,msm-uartdm-v1.4";
			reg = <0x78b1000 0x200>;
			clock = <&gcc GCC_BLSP1_UART2_APPS_CLK>,
				<&gcc GCC_BLSP1_AHB_CLK>;
			bit-rate = <0xFF>;
			pinctrl-names = "uart";
			pinctrl-0 = <&blsp1_uart2>;
		};

		sdhci@7804000 {
			compatible = "qcom,sdhci-msm-v5";
			reg = <0x7804000 0x1000 0x7805000 0x1000>;
			clock = <&gcc GCC_SDCC1_APPS_CLK>,
				<&gcc GCC_SDCC1_AHB_CLK>;
			bus-width = <0x8>;
			index = <0x0>;
			non-removable;
			mmc-ddr-1_8v;
			mmc-hs400-1_8v;
		};

		usb3_phy: phy@78000 {
			compatible = "qcom,usb-ss-28nm-phy";
			#phy-cells = <0>;
			reg = <0x78000 0x400>;
			clocks = <&gcc GCC_USB_HS_PHY_CFG_AHB_CLK>,
				 <&gcc GCC_USB3_PHY_PIPE_CLK>;
			clock-names = "ahb", "pipe";
			resets = <&reset GCC_USB3_PHY_BCR>,
				 <&reset GCC_USB3PHY_PHY_BCR>;
			reset-names = "com", "phy";
		};

		usb2_phy_prim: phy@7a000 {
			compatible = "qcom,usb-hs-28nm-femtophy";
			#phy-cells = <0>;
			reg = <0x7a000 0x200>;
			clocks = <&gcc GCC_USB_HS_PHY_CFG_AHB_CLK>,
				 <&gcc GCC_USB2A_PHY_SLEEP_CLK>;
			clock-names = "ahb", "sleep";
			resets = <&reset GCC_USB_HS_PHY_CFG_AHB_BCR>,
				 <&reset GCC_USB2A_PHY_BCR>;
			reset-names = "phy", "por";
		};

		usb2_phy_sec: phy@7c000 {
			compatible = "qcom,usb-hs-28nm-femtophy";
			#phy-cells = <0>;
			reg = <0x7c000 0x200>;
			clocks = <&gcc GCC_USB_HS_PHY_CFG_AHB_CLK>,
				 <&gcc GCC_USB2A_PHY_SLEEP_CLK>;
			clock-names = "ahb", "sleep";
			resets = <&reset GCC_QUSB2_PHY_BCR>,
				 <&reset GCC_USB2_HS_PHY_ONLY_BCR>;
			reset-names = "phy", "por";
		};

		usb3: usb@7678800 {
			compatible = "qcom,dwc3";
			reg = <0x7678800 0x400>;
			#address-cells = <1>;
			#size-cells = <1>;
			ranges;
			clocks = <&gcc GCC_USB30_MASTER_CLK>,
				 <&gcc GCC_SYS_NOC_USB3_CLK>,
				 <&gcc GCC_USB30_SLEEP_CLK>,
				 <&gcc GCC_USB30_MOCK_UTMI_CLK>;
			clock-names = "core", "iface", "sleep", "mock_utmi";

			dwc3@7580000 {
				compatible = "snps,dwc3";
				reg = <0x7580000 0xcd00>;
				phys = <&usb2_phy_prim>, <&usb3_phy>;
				phy-names = "usb2-phy", "usb3-phy";
				dr_mode = "host";
				snps,has-lpm-erratum;
				snps,hird-threshold = /bits/ 8 <0x10>;
				snps,usb3_lpm_capable;
				maximum-speed = "super-speed";
			};
		};

		usb2: usb@79b8800 {
			compatible = "qcom,dwc3";
			reg = <0x79b8800 0x400>;
			#address-cells = <1>;
			#size-cells = <1>;
			ranges;
			clocks = <&gcc GCC_USB_HS_SYSTEM_CLK>,
				 <&gcc GCC_PCNOC_USB2_CLK>,
				 <&gcc GCC_USB_HS_INACTIVITY_TIMERS_CLK>,
				 <&gcc GCC_USB20_MOCK_UTMI_CLK>;
			clock-names = "core", "iface", "sleep", "mock_utmi";

			dwc3@78c0000 {
				compatible = "snps,dwc3";
				reg = <0x78c0000 0xcc00>;
				phys = <&usb2_phy_sec>;
				phy-names = "usb2-phy";
				dr_mode = "peripheral";
				snps,has-lpm-erratum;
				snps,hird-threshold = /bits/ 8 <0x10>;
				snps,usb3_lpm_capable;
				maximum-speed = "high-speed";
			};
		};

		ethernet: ethernet@7a80000 {
			compatible = "qcom,qcs404-ethqos";
			reg = <0x07a80000 0x10000>,
				<0x07a96000 0x100>;
			reg-names = "stmmaceth", "rgmii";
			clock-names = "stmmaceth", "pclk", "ptp_ref", "rgmii";
			clocks = <&gcc GCC_ETH_AXI_CLK>,
				 <&gcc GCC_ETH_SLAVE_AHB_CLK>,
				 <&gcc GCC_ETH_PTP_CLK>,
				 <&gcc GCC_ETH_RGMII_CLK>;

			resets = <&reset GCC_EMAC_BCR>;
			reset-names = "emac";

			snps,tso;
			rx-fifo-depth = <4096>;
			tx-fifo-depth = <4096>;

			snps,reset-gpio = <&soc_gpios 60 GPIO_ACTIVE_LOW>;
			snps,reset-active-low;
			snps,reset-delays-us = <0 10000 10000>;

			pinctrl-names = "default";
			pinctrl-0 = <&ethernet_defaults>;

			phy-handle = <&phy1>;
			phy-mode = "rgmii";
			max-speed = <1000>;

			mdio {
				#address-cells = <0x1>;
				#size-cells = <0x0>;
				compatible = "snps,dwmac-mdio";
				phy1: phy@3 {
					compatible = "ethernet-phy-ieee802.3-c22";
					device_type = "ethernet-phy";
					reg = <0x3>;
				};
			};
		};

		spmi@200f000 {
			compatible = "qcom,spmi-pmic-arb";
			reg = <0x200f000 0x1000
			       0x2400000 0x400000
			       0x2c00000 0x400000>;
			#address-cells = <0x1>;
			#size-cells = <0x1>;

			pms405_0: pms405@0 {
				compatible = "qcom,spmi-pmic";
				reg = <0x0 0x1>;
				#address-cells = <0x1>;
				#size-cells = <0x1>;

				pms405_gpios: pms405_gpios@c000 {
					compatible = "qcom,pms405-gpio";
					reg = <0xc000 0x400>;
					gpio-controller;
					gpio-count = <12>;
					#gpio-cells = <2>;
					gpio-bank-name="pmic";
				};
			};
		};
	};
};

#include "qcs404-evb-uboot.dtsi"