1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 * Copyright (c) 2016 Protonic Holland
8 #include "imx6qdl-prti6q.dtsi"
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/sound/fsl-imx-audmux.h>
14 model = "Protonic VT7";
15 compatible = "prt,prtvt7", "fsl,imx6dl";
18 device_type = "memory";
19 reg = <0x10000000 0x20000000>;
22 backlight_lcd: backlight-lcd {
23 compatible = "pwm-backlight";
24 pinctrl-names = "default";
25 pinctrl-0 = <&pinctrl_backlight>;
26 pwms = <&pwm1 0 500000>;
27 brightness-levels = <0 20 81 248 1000>;
28 default-brightness-level = <20>;
29 num-interpolated-steps = <21>;
30 power-supply = <®_bl_12v0>;
31 enable-gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>;
35 compatible = "gpio-keys";
39 label = "GPIO Key ESC";
40 linux,code = <KEY_ESC>;
41 gpios = <&gpio_pca 0 GPIO_ACTIVE_LOW>;
45 label = "GPIO Key UP";
46 linux,code = <KEY_UP>;
47 gpios = <&gpio_pca 1 GPIO_ACTIVE_LOW>;
51 label = "GPIO Key DOWN";
52 linux,code = <KEY_DOWN>;
53 gpios = <&gpio_pca 4 GPIO_ACTIVE_LOW>;
57 label = "GPIO Key Enter";
58 linux,code = <KEY_ENTER>;
59 gpios = <&gpio_pca 3 GPIO_ACTIVE_LOW>;
63 label = "GPIO Key CYCLE";
64 linux,code = <KEY_CYCLEWINDOWS>;
65 gpios = <&gpio_pca 2 GPIO_ACTIVE_LOW>;
69 label = "GPIO Key F1";
70 linux,code = <KEY_F1>;
71 gpios = <&gpio_pca 14 GPIO_ACTIVE_LOW>;
75 label = "GPIO Key F2";
76 linux,code = <KEY_F2>;
77 gpios = <&gpio_pca 13 GPIO_ACTIVE_LOW>;
81 label = "GPIO Key F3";
82 linux,code = <KEY_F3>;
83 gpios = <&gpio_pca 12 GPIO_ACTIVE_LOW>;
87 label = "GPIO Key F4";
88 linux,code = <KEY_F4>;
89 gpios = <&gpio_pca 11 GPIO_ACTIVE_LOW>;
93 label = "GPIO Key F5";
94 linux,code = <KEY_F5>;
95 gpios = <&gpio_pca 10 GPIO_ACTIVE_LOW>;
99 label = "GPIO Key F6";
100 linux,code = <KEY_F6>;
101 gpios = <&gpio_pca 5 GPIO_ACTIVE_LOW>;
105 label = "GPIO Key F7";
106 linux,code = <KEY_F7>;
107 gpios = <&gpio_pca 6 GPIO_ACTIVE_LOW>;
111 label = "GPIO Key F8";
112 linux,code = <KEY_F8>;
113 gpios = <&gpio_pca 7 GPIO_ACTIVE_LOW>;
117 label = "GPIO Key F9";
118 linux,code = <KEY_F9>;
119 gpios = <&gpio_pca 8 GPIO_ACTIVE_LOW>;
123 label = "GPIO Key F10";
124 linux,code = <KEY_F10>;
125 gpios = <&gpio_pca 9 GPIO_ACTIVE_LOW>;
130 compatible = "gpio-leds";
131 pinctrl-names = "default";
132 pinctrl-0 = <&pinctrl_leds>;
135 function = LED_FUNCTION_STATUS;
136 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
137 linux,default-trigger = "heartbeat";
141 reg_bl_12v0: regulator-bl-12v0 {
142 compatible = "regulator-fixed";
143 pinctrl-names = "default";
144 pinctrl-0 = <&pinctrl_reg_bl_12v0>;
145 regulator-name = "bl-12v0";
146 regulator-min-microvolt = <12000000>;
147 regulator-max-microvolt = <12000000>;
148 gpio = <&gpio1 7 GPIO_ACTIVE_HIGH>;
152 reg_1v8: regulator-1v8 {
153 compatible = "regulator-fixed";
154 regulator-name = "1v8";
155 regulator-min-microvolt = <1800000>;
156 regulator-max-microvolt = <1800000>;
160 compatible = "simple-audio-card";
161 simple-audio-card,name = "prti6q-sgtl5000";
162 simple-audio-card,format = "i2s";
163 simple-audio-card,widgets =
164 "Microphone", "Microphone Jack",
165 "Line", "Line In Jack",
166 "Headphone", "Headphone Jack",
167 "Speaker", "External Speaker";
168 simple-audio-card,routing =
169 "MIC_IN", "Microphone Jack",
170 "LINE_IN", "Line In Jack",
171 "Headphone Jack", "HP_OUT",
172 "External Speaker", "LINE_OUT";
174 simple-audio-card,cpu {
176 system-clock-frequency = <0>;
179 simple-audio-card,codec {
180 sound-dai = <&sgtl5000>;
188 pinctrl-names = "default";
189 pinctrl-0 = <&pinctrl_audmux>;
193 fsl,audmux-port = <0>;
195 IMX_AUDMUX_V2_PTCR_SYN 0
196 IMX_AUDMUX_V2_PTCR_TFSEL(2) 0
197 IMX_AUDMUX_V2_PTCR_TCSEL(2) 0
198 IMX_AUDMUX_V2_PTCR_TFSDIR 0
199 IMX_AUDMUX_V2_PTCR_TCLKDIR IMX_AUDMUX_V2_PDCR_RXDSEL(2)
204 fsl,audmux-port = <2>;
206 IMX_AUDMUX_V2_PTCR_SYN IMX_AUDMUX_V2_PDCR_RXDSEL(0)
207 0 IMX_AUDMUX_V2_PDCR_TXRXEN
213 pinctrl-0 = <&pinctrl_can1 &pinctrl_can1phy>;
217 assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>;
218 assigned-clock-parents = <&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>;
222 cs-gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
223 pinctrl-names = "default";
224 pinctrl-0 = <&pinctrl_ecspi2>;
229 sgtl5000: audio-codec@a {
230 compatible = "fsl,sgtl5000";
232 pinctrl-names = "default";
233 pinctrl-0 = <&pinctrl_codec>;
234 #sound-dai-cells = <0>;
235 clocks = <&clks 201>;
236 VDDA-supply = <®_3v3>;
237 VDDIO-supply = <®_3v3>;
238 VDDD-supply = <®_1v8>;
244 compatible = "nxp,pcf8563";
249 compatible = "nxp,pca9539";
251 interrupts-extended = <&gpio4 5 IRQ_TYPE_LEVEL_LOW>;
258 pinctrl-names = "default";
259 pinctrl-0 = <&pinctrl_ipu1_csi0>;
265 pinctrl-names = "default";
266 pinctrl-0 = <&pinctrl_pwm1>;
279 #sound-dai-cells = <0>;
280 fsl,mode = "ac97-slave";
293 pinctrl_audmux: audmuxgrp {
295 MX6QDL_PAD_CSI0_MCLK__CCM_CLKO1 0x030b0
296 MX6QDL_PAD_CSI0_DAT7__AUD3_RXD 0x130b0
297 MX6QDL_PAD_CSI0_DAT4__AUD3_TXC 0x130b0
298 MX6QDL_PAD_CSI0_DAT5__AUD3_TXD 0x110b0
299 MX6QDL_PAD_CSI0_DAT6__AUD3_TXFS 0x130b0
303 pinctrl_backlight: backlightgrp {
305 MX6QDL_PAD_DISP0_DAT7__GPIO4_IO28 0x1b0b0
309 pinctrl_can1phy: can1phy {
312 MX6QDL_PAD_KEY_COL3__GPIO4_IO12 0x13070
314 MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0
318 pinctrl_codec: codecgrp {
321 MX6QDL_PAD_CSI0_VSYNC__GPIO5_IO21 0x1f0b0
325 pinctrl_ecspi2: ecspi2grp {
327 MX6QDL_PAD_EIM_OE__ECSPI2_MISO 0x100b1
328 MX6QDL_PAD_EIM_CS0__ECSPI2_SCLK 0x100b1
329 MX6QDL_PAD_EIM_CS1__ECSPI2_MOSI 0x100b1
330 MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x000b1
334 pinctrl_ipu1_csi0: ipu1csi0grp {
336 MX6QDL_PAD_CSI0_DAT12__IPU1_CSI0_DATA12 0x1b0b0
337 MX6QDL_PAD_CSI0_DAT13__IPU1_CSI0_DATA13 0x1b0b0
338 MX6QDL_PAD_CSI0_DAT14__IPU1_CSI0_DATA14 0x1b0b0
339 MX6QDL_PAD_CSI0_DAT15__IPU1_CSI0_DATA15 0x1b0b0
340 MX6QDL_PAD_CSI0_DAT16__IPU1_CSI0_DATA16 0x1b0b0
341 MX6QDL_PAD_CSI0_DAT17__IPU1_CSI0_DATA17 0x1b0b0
342 MX6QDL_PAD_CSI0_DAT18__IPU1_CSI0_DATA18 0x1b0b0
343 MX6QDL_PAD_CSI0_DAT19__IPU1_CSI0_DATA19 0x1b0b0
344 MX6QDL_PAD_CSI0_PIXCLK__IPU1_CSI0_PIXCLK 0x1b0b0
346 MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x1b0b0
348 MX6QDL_PAD_CSI0_DATA_EN__GPIO5_IO20 0x1b0b0
352 pinctrl_ipu1_disp: ipudisp1grp {
354 MX6QDL_PAD_DI0_DISP_CLK__IPU1_DI0_DISP_CLK 0xb0
355 MX6QDL_PAD_DI0_PIN15__IPU1_DI0_PIN15 0xb0
357 MX6QDL_PAD_DISP0_DAT0__IPU1_DISP0_DATA00 0xb0
358 MX6QDL_PAD_DISP0_DAT1__IPU1_DISP0_DATA01 0xb0
359 MX6QDL_PAD_DISP0_DAT2__IPU1_DISP0_DATA02 0xb0
360 MX6QDL_PAD_DISP0_DAT3__IPU1_DISP0_DATA03 0xb0
361 MX6QDL_PAD_DISP0_DAT4__IPU1_DISP0_DATA04 0xb0
362 MX6QDL_PAD_DISP0_DAT5__IPU1_DISP0_DATA05 0xb0
363 MX6QDL_PAD_DISP0_DAT6__IPU1_DISP0_DATA06 0xb0
364 MX6QDL_PAD_DISP0_DAT7__IPU1_DISP0_DATA07 0xb0
366 MX6QDL_PAD_DISP0_DAT8__IPU1_DISP0_DATA08 0xb0
367 MX6QDL_PAD_DISP0_DAT9__IPU1_DISP0_DATA09 0xb0
368 MX6QDL_PAD_DISP0_DAT10__IPU1_DISP0_DATA10 0xb0
369 MX6QDL_PAD_DISP0_DAT11__IPU1_DISP0_DATA11 0xb0
370 MX6QDL_PAD_DISP0_DAT12__IPU1_DISP0_DATA12 0xb0
371 MX6QDL_PAD_DISP0_DAT13__IPU1_DISP0_DATA13 0xb0
372 MX6QDL_PAD_DISP0_DAT14__IPU1_DISP0_DATA14 0xb0
373 MX6QDL_PAD_DISP0_DAT15__IPU1_DISP0_DATA15 0xb0
375 MX6QDL_PAD_DISP0_DAT16__IPU1_DISP0_DATA16 0xb0
376 MX6QDL_PAD_DISP0_DAT17__IPU1_DISP0_DATA17 0xb0
377 MX6QDL_PAD_DISP0_DAT18__IPU1_DISP0_DATA18 0xb0
378 MX6QDL_PAD_DISP0_DAT19__IPU1_DISP0_DATA19 0xb0
379 MX6QDL_PAD_DISP0_DAT20__IPU1_DISP0_DATA20 0xb0
380 MX6QDL_PAD_DISP0_DAT21__IPU1_DISP0_DATA21 0xb0
381 MX6QDL_PAD_DISP0_DAT22__IPU1_DISP0_DATA22 0xb0
382 MX6QDL_PAD_DISP0_DAT23__IPU1_DISP0_DATA23 0xb0
386 pinctrl_leds: ledsgrp {
388 MX6QDL_PAD_GPIO_8__GPIO1_IO08 0x1b0b0
392 pinctrl_pwm1: pwm1grp {
394 MX6QDL_PAD_GPIO_9__PWM1_OUT 0x1b0b0
398 pinctrl_reg_bl_12v0: 12blgrp {
400 MX6QDL_PAD_GPIO_7__GPIO1_IO07 0x1b0b0
404 pinctrl_tsc: tscgrp {
407 MX6QDL_PAD_EIM_D20__GPIO3_IO20 0x1b0b0
408 MX6QDL_PAD_EIM_EB2__GPIO2_IO30 0x1b0b0