Merge tag 'usb-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[linux/fpc-iii.git] / arch / arm / boot / dts / imx6q-apalis-ixora-v1.1.dts
blob86e84781cf5d85f5853565b6ac20e619ca0b755a
1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
2 /*
3  * Copyright 2014-2020 Toradex
4  * Copyright 2012 Freescale Semiconductor, Inc.
5  * Copyright 2011 Linaro Ltd.
6  */
8 /dts-v1/;
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
12 #include <dt-bindings/interrupt-controller/irq.h>
13 #include "imx6q.dtsi"
14 #include "imx6qdl-apalis.dtsi"
16 / {
17         model = "Toradex Apalis iMX6Q/D Module on Ixora Carrier Board V1.1";
18         compatible = "toradex,apalis_imx6q-ixora-v1.1",
19                      "toradex,apalis_imx6q-ixora", "toradex,apalis_imx6q",
20                      "fsl,imx6q";
22         aliases {
23                 i2c0 = &i2c1;
24                 i2c1 = &i2c3;
25                 i2c2 = &i2c2;
26                 rtc0 = &rtc_i2c;
27                 rtc1 = &snvs_rtc;
28         };
30         chosen {
31                 stdout-path = "serial0:115200n8";
32         };
34         gpio-keys {
35                 compatible = "gpio-keys";
36                 pinctrl-names = "default";
37                 pinctrl-0 = <&pinctrl_gpio_keys>;
39                 wakeup {
40                         label = "Wake-Up";
41                         gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
42                         linux,code = <KEY_WAKEUP>;
43                         debounce-interval = <10>;
44                         wakeup-source;
45                 };
46         };
48         lcd_display: disp0 {
49                 compatible = "fsl,imx-parallel-display";
50                 #address-cells = <1>;
51                 #size-cells = <0>;
52                 interface-pix-fmt = "rgb24";
53                 pinctrl-names = "default";
54                 pinctrl-0 = <&pinctrl_ipu1_lcdif>;
55                 status = "okay";
57                 port@0 {
58                         reg = <0>;
60                         lcd_display_in: endpoint {
61                                 remote-endpoint = <&ipu1_di1_disp1>;
62                         };
63                 };
65                 port@1 {
66                         reg = <1>;
68                         lcd_display_out: endpoint {
69                                 remote-endpoint = <&lcd_panel_in>;
70                         };
71                 };
72         };
74         panel: panel {
75                 /*
76                  * edt,et057090dhu: EDT 5.7" LCD TFT
77                  * edt,et070080dh6: EDT 7.0" LCD TFT
78                  */
79                 compatible = "edt,et057090dhu";
80                 backlight = <&backlight>;
82                 port {
83                         lcd_panel_in: endpoint {
84                                 remote-endpoint = <&lcd_display_out>;
85                         };
86                 };
87         };
89         leds {
90                 compatible = "gpio-leds";
92                 pinctrl-names = "default";
93                 pinctrl-0 = <&pinctrl_leds_ixora>;
95                 led4-green {
96                         label = "LED_4_GREEN";
97                         gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
98                 };
100                 led4-red {
101                         label = "LED_4_RED";
102                         gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
103                 };
105                 led5-green {
106                         label = "LED_5_GREEN";
107                         gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
108                 };
110                 led5-red {
111                         label = "LED_5_RED";
112                         gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
113                 };
114         };
117 &backlight {
118         brightness-levels = <0 127 191 223 239 247 251 255>;
119         default-brightness-level = <1>;
120         status = "okay";
123 &can1 {
124         status = "okay";
127 &can2 {
128         status = "okay";
131 &hdmi {
132         status = "okay";
135 /* I2C1_SDA/SCL on MXM3 209/211 (e.g. RTC on carrier board) */
136 &i2c1 {
137         status = "okay";
139         /*
140          * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>,
141          * aka pwm2, pwm3. so if you enable touchscreen, disable the pwms
142          */
143         touchscreen@4a {
144                 compatible = "atmel,maxtouch";
145                 reg = <0x4a>;
146                 interrupt-parent = <&gpio6>;
147                 interrupts = <10 IRQ_TYPE_EDGE_FALLING>;
148                 reset-gpios = <&gpio6 9 GPIO_ACTIVE_LOW>; /* SODIMM 13 */
149                 status = "disabled";
150         };
152         /* M41T0M6 real time clock on carrier board */
153         rtc_i2c: rtc@68 {
154                 compatible = "st,m41t0";
155                 reg = <0x68>;
156         };
160  * I2C3_SDA/SCL (CAM) on MXM3 pin 201/203 (e.g. camera sensor on carrier
161  * board)
162  */
163 &i2c3 {
164         status = "okay";
167 &ipu1_di1_disp1 {
168         remote-endpoint = <&lcd_display_in>;
171 &ldb {
172         status = "okay";
175 &pcie {
176         pinctrl-names = "default";
177         pinctrl-0 = <&pinctrl_reset_moci>;
178         /* active-high meaning opposite of regular PERST# active-low polarity */
179         reset-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
180         reset-gpio-active-high;
181         status = "okay";
184 &pwm1 {
185         status = "okay";
188 &pwm2 {
189         status = "okay";
192 &pwm3 {
193         status = "okay";
196 &pwm4 {
197         status = "okay";
200 &reg_usb_otg_vbus {
201         status = "okay";
204 &reg_usb_host_vbus {
205         status = "okay";
208 &sata {
209         status = "okay";
212 &sound_spdif {
213         status = "okay";
216 &spdif {
217         status = "okay";
220 &uart1 {
221         status = "okay";
224 &uart2 {
225         status = "okay";
228 &uart4 {
229         status = "okay";
232 &uart5 {
233         status = "okay";
236 &usbh1 {
237         vbus-supply = <&reg_usb_host_vbus>;
238         status = "okay";
241 &usbotg {
242         vbus-supply = <&reg_usb_otg_vbus>;
243         status = "okay";
246 /* MMC1 */
247 &usdhc1 {
248         pinctrl-names = "default";
249         pinctrl-0 = <&pinctrl_usdhc1_4bit &pinctrl_mmc_cd>;
250         cd-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>;
251         bus-width = <4>;
252         status = "okay";
255 &iomuxc {
256         /*
257          * Mux the Apalis GPIOs
258          */
259         pinctrl-names = "default";
260         pinctrl-0 = <&pinctrl_apalis_gpio1 &pinctrl_apalis_gpio2
261                      &pinctrl_apalis_gpio3 &pinctrl_apalis_gpio4
262                      &pinctrl_apalis_gpio5 &pinctrl_apalis_gpio6
263                      &pinctrl_apalis_gpio7 &pinctrl_apalis_gpio8
264                     >;
266         pinctrl_leds_ixora: ledsixoragrp {
267                 fsl,pins = <
268                         MX6QDL_PAD_SD2_DAT1__GPIO1_IO14 0x1b0b0
269                         MX6QDL_PAD_SD2_DAT3__GPIO1_IO12 0x1b0b0
270                         MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x1b0b0
271                         MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0
272                 >;
273         };