Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp642105pxb; Thu, 30 Sep 2021 13:52:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwL741opTi1DRsDS/c0m+P4DB4eq4skraPfxxytesFnWjvkpFY44L7kw50r1xw60zqvof4x X-Received: by 2002:a17:906:584b:: with SMTP id h11mr1643053ejs.209.1633035160288; Thu, 30 Sep 2021 13:52:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633035160; cv=none; d=google.com; s=arc-20160816; b=Q70RQwMWqKPe/zTXMv5orvLrpRPHZfqXjh97dy6UWASmWnnXJUoobok9VVs0ddaysp zMJmjxdhiL5fYJ1zsYEDGn+cMBEY3G1r7lWGv5fezEGp3Z2AIoV1wwddst5URqP4Aitv 8qAtfyVJN2pOr7gIjwSo5fIVsSSDMAAtKDqED34RgyQ/Ibjr4eLC/DxaF3aNtcl2E8Dq 8DaVxSmqKe1KxgzQDQMHz4Cp33axDQtn7uxydG45tV2sh7WORmMY4RQq15hFh9W6froR khgO2w2m02RjGHCOaMAHJAbrJqRuFLI3QoLLrqX77SxpaGkZHNNZ7qZytthIRcXQ8EQ8 9CIw== 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=7MTFLH0nF2ydDs5hog4J7IiH2Yacxf1aNgYfRZym6Nw=; b=wWdZWxCJW++o3pIcijqSv+RkWI0WlWCR5134XZkPeEeEhOZT0IUjTXSfWUM6hcdlQW a0/i3BwOJEAotDzEi0OLOJkRSnOoNRThPGV4UTCFvXeirs51/rEUu1jqcowX+XmlbQP+ BBZ1DDsncRzpd0RTT4FZUuQhiLvLZpALK5xt7m2MIVT8kGsEw5Ncna+o5/vcP/aEo49E AQjNUrvfa4yZhCcCztXEiBPzefOlHDkHaWk/vUhzNf0Xs8qr1Z7mGGxVmjV+COH4h+ay lbr2nQ0WRXEao3UtKEKXjxftWs/K2A9ucCXHsJukYqpmQ2G/bYxULrEnw6oZW6DMPQNG UR9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fris.de header.s=dkim header.b=iRgcy0nB; 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 kx11si4515640ejc.554.2021.09.30.13.52.01; Thu, 30 Sep 2021 13:52:40 -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=iRgcy0nB; 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 S1347314AbhI3P6f (ORCPT + 99 others); Thu, 30 Sep 2021 11:58:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346789AbhI3P6e (ORCPT ); Thu, 30 Sep 2021 11:58:34 -0400 Received: from mail.fris.de (mail.fris.de [IPv6:2a01:4f8:c2c:390b::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1252C06176A; Thu, 30 Sep 2021 08:56:51 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 67ADFBFC87; Thu, 30 Sep 2021 17:56:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1633017409; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=7MTFLH0nF2ydDs5hog4J7IiH2Yacxf1aNgYfRZym6Nw=; b=iRgcy0nBiKGFa0osS8HjSayva48QzhhvfHyfRVxKbPufi+3T3C0yaLMBaSStL41ZDfNHGV BFmPFoRKWoD3QDJdz4E1KmuAUdwcPffaPONL5i48z+6h8kUc1uU2GrPLqw37o6tl1zj4Rp fWT0CGUqOONvlQZy8prQQ/BiN4Z6C4OgtXp/QcU33CtXtvY9F/8iL+kv2s02m7XpvDZDtC vcQ1jfX2f/I932KU+wzsXZ3up2bB5pY0Ch2S5+0W3WO3RbObiyMG40qNO3Y1UaPj+0mnlm 1xnzIo3LHh/g+zmReDYpPoH9oj7B2N4c0iMVpLJQgtQ3BsDKyBzjXNab0XYh+w== 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 , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team Subject: [PATCH 1/8] arm64: dts: imx8mm-kontron: Add support for ultra high speed modes on SD card Date: Thu, 30 Sep 2021 17:56:24 +0200 Message-Id: <20210930155633.2745201-2-frieder@fris.de> In-Reply-To: <20210930155633.2745201-1-frieder@fris.de> References: <20210930155633.2745201-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 --- .../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..62ba3bd08a0c 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: usdhc2grp100mhz { + 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: usdhc2grp200mhz { + 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 d0456daefda8..03b3516abd64 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 { @@ -225,6 +226,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