blob: c713efd84c702d68bed32703d9c10b9697c0cfa8 [file] [log] [blame]
Heiko Schocher54333792019-12-01 11:23:12 +01001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2019 Heiko Schocher <hs@denx.de>
4 */
5
6/ {
7 chosen {
8 u-boot,dm-pre-reloc;
9 stdout-path = &uart2;
10 };
11
12 wdt-reboot {
13 compatible = "wdt-reboot";
14 wdt = <&wdog1>;
15 };
16};
17
18&uart2 {
19 u-boot,dm-pre-reloc;
20};
21
22&pinctrl_gpio {
23 u-boot,dm-pre-reloc;
24};
25
26&pinctrl_uart2 {
27 u-boot,dm-pre-reloc;
28};
29
30&aips2 {
31 u-boot,dm-pre-reloc;
32};
33
34&backlight {
35 pwms = <&pwm1 0 300000>;
36 default-brightness-level = <2>;
37};
38
39/*
40 * allow switching write protect pin by gpio,
41 * because "pinctrl-assert-gpios" from &ecspi1 isn't handled by u-boot
42 */
43&gpio2 {
44 u-boot,dm-pre-reloc;
45
46 wp_spi_nor {
47 gpio-hog;
48 output-high;
49 gpios = <15 GPIO_ACTIVE_HIGH>;
50 };
51};
52
53&iomuxc {
54 pinctrl-0 = <&pinctrl_gpio &pinctrl_gpio_fix>;
55 u-boot,dm-pre-reloc;
56
57 pinctrl_gpio_fix: gpiofixgrp {
58 /*
59 * usdhc2 has a levelshifter on the carrier board Rev. DV1,
60 * that will automatically detect the driving direction.
61 * During initialisation this isn't working correctly,
62 * which causes DAT3 to be driven low towards the SD-card.
63 * This causes a SD-card enetring the SPI-Mode
64 * and therefore getting inaccessible until next power cycle.
65 * As workaround we drive the DAT3 line as GPIO and set it high.
66 * This makes usdhc2 unusable in u-boot, but works for the
67 * initialisation in Linux
68 */
69 fsl,pins = <
70 MX6QDL_PAD_SD2_DAT3__GPIO1_IO12 0x20000
71 >;
72 };
73};
74
75&gpio1 {
76 usdhc_fix {
77 gpio-hog;
78 output-high;
79 gpios = <12 GPIO_ACTIVE_HIGH>;
80 };
81};
82
83&gpio3 {
84 u-boot,dm-pre-reloc;
85};
86
87&gpio5 {
88 u-boot,dm-pre-reloc;
89};
90
91&ecspi4 {
92 u-boot,dm-pre-reloc;
93};
94
95&flash {
96 u-boot,dm-pre-reloc;
97};
98
99&pinctrl_ecspi4 {
100 u-boot,dm-pre-reloc;
101};