18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright 2019 NXP 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci/dts-v1/; 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#include "imx8mp.dtsi" 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci/ { 118c2ecf20Sopenharmony_ci model = "NXP i.MX8MPlus EVK board"; 128c2ecf20Sopenharmony_ci compatible = "fsl,imx8mp-evk", "fsl,imx8mp"; 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci chosen { 158c2ecf20Sopenharmony_ci stdout-path = &uart2; 168c2ecf20Sopenharmony_ci }; 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci gpio-leds { 198c2ecf20Sopenharmony_ci compatible = "gpio-leds"; 208c2ecf20Sopenharmony_ci pinctrl-names = "default"; 218c2ecf20Sopenharmony_ci pinctrl-0 = <&pinctrl_gpio_led>; 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci status { 248c2ecf20Sopenharmony_ci label = "yellow:status"; 258c2ecf20Sopenharmony_ci gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>; 268c2ecf20Sopenharmony_ci default-state = "on"; 278c2ecf20Sopenharmony_ci }; 288c2ecf20Sopenharmony_ci }; 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci memory@40000000 { 318c2ecf20Sopenharmony_ci device_type = "memory"; 328c2ecf20Sopenharmony_ci reg = <0x0 0x40000000 0 0xc0000000>, 338c2ecf20Sopenharmony_ci <0x1 0x00000000 0 0xc0000000>; 348c2ecf20Sopenharmony_ci }; 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci reg_usdhc2_vmmc: regulator-usdhc2 { 378c2ecf20Sopenharmony_ci compatible = "regulator-fixed"; 388c2ecf20Sopenharmony_ci pinctrl-names = "default"; 398c2ecf20Sopenharmony_ci pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>; 408c2ecf20Sopenharmony_ci regulator-name = "VSD_3V3"; 418c2ecf20Sopenharmony_ci regulator-min-microvolt = <3300000>; 428c2ecf20Sopenharmony_ci regulator-max-microvolt = <3300000>; 438c2ecf20Sopenharmony_ci gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; 448c2ecf20Sopenharmony_ci enable-active-high; 458c2ecf20Sopenharmony_ci }; 468c2ecf20Sopenharmony_ci}; 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci&fec { 498c2ecf20Sopenharmony_ci pinctrl-names = "default"; 508c2ecf20Sopenharmony_ci pinctrl-0 = <&pinctrl_fec>; 518c2ecf20Sopenharmony_ci phy-mode = "rgmii-id"; 528c2ecf20Sopenharmony_ci phy-handle = <ðphy1>; 538c2ecf20Sopenharmony_ci fsl,magic-packet; 548c2ecf20Sopenharmony_ci status = "okay"; 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci mdio { 578c2ecf20Sopenharmony_ci #address-cells = <1>; 588c2ecf20Sopenharmony_ci #size-cells = <0>; 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci ethphy1: ethernet-phy@1 { 618c2ecf20Sopenharmony_ci compatible = "ethernet-phy-ieee802.3-c22"; 628c2ecf20Sopenharmony_ci reg = <1>; 638c2ecf20Sopenharmony_ci eee-broken-1000t; 648c2ecf20Sopenharmony_ci reset-gpios = <&gpio4 2 GPIO_ACTIVE_LOW>; 658c2ecf20Sopenharmony_ci reset-assert-us = <10000>; 668c2ecf20Sopenharmony_ci reset-deassert-us = <80000>; 678c2ecf20Sopenharmony_ci }; 688c2ecf20Sopenharmony_ci }; 698c2ecf20Sopenharmony_ci}; 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ci&i2c3 { 728c2ecf20Sopenharmony_ci clock-frequency = <400000>; 738c2ecf20Sopenharmony_ci pinctrl-names = "default"; 748c2ecf20Sopenharmony_ci pinctrl-0 = <&pinctrl_i2c3>; 758c2ecf20Sopenharmony_ci status = "okay"; 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ci pca6416: gpio@20 { 788c2ecf20Sopenharmony_ci compatible = "ti,tca6416"; 798c2ecf20Sopenharmony_ci reg = <0x20>; 808c2ecf20Sopenharmony_ci gpio-controller; 818c2ecf20Sopenharmony_ci #gpio-cells = <2>; 828c2ecf20Sopenharmony_ci }; 838c2ecf20Sopenharmony_ci}; 848c2ecf20Sopenharmony_ci 858c2ecf20Sopenharmony_ci&snvs_pwrkey { 868c2ecf20Sopenharmony_ci status = "okay"; 878c2ecf20Sopenharmony_ci}; 888c2ecf20Sopenharmony_ci 898c2ecf20Sopenharmony_ci&uart2 { 908c2ecf20Sopenharmony_ci /* console */ 918c2ecf20Sopenharmony_ci pinctrl-names = "default"; 928c2ecf20Sopenharmony_ci pinctrl-0 = <&pinctrl_uart2>; 938c2ecf20Sopenharmony_ci status = "okay"; 948c2ecf20Sopenharmony_ci}; 958c2ecf20Sopenharmony_ci 968c2ecf20Sopenharmony_ci&usdhc2 { 978c2ecf20Sopenharmony_ci assigned-clocks = <&clk IMX8MP_CLK_USDHC2>; 988c2ecf20Sopenharmony_ci assigned-clock-rates = <400000000>; 998c2ecf20Sopenharmony_ci pinctrl-names = "default", "state_100mhz", "state_200mhz"; 1008c2ecf20Sopenharmony_ci pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; 1018c2ecf20Sopenharmony_ci pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>; 1028c2ecf20Sopenharmony_ci pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>; 1038c2ecf20Sopenharmony_ci cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; 1048c2ecf20Sopenharmony_ci vmmc-supply = <®_usdhc2_vmmc>; 1058c2ecf20Sopenharmony_ci bus-width = <4>; 1068c2ecf20Sopenharmony_ci status = "okay"; 1078c2ecf20Sopenharmony_ci}; 1088c2ecf20Sopenharmony_ci 1098c2ecf20Sopenharmony_ci&usdhc3 { 1108c2ecf20Sopenharmony_ci assigned-clocks = <&clk IMX8MP_CLK_USDHC3>; 1118c2ecf20Sopenharmony_ci assigned-clock-rates = <400000000>; 1128c2ecf20Sopenharmony_ci pinctrl-names = "default", "state_100mhz", "state_200mhz"; 1138c2ecf20Sopenharmony_ci pinctrl-0 = <&pinctrl_usdhc3>; 1148c2ecf20Sopenharmony_ci pinctrl-1 = <&pinctrl_usdhc3_100mhz>; 1158c2ecf20Sopenharmony_ci pinctrl-2 = <&pinctrl_usdhc3_200mhz>; 1168c2ecf20Sopenharmony_ci bus-width = <8>; 1178c2ecf20Sopenharmony_ci non-removable; 1188c2ecf20Sopenharmony_ci status = "okay"; 1198c2ecf20Sopenharmony_ci}; 1208c2ecf20Sopenharmony_ci 1218c2ecf20Sopenharmony_ci&wdog1 { 1228c2ecf20Sopenharmony_ci pinctrl-names = "default"; 1238c2ecf20Sopenharmony_ci pinctrl-0 = <&pinctrl_wdog>; 1248c2ecf20Sopenharmony_ci fsl,ext-reset-output; 1258c2ecf20Sopenharmony_ci status = "okay"; 1268c2ecf20Sopenharmony_ci}; 1278c2ecf20Sopenharmony_ci 1288c2ecf20Sopenharmony_ci&iomuxc { 1298c2ecf20Sopenharmony_ci pinctrl_fec: fecgrp { 1308c2ecf20Sopenharmony_ci fsl,pins = < 1318c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SAI1_RXD2__ENET1_MDC 0x3 1328c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SAI1_RXD3__ENET1_MDIO 0x3 1338c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SAI1_RXD4__ENET1_RGMII_RD0 0x91 1348c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SAI1_RXD5__ENET1_RGMII_RD1 0x91 1358c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SAI1_RXD6__ENET1_RGMII_RD2 0x91 1368c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SAI1_RXD7__ENET1_RGMII_RD3 0x91 1378c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SAI1_TXC__ENET1_RGMII_RXC 0x91 1388c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SAI1_TXFS__ENET1_RGMII_RX_CTL 0x91 1398c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SAI1_TXD0__ENET1_RGMII_TD0 0x1f 1408c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SAI1_TXD1__ENET1_RGMII_TD1 0x1f 1418c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SAI1_TXD2__ENET1_RGMII_TD2 0x1f 1428c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SAI1_TXD3__ENET1_RGMII_TD3 0x1f 1438c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SAI1_TXD4__ENET1_RGMII_TX_CTL 0x1f 1448c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SAI1_TXD5__ENET1_RGMII_TXC 0x1f 1458c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SAI1_RXD0__GPIO4_IO02 0x19 1468c2ecf20Sopenharmony_ci >; 1478c2ecf20Sopenharmony_ci }; 1488c2ecf20Sopenharmony_ci 1498c2ecf20Sopenharmony_ci pinctrl_gpio_led: gpioledgrp { 1508c2ecf20Sopenharmony_ci fsl,pins = < 1518c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_READY_B__GPIO3_IO16 0x140 1528c2ecf20Sopenharmony_ci >; 1538c2ecf20Sopenharmony_ci }; 1548c2ecf20Sopenharmony_ci 1558c2ecf20Sopenharmony_ci pinctrl_i2c3: i2c3grp { 1568c2ecf20Sopenharmony_ci fsl,pins = < 1578c2ecf20Sopenharmony_ci MX8MP_IOMUXC_I2C3_SCL__I2C3_SCL 0x400001c2 1588c2ecf20Sopenharmony_ci MX8MP_IOMUXC_I2C3_SDA__I2C3_SDA 0x400001c2 1598c2ecf20Sopenharmony_ci >; 1608c2ecf20Sopenharmony_ci }; 1618c2ecf20Sopenharmony_ci 1628c2ecf20Sopenharmony_ci pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp { 1638c2ecf20Sopenharmony_ci fsl,pins = < 1648c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_RESET_B__GPIO2_IO19 0x40 1658c2ecf20Sopenharmony_ci >; 1668c2ecf20Sopenharmony_ci }; 1678c2ecf20Sopenharmony_ci 1688c2ecf20Sopenharmony_ci pinctrl_uart2: uart2grp { 1698c2ecf20Sopenharmony_ci fsl,pins = < 1708c2ecf20Sopenharmony_ci MX8MP_IOMUXC_UART2_RXD__UART2_DCE_RX 0x140 1718c2ecf20Sopenharmony_ci MX8MP_IOMUXC_UART2_TXD__UART2_DCE_TX 0x140 1728c2ecf20Sopenharmony_ci >; 1738c2ecf20Sopenharmony_ci }; 1748c2ecf20Sopenharmony_ci 1758c2ecf20Sopenharmony_ci pinctrl_usdhc2: usdhc2grp { 1768c2ecf20Sopenharmony_ci fsl,pins = < 1778c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK 0x190 1788c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_CMD__USDHC2_CMD 0x1d0 1798c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d0 1808c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d0 1818c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d0 1828c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d0 1838c2ecf20Sopenharmony_ci MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0xc0 1848c2ecf20Sopenharmony_ci >; 1858c2ecf20Sopenharmony_ci }; 1868c2ecf20Sopenharmony_ci 1878c2ecf20Sopenharmony_ci pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp { 1888c2ecf20Sopenharmony_ci fsl,pins = < 1898c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK 0x194 1908c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_CMD__USDHC2_CMD 0x1d4 1918c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d4 1928c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d4 1938c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d4 1948c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d4 1958c2ecf20Sopenharmony_ci MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0xc0 1968c2ecf20Sopenharmony_ci >; 1978c2ecf20Sopenharmony_ci }; 1988c2ecf20Sopenharmony_ci 1998c2ecf20Sopenharmony_ci pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp { 2008c2ecf20Sopenharmony_ci fsl,pins = < 2018c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK 0x196 2028c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_CMD__USDHC2_CMD 0x1d6 2038c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d6 2048c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d6 2058c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d6 2068c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d6 2078c2ecf20Sopenharmony_ci MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0xc0 2088c2ecf20Sopenharmony_ci >; 2098c2ecf20Sopenharmony_ci }; 2108c2ecf20Sopenharmony_ci 2118c2ecf20Sopenharmony_ci pinctrl_usdhc2_gpio: usdhc2gpiogrp { 2128c2ecf20Sopenharmony_ci fsl,pins = < 2138c2ecf20Sopenharmony_ci MX8MP_IOMUXC_SD2_CD_B__GPIO2_IO12 0x1c4 2148c2ecf20Sopenharmony_ci >; 2158c2ecf20Sopenharmony_ci }; 2168c2ecf20Sopenharmony_ci 2178c2ecf20Sopenharmony_ci pinctrl_usdhc3: usdhc3grp { 2188c2ecf20Sopenharmony_ci fsl,pins = < 2198c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_WE_B__USDHC3_CLK 0x190 2208c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_WP_B__USDHC3_CMD 0x1d0 2218c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_DATA04__USDHC3_DATA0 0x1d0 2228c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_DATA05__USDHC3_DATA1 0x1d0 2238c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_DATA06__USDHC3_DATA2 0x1d0 2248c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_DATA07__USDHC3_DATA3 0x1d0 2258c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_RE_B__USDHC3_DATA4 0x1d0 2268c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_CE2_B__USDHC3_DATA5 0x1d0 2278c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_CE3_B__USDHC3_DATA6 0x1d0 2288c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_CLE__USDHC3_DATA7 0x1d0 2298c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_CE1_B__USDHC3_STROBE 0x190 2308c2ecf20Sopenharmony_ci >; 2318c2ecf20Sopenharmony_ci }; 2328c2ecf20Sopenharmony_ci 2338c2ecf20Sopenharmony_ci pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp { 2348c2ecf20Sopenharmony_ci fsl,pins = < 2358c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_WE_B__USDHC3_CLK 0x194 2368c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_WP_B__USDHC3_CMD 0x1d4 2378c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_DATA04__USDHC3_DATA0 0x1d4 2388c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_DATA05__USDHC3_DATA1 0x1d4 2398c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_DATA06__USDHC3_DATA2 0x1d4 2408c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_DATA07__USDHC3_DATA3 0x1d4 2418c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_RE_B__USDHC3_DATA4 0x1d4 2428c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_CE2_B__USDHC3_DATA5 0x1d4 2438c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_CE3_B__USDHC3_DATA6 0x1d4 2448c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_CLE__USDHC3_DATA7 0x1d4 2458c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_CE1_B__USDHC3_STROBE 0x194 2468c2ecf20Sopenharmony_ci >; 2478c2ecf20Sopenharmony_ci }; 2488c2ecf20Sopenharmony_ci 2498c2ecf20Sopenharmony_ci pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp { 2508c2ecf20Sopenharmony_ci fsl,pins = < 2518c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_WE_B__USDHC3_CLK 0x196 2528c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_WP_B__USDHC3_CMD 0x1d6 2538c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_DATA04__USDHC3_DATA0 0x1d6 2548c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_DATA05__USDHC3_DATA1 0x1d6 2558c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_DATA06__USDHC3_DATA2 0x1d6 2568c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_DATA07__USDHC3_DATA3 0x1d6 2578c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_RE_B__USDHC3_DATA4 0x1d6 2588c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_CE2_B__USDHC3_DATA5 0x1d6 2598c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_CE3_B__USDHC3_DATA6 0x1d6 2608c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_CLE__USDHC3_DATA7 0x1d6 2618c2ecf20Sopenharmony_ci MX8MP_IOMUXC_NAND_CE1_B__USDHC3_STROBE 0x196 2628c2ecf20Sopenharmony_ci >; 2638c2ecf20Sopenharmony_ci }; 2648c2ecf20Sopenharmony_ci 2658c2ecf20Sopenharmony_ci pinctrl_wdog: wdoggrp { 2668c2ecf20Sopenharmony_ci fsl,pins = < 2678c2ecf20Sopenharmony_ci MX8MP_IOMUXC_GPIO1_IO02__WDOG1_WDOG_B 0xc6 2688c2ecf20Sopenharmony_ci >; 2698c2ecf20Sopenharmony_ci }; 2708c2ecf20Sopenharmony_ci}; 271