blob: 6a9c10decf521b5564e2b7f4fc18b569cb582968 [file] [log] [blame]
Marcel Ziswiler62f96862022-11-07 22:22:36 +01001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Giulio Benetti8d9c0762020-01-10 15:51:48 +01002/*
3 * Copyright (C) 2019
4 * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
5 */
6
7/dts-v1/;
8#include "imxrt1050.dtsi"
Jesse Taube6f9d3da2022-03-17 14:33:20 -04009#include "imxrt1050-pinfunc.h"
Giulio Benetti8d9c0762020-01-10 15:51:48 +010010
11/ {
12 model = "NXP IMXRT1050-evk board";
13 compatible = "fsl,imxrt1050-evk", "fsl,imxrt1050";
14
15 chosen {
Marcel Ziswiler62f96862022-11-07 22:22:36 +010016 stdout-path = &lpuart1;
Giulio Benetti8d9c0762020-01-10 15:51:48 +010017 };
18
Marcel Ziswiler62f96862022-11-07 22:22:36 +010019 aliases {
20 gpio0 = &gpio1;
21 gpio1 = &gpio2;
22 gpio2 = &gpio3;
23 gpio3 = &gpio4;
24 gpio4 = &gpio5;
25 mmc0 = &usdhc1;
26 serial0 = &lpuart1;
27 };
28
29 memory@80000000 {
Giulio Benetti6f6f03a2021-05-13 12:18:44 +020030 device_type = "memory";
Giulio Benetti8d9c0762020-01-10 15:51:48 +010031 reg = <0x80000000 0x2000000>;
32 };
33};
34
Marcel Ziswiler62f96862022-11-07 22:22:36 +010035&lpuart1 {
Giulio Benetti8d9c0762020-01-10 15:51:48 +010036 pinctrl-names = "default";
37 pinctrl-0 = <&pinctrl_lpuart1>;
38 status = "okay";
39};
40
Giulio Benetti8d9c0762020-01-10 15:51:48 +010041&iomuxc {
42 pinctrl-names = "default";
Marcel Ziswiler62f96862022-11-07 22:22:36 +010043 pinctrl_lpuart1: lpuart1grp {
44 fsl,pins = <
45 MXRT1050_IOMUXC_GPIO_AD_B0_12_LPUART1_TXD 0xf1
46 MXRT1050_IOMUXC_GPIO_AD_B0_13_LPUART1_RXD 0xf1
47 >;
Giulio Benetti8d9c0762020-01-10 15:51:48 +010048 };
Giulio Benetti8d9c0762020-01-10 15:51:48 +010049
Marcel Ziswiler62f96862022-11-07 22:22:36 +010050 pinctrl_usdhc0: usdhc0grp {
51 fsl,pins = <
52 MXRT1050_IOMUXC_GPIO_B1_12_USDHC1_CD_B 0x1B000
53 MXRT1050_IOMUXC_GPIO_B1_14_USDHC1_VSELECT 0xB069
54 MXRT1050_IOMUXC_GPIO_SD_B0_00_USDHC1_CMD 0x17061
55 MXRT1050_IOMUXC_GPIO_SD_B0_01_USDHC1_CLK 0x17061
56 MXRT1050_IOMUXC_GPIO_SD_B0_05_USDHC1_DATA3 0x17061
57 MXRT1050_IOMUXC_GPIO_SD_B0_04_USDHC1_DATA2 0x17061
58 MXRT1050_IOMUXC_GPIO_SD_B0_03_USDHC1_DATA1 0x17061
59 MXRT1050_IOMUXC_GPIO_SD_B0_02_USDHC1_DATA0 0x17061
60 >;
61 };
Giulio Benetti7eacc422021-05-13 12:18:41 +020062};
63
Giulio Benetti8d9c0762020-01-10 15:51:48 +010064&usdhc1 {
65 pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep";
66 pinctrl-0 = <&pinctrl_usdhc0>;
67 pinctrl-1 = <&pinctrl_usdhc0>;
68 pinctrl-2 = <&pinctrl_usdhc0>;
69 pinctrl-3 = <&pinctrl_usdhc0>;
Giulio Benetti8d9c0762020-01-10 15:51:48 +010070 cd-gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
Giulio Benetti42b96722021-05-20 16:10:17 +020071 status = "okay";
72};