Debian Codegraph @

arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml.dtsi

raw
1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
2 /*
3 * Copyright 2020-2021 TQ-Systems GmbH
4 */
5
6 #include <dt-bindings/phy/phy-imx8-pcie.h>
7 #include "imx8mm.dtsi"
8
9 / {
10 model = "TQ-Systems GmbH i.MX8MM TQMa8MxML";
11 compatible = "tq,imx8mm-tqma8mqml", "fsl,imx8mm";
12
13 memory@40000000 {
14 device_type = "memory";
15 /* our minimum RAM config will be 1024 MiB */
16 reg = <0x00000000 0x40000000 0 0x40000000>;
17 };
18
19 reg_usdhc2_vqmmc: regulator-usdhc2-vqmmc {
20 compatible = "regulator-gpio";
21 pinctrl-names = "default";
22 pinctrl-0 = <&pinctrl_reg_usdhc2_vqmmc>;
23 regulator-name = "V_SD2";
24 regulator-min-microvolt = <1800000>;
25 regulator-max-microvolt = <3300000>;
26 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
27 states = <1800000 0x1>,
28 <3300000 0x0>;
29 vin-supply = <&ldo5_reg>;
30 status = "disabled";
31 };
32
33 reserved-memory {
34 #address-cells = <2>;
35 #size-cells = <2>;
36 ranges;
37
38 /* global autoconfigured region for contiguous allocations */
39 linux,cma {
40 compatible = "shared-dma-pool";
41 reusable;
42 /* 640 MiB */
43 size = <0 0x28000000>;
44 /* 1024 - 128 MiB, our minimum RAM config will be 1024 MiB */
45 alloc-ranges = <0 0x40000000 0 0x78000000>;
46 linux,cma-default;
47 };
48 };
49 };
50
51 &A53_0 {
52 cpu-supply = <&buck2_reg>;
53 };
54
55 &flexspi {
56 pinctrl-names = "default";
57 pinctrl-0 = <&pinctrl_flexspi>;
58 status = "okay";
59
60 flash0: flash@0 {
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63 spi-max-frequency = <84000000>;
64 spi-tx-bus-width = <1>;
65 spi-rx-bus-width = <4>;
66 vcc-supply = <&buck5_reg>;
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72 };
73 };
74 };
75
76 &gpu_2d {
77 status = "okay";
78 };
79
80 &gpu_3d {
81 status = "okay";
82 };
83
84 &i2c1 {
85 pinctrl-names = "default", "gpio";
86 pinctrl-0 = <&pinctrl_i2c1>;
87 pinctrl-1 = <&pinctrl_i2c1_gpio>;
88 scl-gpios = <&gpio5 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
89 sda-gpios = <&gpio5 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
90 status = "okay";
91
92 sensor0: temperature-sensor@1b {
93 compatible = "nxp,se97b", "jedec,jc-42.4-temp";
94 reg = <0x1b>;
95 };
96
97 pca9450: pmic@25 {
98 compatible = "nxp,pca9450a";
99 reg = <0x25>;
100
101 /* PMIC PCA9450 PMIC_nINT GPIO1_IO08 */
102 pinctrl-0 = <&pinctrl_pmic>;
103 pinctrl-names = "default";
104 interrupt-parent = <&gpio1>;
105 interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
106
107 regulators {
108 /* V_0V85_SOC: 0.85 */
109 buck1_reg: BUCK1 {
110 regulator-name = "BUCK1";
111 regulator-min-microvolt = <850000>;
112 regulator-max-microvolt = <850000>;
113 regulator-boot-on;
114 regulator-always-on;
115 regulator-ramp-delay = <3125>;
116 };
117
118 /* VDD_ARM */
119 buck2_reg: BUCK2 {
120 regulator-name = "BUCK2";
121 regulator-min-microvolt = <850000>;
122 regulator-max-microvolt = <1000000>;
123 regulator-boot-on;
124 regulator-always-on;
125 nxp,dvs-run-voltage = <950000>;
126 nxp,dvs-standby-voltage = <850000>;
127 regulator-ramp-delay = <3125>;
128 };
129
130 /* V_0V85_GPU / DRAM / VPU */
131 buck3_reg: BUCK3 {
132 regulator-name = "BUCK3";
133 regulator-min-microvolt = <850000>;
134 regulator-max-microvolt = <950000>;
135 regulator-boot-on;
136 regulator-always-on;
137 regulator-ramp-delay = <3125>;
138 };
139
140 /* VCC3V3 -> VMMC, ... must not be changed */
141 buck4_reg: BUCK4 {
142 regulator-name = "BUCK4";
143 regulator-min-microvolt = <3300000>;
144 regulator-max-microvolt = <3300000>;
145 regulator-boot-on;
146 regulator-always-on;
147 };
148
149 /* V_1V8 -> VQMMC, SPI-NOR, ... must not be changed */
150 buck5_reg: BUCK5 {
151 regulator-name = "BUCK5";
152 regulator-min-microvolt = <1800000>;
153 regulator-max-microvolt = <1800000>;
154 regulator-boot-on;
155 regulator-always-on;
156 };
157
158 /* V_1V1 -> RAM, ... must not be changed */
159 buck6_reg: BUCK6 {
160 regulator-name = "BUCK6";
161 regulator-min-microvolt = <1100000>;
162 regulator-max-microvolt = <1100000>;
163 regulator-boot-on;
164 regulator-always-on;
165 };
166
167 /* V_1V8_SNVS */
168 ldo1_reg: LDO1 {
169 regulator-name = "LDO1";
170 regulator-min-microvolt = <1800000>;
171 regulator-max-microvolt = <1800000>;
172 regulator-boot-on;
173 regulator-always-on;
174 };
175
176 /* V_0V8_SNVS */
177 ldo2_reg: LDO2 {
178 regulator-name = "LDO2";
179 regulator-min-microvolt = <800000>;
180 regulator-max-microvolt = <850000>;
181 regulator-boot-on;
182 regulator-always-on;
183 };
184
185 /* V_1V8_ANA */
186 ldo3_reg: LDO3 {
187 regulator-name = "LDO3";
188 regulator-min-microvolt = <1800000>;
189 regulator-max-microvolt = <1800000>;
190 regulator-boot-on;
191 regulator-always-on;
192 };
193
194 /* V_0V9_MIPI */
195 ldo4_reg: LDO4 {
196 regulator-name = "LDO4";
197 regulator-min-microvolt = <900000>;
198 regulator-max-microvolt = <900000>;
199 regulator-boot-on;
200 regulator-always-on;
201 };
202
203 /* VCC SD IO - switched using SD2 VSELECT */
204 ldo5_reg: LDO5 {
205 regulator-name = "LDO5";
206 regulator-min-microvolt = <1800000>;
207 regulator-max-microvolt = <3300000>;
208 };
209 };
210 };
211
212 pcf85063: rtc@51 {
213 compatible = "nxp,pcf85063a";
214 reg = <0x51>;
215 quartz-load-femtofarads = <7000>;
216 };
217
218 eeprom1: eeprom@53 {
219 compatible = "nxp,se97b", "atmel,24c02";
220 read-only;
221 reg = <0x53>;
222 pagesize = <16>;
223 vcc-supply = <&buck4_reg>;
224 };
225
226 eeprom0: eeprom@57 {
227 compatible = "atmel,24c64";
228 reg = <0x57>;
229 pagesize = <32>;
230 vcc-supply = <&buck4_reg>;
231 };
232 };
233
234 &mipi_dsi {
235 vddcore-supply = <&ldo4_reg>;
236 vddio-supply = <&ldo3_reg>;
237 };
238
239 &pcie_phy {
240 fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
241 fsl,clkreq-unsupported;
242 };
243
244 &usdhc2 {
245 vqmmc-supply = <&reg_usdhc2_vqmmc>;
246 };
247
248 &usdhc3 {
249 pinctrl-names = "default", "state_100mhz", "state_200mhz";
250 pinctrl-0 = <&pinctrl_usdhc3>;
251 pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
252 pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
253 bus-width = <8>;
254 non-removable;
255 no-sd;
256 no-sdio;
257 vmmc-supply = <&buck4_reg>;
258 vqmmc-supply = <&buck5_reg>;
259 status = "okay";
260 };
261
262 /*
263 * Attention:
264 * wdog reset is routed to PMIC, PMIC must be preconfigured to force POR
265 * without LDO for SNVS. GPIO1_IO02 must not be used as GPIO.
266 */
267 &wdog1 {
268 pinctrl-names = "default";
269 pinctrl-0 = <&pinctrl_wdog>;
270 fsl,ext-reset-output;
271 status = "okay";
272 };
273
274 &iomuxc {
275 pinctrl_flexspi: flexspigrp {
276 fsl,pins = <MX8MM_IOMUXC_NAND_ALE_QSPI_A_SCLK 0x82>,
277 <MX8MM_IOMUXC_NAND_CE0_B_QSPI_A_SS0_B 0x82>,
278 <MX8MM_IOMUXC_NAND_DATA00_QSPI_A_DATA0 0x82>,
279 <MX8MM_IOMUXC_NAND_DATA01_QSPI_A_DATA1 0x82>,
280 <MX8MM_IOMUXC_NAND_DATA02_QSPI_A_DATA2 0x82>,
281 <MX8MM_IOMUXC_NAND_DATA03_QSPI_A_DATA3 0x82>;
282 };
283
284 pinctrl_i2c1: i2c1grp {
285 fsl,pins = <MX8MM_IOMUXC_I2C1_SCL_I2C1_SCL 0x40000004>,
286 <MX8MM_IOMUXC_I2C1_SDA_I2C1_SDA 0x40000004>;
287 };
288
289 pinctrl_i2c1_gpio: i2c1gpiogrp {
290 fsl,pins = <MX8MM_IOMUXC_I2C1_SCL_GPIO5_IO14 0x40000004>,
291 <MX8MM_IOMUXC_I2C1_SDA_GPIO5_IO15 0x40000004>;
292 };
293
294 pinctrl_pmic: pmicgrp {
295 fsl,pins = <MX8MM_IOMUXC_GPIO1_IO08_GPIO1_IO8 0x1d4>;
296 };
297
298 pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp {
299 fsl,pins = <MX8MM_IOMUXC_SD2_RESET_B_GPIO2_IO19 0x84>;
300 };
301
302 pinctrl_reg_usdhc2_vqmmc: regusdhc2vqmmcgrp {
303 fsl,pins = <MX8MM_IOMUXC_GPIO1_IO04_GPIO1_IO4 0xc0>;
304 };
305
306 pinctrl_usdhc3: usdhc3grp {
307 fsl,pins = <MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x1d4>,
308 <MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d2>,
309 <MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d4>,
310 <MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d4>,
311 <MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d4>,
312 <MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d4>,
313 <MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d4>,
314 <MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d4>,
315 <MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d4>,
316 <MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d4>,
317 <MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x84>,
318 /* option USDHC3_RESET_B not defined, only in RM */
319 <MX8MM_IOMUXC_NAND_READY_B_GPIO3_IO16 0x84>;
320 };
321
322 pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp {
323 fsl,pins = <MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x1d2>,
324 <MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d2>,
325 <MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d4>,
326 <MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d4>,
327 <MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d4>,
328 <MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d4>,
329 <MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d4>,
330 <MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d4>,
331 <MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d4>,
332 <MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d4>,
333 <MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x84>,
334 /* option USDHC3_RESET_B not defined, only in RM */
335 <MX8MM_IOMUXC_NAND_READY_B_GPIO3_IO16 0x84>;
336 };
337
338 pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp {
339 fsl,pins = <MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x1d6>,
340 <MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d2>,
341 <MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d4>,
342 <MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d4>,
343 <MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d4>,
344 <MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d4>,
345 <MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d4>,
346 <MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d4>,
347 <MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d4>,
348 <MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d4>,
349 <MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x84>,
350 /* option USDHC3_RESET_B not defined, only in RM */
351 <MX8MM_IOMUXC_NAND_READY_B_GPIO3_IO16 0x84>;
352 };
353
354 pinctrl_wdog: wdoggrp {
355 fsl,pins = <MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0x84>;
356 };
357 };