blob: 621d9709effacdc59d98139201c62e9d7bb1cd5b [file] [log] [blame]
Sanchayan Maityc6a9f132017-08-07 12:52:42 +05301/*
2 * Copyright 2014-2017 Toradex AG
3 * Copyright 2012 Freescale Semiconductor, Inc.
4 * Copyright 2011 Linaro Ltd.
5 *
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
9 * whole.
10 *
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * version 2 as published by the Free Software Foundation.
14 *
15 * This file is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * Or, alternatively,
21 *
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
29 * conditions:
30 *
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
33 *
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
42 */
43
44/dts-v1/;
45
46#include <dt-bindings/gpio/gpio.h>
47#include <dt-bindings/input/input.h>
48#include <dt-bindings/interrupt-controller/irq.h>
49#include "imx6q.dtsi"
50#include "imx6qdl-apalis.dtsi"
51
52/ {
53 model = "Toradex Apalis iMX6Q/D Module on Apalis Evaluation Board";
54 compatible = "toradex,apalis_imx6q-eval", "toradex,apalis_imx6q",
55 "fsl,imx6q";
56
57 aliases {
58 i2c0 = &i2c1;
59 i2c1 = &i2c3;
60 i2c2 = &i2c2;
61 rtc0 = &rtc_i2c;
62 rtc1 = &snvs_rtc;
63 };
64
Stefan Agner6c743662018-07-09 17:48:41 +020065 chosen {
66 stdout-path = "serial0:115200n8";
67 };
68
Sanchayan Maityc6a9f132017-08-07 12:52:42 +053069 gpio-keys {
70 compatible = "gpio-keys";
71 pinctrl-names = "default";
72 pinctrl-0 = <&pinctrl_gpio_keys>;
73
74 wakeup {
75 label = "Wake-Up";
76 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_WAKEUP>;
78 debounce-interval = <10>;
79 wakeup-source;
80 };
81 };
82
Marco Franchi792d4ed2017-10-05 11:31:40 -030083 lcd_display: disp0 {
Sanchayan Maityc6a9f132017-08-07 12:52:42 +053084 compatible = "fsl,imx-parallel-display";
85 #address-cells = <1>;
86 #size-cells = <0>;
87 interface-pix-fmt = "rgb24";
88 pinctrl-names = "default";
89 pinctrl-0 = <&pinctrl_ipu1_lcdif>;
90 status = "okay";
91
92 port@0 {
93 reg = <0>;
94
95 lcd_display_in: endpoint {
96 remote-endpoint = <&ipu1_di1_disp1>;
97 };
98 };
99
100 port@1 {
101 reg = <1>;
102
103 lcd_display_out: endpoint {
104 remote-endpoint = <&lcd_panel_in>;
105 };
106 };
107 };
108
109 panel: panel {
110 /*
111 * edt,et057090dhu: EDT 5.7" LCD TFT
112 * edt,et070080dh6: EDT 7.0" LCD TFT
113 */
114 compatible = "edt,et057090dhu";
115 backlight = <&backlight>;
116
117 port {
118 lcd_panel_in: endpoint {
119 remote-endpoint = <&lcd_display_out>;
120 };
121 };
122 };
123
124 reg_pcie_switch: regulator-pcie-switch {
125 compatible = "regulator-fixed";
126 regulator-name = "pcie_switch";
127 regulator-min-microvolt = <1800000>;
128 regulator-max-microvolt = <1800000>;
129 gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
130 startup-delay-us = <100000>;
131 enable-active-high;
132 status = "okay";
133 };
134};
135
136&backlight {
137 brightness-levels = <0 127 191 223 239 247 251 255>;
138 default-brightness-level = <1>;
139 status = "okay";
140};
141
142&can1 {
143 status = "okay";
144};
145
146&can2 {
147 status = "okay";
148};
149
150&hdmi {
151 status = "okay";
152};
153
154/* I2C1_SDA/SCL on MXM3 209/211 (e.g. RTC on carrier board) */
155&i2c1 {
156 status = "okay";
157
158 pcie-switch@58 {
159 compatible = "plx,pex8605";
160 reg = <0x58>;
161 };
162
163 /* M41T0M6 real time clock on carrier board */
164 rtc_i2c: rtc@68 {
Stefan Agnerc53bec12017-12-06 11:29:29 +0100165 compatible = "st,m41t0";
Sanchayan Maityc6a9f132017-08-07 12:52:42 +0530166 reg = <0x68>;
167 };
168};
169
170/*
171 * I2C3_SDA/SCL (CAM) on MXM3 pin 201/203 (e.g. camera sensor on carrier
172 * board)
173 */
174&i2c3 {
175 status = "okay";
176};
177
178&ipu1_di1_disp1 {
179 remote-endpoint = <&lcd_display_in>;
180};
181
182&ldb {
183 status = "okay";
184};
185
186&pcie {
187 /* active-high meaning opposite of regular PERST# active-low polarity */
188 reset-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
189 reset-gpio-active-high;
190 vpcie-supply = <&reg_pcie_switch>;
191 status = "okay";
192};
193
194&pwm1 {
195 status = "okay";
196};
197
198&pwm2 {
199 status = "okay";
200};
201
202&pwm3 {
203 status = "okay";
204};
205
206&pwm4 {
207 status = "okay";
208};
209
210&reg_usb_otg_vbus {
211 status = "okay";
212};
213
214&reg_usb_host_vbus {
215 status = "okay";
216};
217
218&sata {
219 status = "okay";
220};
221
222&sound_spdif {
223 status = "okay";
224};
225
226&spdif {
227 status = "okay";
228};
229
230&uart1 {
231 status = "okay";
232};
233
234&uart2 {
235 status = "okay";
236};
237
238&uart4 {
239 status = "okay";
240};
241
242&uart5 {
243 status = "okay";
244};
245
246&usbh1 {
247 vbus-supply = <&reg_usb_host_vbus>;
248 status = "okay";
249};
250
251&usbotg {
252 vbus-supply = <&reg_usb_otg_vbus>;
253 status = "okay";
254};
255
256/* MMC1 */
257&usdhc1 {
258 pinctrl-names = "default";
259 pinctrl-0 = <&pinctrl_usdhc1_4bit &pinctrl_usdhc1_8bit &pinctrl_mmc_cd>;
260 cd-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>;
261 status = "okay";
262};
263
264/* SD1 */
265&usdhc2 {
266 pinctrl-names = "default";
267 pinctrl-0 = <&pinctrl_usdhc2 &pinctrl_sd_cd>;
268 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
269 status = "okay";
270};
271
272&iomuxc {
273 /*
274 * Mux the Apalis GPIOs
275 */
276 pinctrl-names = "default";
277 pinctrl-0 = <&pinctrl_apalis_gpio1 &pinctrl_apalis_gpio2
278 &pinctrl_apalis_gpio3 &pinctrl_apalis_gpio4
279 &pinctrl_apalis_gpio5 &pinctrl_apalis_gpio6
280 &pinctrl_apalis_gpio7 &pinctrl_apalis_gpio8
281 >;
282};