2 * Copyright 2014-2017 Toradex AG
3 * Copyright 2012 Freescale Semiconductor, Inc.
4 * Copyright 2011 Linaro Ltd.
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
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.
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.
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
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
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.
46 #include <dt-bindings/gpio/gpio.h>
47 #include <dt-bindings/input/input.h>
48 #include <dt-bindings/interrupt-controller/irq.h>
50 #include "imx6qdl-apalis.dtsi"
53 model = "Toradex Apalis iMX6Q/D Module on Ixora Carrier Board V1.1";
54 compatible = "toradex,apalis_imx6q-ixora-v1.1",
55 "toradex,apalis_imx6q-ixora", "toradex,apalis_imx6q",
67 compatible = "gpio-keys";
68 pinctrl-names = "default";
69 pinctrl-0 = <&pinctrl_gpio_keys>;
73 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_WAKEUP>;
75 debounce-interval = <10>;
81 compatible = "fsl,imx-parallel-display";
84 interface-pix-fmt = "rgb24";
85 pinctrl-names = "default";
86 pinctrl-0 = <&pinctrl_ipu1_lcdif>;
92 lcd_display_in: endpoint {
93 remote-endpoint = <&ipu1_di1_disp1>;
100 lcd_display_out: endpoint {
101 remote-endpoint = <&lcd_panel_in>;
108 * edt,et057090dhu: EDT 5.7" LCD TFT
109 * edt,et070080dh6: EDT 7.0" LCD TFT
111 compatible = "edt,et057090dhu";
112 backlight = <&backlight>;
115 lcd_panel_in: endpoint {
116 remote-endpoint = <&lcd_display_out>;
122 compatible = "gpio-leds";
124 pinctrl-names = "default";
125 pinctrl-0 = <&pinctrl_leds_ixora>;
128 label = "LED_4_GREEN";
129 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
134 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
138 label = "LED_5_GREEN";
139 gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
144 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
150 brightness-levels = <0 127 191 223 239 247 251 255>;
151 default-brightness-level = <1>;
167 /* I2C1_SDA/SCL on MXM3 209/211 (e.g. RTC on carrier board) */
171 /* M41T0M6 real time clock on carrier board */
173 compatible = "st,m41t0";
179 * I2C3_SDA/SCL (CAM) on MXM3 pin 201/203 (e.g. camera sensor on carrier
187 remote-endpoint = <&lcd_display_in>;
195 /* active-high meaning opposite of regular PERST# active-low polarity */
196 reset-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
197 reset-gpio-active-high;
254 vbus-supply = <®_usb_host_vbus>;
259 vbus-supply = <®_usb_otg_vbus>;
265 pinctrl-names = "default";
266 pinctrl-0 = <&pinctrl_usdhc1_4bit &pinctrl_mmc_cd>;
267 cd-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>;
274 * Mux the Apalis GPIOs
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
283 pinctrl_leds_ixora: ledsixoragrp {
285 MX6QDL_PAD_SD2_DAT1__GPIO1_IO14 0x1b0b0
286 MX6QDL_PAD_SD2_DAT3__GPIO1_IO12 0x1b0b0
287 MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x1b0b0
288 MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0