blob: ccfa8e320be62e26eea26a970eca940e440e2752 [file] [log] [blame]
Fabio Estevamecaa18e2018-05-01 12:47:30 -03001// SPDX-License-Identifier: GPL-2.0
Robert Nelsoncbd54fe2014-12-22 11:29:21 -06002/*
3 * Copyright 2013 Freescale Semiconductor, Inc.
4 *
5 * Author: Fabio Estevam <fabio.estevam@freescale.com>
Robert Nelsoncbd54fe2014-12-22 11:29:21 -06006 */
7
Fabio Estevam993d6612021-12-19 19:42:15 -03008#include <dt-bindings/gpio/gpio.h>
9
Robert Nelsoncbd54fe2014-12-22 11:29:21 -060010/ {
Maciej S. Szmigiero880e1502016-04-16 00:27:23 +020011 aliases {
12 backlight = &backlight;
13 panelchan = &panelchan;
14 panel7 = &panel7;
15 touchscreenp7 = &touchscreenp7;
16 };
17
Robert Nelsoncbd54fe2014-12-22 11:29:21 -060018 chosen {
19 stdout-path = &uart2;
20 };
21
Maciej S. Szmigiero880e1502016-04-16 00:27:23 +020022 backlight: backlight {
23 compatible = "gpio-backlight";
24 gpios = <&gpio1 4 0>;
25 default-on;
26 status = "disabled";
27 };
28
Maciej S. Szmigierod0ed3f52017-11-27 23:22:28 +010029 gpio-poweroff {
30 compatible = "gpio-poweroff";
31 gpios = <&gpio2 4 0>;
32 pinctrl-0 = <&pinctrl_power_off>;
33 pinctrl-names = "default";
34 };
35
Marco Franchiad00e082018-01-24 11:22:14 -020036 memory@10000000 {
Marco Franchi404c0c92018-12-05 16:10:03 -020037 device_type = "memory";
Robert Nelsoncbd54fe2014-12-22 11:29:21 -060038 reg = <0x10000000 0x40000000>;
39 };
40
Maciej S. Szmigiero880e1502016-04-16 00:27:23 +020041 panel7: panel7 {
42 /*
43 * in reality it is a -20t (parallel) model,
44 * but with LVDS bridge chip attached,
45 * so it is equivalent to -19t model in drive
46 * characteristics
47 */
48 compatible = "urt,umsh-8596md-19t";
49 pinctrl-names = "default";
50 pinctrl-0 = <&pinctrl_panel>;
51 power-supply = <&reg_panel>;
52 backlight = <&backlight>;
53 status = "disabled";
54
55 port {
56 panel_in: endpoint {
57 remote-endpoint = <&lvds0_out>;
58 };
59 };
60 };
61
Robert Nelsoncbd54fe2014-12-22 11:29:21 -060062 regulators {
63 compatible = "simple-bus";
64 #address-cells = <1>;
65 #size-cells = <0>;
66
67 reg_usb_h1_vbus: regulator@0 {
68 compatible = "regulator-fixed";
69 reg = <0>;
70 regulator-name = "usb_h1_vbus";
71 regulator-min-microvolt = <5000000>;
72 regulator-max-microvolt = <5000000>;
73 enable-active-high;
74 startup-delay-us = <2>; /* USB2415 requires a POR of 1 us minimum */
75 gpio = <&gpio7 12 0>;
76 };
Maciej S. Szmigiero880e1502016-04-16 00:27:23 +020077
78 reg_panel: regulator@1 {
79 compatible = "regulator-fixed";
80 reg = <1>;
81 regulator-name = "lcd_panel";
82 enable-active-high;
83 gpio = <&gpio1 2 0>;
84 };
Robert Nelsoncbd54fe2014-12-22 11:29:21 -060085 };
Maciej S. Szmigierof9047412016-01-31 00:42:35 +010086
87 sound {
88 compatible = "fsl,imx6q-udoo-ac97",
89 "fsl,imx-audio-ac97";
90 model = "fsl,imx6q-udoo-ac97";
91 audio-cpu = <&ssi1>;
92 audio-routing =
93 "RX", "Mic Jack",
94 "Headphone Jack", "TX";
95 mux-int-port = <1>;
96 mux-ext-port = <6>;
97 };
Robert Nelsoncbd54fe2014-12-22 11:29:21 -060098};
99
100&fec {
101 pinctrl-names = "default";
102 pinctrl-0 = <&pinctrl_enet>;
Sergey Matyukevich7dd8f0b2020-10-24 23:11:20 +0300103 phy-mode = "rgmii-id";
Robert Nelsoncbd54fe2014-12-22 11:29:21 -0600104 status = "okay";
105};
106
107&hdmi {
108 ddc-i2c-bus = <&i2c2>;
109 status = "okay";
110};
111
112&i2c2 {
113 clock-frequency = <100000>;
114 pinctrl-names = "default";
115 pinctrl-0 = <&pinctrl_i2c2>;
116 status = "okay";
117};
118
Maciej S. Szmigiero880e1502016-04-16 00:27:23 +0200119&i2c3 {
120 clock-frequency = <100000>;
121 pinctrl-names = "default";
122 pinctrl-0 = <&pinctrl_i2c3>;
123 status = "okay";
124
125 touchscreenp7: touchscreenp7@55 {
126 compatible = "sitronix,st1232";
127 pinctrl-names = "default";
128 pinctrl-0 = <&pinctrl_touchscreenp7>;
129 reg = <0x55>;
130 interrupt-parent = <&gpio1>;
131 interrupts = <13 8>;
132 gpios = <&gpio1 15 0>;
133 status = "disabled";
134 };
135};
136
Robert Nelsoncbd54fe2014-12-22 11:29:21 -0600137&iomuxc {
138 imx6q-udoo {
139 pinctrl_enet: enetgrp {
140 fsl,pins = <
Uwe Kleine-Königc007b3a2016-07-08 23:22:54 +0200141 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
142 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
143 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
144 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
145 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
146 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
147 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b030
148 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030
149 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030
150 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030
151 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030
152 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030
Robert Nelsoncbd54fe2014-12-22 11:29:21 -0600153 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
154 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
155 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
156 MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0a8
157 >;
158 };
159
160 pinctrl_i2c2: i2c2grp {
161 fsl,pins = <
162 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
163 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
164 >;
165 };
166
Maciej S. Szmigiero880e1502016-04-16 00:27:23 +0200167 pinctrl_i2c3: i2c3grp {
168 fsl,pins = <
169 MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001f8b1
170 MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001f8b1
171 >;
172 };
173
174 pinctrl_panel: panelgrp {
175 fsl,pins = <
176 MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x70
177 MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x70
178 >;
179 };
180
Maciej S. Szmigierod0ed3f52017-11-27 23:22:28 +0100181 pinctrl_power_off: poweroffgrp {
182 fsl,pins = <
183 MX6QDL_PAD_NANDF_D4__GPIO2_IO04 0x30
184 >;
185 };
186
Maciej S. Szmigiero880e1502016-04-16 00:27:23 +0200187 pinctrl_touchscreenp7: touchscreenp7grp {
188 fsl,pins = <
189 MX6QDL_PAD_SD2_DAT0__GPIO1_IO15 0x70
190 MX6QDL_PAD_SD2_DAT2__GPIO1_IO13 0x1b0b0
191 >;
192 };
193
Robert Nelsoncbd54fe2014-12-22 11:29:21 -0600194 pinctrl_uart2: uart2grp {
195 fsl,pins = <
196 MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1
197 MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1
198 >;
199 };
200
Markus Kueffner918c9752018-10-10 08:32:09 +0200201 pinctrl_uart4: uart4grp {
202 fsl,pins = <
203 MX6QDL_PAD_KEY_COL0__UART4_TX_DATA 0x1b0b1
204 MX6QDL_PAD_KEY_ROW0__UART4_RX_DATA 0x1b0b1
205 >;
206 };
207
Robert Nelsoncbd54fe2014-12-22 11:29:21 -0600208 pinctrl_usbh: usbhgrp {
209 fsl,pins = <
210 MX6QDL_PAD_GPIO_17__GPIO7_IO12 0x80000000
211 MX6QDL_PAD_NANDF_CS2__CCM_CLKO2 0x130b0
212 >;
213 };
214
Markus Kueffner257e6152019-04-13 15:19:36 +0200215 pinctrl_usbotg: usbotg {
216 fsl,pins = <
217 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
218 MX6QDL_PAD_EIM_D22__USB_OTG_PWR 0x17059
219 MX6QDL_PAD_EIM_D21__USB_OTG_OC 0x17059
220 >;
221 };
222
Robert Nelsoncbd54fe2014-12-22 11:29:21 -0600223 pinctrl_usdhc3: usdhc3grp {
224 fsl,pins = <
225 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
226 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
227 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
228 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
229 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
230 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
Fabio Estevam993d6612021-12-19 19:42:15 -0300231 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x1b0b0
Robert Nelsoncbd54fe2014-12-22 11:29:21 -0600232 >;
233 };
Maciej S. Szmigierof9047412016-01-31 00:42:35 +0100234
235 pinctrl_ac97_running: ac97running {
236 fsl,pins = <
237 MX6QDL_PAD_DI0_PIN2__AUD6_TXD 0x1b0b0
238 MX6QDL_PAD_DI0_PIN3__AUD6_TXFS 0x1b0b0
Maciej S. Szmigiero39e00242017-11-20 20:08:30 +0100239 MX6QDL_PAD_DI0_PIN4__AUD6_RXD 0x13080
240 MX6QDL_PAD_DI0_PIN15__AUD6_TXC 0x13080
Maciej S. Szmigierof9047412016-01-31 00:42:35 +0100241 MX6QDL_PAD_EIM_EB2__GPIO2_IO30 0x1b0b0
242 >;
243 };
244
245 pinctrl_ac97_warm_reset: ac97warmreset {
246 fsl,pins = <
247 MX6QDL_PAD_DI0_PIN2__AUD6_TXD 0x1b0b0
248 MX6QDL_PAD_DI0_PIN3__GPIO4_IO19 0x1b0b0
Maciej S. Szmigiero39e00242017-11-20 20:08:30 +0100249 MX6QDL_PAD_DI0_PIN4__AUD6_RXD 0x13080
250 MX6QDL_PAD_DI0_PIN15__AUD6_TXC 0x13080
Maciej S. Szmigierof9047412016-01-31 00:42:35 +0100251 MX6QDL_PAD_EIM_EB2__GPIO2_IO30 0x1b0b0
252 >;
253 };
254
255 pinctrl_ac97_reset: ac97reset {
256 fsl,pins = <
257 MX6QDL_PAD_DI0_PIN2__GPIO4_IO18 0x1b0b0
258 MX6QDL_PAD_DI0_PIN3__GPIO4_IO19 0x1b0b0
Maciej S. Szmigiero39e00242017-11-20 20:08:30 +0100259 MX6QDL_PAD_DI0_PIN4__AUD6_RXD 0x13080
260 MX6QDL_PAD_DI0_PIN15__AUD6_TXC 0x13080
Maciej S. Szmigierof9047412016-01-31 00:42:35 +0100261 MX6QDL_PAD_EIM_EB2__GPIO2_IO30 0x1b0b0
262 >;
263 };
Robert Nelsoncbd54fe2014-12-22 11:29:21 -0600264 };
265};
266
Maciej S. Szmigiero880e1502016-04-16 00:27:23 +0200267&ldb {
268 status = "okay";
269
270 panelchan: lvds-channel@0 {
271 port@4 {
272 reg = <4>;
273
274 lvds0_out: endpoint {
275 remote-endpoint = <&panel_in>;
276 };
277 };
278 };
279};
280
Robert Nelsoncbd54fe2014-12-22 11:29:21 -0600281&uart2 {
282 pinctrl-names = "default";
283 pinctrl-0 = <&pinctrl_uart2>;
284 status = "okay";
285};
286
Markus Kueffner918c9752018-10-10 08:32:09 +0200287&uart4 {
288 pinctrl-names = "default";
289 pinctrl-0 = <&pinctrl_uart4>;
290 status = "okay";
291};
292
Robert Nelsoncbd54fe2014-12-22 11:29:21 -0600293&usbh1 {
294 pinctrl-names = "default";
295 pinctrl-0 = <&pinctrl_usbh>;
296 vbus-supply = <&reg_usb_h1_vbus>;
Fabio Estevamb26a68c2016-04-26 22:28:29 -0300297 clocks = <&clks IMX6QDL_CLK_CKO>;
Robert Nelsoncbd54fe2014-12-22 11:29:21 -0600298 status = "okay";
299};
300
Markus Kueffner257e6152019-04-13 15:19:36 +0200301&usbotg {
302 pinctrl-names = "default";
303 pinctrl-0 = <&pinctrl_usbotg>;
304 status = "okay";
305};
306
Robert Nelsoncbd54fe2014-12-22 11:29:21 -0600307&usdhc3 {
308 pinctrl-names = "default";
309 pinctrl-0 = <&pinctrl_usdhc3>;
Fabio Estevam993d6612021-12-19 19:42:15 -0300310 cd-gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
Robert Nelsoncbd54fe2014-12-22 11:29:21 -0600311 status = "okay";
312};
Maciej S. Szmigierof9047412016-01-31 00:42:35 +0100313
314&audmux {
315 status = "okay";
316};
317
318&ssi1 {
319 cell-index = <0>;
320 fsl,mode = "ac97-slave";
321 pinctrl-names = "ac97-running", "ac97-reset", "ac97-warm-reset";
322 pinctrl-0 = <&pinctrl_ac97_running>;
323 pinctrl-1 = <&pinctrl_ac97_reset>;
324 pinctrl-2 = <&pinctrl_ac97_warm_reset>;
325 ac97-gpios = <&gpio4 19 0 &gpio4 18 0 &gpio2 30 0>;
326 status = "okay";
327};