Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp845194pxb; Fri, 15 Oct 2021 17:59:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyg8gfG/ataEDi10Lw1t0akrwfdaGyxO+XzQytJsAfGGowxETfOm6e+RARdztqRdsK8xJ9U X-Received: by 2002:a05:6402:5190:: with SMTP id q16mr22304446edd.228.1634345954312; Fri, 15 Oct 2021 17:59:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634345954; cv=none; d=google.com; s=arc-20160816; b=tHEobygcWJVjnslAwHA2AEB+zTCM5y0x0g3Ptgau5uEJ4frMZ8nZcl9IdtsK1mFQ2x vrgq11hNwdrOWxyJcTP4/4Kn9HLdBFEzcVAHGGhvDwiFnGB6DNW+cD+SodnW1yRS9pAQ +tEKZIewCC4ANwpIE9sBlUSi+cM1WI60uLdfDTB1OPcoq/cOUsjzFBD2QUU7TpgEqGHU awnOzPzmX/IFg0NxiQHeextEsXYC8k+7lIGW7Ftq28gSyTINh9bp9/JHxigP2BegEuNA tKPsDEPmfVXnJWZSg58K9cl5VC7oH9UU7GeacHirigNdd7K//ixFSpyXU3COH6V7H4+S NS7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gGkJ6r4naCo3lRMpJdXIMzGVr36JcaJta+yBdVR+9gI=; b=Av+AW6SA55b8psa9bBBb3CkE5aTugQIKMPm+ZpKXMADzyqBIItdim9HPdBQ/mPVq4u +NSQZp8ac3iF/4OmaTbLPFiczRYdynqG8fymgBsrJr1rA/2xthTkjY9aRH8ymlEfR9iI qBXClmAUT8lNGosQ2thBva0p4Y5AwcuSJcxHyb8vb6YRtJ0O8IQXtORSMFTbeo83JWj/ GdL6H0yfIeoSl0mVS4CU9KOUntAzfcAmT7mbjJ4L/CAz+V/GuZ42/vhUBBrjDNEGQP++ 32KsifybsRvcJt4JLxMuGbkkj/tudHmnFPWCcYa2f8kkWKnop8KYfDDRnWUBD2gSLmQM QiWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fris.de header.s=dkim header.b=VzlB3nVX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fris.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v7si9749718ejx.484.2021.10.15.17.58.49; Fri, 15 Oct 2021 17:59:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fris.de header.s=dkim header.b=VzlB3nVX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fris.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239040AbhJOMvV (ORCPT + 99 others); Fri, 15 Oct 2021 08:51:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239000AbhJOMvU (ORCPT ); Fri, 15 Oct 2021 08:51:20 -0400 Received: from mail.fris.de (mail.fris.de [IPv6:2a01:4f8:c2c:390b::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3C4FC061570; Fri, 15 Oct 2021 05:49:13 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 8B089BFBEE; Fri, 15 Oct 2021 14:49:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1634302144; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=gGkJ6r4naCo3lRMpJdXIMzGVr36JcaJta+yBdVR+9gI=; b=VzlB3nVXLSjPTnEeCv+Y17dXGq8VFWXhqcOBl4oFan4S3/0nxDsk+wlzM3DEhGOhrThC2U HIs+RU8QWFzIpjlubGBoJCEp4UjCNPGqIUzLtCaTAcdD5m6IuKBjpBlnoiVuGYQHuHtw3i ImmPYZp9oSSpA3DPieKVBxPiuBByOUdMkWsPCAnVhBeYxBiHguilQQ56aj5J0DUjWaJNNH 2phYmuxxMzY5FeFhD/n70TG8HISxPDCQSTTUjA6WNePrTDecZQLhxZH3177uc8x1cYMwzy owy3iz+AA4dLjw0NwQLPmhnQfPf9ImWpnW0o/KNJXHz5exIHS9Jj87YWWbLIcw== From: Frieder Schrempf To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , Shawn Guo Cc: Frieder Schrempf , Fabio Estevam , Heiko Thiery , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team Subject: [PATCH v2 1/6] arm64: dts: imx8mm-kontron: Add support for ultra high speed modes on SD card Date: Fri, 15 Oct 2021 14:48:35 +0200 Message-Id: <20211015124841.28226-2-frieder@fris.de> In-Reply-To: <20211015124841.28226-1-frieder@fris.de> References: <20211015124841.28226-1-frieder@fris.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frieder Schrempf In order to use ultra high speed modes (UHS) on the SD card slot, we add matching pinctrls and fix the voltage switching for LDO5 of the PMIC, by providing the SD_VSEL pin as GPIO to the PMIC driver. Signed-off-by: Frieder Schrempf --- Changes in v2: * Fix pinctrl node names to match bindings --- .../dts/freescale/imx8mm-kontron-n801x-s.dts | 28 ++++++++++++++++++- .../freescale/imx8mm-kontron-n801x-som.dtsi | 2 ++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts index d17abb515835..5f6fc4c2c529 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts @@ -189,8 +189,10 @@ usbnet: usbether@1 { }; &usdhc2 { - pinctrl-names = "default"; + pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc2>; + pinctrl-1 = <&pinctrl_usdhc2_100mhz>; + pinctrl-2 = <&pinctrl_usdhc2_200mhz>; vmmc-supply = <®_vdd_3v3>; vqmmc-supply = <®_nvcc_sd>; cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; @@ -319,4 +321,28 @@ MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d0 MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12 0x019 >; }; + + pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp { + fsl,pins = < + MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x194 + MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d4 + MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d4 + MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d4 + MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d4 + MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4 + MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12 0x019 + >; + }; + + pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp { + fsl,pins = < + MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x196 + MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d6 + MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d6 + MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d6 + MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d6 + MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d6 + MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12 0x019 + >; + }; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi index 9db9b90bf2bc..6eacc32bc95e 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi @@ -86,6 +86,7 @@ pca9450: pmic@25 { pinctrl-0 = <&pinctrl_pmic>; interrupt-parent = <&gpio1>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + sd-vsel-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; regulators { reg_vdd_soc: BUCK1 { @@ -226,6 +227,7 @@ MX8MM_IOMUXC_I2C1_SDA_I2C1_SDA 0x400001c3 pinctrl_pmic: pmicgrp { fsl,pins = < MX8MM_IOMUXC_GPIO1_IO00_GPIO1_IO0 0x141 + MX8MM_IOMUXC_GPIO1_IO04_GPIO1_IO4 0x141 >; }; -- 2.33.0