summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/freescale/imx93-tqma9352.dtsi
blob: 2cabdae2422739c1f38d4adb6652c87be70f9dd8 (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
// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
/*
 * Copyright (c) 2022 TQ-Systems GmbH <linux@ew.tq-group.com>,
 * D-82229 Seefeld, Germany.
 * Author: Markus Niebel
 */

#include "imx93.dtsi"

/{
	model = "TQ-Systems i.MX93 TQMa93xxLA/TQMa93xxCA SOM";
	compatible = "tq,imx93-tqma9352", "fsl,imx93";

	reserved-memory {
		#address-cells = <2>;
		#size-cells = <2>;
		ranges;

		linux,cma {
			compatible = "shared-dma-pool";
			reusable;
			alloc-ranges = <0 0x80000000 0 0x40000000>;
			size = <0 0x10000000>;
			linux,cma-default;
		};
	};

	/* SD2 RST# via PMIC SW_EN */
	reg_usdhc2_vmmc: regulator-usdhc2 {
		compatible = "regulator-fixed";
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>;
		regulator-name = "VSD_3V3";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		vin-supply = <&buck4>;
		gpio = <&gpio3 7 GPIO_ACTIVE_HIGH>;
		enable-active-high;
	};
};

&adc1 {
	vref-supply = <&buck5>;
};

&flexspi1 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_flexspi1>;
	status = "okay";

	flash0: flash@0 {
		compatible = "jedec,spi-nor";
		reg = <0>;
		/*
		 * no DQS, RXCLKSRC internal loop back, max 66 MHz
		 * clk framework uses CLK_DIVIDER_ROUND_CLOSEST
		 * selected value together with root from
		 * IMX93_CLK_SYS_PLL_PFD1 @ 800.000.000 Hz helps to
		 * respect the maximum value.
		 */
		spi-max-frequency = <62000000>;
		spi-tx-bus-width = <4>;
		spi-rx-bus-width = <4>;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;
		};
	};
};

&gpio1 {
	pmic-irq-hog {
		gpio-hog;
		gpios = <3 GPIO_ACTIVE_LOW>;
		input;
		line-name = "PMIC_IRQ#";
	};
};

&lpi2c1 {
	clock-frequency = <400000>;
	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&pinctrl_lpi2c1>;
	pinctrl-1 = <&pinctrl_lpi2c1>;
	status = "okay";

	se97_som: temperature-sensor@1b {
		compatible = "nxp,se97b", "jedec,jc-42.4-temp";
		reg = <0x1b>;
	};

	pca9451a: pmic@25 {
		compatible = "nxp,pca9451a";
		reg = <0x25>;
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_pca9451>;
		interrupt-parent = <&gpio1>;
		interrupts = <3 IRQ_TYPE_LEVEL_LOW>;

		regulators {
			/* V_0V8_SOC - hw developer guide: 0.75 .. 0.9 */
			buck1: BUCK1 {
				regulator-name = "BUCK1";
				regulator-min-microvolt = <750000>;
				regulator-max-microvolt = <900000>;
				regulator-boot-on;
				regulator-always-on;
				regulator-ramp-delay = <3125>;
			};

			/* V_DDRQ - 1.1 LPDDR4 or 0.6 LPDDR4X */
			buck2: BUCK2 {
				regulator-name = "BUCK2";
				regulator-min-microvolt = <600000>;
				regulator-max-microvolt = <1100000>;
				regulator-boot-on;
				regulator-always-on;
				regulator-ramp-delay = <3125>;
			};

			/* V_3V3 - EEPROM, RTC, ... */
			buck4: BUCK4 {
				regulator-name = "BUCK4";
				regulator-min-microvolt = <3300000>;
				regulator-max-microvolt = <3300000>;
				regulator-boot-on;
				regulator-always-on;
			};

			/* V_1V8 - SPI NOR, eMMC, RAM VDD1... */
			buck5: BUCK5 {
				regulator-name = "BUCK5";
				regulator-min-microvolt = <1800000>;
				regulator-max-microvolt = <1800000>;
				regulator-boot-on;
				regulator-always-on;
			};

			/* V_1V1 - RAM VDD2*/
			buck6: BUCK6 {
				regulator-name = "BUCK6";
				regulator-min-microvolt = <1100000>;
				regulator-max-microvolt = <1100000>;
				regulator-boot-on;
				regulator-always-on;
			};

			/* V_1V8_BBSM, fix 1.8 */
			ldo1: LDO1 {
				regulator-name = "LDO1";
				regulator-min-microvolt = <1800000>;
				regulator-max-microvolt = <1800000>;
				regulator-boot-on;
				regulator-always-on;
			};

			/* V_0V8_ANA */
			ldo4: LDO4 {
				regulator-name = "LDO4";
				regulator-min-microvolt = <800000>;
				regulator-max-microvolt = <800000>;
				regulator-boot-on;
				regulator-always-on;
			};

			/* V_SD2 - 3.3/1.8V USDHC2 io Voltage */
			ldo5: LDO5 {
				regulator-name = "LDO5";
				regulator-min-microvolt = <1800000>;
				regulator-max-microvolt = <3300000>;
				regulator-boot-on;
				regulator-always-on;
			};
		};
	};

	pcf85063: rtc@51 {
		compatible = "nxp,pcf85063a";
		reg = <0x51>;
		quartz-load-femtofarads = <7000>;
	};

	eeprom0: eeprom@53 {
		compatible = "nxp,se97b", "atmel,24c02";
		reg = <0x53>;
		pagesize = <16>;
		read-only;
		vcc-supply = <&buck4>;
	};

	eeprom1: eeprom@57 {
		compatible = "atmel,24c64";
		reg = <0x57>;
		pagesize = <32>;
		vcc-supply = <&buck4>;
	};

	/* protectable identification memory (part of M24C64-D @57) */
	eeprom@5f {
		compatible = "atmel,24c64d-wl";
		reg = <0x5f>;
		vcc-supply = <&buck4>;
	};

	imu@6a {
		compatible = "st,ism330dhcx";
		reg = <0x6a>;
		vdd-supply = <&buck4>;
		vddio-supply = <&buck4>;
	};
};

&usdhc1 {
	pinctrl-names = "default", "state_100mhz", "state_200mhz";
	pinctrl-0 = <&pinctrl_usdhc1>;
	pinctrl-1 = <&pinctrl_usdhc1>;
	pinctrl-2 = <&pinctrl_usdhc1>;
	vmmc-supply = <&buck4>;
	vqmmc-supply = <&buck5>;
	bus-width = <8>;
	non-removable;
	no-sdio;
	no-sd;
	status = "okay";
};

&wdog3 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_wdog>;
	fsl,ext-reset-output;
	status = "okay";
};

&iomuxc {
	pinctrl_flexspi1: flexspi1grp {
		fsl,pins = <
			/* FSEL 3  | DSE X6 */
			MX93_PAD_SD3_CMD__FLEXSPI1_A_SS0_B	0x01fe
			MX93_PAD_SD3_CLK__FLEXSPI1_A_SCLK	0x01fe
			/* HYS | PU | FSEL 3  | DSE X6 */
			MX93_PAD_SD3_DATA0__FLEXSPI1_A_DATA00	0x13fe
			MX93_PAD_SD3_DATA1__FLEXSPI1_A_DATA01	0x13fe
			/* HYS | FSEL 3  | DSE X6 (external PU) */
			MX93_PAD_SD3_DATA2__FLEXSPI1_A_DATA02	0x11fe
			MX93_PAD_SD3_DATA3__FLEXSPI1_A_DATA03	0x11fe
		>;
	};

	pinctrl_lpi2c1: lpi2c1grp {
		fsl,pins = <
			/* SION | OD | FSEL 3 | DSE X4 */
			MX93_PAD_I2C1_SCL__LPI2C1_SCL		0x4000199e
			MX93_PAD_I2C1_SDA__LPI2C1_SDA		0x4000199e
		>;
	};

	pinctrl_pca9451: pca9451grp {
		fsl,pins = <
			/* HYS | PU */
			MX93_PAD_I2C2_SDA__GPIO1_IO03		0x1200
		>;
	};

	pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp {
		fsl,pins = <
			/* FSEL 2 | DSE X2 */
			MX93_PAD_SD2_RESET_B__GPIO3_IO07	0x106
		>;
	};

	/* enable SION for data and cmd pad due to ERR052021 */
	pinctrl_usdhc1: usdhc1grp {
		fsl,pins = <
			/* PD | FSEL 3 | DSE X5 */
			MX93_PAD_SD1_CLK__USDHC1_CLK		0x5be
			/* HYS | FSEL 0 | no drive */
			MX93_PAD_SD1_STROBE__USDHC1_STROBE	0x1000
			/* HYS | FSEL 3 | X5 */
			MX93_PAD_SD1_CMD__USDHC1_CMD		0x400011be
			/* HYS | FSEL 3 | X4 */
			MX93_PAD_SD1_DATA0__USDHC1_DATA0	0x4000119e
			MX93_PAD_SD1_DATA1__USDHC1_DATA1	0x4000119e
			MX93_PAD_SD1_DATA2__USDHC1_DATA2	0x4000119e
			MX93_PAD_SD1_DATA3__USDHC1_DATA3	0x4000119e
			MX93_PAD_SD1_DATA4__USDHC1_DATA4	0x4000119e
			MX93_PAD_SD1_DATA5__USDHC1_DATA5	0x4000119e
			MX93_PAD_SD1_DATA6__USDHC1_DATA6	0x4000119e
			MX93_PAD_SD1_DATA7__USDHC1_DATA7	0x4000119e
		>;
	};

	pinctrl_wdog: wdoggrp {
		fsl,pins = <
			/* PU | FSEL 1 | DSE X4 */
			MX93_PAD_WDOG_ANY__WDOG1_WDOG_ANY	0x31e
		>;
	};
};