1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 * Copyright (c) 2016 Protonic Holland
4 * Copyright (c) 2020 Oleksij Rempel <kernel@pengutronix.de>, Pengutronix
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/sound/fsl-imx-audmux.h>
11 #include "imx6dl.dtsi"
14 model = "Altesco I6P Board";
15 compatible = "alt,alti6p", "fsl,imx6dl";
21 clock_ksz8081: clock-ksz8081 {
22 compatible = "fixed-clock";
24 clock-frequency = <50000000>;
28 compatible = "i2c-mux";
30 mux-controls = <&i2c_mux>;
48 compatible = "i2c-mux";
50 mux-controls = <&i2c_mux>;
68 compatible = "gpio-leds";
69 pinctrl-names = "default";
70 pinctrl-0 = <&pinctrl_leds>;
73 function = LED_FUNCTION_STATUS;
74 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
75 linux,default-trigger = "heartbeat";
79 function = LED_FUNCTION_SD;
80 gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
81 linux,default-trigger = "disk-activity";
85 i2c_mux: mux-controller {
86 compatible = "gpio-mux";
87 #mux-control-cells = <0>;
88 pinctrl-names = "default";
89 pinctrl-0 = <&pinctrl_i2cmux>;
91 mux-gpios = <&gpio5 10 GPIO_ACTIVE_HIGH>,
92 <&gpio5 11 GPIO_ACTIVE_HIGH>;
95 reg_1v8: regulator-1v8 {
96 compatible = "regulator-fixed";
97 regulator-name = "1v8";
98 regulator-min-microvolt = <1800000>;
99 regulator-max-microvolt = <1800000>;
102 reg_3v3: regulator-3v3 {
103 compatible = "regulator-fixed";
104 regulator-name = "3v3";
105 regulator-min-microvolt = <3300000>;
106 regulator-max-microvolt = <3300000>;
109 reg_5v0: regulator-5v0 {
110 compatible = "regulator-fixed";
111 regulator-name = "5v0";
112 regulator-min-microvolt = <5000000>;
113 regulator-max-microvolt = <5000000>;
116 reg_h1_vbus: regulator-h1-vbus {
117 compatible = "regulator-fixed";
118 regulator-name = "h1-vbus";
119 regulator-min-microvolt = <5000000>;
120 regulator-max-microvolt = <5000000>;
121 gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
125 reg_otg_vbus: regulator-otg-vbus {
126 compatible = "regulator-fixed";
127 regulator-name = "otg-vbus";
128 regulator-min-microvolt = <5000000>;
129 regulator-max-microvolt = <5000000>;
130 gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
135 compatible = "simple-audio-card";
136 simple-audio-card,name = "prti6q-sgtl5000";
137 simple-audio-card,format = "i2s";
138 simple-audio-card,widgets =
139 "Microphone", "Microphone Jack",
140 "Line", "Line In Jack",
141 "Headphone", "Headphone Jack",
142 "Speaker", "External Speaker";
143 simple-audio-card,routing =
144 "MIC_IN", "Microphone Jack",
145 "LINE_IN", "Line In Jack",
146 "Headphone Jack", "HP_OUT",
147 "External Speaker", "LINE_OUT";
149 simple-audio-card,cpu {
151 system-clock-frequency = <0>;
154 simple-audio-card,codec {
155 sound-dai = <&sgtl5000>;
163 pinctrl-names = "default";
164 pinctrl-0 = <&pinctrl_audmux>;
168 fsl,audmux-port = <0>;
170 IMX_AUDMUX_V2_PTCR_SYN 0
171 IMX_AUDMUX_V2_PTCR_TFSEL(2) 0
172 IMX_AUDMUX_V2_PTCR_TCSEL(2) 0
173 IMX_AUDMUX_V2_PTCR_TFSDIR 0
174 IMX_AUDMUX_V2_PTCR_TCLKDIR IMX_AUDMUX_V2_PDCR_RXDSEL(2)
179 fsl,audmux-port = <2>;
181 IMX_AUDMUX_V2_PTCR_SYN IMX_AUDMUX_V2_PDCR_RXDSEL(0)
182 0 IMX_AUDMUX_V2_PDCR_TXRXEN
188 pinctrl-names = "default";
189 pinctrl-0 = <&pinctrl_can1>;
190 xceiver-supply = <®_5v0>;
195 cs-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH>;
196 pinctrl-names = "default";
197 pinctrl-0 = <&pinctrl_ecspi1>;
201 compatible = "jedec,spi-nor";
203 spi-max-frequency = <20000000>;
208 pinctrl-names = "default";
209 pinctrl-0 = <&pinctrl_enet>;
211 clocks = <&clks IMX6QDL_CLK_ENET>,
212 <&clks IMX6QDL_CLK_ENET>,
214 clock-names = "ipg", "ahb", "ptp";
218 #address-cells = <1>;
221 /* Microchip KSZ8081RNA PHY */
222 rgmii_phy: ethernet-phy@0 {
224 interrupts-extended = <&gpio4 30 IRQ_TYPE_LEVEL_LOW>;
225 reset-gpios = <&gpio4 26 GPIO_ACTIVE_LOW>;
226 reset-assert-us = <10000>;
227 reset-deassert-us = <300>;
234 "", "SD1_CD", "", "USB_H1_OC", "", "", "", "",
235 "DEBUG_0", "DEBUG_1", "", "", "", "", "", "",
236 "", "", "", "", "", "", "", "",
237 "", "", "", "", "", "", "", "";
242 "", "", "", "", "", "", "", "",
243 "", "", "", "", "", "", "", "",
244 "", "", "", "ECSPI1_SS1", "", "USB_EXT1_OC", "USB_EXT1_PWR", "",
245 "", "", "", "", "", "", "", "";
250 "", "", "", "", "", "", "", "",
251 "", "", "", "", "", "", "", "",
252 "", "", "", "", "", "", "", "",
253 "", "", "ETH_RESET", "", "", "BUZZER", "ETH_INTRP", "";
258 "", "", "", "", "", "", "", "",
259 "", "", "I2C_EN13", "I2C_EN24", "", "", "", "",
260 "", "", "", "", "", "AUDIO_RESET", "", "",
261 "", "", "", "", "", "", "", "";
265 pinctrl-names = "default";
266 pinctrl-0 = <&pinctrl_hdmi>;
267 ddc-i2c-bus = <&i2c1>;
273 clock-frequency = <100000>;
274 pinctrl-names = "default";
275 pinctrl-0 = <&pinctrl_i2c1>;
278 sgtl5000: audio-codec@a {
279 compatible = "fsl,sgtl5000";
281 #sound-dai-cells = <0>;
282 clocks = <&clks 201>;
283 VDDA-supply = <®_3v3>;
284 VDDIO-supply = <®_3v3>;
285 VDDD-supply = <®_1v8>;
288 /* additional i2c devices are added automatically by the boot loader */
292 clock-frequency = <50000>;
293 pinctrl-names = "default";
294 pinctrl-0 = <&pinctrl_i2c2>;
297 /* external interface, device are configured from user space */
301 clock-frequency = <100000>;
302 pinctrl-names = "default";
303 pinctrl-0 = <&pinctrl_i2c3>;
307 compatible = "nxp,pcf8563";
311 temperature-sensor@70 {
312 compatible = "ti,tmp103";
318 clock-frequency = <50000>;
319 pinctrl-names = "default";
320 pinctrl-0 = <&pinctrl_i2c4>;
325 pinctrl-names = "default";
326 pinctrl-0 = <&pinctrl_pwm1>;
331 #sound-dai-cells = <0>;
332 fsl,mode = "ac97-slave";
337 pinctrl-names = "default";
338 pinctrl-0 = <&pinctrl_uart2>;
343 pinctrl-names = "default";
344 pinctrl-0 = <&pinctrl_uart4>;
349 pinctrl-names = "default";
350 pinctrl-0 = <&pinctrl_uart5>;
355 vbus-supply = <®_h1_vbus>;
356 pinctrl-names = "default";
357 pinctrl-0 = <&pinctrl_usbh1>;
364 vbus-supply = <®_otg_vbus>;
365 pinctrl-names = "default";
366 pinctrl-0 = <&pinctrl_usbotg>;
373 pinctrl-names = "default";
374 pinctrl-0 = <&pinctrl_usdhc1>;
375 cd-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
385 pinctrl-names = "default";
386 pinctrl-0 = <&pinctrl_usdhc3>;
396 pinctrl_audmux: audmuxgrp {
398 MX6QDL_PAD_CSI0_MCLK__CCM_CLKO1 0x030b0
399 MX6QDL_PAD_CSI0_DAT7__AUD3_RXD 0x130b0
400 MX6QDL_PAD_CSI0_DAT4__AUD3_TXC 0x130b0
401 MX6QDL_PAD_CSI0_DAT5__AUD3_TXD 0x110b0
402 MX6QDL_PAD_CSI0_DAT6__AUD3_TXFS 0x130b0
406 pinctrl_can1: can1grp {
408 MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x1b000
409 MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x3008
413 pinctrl_ecspi1: ecspi1grp {
415 MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x1b000
416 MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x3008
417 MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x3008
419 MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x3008
423 pinctrl_enet: enetgrp {
425 /* MX6QDL_ENET_PINGRP4 */
426 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
427 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
428 MX6QDL_PAD_ENET_RXD0__ENET_RX_DATA0 0x1b0b0
429 MX6QDL_PAD_ENET_RXD1__ENET_RX_DATA1 0x1b0b0
430 MX6QDL_PAD_ENET_RX_ER__ENET_RX_ER 0x1b0b0
431 MX6QDL_PAD_ENET_TX_EN__ENET_TX_EN 0x1b0b0
432 MX6QDL_PAD_ENET_TXD0__ENET_TX_DATA0 0x1b0b0
433 MX6QDL_PAD_ENET_TXD1__ENET_TX_DATA1 0x1b0b0
434 MX6QDL_PAD_ENET_CRS_DV__ENET_RX_EN 0x1b0b0
436 MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x1b0b0
438 MX6QDL_PAD_DISP0_DAT5__GPIO4_IO26 0x1b0b0
440 MX6QDL_PAD_DISP0_DAT9__GPIO4_IO30 0x1b0b0
444 pinctrl_hdmi: hdmigrp {
446 /* NOTE: DDC is done via I2C2, so DON'T configure DDC
449 MX6QDL_PAD_EIM_A25__HDMI_TX_CEC_LINE 0x1f8b0
453 pinctrl_i2c1: i2c1grp {
455 MX6QDL_PAD_CSI0_DAT8__I2C1_SDA 0x4001f8b1
456 MX6QDL_PAD_CSI0_DAT9__I2C1_SCL 0x4001f8b1
460 pinctrl_i2c2: i2c2grp {
462 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
463 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
467 pinctrl_i2c3: i2c3grp {
469 MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001b8b1
470 MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
474 pinctrl_i2c4: i2c4grp {
476 MX6QDL_PAD_NANDF_CS3__I2C4_SDA 0x4001f8b1
477 MX6QDL_PAD_NANDF_WP_B__I2C4_SCL 0x4001f8b1
481 pinctrl_i2cmux: i2cmuxgrp {
483 MX6QDL_PAD_DISP0_DAT16__GPIO5_IO10 0x1b0b0
484 MX6QDL_PAD_DISP0_DAT17__GPIO5_IO11 0x1b0b0
488 pinctrl_leds: ledsgrp {
490 MX6QDL_PAD_GPIO_8__GPIO1_IO08 0x1b0b0
491 MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x1b0b0
495 pinctrl_pwm1: pwm1grp {
497 MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x8
501 pinctrl_uart2: uart2grp {
503 MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1
504 MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1
508 pinctrl_uart4: uart4grp {
510 MX6QDL_PAD_KEY_COL0__UART4_TX_DATA 0x1b0b1
511 MX6QDL_PAD_KEY_ROW0__UART4_RX_DATA 0x1b0b1
515 pinctrl_uart5: uart5grp {
517 MX6QDL_PAD_KEY_COL1__UART5_TX_DATA 0x1b0b1
518 MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA 0x1b0b1
522 pinctrl_usbh1: usbh1grp {
524 MX6QDL_PAD_GPIO_3__USB_H1_OC 0x1B058
525 MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1B058
530 pinctrl_usbotg: usbotggrp {
532 MX6QDL_PAD_EIM_D21__USB_OTG_OC 0x1b0b0
533 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0
537 pinctrl_usdhc1: usdhc1grp {
539 MX6QDL_PAD_SD1_CMD__SD1_CMD 0x170f9
540 MX6QDL_PAD_SD1_CLK__SD1_CLK 0x100f9
541 MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x170f9
542 MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x170f9
543 MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x170f9
544 MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x170f9
545 MX6QDL_PAD_GPIO_1__GPIO1_IO01 0x1b0b0
549 pinctrl_usdhc3: usdhc3grp {
551 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17099
552 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10099
553 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17099
554 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17099
555 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17099
556 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17099
557 MX6QDL_PAD_SD3_DAT4__SD3_DATA4 0x17099
558 MX6QDL_PAD_SD3_DAT5__SD3_DATA5 0x17099
559 MX6QDL_PAD_SD3_DAT6__SD3_DATA6 0x17099
560 MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x17099
561 MX6QDL_PAD_SD3_RST__SD3_RESET 0x1b0b1