1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 * Copyright (c) 2014 Protonic Holland
8 #include "imx6qdl-prti6q.dtsi"
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/sound/fsl-imx-audmux.h>
13 model = "Protonic PRTI6Q board";
14 compatible = "prt,prti6q", "fsl,imx6q";
17 device_type = "memory";
18 reg = <0x10000000 0xf0000000>;
21 backlight_lcd: backlight-lcd {
22 compatible = "pwm-backlight";
23 pinctrl-names = "default";
24 pinctrl-0 = <&pinctrl_backlight>;
25 pwms = <&pwm1 0 5000000>;
26 brightness-levels = <0 16 64 255>;
27 num-interpolated-steps = <16>;
28 default-brightness-level = <1>;
29 power-supply = <®_3v3>;
30 enable-gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>;
34 compatible = "fixed-clock";
36 clock-frequency = <25000000>;
40 compatible = "gpio-leds";
41 pinctrl-names = "default";
42 pinctrl-0 = <&pinctrl_leds>;
45 function = LED_FUNCTION_STATUS;
46 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
47 linux,default-trigger = "heartbeat";
51 function = LED_FUNCTION_SD;
52 gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
53 linux,default-trigger = "disk-activity";
58 compatible = "kyo,tcg121xglp";
59 backlight = <&backlight_lcd>;
63 remote-endpoint = <&lvds0_out>;
68 reg_1v8: regulator-1v8 {
69 compatible = "regulator-fixed";
70 regulator-name = "1v8";
71 regulator-min-microvolt = <1800000>;
72 regulator-max-microvolt = <1800000>;
75 reg_wifi: regulator-wifi {
76 compatible = "regulator-fixed";
77 pinctrl-names = "default";
78 pinctrl-0 = <&pinctrl_wifi_npd>;
80 gpio = <&gpio1 26 GPIO_ACTIVE_HIGH>;
81 regulator-max-microvolt = <1800000>;
82 regulator-min-microvolt = <1800000>;
83 regulator-name = "regulator-WL12xx";
84 startup-delay-us = <70000>;
88 compatible = "simple-audio-card";
89 simple-audio-card,name = "prti6q-sgtl5000";
90 simple-audio-card,format = "i2s";
91 simple-audio-card,widgets =
92 "Microphone", "Microphone Jack",
93 "Line", "Line In Jack",
94 "Headphone", "Headphone Jack",
95 "Speaker", "External Speaker";
96 simple-audio-card,routing =
97 "MIC_IN", "Microphone Jack",
98 "LINE_IN", "Line In Jack",
99 "Headphone Jack", "HP_OUT",
100 "External Speaker", "LINE_OUT";
102 simple-audio-card,cpu {
104 system-clock-frequency = <0>;
107 simple-audio-card,codec {
108 sound-dai = <&sgtl5000>;
115 compatible = "fsl,imx-audio-spdif";
117 spdif-controller = <&spdif>;
124 pinctrl-names = "default";
125 pinctrl-0 = <&pinctrl_audmux>;
129 fsl,audmux-port = <0>;
131 IMX_AUDMUX_V2_PTCR_SYN 0
132 IMX_AUDMUX_V2_PTCR_TFSEL(2) 0
133 IMX_AUDMUX_V2_PTCR_TCSEL(2) 0
134 IMX_AUDMUX_V2_PTCR_TFSDIR 0
135 IMX_AUDMUX_V2_PTCR_TCLKDIR IMX_AUDMUX_V2_PDCR_RXDSEL(2)
140 fsl,audmux-port = <2>;
142 IMX_AUDMUX_V2_PTCR_SYN IMX_AUDMUX_V2_PDCR_RXDSEL(0)
143 0 IMX_AUDMUX_V2_PDCR_TXRXEN
149 pinctrl-names = "default";
150 pinctrl-0 = <&pinctrl_can1>;
155 pinctrl-names = "default";
156 pinctrl-0 = <&pinctrl_can2>;
161 cs-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
162 pinctrl-names = "default";
163 pinctrl-0 = <&pinctrl_ecspi1>;
167 compatible = "jedec,spi-nor";
169 spi-max-frequency = <20000000>;
174 cs-gpios = <&gpio2 26 GPIO_ACTIVE_LOW>, <&gpio4 25 GPIO_ACTIVE_LOW>;
175 pinctrl-names = "default";
176 pinctrl-0 = <&pinctrl_ecspi2 &pinctrl_ecspi2_cs>;
180 compatible = "microchip,mcp2515";
182 pinctrl-names = "default";
183 pinctrl-0 = <&pinctrl_can3>;
185 interrupts-extended = <&gpio3 20 IRQ_TYPE_LEVEL_LOW>;
186 spi-max-frequency = <5000000>;
190 compatible = "ti,adc128s052";
192 spi-max-frequency = <2000000>;
193 vref-supply = <®_3v3>;
198 cs-gpios = <&gpio4 24 GPIO_ACTIVE_LOW>;
199 pinctrl-names = "default";
200 pinctrl-0 = <&pinctrl_ecspi3>;
205 pinctrl-names = "default";
206 pinctrl-0 = <&pinctrl_enet>;
207 phy-mode = "rgmii-id";
208 phy-handle = <&rgmii_phy>;
212 #address-cells = <1>;
215 /* Microchip KSZ9031RNX PHY */
216 rgmii_phy: ethernet-phy@0 {
218 interrupts-extended = <&gpio1 28 IRQ_TYPE_LEVEL_LOW>;
219 reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
220 reset-assert-us = <10000>;
221 reset-deassert-us = <300>;
227 pinctrl-names = "default";
228 pinctrl-0 = <&pinctrl_hdmi>;
229 ddc-i2c-bus = <&i2c2>;
234 sgtl5000: audio-codec@a {
235 compatible = "fsl,sgtl5000";
237 #sound-dai-cells = <0>;
238 clocks = <&clks 201>;
239 VDDA-supply = <®_3v3>;
240 VDDIO-supply = <®_3v3>;
241 VDDD-supply = <®_1v8>;
247 clock-frequency = <100000>;
248 pinctrl-names = "default";
249 pinctrl-0 = <&pinctrl_i2c2>;
255 compatible = "ti,ads1015";
257 #address-cells = <1>;
296 pinctrl-names = "default";
297 pinctrl-0 = <&pinctrl_pwm1>;
310 lvds0_out: endpoint {
311 remote-endpoint = <&panel_in>;
326 pinctrl-names = "default";
327 pinctrl-0 = <&pinctrl_spdif>;
332 #sound-dai-cells = <0>;
333 fsl,mode = "ac97-slave";
338 pinctrl-names = "default";
339 pinctrl-0 = <&pinctrl_uart2>;
344 pinctrl-names = "default";
345 pinctrl-0 = <&pinctrl_uart5>;
350 pinctrl-0 = <&pinctrl_usbotg &pinctrl_usbotg_id>;
354 pinctrl-names = "default";
355 pinctrl-0 = <&pinctrl_usdhc2>;
357 vmmc-supply = <®_wifi>;
359 keep-power-in-suspend;
363 compatible = "ti,wl1271";
364 pinctrl-names = "default";
365 pinctrl-0 = <&pinctrl_wifi>;
366 interrupts-extended = <&gpio1 30 IRQ_TYPE_LEVEL_HIGH>;
367 ref-clock-frequency = "38400000";
368 tcxo-clock-frequency = "19200000";
373 pinctrl_audmux: audmuxgrp {
375 MX6QDL_PAD_CSI0_MCLK__CCM_CLKO1 0x030b0
376 MX6QDL_PAD_CSI0_DAT7__AUD3_RXD 0x130b0
377 MX6QDL_PAD_CSI0_DAT4__AUD3_TXC 0x130b0
378 MX6QDL_PAD_CSI0_DAT5__AUD3_TXD 0x110b0
379 MX6QDL_PAD_CSI0_DAT6__AUD3_TXFS 0x130b0
383 pinctrl_backlight: backlightgrp {
385 MX6QDL_PAD_DISP0_DAT7__GPIO4_IO28 0x1b0b0
389 pinctrl_can2: can2grp {
391 MX6QDL_PAD_KEY_COL4__FLEXCAN2_TX 0x1b008
392 MX6QDL_PAD_KEY_ROW4__FLEXCAN2_RX 0x1b008
396 pinctrl_can3: can3grp {
398 MX6QDL_PAD_EIM_D20__GPIO3_IO20 0x1b0b1
402 pinctrl_ecspi1: ecspi1grp {
404 MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1
405 MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1
406 MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1
408 MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x000b1
412 pinctrl_ecspi2: ecspi2grp {
414 MX6QDL_PAD_EIM_OE__ECSPI2_MISO 0x100b1
415 MX6QDL_PAD_EIM_CS0__ECSPI2_SCLK 0x100b1
416 MX6QDL_PAD_EIM_CS1__ECSPI2_MOSI 0x100b1
417 MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x000b1
421 pinctrl_ecspi2_cs: ecspi2csgrp {
424 MX6QDL_PAD_DISP0_DAT4__GPIO4_IO25 0x1b0b1
428 pinctrl_ecspi3: ecspi3grp {
430 MX6QDL_PAD_DISP0_DAT0__ECSPI3_SCLK 0x100b1
431 MX6QDL_PAD_DISP0_DAT1__ECSPI3_MOSI 0x100b1
432 MX6QDL_PAD_DISP0_DAT2__ECSPI3_MISO 0x100b1
433 MX6QDL_PAD_DISP0_DAT3__GPIO4_IO24 0x000b1
437 pinctrl_enet: enetgrp {
439 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
440 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
441 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
442 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
443 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
444 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
445 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x10030
446 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x10030
447 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x10030
448 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x10030
449 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x10030
450 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x10030
451 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x10030
452 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x10030
453 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x10030
456 MX6QDL_PAD_ENET_CRS_DV__GPIO1_IO25 0x1b0b0
457 MX6QDL_PAD_ENET_TX_EN__GPIO1_IO28 0x1b0b1
461 pinctrl_hdmi: hdmigrp {
463 /* NOTE: DDC is done via I2C2, so DON'T
464 * configure DDC pins for HDMI!
466 MX6QDL_PAD_EIM_A25__HDMI_TX_CEC_LINE 0x1f8b0
471 pinctrl_i2c2: i2c2grp {
473 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
474 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
478 pinctrl_leds: ledsgrp {
480 MX6QDL_PAD_GPIO_8__GPIO1_IO08 0x1b0b0
481 MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x1b0b0
485 pinctrl_pwm1: pwm1grp {
487 MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b0
491 pinctrl_spdif: spdifgrp {
493 MX6QDL_PAD_GPIO_16__SPDIF_IN 0x1b0b0
494 MX6QDL_PAD_GPIO_19__SPDIF_OUT 0x1b0b0
498 pinctrl_uart2: uart2grp {
500 MX6QDL_PAD_EIM_D26__UART2_RX_DATA 0x1b0b1
501 MX6QDL_PAD_EIM_D27__UART2_TX_DATA 0x1b0b1
502 MX6QDL_PAD_EIM_D28__UART2_DTE_CTS_B 0x1b0b1
503 MX6QDL_PAD_EIM_D29__UART2_DTE_RTS_B 0x1b0b1
507 pinctrl_uart5: uart5grp {
509 MX6QDL_PAD_KEY_COL1__UART5_TX_DATA 0x1b0b1
510 MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA 0x1b0b1
514 pinctrl_usbotg_id: usbotgidgrp {
516 MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x1f058
520 pinctrl_usdhc2: usdhc2grp {
522 MX6QDL_PAD_SD2_CMD__SD2_CMD 0x170b9
523 MX6QDL_PAD_SD2_CLK__SD2_CLK 0x100b9
524 MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x170b9
525 MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x170b9
526 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x170b9
527 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x170b9
531 pinctrl_wifi: wifigrp {
534 MX6QDL_PAD_ENET_TXD0__GPIO1_IO30 0x10880
538 pinctrl_wifi_npd: wifinpd {
540 MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x1b8b0