]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - arch/arm/boot/dts/imx6q-apalis-ixora.dts
ARM: dts: imx6q-apalis-ixora: add camera i2c bus definition
[mirror_ubuntu-eoan-kernel.git] / arch / arm / boot / dts / imx6q-apalis-ixora.dts
CommitLineData
1db15321 1/*
b5912b6f 2 * Copyright 2014-2017 Toradex AG
1db15321
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 *
13283626 15 * This file is distributed in the hope that it will be useful,
1db15321
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 *
13283626 20 * Or, alternatively,
1db15321
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
13283626 25 * restriction, including without limitation the rights to use,
1db15321
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 *
13283626 34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1db15321
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
13283626 38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
1db15321
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 Ixora Carrier Board";
54 compatible = "toradex,apalis_imx6q-ixora", "toradex,apalis_imx6q",
55 "fsl,imx6q";
56
57 aliases {
58 i2c0 = &i2cddc;
59 i2c1 = &i2c1;
60 i2c2 = &i2c2;
61 i2c3 = &i2c3;
1db15321
62 rtc0 = &rtc_i2c;
63 rtc1 = &snvs_rtc;
64 };
65
66 gpio-keys {
67 compatible = "gpio-keys";
68 pinctrl-names = "default";
69 pinctrl-0 = <&pinctrl_gpio_keys>;
70
71 wakeup {
72 label = "Wake-Up";
73 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_WAKEUP>;
75 debounce-interval = <10>;
76 wakeup-source;
77 };
78 };
79
975f0d10
MZ
80 lcd_display: display@di0 {
81 compatible = "fsl,imx-parallel-display";
82 #address-cells = <1>;
83 #size-cells = <0>;
84 interface-pix-fmt = "rgb24";
85 pinctrl-names = "default";
86 pinctrl-0 = <&pinctrl_ipu1_lcdif>;
87 status = "okay";
88
89 port@0 {
90 reg = <0>;
91
92 lcd_display_in: endpoint {
f255f89f 93 remote-endpoint = <&ipu1_di1_disp1>;
975f0d10
MZ
94 };
95 };
96
97 port@1 {
98 reg = <1>;
99
100 lcd_display_out: endpoint {
101 remote-endpoint = <&lcd_panel_in>;
102 };
103 };
104 };
105
106 panel: panel {
107 /*
108 * edt,et057090dhu: EDT 5.7" LCD TFT
109 * edt,et070080dh6: EDT 7.0" LCD TFT
110 */
111 compatible = "edt,et057090dhu";
112 backlight = <&backlight>;
113
114 port {
115 lcd_panel_in: endpoint {
116 remote-endpoint = <&lcd_display_out>;
117 };
118 };
119 };
120
1db15321
121 leds {
122 compatible = "gpio-leds";
123
124 pinctrl-names = "default";
125 pinctrl-0 = <&pinctrl_leds_ixora>;
126
127 led4-green {
128 label = "LED_4_GREEN";
129 gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
130 };
131
132 led4-red {
133 label = "LED_4_RED";
134 gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
135 };
136
137 led5-green {
138 label = "LED_5_GREEN";
139 gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
140 };
141
142 led5-red {
143 label = "LED_5_RED";
144 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
145 };
146 };
1db15321
147};
148
149&backlight {
150 brightness-levels = <0 127 191 223 239 247 251 255>;
151 default-brightness-level = <1>;
152 status = "okay";
153};
154
155&can1 {
156 status = "okay";
157};
158
159&can2 {
160 status = "okay";
161};
162
163&hdmi {
164 ddc-i2c-bus = <&i2cddc>;
165 status = "okay";
166};
167
168&i2cddc {
169 status = "okay";
170};
171
6e3c81c8 172/* I2C1_SDA/SCL on MXM3 209/211 (e.g. RTC on carrier board) */
1db15321
173&i2c1 {
174 status = "okay";
175
176 eeprom@50 {
177 compatible = "atmel,24c02";
178 reg = <0x50>;
179 };
180
181 /* M41T0M6 real time clock on carrier board */
182 rtc_i2c: rtc@68 {
183 compatible = "st,m41t00";
184 reg = <0x68>;
185 };
186};
187
98d4b6c3
MZ
188/*
189 * I2C3_SDA/SCL (CAM) on MXM3 pin 201/203 (e.g. camera sensor on carrier
190 * board)
191 */
192&i2c3 {
193 status = "okay";
194};
195
f255f89f 196&ipu1_di1_disp1 {
975f0d10
MZ
197 remote-endpoint = <&lcd_display_in>;
198};
199
1db15321
200&ldb {
201 status = "okay";
202};
203
204&pcie {
4f6926e9
205 /* active-high meaning opposite of regular PERST# active-low polarity */
206 reset-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
207 reset-gpio-active-high;
1db15321
208 status = "okay";
209};
210
211&pwm1 {
212 status = "okay";
213};
214
215&pwm2 {
216 status = "okay";
217};
218
219&pwm3 {
220 status = "okay";
221};
222
223&pwm4 {
224 status = "okay";
225};
226
227&reg_usb_otg_vbus {
228 status = "okay";
229};
230
231&reg_usb_host_vbus {
232 status = "okay";
233};
234
235&sata {
236 status = "okay";
237};
238
239&sound_spdif {
240 status = "okay";
241};
242
243&spdif {
244 status = "okay";
245};
246
247&uart1 {
248 status = "okay";
249};
250
251&uart2 {
252 status = "okay";
253};
254
255&uart4 {
256 status = "okay";
257};
258
259&uart5 {
260 status = "okay";
261};
262
263&usbh1 {
264 vbus-supply = <&reg_usb_host_vbus>;
265 status = "okay";
266};
267
268&usbotg {
269 vbus-supply = <&reg_usb_otg_vbus>;
270 status = "okay";
271};
272
273/* SD1 */
274&usdhc2 {
275 pinctrl-names = "default";
b5912b6f 276 pinctrl-0 = <&pinctrl_usdhc2 &pinctrl_sd_cd>;
1db15321
277 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
278 status = "okay";
279};
280
281&iomuxc {
e8c8984c 282 /* Mux the Apalis GPIOs */
1db15321
283 pinctrl-names = "default";
284 pinctrl-0 = <&pinctrl_apalis_gpio1 &pinctrl_apalis_gpio2
285 &pinctrl_apalis_gpio3 &pinctrl_apalis_gpio4
286 &pinctrl_apalis_gpio5 &pinctrl_apalis_gpio6
287 &pinctrl_apalis_gpio7 &pinctrl_apalis_gpio8
288 >;
289
290 pinctrl_leds_ixora: ledsixoragrp {
291 fsl,pins = <
292 MX6QDL_PAD_SD1_DAT1__GPIO1_IO17 0x1b0b0
293 MX6QDL_PAD_SD1_DAT3__GPIO1_IO21 0x1b0b0
294 MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x1b0b0
295 MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0
296 >;
297 };
298};