1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright 2022 Toradex
4 */
5
6/dts-v1/;
7
8#include "imx6dl-colibri-iris.dts"
9
10/ {
11	model = "Toradex Colibri iMX6DL/S on Colibri Iris V2 Board";
12	compatible = "toradex,colibri_imx6dl-iris-v2", "toradex,colibri_imx6dl",
13		     "fsl,imx6dl";
14
15	reg_3v3_vmmc: regulator-3v3-vmmc {
16		compatible = "regulator-fixed";
17		pinctrl-names = "default";
18		pinctrl-0 = <&pinctrl_enable_3v3_vmmc>;
19		regulator-name = "3v3_vmmc";
20		regulator-min-microvolt = <3300000>;
21		regulator-max-microvolt = <3300000>;
22		gpio = <&gpio2 11 GPIO_ACTIVE_HIGH>;
23		startup-delay-us = <100>;
24		enable-active-high;
25	};
26};
27
28&iomuxc {
29	pinctrl-names = "default";
30	pinctrl-0 = <&pinctrl_gpio_iris	&pinctrl_usbh_oc_1 &pinctrl_usbc_id_1>;
31
32	pinctrl_enable_3v3_vmmc: enable3v3vmmcgrp {
33		fsl,pins = <
34			MX6QDL_PAD_SD4_DAT3__GPIO2_IO11	0x1b0b0
35		>;
36	};
37};
38
39/* Colibri MMC */
40&usdhc1 {
41	cap-power-off-card;
42	/* uncomment the following to enable SD card UHS mode if you have a V1.1 module */
43	/* /delete-property/ no-1-8-v; */
44	vmmc-supply = <&reg_3v3_vmmc>;
45	status = "okay";
46};
47