Marcel Ziswiler | 62f9686 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
Giulio Benetti | 8d9c076 | 2020-01-10 15:51:48 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2019 |
| 4 | * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com> |
| 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
| 8 | #include "imxrt1050.dtsi" |
Jesse Taube | 6f9d3da | 2022-03-17 14:33:20 -0400 | [diff] [blame] | 9 | #include "imxrt1050-pinfunc.h" |
Giulio Benetti | 8d9c076 | 2020-01-10 15:51:48 +0100 | [diff] [blame] | 10 | |
| 11 | / { |
| 12 | model = "NXP IMXRT1050-evk board"; |
| 13 | compatible = "fsl,imxrt1050-evk", "fsl,imxrt1050"; |
| 14 | |
| 15 | chosen { |
Marcel Ziswiler | 62f9686 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 16 | stdout-path = &lpuart1; |
Giulio Benetti | 8d9c076 | 2020-01-10 15:51:48 +0100 | [diff] [blame] | 17 | }; |
| 18 | |
Marcel Ziswiler | 62f9686 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 19 | 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 Benetti | 6f6f03a | 2021-05-13 12:18:44 +0200 | [diff] [blame] | 30 | device_type = "memory"; |
Giulio Benetti | 8d9c076 | 2020-01-10 15:51:48 +0100 | [diff] [blame] | 31 | reg = <0x80000000 0x2000000>; |
| 32 | }; |
| 33 | }; |
| 34 | |
Marcel Ziswiler | 62f9686 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 35 | &lpuart1 { |
Giulio Benetti | 8d9c076 | 2020-01-10 15:51:48 +0100 | [diff] [blame] | 36 | pinctrl-names = "default"; |
| 37 | pinctrl-0 = <&pinctrl_lpuart1>; |
| 38 | status = "okay"; |
| 39 | }; |
| 40 | |
Giulio Benetti | 8d9c076 | 2020-01-10 15:51:48 +0100 | [diff] [blame] | 41 | &iomuxc { |
| 42 | pinctrl-names = "default"; |
Marcel Ziswiler | 62f9686 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 43 | 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 Benetti | 8d9c076 | 2020-01-10 15:51:48 +0100 | [diff] [blame] | 48 | }; |
Giulio Benetti | 8d9c076 | 2020-01-10 15:51:48 +0100 | [diff] [blame] | 49 | |
Marcel Ziswiler | 62f9686 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 50 | 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 Benetti | 7eacc42 | 2021-05-13 12:18:41 +0200 | [diff] [blame] | 62 | }; |
| 63 | |
Giulio Benetti | 8d9c076 | 2020-01-10 15:51:48 +0100 | [diff] [blame] | 64 | &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 Benetti | 8d9c076 | 2020-01-10 15:51:48 +0100 | [diff] [blame] | 70 | cd-gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; |
Giulio Benetti | 42b9672 | 2021-05-20 16:10:17 +0200 | [diff] [blame] | 71 | status = "okay"; |
| 72 | }; |