1547e1232SJacky Bai// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2547e1232SJacky Bai/* 3aa71d064SJacky Bai * Copyright 2019-2020 NXP 4547e1232SJacky Bai */ 5547e1232SJacky Bai 6547e1232SJacky Bai/dts-v1/; 7547e1232SJacky Bai 8ef4c47abSLi Jun#include <dt-bindings/usb/pd.h> 9aa71d064SJacky Bai#include "imx8mm-evk.dtsi" 10547e1232SJacky Bai 11547e1232SJacky Bai/ { 12547e1232SJacky Bai model = "FSL i.MX8MM EVK board"; 13547e1232SJacky Bai compatible = "fsl,imx8mm-evk", "fsl,imx8mm"; 14547e1232SJacky Bai 15fa165234SFabio Estevam aliases { 16fa165234SFabio Estevam spi0 = &flexspi; 17fa165234SFabio Estevam }; 18f3fe9601SAnson Huang}; 19f3fe9601SAnson Huang 200376f6ecSLeonard Crestez&ddrc { 210376f6ecSLeonard Crestez operating-points-v2 = <&ddrc_opp_table>; 220376f6ecSLeonard Crestez 230376f6ecSLeonard Crestez ddrc_opp_table: opp-table { 240376f6ecSLeonard Crestez compatible = "operating-points-v2"; 250376f6ecSLeonard Crestez 26*0c068a36SMarek Vasut opp-25000000 { 270376f6ecSLeonard Crestez opp-hz = /bits/ 64 <25000000>; 280376f6ecSLeonard Crestez }; 290376f6ecSLeonard Crestez 30*0c068a36SMarek Vasut opp-100000000 { 310376f6ecSLeonard Crestez opp-hz = /bits/ 64 <100000000>; 320376f6ecSLeonard Crestez }; 330376f6ecSLeonard Crestez 34*0c068a36SMarek Vasut opp-750000000 { 350376f6ecSLeonard Crestez opp-hz = /bits/ 64 <750000000>; 360376f6ecSLeonard Crestez }; 370376f6ecSLeonard Crestez }; 380376f6ecSLeonard Crestez}; 390376f6ecSLeonard Crestez 40fa165234SFabio Estevam&flexspi { 41fa165234SFabio Estevam pinctrl-names = "default"; 42fa165234SFabio Estevam pinctrl-0 = <&pinctrl_flexspi>; 43fa165234SFabio Estevam status = "okay"; 44fa165234SFabio Estevam 45fa165234SFabio Estevam flash@0 { 46fa165234SFabio Estevam reg = <0>; 47fa165234SFabio Estevam #address-cells = <1>; 48fa165234SFabio Estevam #size-cells = <1>; 49fa165234SFabio Estevam compatible = "jedec,spi-nor"; 50fa165234SFabio Estevam spi-max-frequency = <80000000>; 5104aa946dSHaibo Chen spi-tx-bus-width = <1>; 52fa165234SFabio Estevam spi-rx-bus-width = <4>; 53fa165234SFabio Estevam }; 54fa165234SFabio Estevam}; 55fa165234SFabio Estevam 56d11ece80SAnson Huang&usdhc3 { 5703750c37SAnson Huang assigned-clocks = <&clk IMX8MM_CLK_USDHC3_ROOT>; 5803750c37SAnson Huang assigned-clock-rates = <400000000>; 59d11ece80SAnson Huang pinctrl-names = "default", "state_100mhz", "state_200mhz"; 60d11ece80SAnson Huang pinctrl-0 = <&pinctrl_usdhc3>; 61d11ece80SAnson Huang pinctrl-1 = <&pinctrl_usdhc3_100mhz>; 62d11ece80SAnson Huang pinctrl-2 = <&pinctrl_usdhc3_200mhz>; 63d11ece80SAnson Huang bus-width = <8>; 64d11ece80SAnson Huang non-removable; 65d11ece80SAnson Huang status = "okay"; 66d11ece80SAnson Huang}; 67d11ece80SAnson Huang 68547e1232SJacky Bai&iomuxc { 69fa165234SFabio Estevam pinctrl_flexspi: flexspigrp { 70fa165234SFabio Estevam fsl,pins = < 71fa165234SFabio Estevam MX8MM_IOMUXC_NAND_ALE_QSPI_A_SCLK 0x1c2 72fa165234SFabio Estevam MX8MM_IOMUXC_NAND_CE0_B_QSPI_A_SS0_B 0x82 73fa165234SFabio Estevam MX8MM_IOMUXC_NAND_DATA00_QSPI_A_DATA0 0x82 74fa165234SFabio Estevam MX8MM_IOMUXC_NAND_DATA01_QSPI_A_DATA1 0x82 75fa165234SFabio Estevam MX8MM_IOMUXC_NAND_DATA02_QSPI_A_DATA2 0x82 76fa165234SFabio Estevam MX8MM_IOMUXC_NAND_DATA03_QSPI_A_DATA3 0x82 77fa165234SFabio Estevam >; 78fa165234SFabio Estevam }; 79fa165234SFabio Estevam 80547e1232SJacky Bai pinctrl_usdhc3: usdhc3grp { 81547e1232SJacky Bai fsl,pins = < 82547e1232SJacky Bai MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x190 83547e1232SJacky Bai MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d0 84547e1232SJacky Bai MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d0 85547e1232SJacky Bai MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d0 86547e1232SJacky Bai MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d0 87aa71d064SJacky Bai MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d0 88547e1232SJacky Bai MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d0 89547e1232SJacky Bai MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d0 90547e1232SJacky Bai MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d0 91547e1232SJacky Bai MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d0 92547e1232SJacky Bai MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d0 93547e1232SJacky Bai MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x190 94547e1232SJacky Bai >; 95547e1232SJacky Bai }; 96547e1232SJacky Bai 97fc54664eSKrzysztof Kozlowski pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp { 98547e1232SJacky Bai fsl,pins = < 99547e1232SJacky Bai MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x194 100547e1232SJacky Bai MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d4 101547e1232SJacky Bai MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d4 102547e1232SJacky Bai MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d4 103547e1232SJacky Bai MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d4 104547e1232SJacky Bai MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d4 105547e1232SJacky Bai MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d4 106547e1232SJacky Bai MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d4 107547e1232SJacky Bai MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d4 108547e1232SJacky Bai MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d4 109547e1232SJacky Bai MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x194 110547e1232SJacky Bai >; 111547e1232SJacky Bai }; 112547e1232SJacky Bai 113fc54664eSKrzysztof Kozlowski pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp { 114547e1232SJacky Bai fsl,pins = < 115547e1232SJacky Bai MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x196 116547e1232SJacky Bai MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d6 117547e1232SJacky Bai MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d6 118547e1232SJacky Bai MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d6 119547e1232SJacky Bai MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d6 120547e1232SJacky Bai MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d6 121547e1232SJacky Bai MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d6 122547e1232SJacky Bai MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d6 123547e1232SJacky Bai MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d6 124547e1232SJacky Bai MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d6 125547e1232SJacky Bai MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x196 126547e1232SJacky Bai >; 127547e1232SJacky Bai }; 128547e1232SJacky Bai}; 129