From patchwork Sat May 27 16:06:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 686568 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EFE97C77B7E for ; Sat, 27 May 2023 16:07:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230288AbjE0QHK (ORCPT ); Sat, 27 May 2023 12:07:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbjE0QHJ (ORCPT ); Sat, 27 May 2023 12:07:09 -0400 Received: from mail-oa1-x34.google.com (mail-oa1-x34.google.com [IPv6:2001:4860:4864:20::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5A7FC3 for ; Sat, 27 May 2023 09:07:07 -0700 (PDT) Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-19b49093c33so144159fac.1 for ; Sat, 27 May 2023 09:07:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685203626; x=1687795626; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CEBm1wNwRaDl5Lqr6amCvpET/UqIdy1LBifWgcCk60g=; b=R6+Fg/dji5cQTAWsF7ICvzSl/+tqF5JAu3DXt/QhNaYOntSmYUHrXUfnA4PjMAz1Rc rUb+jQfGLNEvjUpuWPnhVFh/UKhQa0t3iPtzKMwvbTeN+Yxq1d0gXtPFkb494zdK7hZJ +oqK60Gn/mce+SKv6Ut4EiyepYCkEeYHE9+qy2URlO2aGKIvFYjsf3p+ALs+lwAgveP+ BOe6y8I1BhXp28u/4mjAGHtiOYnIm92ZNPyFQbSVHvHg6mWCuyHhjeTxodkkQoapCUWJ W5Jbtq1X6lae2JAl9TiJ7I/YeWzoZj4OxBoov2r41N9mGgQe6k8/WBCLN0Pg50Ycvi1K VF0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685203626; x=1687795626; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CEBm1wNwRaDl5Lqr6amCvpET/UqIdy1LBifWgcCk60g=; b=fl64oAbCFd16T3yUssPfUy9JdcGeW8V2ALCNm5U/Als9rDa3+sz8lIzFO2C2dDSW1s 8Wselk/UtvQehyGzcxrKLJAGV8zKafnZVTPvlehNfaj5vbut4etagdjFhaX9Asp/0WTT jiaPIIi0Fus5vq6idgwUQS6V2CvwSdRVzm0TWuQO4sn2MENrd7910jdnSJHzPd+09YEO U9Qz9zkl0IwRcBuBMcROfXDN/vEQJqRSzmJMs0GGt47yl0sXuWPRePu4bV9yPMNQFJbp CfI/SgC/eG3bIklcOhZSficgv2b2SHFRCdMpoOlwixluYFehGX/UAWxaRQzhx1tZR40h tzNA== X-Gm-Message-State: AC+VfDwTjMud7QDpP4PhPsDLiLyyD14QTdgRe8KA1c240bPhwcQFCAkg CjaLgyQ68yjToQyj23nRnA4= X-Google-Smtp-Source: ACHHUZ5ds503eUcniIRTzm1Gk+YX4RhhuNgRO+n3pa504XNMeR7hF1loXEquqK7jYTb31KOHW3FzQg== X-Received: by 2002:a05:6870:a68e:b0:199:cae6:3147 with SMTP id i14-20020a056870a68e00b00199cae63147mr3166879oam.4.1685203625748; Sat, 27 May 2023 09:07:05 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:1d6b:5783:aa5c:b83d]) by smtp.gmail.com with ESMTPSA id q6-20020a9d6646000000b006ab305429e7sm2847461otm.0.2023.05.27.09.07.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 May 2023 09:07:05 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Fabio Estevam , Ye Li Subject: [PATCH v2 2/2] ARM: dts: imx7d-sdb: Allow UHS modes Date: Sat, 27 May 2023 13:06:34 -0300 Message-Id: <20230527160634.345195-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230527160634.345195-1-festevam@gmail.com> References: <20230527160634.345195-1-festevam@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Fabio Estevam Describe the SD1_VSELECT pad, which is necessary to allow UHS modes. Also, to support higher SD card speed modes, describe the 100MHz and 200MHz SD card pinctrl entries. Suggested-by: Ye Li Signed-off-by: Fabio Estevam --- Changes since v1: - None arch/arm/boot/dts/imx7d-sdb.dts | 40 ++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts index 6e45f1154611..98e77fdfc27a 100644 --- a/arch/arm/boot/dts/imx7d-sdb.dts +++ b/arch/arm/boot/dts/imx7d-sdb.dts @@ -484,8 +484,10 @@ &usbotg2 { }; &usdhc1 { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_usdhc1>; + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc1>, <&pinctrl_usdhc1_gpio>; + pinctrl-1 = <&pinctrl_usdhc1_100mhz>, <&pinctrl_usdhc1_gpio>; + pinctrl-2 = <&pinctrl_usdhc1_200mhz>, <&pinctrl_usdhc1_gpio>; cd-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; wp-gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; vmmc-supply = <®_sd1_vmmc>; @@ -743,6 +745,15 @@ MX7D_PAD_ECSPI1_MISO__UART6_DCE_RTS 0x79 >; }; + pinctrl_usdhc1_gpio: usdhc1_gpiogrp { + fsl,pins = < + MX7D_PAD_SD1_CD_B__GPIO5_IO0 0x59 /* CD */ + MX7D_PAD_SD1_WP__GPIO5_IO1 0x59 /* WP */ + MX7D_PAD_SD1_RESET_B__GPIO5_IO2 0x59 /* vmmc */ + MX7D_PAD_GPIO1_IO08__SD1_VSELECT 0x59 /* VSELECT */ + >; + }; + pinctrl_usdhc1: usdhc1grp { fsl,pins = < MX7D_PAD_SD1_CMD__SD1_CMD 0x59 @@ -751,9 +762,28 @@ MX7D_PAD_SD1_DATA0__SD1_DATA0 0x59 MX7D_PAD_SD1_DATA1__SD1_DATA1 0x59 MX7D_PAD_SD1_DATA2__SD1_DATA2 0x59 MX7D_PAD_SD1_DATA3__SD1_DATA3 0x59 - MX7D_PAD_SD1_CD_B__GPIO5_IO0 0x59 /* CD */ - MX7D_PAD_SD1_WP__GPIO5_IO1 0x59 /* WP */ - MX7D_PAD_SD1_RESET_B__GPIO5_IO2 0x59 /* vmmc */ + >; + }; + + pinctrl_usdhc1_100mhz: usdhc1grp_100mhz { + fsl,pins = < + MX7D_PAD_SD1_CMD__SD1_CMD 0x5a + MX7D_PAD_SD1_CLK__SD1_CLK 0x1a + MX7D_PAD_SD1_DATA0__SD1_DATA0 0x5a + MX7D_PAD_SD1_DATA1__SD1_DATA1 0x5a + MX7D_PAD_SD1_DATA2__SD1_DATA2 0x5a + MX7D_PAD_SD1_DATA3__SD1_DATA3 0x5a + >; + }; + + pinctrl_usdhc1_200mhz: usdhc1grp_200mhz { + fsl,pins = < + MX7D_PAD_SD1_CMD__SD1_CMD 0x5b + MX7D_PAD_SD1_CLK__SD1_CLK 0x1b + MX7D_PAD_SD1_DATA0__SD1_DATA0 0x5b + MX7D_PAD_SD1_DATA1__SD1_DATA1 0x5b + MX7D_PAD_SD1_DATA2__SD1_DATA2 0x5b + MX7D_PAD_SD1_DATA3__SD1_DATA3 0x5b >; };