1/*
2 * Support for CompuLab SBC-iMX7 Single Board Computer
3 *
4 * Copyright (C) 2015 CompuLab Ltd. - http://www.compulab.co.il/
5 * Author: Ilya Ledvich <ilya@compulab.co.il>
6 *
7 * This file is dual-licensed: you can use it either under the terms
8 * of the GPL or the X11 license, at your option. Note that this dual
9 * licensing only applies to this file, and not this project as a
10 * whole.
11 */
12
13#include "imx7d-cl-som-imx7.dts"
14
15/ {
16	model = "CompuLab SBC-iMX7";
17	compatible = "compulab,sbc-imx7", "compulab,cl-som-imx7", "fsl,imx7d";
18};
19
20&usdhc1 {
21	pinctrl-names = "default";
22	pinctrl-0 = <&pinctrl_usdhc1>;
23	cd-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
24	wp-gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
25	wakeup-source;
26	status = "okay";
27};
28
29&iomuxc {
30	pinctrl_usdhc1: usdhc1grp {
31		fsl,pins = <
32			MX7D_PAD_SD1_CMD__SD1_CMD		0x59
33			MX7D_PAD_SD1_CLK__SD1_CLK		0x19
34			MX7D_PAD_SD1_DATA0__SD1_DATA0		0x59
35			MX7D_PAD_SD1_DATA1__SD1_DATA1		0x59
36			MX7D_PAD_SD1_DATA2__SD1_DATA2		0x59
37			MX7D_PAD_SD1_DATA3__SD1_DATA3		0x59
38			MX7D_PAD_SD1_CD_B__GPIO5_IO0		0x59 /* CD */
39			MX7D_PAD_SD1_WP__GPIO5_IO1		0x59 /* WP */
40		>;
41	};
42};
43