blob: 7e53ac6cfa8aa8c56cd8e800401fc33cacd66724 [file] [log] [blame]
Philipp Zabel4fe69a92014-04-14 17:37:23 +02001/*
2 * Copyright 2013 Christian Hemp, Phytec Messtechnik GmbH
3 *
4 * The code contained herein is licensed under the GNU General Public
5 * License. You may obtain a copy of the GNU General Public License
6 * Version 2 or later at the following locations:
7 *
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
10 */
11
Philipp Zabel26888192014-04-14 17:37:26 +020012#include <dt-bindings/gpio/gpio.h>
13
Philipp Zabel4fe69a92014-04-14 17:37:23 +020014/ {
Michael Opdenackera452afa2015-10-13 13:43:55 +020015 model = "Phytec phyFLEX-i.MX6 Quad";
Philipp Zabel4fe69a92014-04-14 17:37:23 +020016 compatible = "phytec,imx6q-pfla02", "fsl,imx6q";
17
Marco Franchiad00e082018-01-24 11:22:14 -020018 memory@10000000 {
Marco Franchi404c0c92018-12-05 16:10:03 -020019 device_type = "memory";
Philipp Zabel4fe69a92014-04-14 17:37:23 +020020 reg = <0x10000000 0x80000000>;
21 };
22
23 regulators {
24 compatible = "simple-bus";
25 #address-cells = <1>;
26 #size-cells = <0>;
27
28 reg_usb_otg_vbus: regulator@0 {
29 compatible = "regulator-fixed";
30 reg = <0>;
31 regulator-name = "usb_otg_vbus";
32 regulator-min-microvolt = <5000000>;
33 regulator-max-microvolt = <5000000>;
34 gpio = <&gpio4 15 0>;
Philipp Zabel7f8d49d2015-04-21 15:59:53 +020035 enable-active-high;
Philipp Zabel4fe69a92014-04-14 17:37:23 +020036 };
37
38 reg_usb_h1_vbus: regulator@1 {
39 compatible = "regulator-fixed";
40 reg = <1>;
41 regulator-name = "usb_h1_vbus";
42 regulator-min-microvolt = <5000000>;
43 regulator-max-microvolt = <5000000>;
44 gpio = <&gpio1 0 0>;
Philipp Zabel7f8d49d2015-04-21 15:59:53 +020045 enable-active-high;
Philipp Zabel4fe69a92014-04-14 17:37:23 +020046 };
47 };
Philipp Zabel94a1bbf2014-04-14 17:37:25 +020048
49 gpio_leds: leds {
50 compatible = "gpio-leds";
51
52 green {
53 label = "phyflex:green";
54 gpios = <&gpio1 30 0>;
55 };
56
57 red {
58 label = "phyflex:red";
59 gpios = <&gpio2 31 0>;
60 };
61 };
Philipp Zabel4fe69a92014-04-14 17:37:23 +020062};
63
Dmitry Lavnikevich8fa91c82014-11-04 16:05:48 +030064&audmux {
65 pinctrl-names = "default";
66 pinctrl-0 = <&pinctrl_audmux>;
67 status = "disabled";
68};
69
Christian Hemp1b61fee2014-11-14 14:32:26 +010070&can1 {
71 pinctrl-names = "default";
72 pinctrl-0 = <&pinctrl_flexcan1>;
73 status = "disabled";
74};
75
Philipp Zabel4fe69a92014-04-14 17:37:23 +020076&ecspi3 {
77 pinctrl-names = "default";
78 pinctrl-0 = <&pinctrl_ecspi3>;
79 status = "okay";
Philipp Zabel4fe69a92014-04-14 17:37:23 +020080 cs-gpios = <&gpio4 24 0>;
81
Marco Felsch99f698e2019-02-04 16:29:55 +010082 som_flash: flash@0 {
Rafał Miłecki79826ac2015-08-16 08:39:17 +020083 compatible = "m25p80", "jedec,spi-nor";
Philipp Zabel4fe69a92014-04-14 17:37:23 +020084 spi-max-frequency = <20000000>;
85 reg = <0>;
86 };
87};
88
Christian Hemp35008832014-11-14 14:32:22 +010089&fec {
90 pinctrl-names = "default";
91 pinctrl-0 = <&pinctrl_enet>;
Philipp Zabel8de81c82019-02-04 16:29:56 +010092 phy-handle = <&ethphy>;
Christian Hemp35008832014-11-14 14:32:22 +010093 phy-mode = "rgmii";
Marco Felsch032f85c2019-03-04 11:49:40 +010094 phy-reset-duration = <10>; /* in msecs */
Christian Hemp35008832014-11-14 14:32:22 +010095 phy-reset-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
96 phy-supply = <&vdd_eth_io_reg>;
97 status = "disabled";
Philipp Zabel8de81c82019-02-04 16:29:56 +010098
99 fec_mdio: mdio {
100 #address-cells = <1>;
101 #size-cells = <0>;
102
103 ethphy: ethernet-phy@0 {
104 compatible = "ethernet-phy-ieee802.3-c22";
105 reg = <0>;
106 txc-skew-ps = <1680>;
107 rxc-skew-ps = <1860>;
108 };
109 };
Christian Hemp35008832014-11-14 14:32:22 +0100110};
111
112&gpmi {
113 pinctrl-names = "default";
114 pinctrl-0 = <&pinctrl_gpmi_nand>;
115 nand-on-flash-bbt;
Christian Hemp0019d182014-11-14 14:32:23 +0100116 status = "okay";
Christian Hemp35008832014-11-14 14:32:22 +0100117};
118
Philipp Zabel4fe69a92014-04-14 17:37:23 +0200119&i2c1 {
120 pinctrl-names = "default";
121 pinctrl-0 = <&pinctrl_i2c1>;
122 status = "okay";
123
Marco Felsch99f698e2019-02-04 16:29:55 +0100124 som_eeprom: eeprom@50 {
Philipp Zabel4fe69a92014-04-14 17:37:23 +0200125 compatible = "atmel,24c32";
126 reg = <0x50>;
127 };
128
129 pmic@58 {
Steve Twissbd597f42014-08-22 15:26:55 +0100130 compatible = "dlg,da9063";
Philipp Zabel4fe69a92014-04-14 17:37:23 +0200131 reg = <0x58>;
Christian Hempc082fd42014-11-14 14:32:24 +0100132 interrupt-parent = <&gpio2>;
Hernán Gonzalez8bf48e72018-05-13 20:28:35 -0300133 interrupts = <9 IRQ_TYPE_LEVEL_LOW>; /* active-low GPIO2_9 */
Marco Felschbffe0d82019-02-04 14:33:33 +0100134 interrupt-controller;
Philipp Zabel4fe69a92014-04-14 17:37:23 +0200135
136 regulators {
137 vddcore_reg: bcore1 {
138 regulator-min-microvolt = <730000>;
139 regulator-max-microvolt = <1380000>;
140 regulator-always-on;
141 };
142
143 vddsoc_reg: bcore2 {
144 regulator-min-microvolt = <730000>;
145 regulator-max-microvolt = <1380000>;
146 regulator-always-on;
147 };
148
149 vdd_ddr3_reg: bpro {
150 regulator-min-microvolt = <1500000>;
151 regulator-max-microvolt = <1500000>;
152 regulator-always-on;
153 };
154
155 vdd_3v3_reg: bperi {
156 regulator-min-microvolt = <3300000>;
157 regulator-max-microvolt = <3300000>;
158 regulator-always-on;
159 };
160
161 vdd_buckmem_reg: bmem {
162 regulator-min-microvolt = <3300000>;
163 regulator-max-microvolt = <3300000>;
164 regulator-always-on;
165 };
166
167 vdd_eth_reg: bio {
168 regulator-min-microvolt = <1200000>;
169 regulator-max-microvolt = <1200000>;
170 regulator-always-on;
171 };
172
173 vdd_eth_io_reg: ldo4 {
174 regulator-min-microvolt = <2500000>;
175 regulator-max-microvolt = <2500000>;
176 regulator-always-on;
177 };
178
179 vdd_mx6_snvs_reg: ldo5 {
180 regulator-min-microvolt = <3000000>;
181 regulator-max-microvolt = <3000000>;
182 regulator-always-on;
183 };
184
185 vdd_3v3_pmic_io_reg: ldo6 {
186 regulator-min-microvolt = <3300000>;
187 regulator-max-microvolt = <3300000>;
188 regulator-always-on;
189 };
190
191 vdd_sd0_reg: ldo9 {
192 regulator-min-microvolt = <3300000>;
193 regulator-max-microvolt = <3300000>;
194 };
195
196 vdd_sd1_reg: ldo10 {
197 regulator-min-microvolt = <3300000>;
198 regulator-max-microvolt = <3300000>;
199 };
200
201 vdd_mx6_high_reg: ldo11 {
202 regulator-min-microvolt = <3000000>;
203 regulator-max-microvolt = <3000000>;
204 regulator-always-on;
205 };
206 };
207 };
208};
209
Dmitry Lavnikevichd76fab82014-11-04 16:05:47 +0300210&i2c2 {
211 pinctrl-names = "default";
212 pinctrl-0 = <&pinctrl_i2c2>;
213 clock-frequency = <100000>;
214};
215
216&i2c3 {
217 pinctrl-names = "default";
218 pinctrl-0 = <&pinctrl_i2c3>;
219 clock-frequency = <100000>;
220};
221
Philipp Zabel4fe69a92014-04-14 17:37:23 +0200222&iomuxc {
223 pinctrl-names = "default";
224 pinctrl-0 = <&pinctrl_hog>;
225
226 imx6q-phytec-pfla02 {
227 pinctrl_hog: hoggrp {
228 fsl,pins = <
229 MX6QDL_PAD_EIM_D23__GPIO3_IO23 0x80000000
230 MX6QDL_PAD_DISP0_DAT3__GPIO4_IO24 0x80000000 /* SPI NOR chipselect */
Christian Hempc082fd42014-11-14 14:32:24 +0100231 MX6QDL_PAD_SD4_DAT1__GPIO2_IO09 0x80000000 /* PMIC interrupt */
Philipp Zabel94a1bbf2014-04-14 17:37:25 +0200232 MX6QDL_PAD_ENET_TXD0__GPIO1_IO30 0x80000000 /* Green LED */
233 MX6QDL_PAD_EIM_EB3__GPIO2_IO31 0x80000000 /* Red LED */
Philipp Zabel4fe69a92014-04-14 17:37:23 +0200234 >;
235 };
236
237 pinctrl_ecspi3: ecspi3grp {
238 fsl,pins = <
239 MX6QDL_PAD_DISP0_DAT2__ECSPI3_MISO 0x100b1
240 MX6QDL_PAD_DISP0_DAT1__ECSPI3_MOSI 0x100b1
241 MX6QDL_PAD_DISP0_DAT0__ECSPI3_SCLK 0x100b1
242 >;
243 };
244
245 pinctrl_enet: enetgrp {
246 fsl,pins = <
247 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
248 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
Uwe Kleine-Königc007b3a2016-07-08 23:22:54 +0200249 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b030
250 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030
251 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030
252 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030
253 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030
254 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030
Philipp Zabel4fe69a92014-04-14 17:37:23 +0200255 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
Uwe Kleine-Königc007b3a2016-07-08 23:22:54 +0200256 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
257 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
258 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
259 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
260 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
261 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
Philipp Zabel4fe69a92014-04-14 17:37:23 +0200262 MX6QDL_PAD_ENET_TX_EN__ENET_TX_EN 0x1b0b0
263 >;
264 };
265
Christian Hemp1b61fee2014-11-14 14:32:26 +0100266 pinctrl_flexcan1: flexcan1grp {
267 fsl,pins = <
268 MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x1b0b0
269 MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x1b0b0
270 >;
271 };
272
Philipp Zabel4fe69a92014-04-14 17:37:23 +0200273 pinctrl_gpmi_nand: gpminandgrp {
274 fsl,pins = <
275 MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1
276 MX6QDL_PAD_NANDF_ALE__NAND_ALE 0xb0b1
277 MX6QDL_PAD_NANDF_WP_B__NAND_WP_B 0xb0b1
278 MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
279 MX6QDL_PAD_NANDF_CS0__NAND_CE0_B 0xb0b1
280 MX6QDL_PAD_NANDF_CS1__NAND_CE1_B 0xb0b1
281 MX6QDL_PAD_SD4_CMD__NAND_RE_B 0xb0b1
282 MX6QDL_PAD_SD4_CLK__NAND_WE_B 0xb0b1
283 MX6QDL_PAD_NANDF_D0__NAND_DATA00 0xb0b1
284 MX6QDL_PAD_NANDF_D1__NAND_DATA01 0xb0b1
285 MX6QDL_PAD_NANDF_D2__NAND_DATA02 0xb0b1
286 MX6QDL_PAD_NANDF_D3__NAND_DATA03 0xb0b1
287 MX6QDL_PAD_NANDF_D4__NAND_DATA04 0xb0b1
288 MX6QDL_PAD_NANDF_D5__NAND_DATA05 0xb0b1
289 MX6QDL_PAD_NANDF_D6__NAND_DATA06 0xb0b1
290 MX6QDL_PAD_NANDF_D7__NAND_DATA07 0xb0b1
291 MX6QDL_PAD_SD4_DAT0__NAND_DQS 0x00b1
292 >;
293 };
294
295 pinctrl_i2c1: i2c1grp {
296 fsl,pins = <
297 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
298 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
299 >;
300 };
301
Dmitry Lavnikevichd76fab82014-11-04 16:05:47 +0300302 pinctrl_i2c2: i2c2grp {
303 fsl,pins = <
304 MX6QDL_PAD_EIM_EB2__I2C2_SCL 0x4001b8b1
305 MX6QDL_PAD_EIM_D16__I2C2_SDA 0x4001b8b1
306 >;
307 };
308
309 pinctrl_i2c3: i2c3grp {
310 fsl,pins = <
311 MX6QDL_PAD_EIM_D17__I2C3_SCL 0x4001b8b1
312 MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1
313 >;
314 };
315
Christian Hemp99245462014-11-14 14:32:25 +0100316 pinctrl_pcie: pciegrp {
317 fsl,pins = <MX6QDL_PAD_DI0_PIN15__GPIO4_IO17 0x80000000>;
318 };
319
Philipp Zabel14e28332014-04-14 17:37:30 +0200320 pinctrl_uart3: uart3grp {
321 fsl,pins = <
322 MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1
323 MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1
324 MX6QDL_PAD_EIM_D30__UART3_RTS_B 0x1b0b1
325 MX6QDL_PAD_EIM_D31__UART3_CTS_B 0x1b0b1
326 >;
327 };
328
Philipp Zabel4fe69a92014-04-14 17:37:23 +0200329 pinctrl_uart4: uart4grp {
330 fsl,pins = <
331 MX6QDL_PAD_KEY_COL0__UART4_TX_DATA 0x1b0b1
332 MX6QDL_PAD_KEY_ROW0__UART4_RX_DATA 0x1b0b1
333 >;
334 };
335
336 pinctrl_usbh1: usbh1grp {
337 fsl,pins = <
338 MX6QDL_PAD_GPIO_0__USB_H1_PWR 0x80000000
339 >;
340 };
341
342 pinctrl_usbotg: usbotggrp {
343 fsl,pins = <
344 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
345 MX6QDL_PAD_KEY_COL4__USB_OTG_OC 0x1b0b0
346 MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x80000000
347 >;
348 };
349
350 pinctrl_usdhc2: usdhc2grp {
351 fsl,pins = <
352 MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059
353 MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059
354 MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059
355 MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059
356 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059
357 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x17059
358 >;
359 };
360
361 pinctrl_usdhc3: usdhc3grp {
362 fsl,pins = <
363 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
364 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
365 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
366 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
367 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
368 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
369 >;
370 };
371
372 pinctrl_usdhc3_cdwp: usdhc3cdwp {
373 fsl,pins = <
374 MX6QDL_PAD_ENET_RXD0__GPIO1_IO27 0x80000000
375 MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x80000000
376 >;
377 };
Dmitry Lavnikevich8fa91c82014-11-04 16:05:48 +0300378
379 pinctrl_audmux: audmuxgrp {
380 fsl,pins = <
381 MX6QDL_PAD_DISP0_DAT16__AUD5_TXC 0x130b0
382 MX6QDL_PAD_DISP0_DAT17__AUD5_TXD 0x110b0
383 MX6QDL_PAD_DISP0_DAT18__AUD5_TXFS 0x130b0
384 MX6QDL_PAD_DISP0_DAT19__AUD5_RXD 0x130b0
385 >;
386 };
Philipp Zabel4fe69a92014-04-14 17:37:23 +0200387 };
388};
389
Christian Hemp99245462014-11-14 14:32:25 +0100390&pcie {
Michael Opdenackera452afa2015-10-13 13:43:55 +0200391 pinctrl-names = "default";
Christian Hemp99245462014-11-14 14:32:25 +0100392 pinctrl-0 = <&pinctrl_pcie>;
Fabio Estevamcc200282017-06-05 13:22:20 -0300393 reset-gpio = <&gpio4 17 GPIO_ACTIVE_LOW>;
Christian Hemp99245462014-11-14 14:32:25 +0100394 status = "disabled";
395};
396
Sascha Hauer942526c2016-07-14 12:30:34 +0200397&reg_arm {
398 vin-supply = <&vddcore_reg>;
399};
400
401&reg_pu {
402 vin-supply = <&vddsoc_reg>;
403};
404
405&reg_soc {
406 vin-supply = <&vddsoc_reg>;
407};
408
Philipp Zabel14e28332014-04-14 17:37:30 +0200409&uart3 {
410 pinctrl-names = "default";
411 pinctrl-0 = <&pinctrl_uart3>;
412 status = "disabled";
413};
414
Philipp Zabel4fe69a92014-04-14 17:37:23 +0200415&uart4 {
416 pinctrl-names = "default";
417 pinctrl-0 = <&pinctrl_uart4>;
418 status = "disabled";
419};
420
421&usbh1 {
422 vbus-supply = <&reg_usb_h1_vbus>;
423 pinctrl-names = "default";
424 pinctrl-0 = <&pinctrl_usbh1>;
425 status = "disabled";
426};
427
428&usbotg {
429 vbus-supply = <&reg_usb_otg_vbus>;
430 pinctrl-names = "default";
431 pinctrl-0 = <&pinctrl_usbotg>;
432 disable-over-current;
433 status = "disabled";
434};
435
436&usdhc2 {
437 pinctrl-names = "default";
438 pinctrl-0 = <&pinctrl_usdhc2>;
Dong Aisheng89c1a8cf2015-07-22 20:53:02 +0800439 cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
440 wp-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
Philipp Zabel4fe69a92014-04-14 17:37:23 +0200441 status = "disabled";
442};
443
444&usdhc3 {
Jagan Tekibf5393c2016-10-14 15:09:29 +0530445 pinctrl-names = "default";
446 pinctrl-0 = <&pinctrl_usdhc3
Philipp Zabel4fe69a92014-04-14 17:37:23 +0200447 &pinctrl_usdhc3_cdwp>;
Dong Aisheng89c1a8cf2015-07-22 20:53:02 +0800448 cd-gpios = <&gpio1 27 GPIO_ACTIVE_LOW>;
449 wp-gpios = <&gpio1 29 GPIO_ACTIVE_HIGH>;
Jagan Tekibf5393c2016-10-14 15:09:29 +0530450 status = "disabled";
Philipp Zabel4fe69a92014-04-14 17:37:23 +0200451};