From patchwork Fri Nov 11 03:28:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 18428 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp517032wru; Thu, 10 Nov 2022 19:31:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf4hKxzErfNvHXXcqzit6GySLYS64HZeiygyI3L4oAO40aQCn4E5fqrrKHnY8NpTYJb3wEbg X-Received: by 2002:a17:903:214a:b0:186:ed91:5086 with SMTP id s10-20020a170903214a00b00186ed915086mr433370ple.59.1668137495085; Thu, 10 Nov 2022 19:31:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668137495; cv=pass; d=google.com; s=arc-20160816; b=EIWb3njnm07/t17AsZO4P+UtAZtRcF2tzFbMNFUnjm9+GAe/OCsGt8nyCtKhga2eVl XR/PXAH8ucEPZ9ReEDJnwiHzMLM7jud9MXxdleXKLGqor8hngniHIGnIacLGclYn2wAr cHz8jhdPuZCxjy4/1d3654zGOzn3fD0Td7hSP5xgQNU9yFpAYMFJ0HALzJRNdBRQSx/Y ieO3tWw361nPM/NwH2R5mC2SbNtllKmg6P0BF59XDT8axMpMyo7YIceDlVtEdMaGonHy E9yATr5ZzGJe6XdF1VDWvgVivsZw0uIZxHDRCimpBBwYg+TfCn2/ERrfeHgwKKlCXH36 yKww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JVAUHetCMZ+sku9azKuQuKBLE05gtFtDIRn7I/rkx80=; b=xhRznsuStTtW5iJVrqb2OtcdihSNQVp83UO64dw7+SJhJdfWFucdAUlItklgwNxS+G eXQZzW+sgcCcy8rgFf9OKmvkjStxfHGkWO1FDpng2aHpdCYXxo5IXdcEo2U/RsZLXmbv WoTkMEr9Icskfn1LaBz6Xz0WvDARTLnG8BL7kgx5tZrEI2A1cMJwr3tDl1ozGbkX15gw d/PiLBHSI9K1pWc+bSI9pqePYUzxF0f8xtQsjdTwzdMYY60ufC4QDllRYiNw5aHAU4UT wbb2i9VsOKjQemr62zojQp5wSXHM/D7tmf1Nzt2QhMlROGsa5lApU9CiFB7z1vXe4lqZ RiXA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=EJREzq9+; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w7-20020a170902e88700b00176a2d5ae14si1344732plg.363.2022.11.10.19.31.22; Thu, 10 Nov 2022 19:31:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=EJREzq9+; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232241AbiKKD3U (ORCPT + 99 others); Thu, 10 Nov 2022 22:29:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232190AbiKKD2P (ORCPT ); Thu, 10 Nov 2022 22:28:15 -0500 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2083.outbound.protection.outlook.com [40.107.21.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11E015E3E7 for ; Thu, 10 Nov 2022 19:27:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BdHTbdnq8AjnII3eHq2V1w02XXeyAXZz4Z98f0B56NLj6WlnEt9dwhsoDiesl6hQjG7w2IrQkFGLcmiFU/kV9PWmFiGsHp1xDc9Ka0vUqj6gwlRSboUKLvqkSE25KESninZgV6pyS2fT0UrlVqL7fPro0x/dlQWsvD9+NpECV/DUB4bPHgLlCgG+F+TE6EpzH7E4nkw6vX6BnlZ6Gkx2GNTmNvZ4IrYY4AKLV5guCht/egsfYxacLjKtWXIVMCthDC8vxaGdyJ+Kn66ZYQ5L40dqVD0vbqFUTaMvMPTvSwwU4j+aaRfD4z3UqbLfC7AGecRwjgr839GCBOXrj2qWag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JVAUHetCMZ+sku9azKuQuKBLE05gtFtDIRn7I/rkx80=; b=Sjb3D8lOHUBoUKr8K3KLzOYIHtLC4Ny9PRCXTZV7qAlD6f5drxjCwpng/gCVIRN3uexDJspuJnzj4eFv4y1IdkvM8h8IIh4aBupCB6TRT7vji3nD6yGWqxZNkXH0gUQ7/RXy1IwNfcx/02EoXu5FJcmgMK/lHHL5ybwKzEUza1iSJlVNnileCmQUTQGsLUwxF2a9RO80BxeLZtLCxyXKHTfdquGXY+ppOazzWQQCD3lrG0j8DYwiWJe5q34s0AAlceogpBQo+6OvGzvXIT2FwKVRfCdBOjNw2ZDX0pSHFdGkHpNOiPwUMpu6HIOabB9nJDHs2YZjOZYHoBuAoadQlA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JVAUHetCMZ+sku9azKuQuKBLE05gtFtDIRn7I/rkx80=; b=EJREzq9+sKJPPL9TyYrWR2EDwoMEb5+lUbBtEIvbAX+/L7r38Y08keOrluYLnsJCMKZSVvqHUxRjOo5yh+zCerV9Ucvvf8RiR6/xvHNJ1Sqi5OVmXsRQol7iR+d0ZK3zrtN84CARsFx2SKARjofyVx+JsrLp+5fWM7BtDu3iywg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by DB8PR04MB7020.eurprd04.prod.outlook.com (2603:10a6:10:126::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.13; Fri, 11 Nov 2022 03:27:19 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::ac6c:bcb8:674c:35d0]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::ac6c:bcb8:674c:35d0%4]) with mapi id 15.20.5813.013; Fri, 11 Nov 2022 03:27:19 +0000 From: "Peng Fan (OSS)" To: shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan Subject: [PATCH V4 11/14] arm64: dts: imx8mn-evk: enable usdhc1 Date: Fri, 11 Nov 2022 11:28:08 +0800 Message-Id: <20221111032811.2456916-12-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221111032811.2456916-1-peng.fan@oss.nxp.com> References: <20221111032811.2456916-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI1PR02CA0040.apcprd02.prod.outlook.com (2603:1096:4:1f6::7) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|DB8PR04MB7020:EE_ X-MS-Office365-Filtering-Correlation-Id: c19dc7d2-11b4-4b02-a6b5-08dac394a39c X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ub1GbyQS74LNzsKCeo0akfCht6/f8HJT8NNDz/LxIFS80+GgbGI2FOO9Jvj9KZvoYbEyalUCWvL3u3h/NU/7vcHaizHm4fRGgHLaZbt4aEFRtIxJjsFiEpXSG55fqLRmPFrs1+hbFX3PFIuWRt1r270nww2dSHImiYuaQO/BgRAF7NM4hMLgblHPU5Ux75vjJ7DFu8C4K6gVKW3zBLjQDho8smVqrmu6mxY/GVy9+z9lz6oY0pdWo01F9/0a3BXxZBlnqC0KlB/BQcNDglHO+ZcgFKyn1hcYVuWxXvKebYkDqCyDl64I+M9rYSjaqrCX4DauC1xxIlbLU1aa/U2HRKHQztTLFp36qUJIPpEQgevPiwQ9Sn6oz0sP/bYa5G6N21d6xUHl21FrPdwOAX9qAT9xPOIn8KYW3RUhGx7VWpSy5MdBwa/sp2Y7/g1hqG0xuhwjrFL11OLRDAStpUlTAcX6YVSt23nVTx9oHKNNXmEV2TRAkp6TJcUKxlEOB92ByPcHagWCYayyj82FX9+PBfqbogkd1o0N81uV32nvzP6wy6NSxaSTtFFYlpNBbj45+xzmuLkP1olaKGGtq4ClJUp8aDFLS7BtlXxdhWFB3oHnHIzDgRBvoUHej8ULcHwm7LqbRa+nkxUEWAcFzfELiu6RVmJI1W0AlUKN/96kPPuoIdXFkBwjMbky+0ImYyXUOR2QUbIzn6Nktss0uSxCDiPXf2qES9Xi2j7zXwlPJtUBOyBzt5YlmmWsEkDg3m/dfB7JiNDVLDSxFDTRZ/P0iR78FZqNz61wxS4yArXwBxqbqzhGoVpaJ7CGk4XhyhLt X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(136003)(376002)(396003)(366004)(39860400002)(451199015)(6486002)(83380400001)(6666004)(8936002)(478600001)(41300700001)(5660300002)(1076003)(186003)(316002)(6506007)(4326008)(38100700002)(38350700002)(6512007)(26005)(86362001)(2616005)(8676002)(2906002)(66556008)(66946007)(66476007)(52116002)(32563001)(473944003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: P6p09g5fPjFAv6fXXyuJ3LOGHvyMykcH9g6X1MxoQCoZH1pRe6qjWbcWrB86ebK2XGXeoCELSBuPYA5y2twRySxYP7Ht/BVGpQI7JOf5alb1PAFr/uaA5tWKt3GaA14lRK15TIS6FDRHY1jhC7fMmyxpF+c2l/RNy5j/qABx2l4gmtUycsXsYPSRYTK+TOIXPe6OnP/KtPzA+H4SaIBG+nbthkU8eKlM85+w1f00+eBBOEtsbCScEuEOxzlg0hX9K1Hs9SgG3Zh/Mw21u20aSJGfI7QUxF04PHRe5pI/KGZVtdOAxc1kp/FQHhqX4a21rRj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rpgrrYAT4VP5zGRFEtiCDw+7drMieJIQD9C2mGLc8AtIZXf44gu2ueUvgBsTappVqE4CRA/1dcBbGTEPcpRRuARH3XPFnxhDuM3ot7UAyEAYZuCCTeXO2x0TQQyl70VfCrPDcHZpncPuHMbRqOxk1k8XwgfcO17/wF+/VWRxNuIIiIPk0x7sg/9BVF9fMGWFdeivSYBTI6Z2NFM7ob4SAjY X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c19dc7d2-11b4-4b02-a6b5-08dac394a39c X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2022 03:27:19.5905 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ePUO0YRsa/Gq7l3pDuFpTKJ/uXxtSRBIpV/vG8l6AtPm1A2q5e16yhIpxg8gnbjda9d4Q2bdTaTgLCARlhU6Vw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7020 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749168942413510309?= X-GMAIL-MSGID: =?utf-8?q?1749168942413510309?= From: Peng Fan Enable usdhc1 for wlan usage, the wifi device node not included. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi index 12dc5d398a03..8d498718e0ca 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi @@ -28,6 +28,13 @@ memory@40000000 { reg = <0x0 0x40000000 0 0x80000000>; }; + usdhc1_pwrseq: usdhc1_pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc1_gpio>; + reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; + }; + reg_usdhc2_vmmc: regulator-usdhc2 { compatible = "regulator-fixed"; pinctrl-names = "default"; @@ -271,6 +278,20 @@ &uart3 { status = "okay"; }; +&usdhc1 { + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc1>, <&pinctrl_wlan>; + pinctrl-1 = <&pinctrl_usdhc1_100mhz>, <&pinctrl_wlan>; + pinctrl-2 = <&pinctrl_usdhc1_200mhz>, <&pinctrl_wlan>; + bus-width = <4>; + keep-power-in-suspend; + non-removable; + wakeup-source; + fsl,sdio-async-interrupt-enabled; + mmc-pwrseq = <&usdhc1_pwrseq>; + status = "okay"; +}; + &usbotg1 { dr_mode = "otg"; hnp-disable; @@ -474,6 +495,45 @@ MX8MN_IOMUXC_ECSPI1_MISO_UART3_DCE_CTS_B 0x140 >; }; + pinctrl_usdhc1_gpio: usdhc1grpgpio { + fsl,pins = < + MX8MN_IOMUXC_SD1_RESET_B_GPIO2_IO10 0x41 + >; + }; + + pinctrl_usdhc1: usdhc1grp { + fsl,pins = < + MX8MN_IOMUXC_SD1_CLK_USDHC1_CLK 0x190 + MX8MN_IOMUXC_SD1_CMD_USDHC1_CMD 0x1d0 + MX8MN_IOMUXC_SD1_DATA0_USDHC1_DATA0 0x1d0 + MX8MN_IOMUXC_SD1_DATA1_USDHC1_DATA1 0x1d0 + MX8MN_IOMUXC_SD1_DATA2_USDHC1_DATA2 0x1d0 + MX8MN_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d0 + >; + }; + + pinctrl_usdhc1_100mhz: usdhc1grp100mhz { + fsl,pins = < + MX8MN_IOMUXC_SD1_CLK_USDHC1_CLK 0x194 + MX8MN_IOMUXC_SD1_CMD_USDHC1_CMD 0x1d4 + MX8MN_IOMUXC_SD1_DATA0_USDHC1_DATA0 0x1d4 + MX8MN_IOMUXC_SD1_DATA1_USDHC1_DATA1 0x1d4 + MX8MN_IOMUXC_SD1_DATA2_USDHC1_DATA2 0x1d4 + MX8MN_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d4 + >; + }; + + pinctrl_usdhc1_200mhz: usdhc1grp200mhz { + fsl,pins = < + MX8MN_IOMUXC_SD1_CLK_USDHC1_CLK 0x196 + MX8MN_IOMUXC_SD1_CMD_USDHC1_CMD 0x1d6 + MX8MN_IOMUXC_SD1_DATA0_USDHC1_DATA0 0x1d6 + MX8MN_IOMUXC_SD1_DATA1_USDHC1_DATA1 0x1d6 + MX8MN_IOMUXC_SD1_DATA2_USDHC1_DATA2 0x1d6 + MX8MN_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d6 + >; + }; + pinctrl_usdhc2_gpio: usdhc2gpiogrp { fsl,pins = < MX8MN_IOMUXC_GPIO1_IO15_GPIO1_IO15 0x1c4 @@ -569,4 +629,11 @@ pinctrl_wdog: wdoggrp { MX8MN_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0x166 >; }; + + pinctrl_wlan: wlangrp { + fsl,pins = < + MX8MN_IOMUXC_GPIO1_IO00_ANAMIX_REF_CLK_32K 0x141 + MX8MN_IOMUXC_SD1_DATA7_GPIO2_IO9 0x159 + >; + }; };