Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp418149rdb; Wed, 17 Jan 2024 06:09:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHDV7Ql8MNwx3RFrjJK8Vw42Y7O5/6SDkiBLWPy9II/RGqHGdgjMOHWTCSppBBHejDK16Tu X-Received: by 2002:a05:620a:a12:b0:781:ed01:f5e6 with SMTP id i18-20020a05620a0a1200b00781ed01f5e6mr10638238qka.103.1705500573820; Wed, 17 Jan 2024 06:09:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705500573; cv=pass; d=google.com; s=arc-20160816; b=JQ7JKut/JRwdVo/OP559SWKN86KApaQCf9m67UEtKV2rUFfGRTH91WjTlr8SF+Qxav M658Ft28k2YXWKw2L/XZmQUL6QOe7LJ3bv8+qsohpAVGjL9Q36pAuXFojUNGf7bn//SA AmdHXPE+N4wD1VtjkVsg2BAYFruMpStkjnRMSSY9xUL7td/kDtkNpHTOftUnvMpguWOo I1GZ1+iYDXo49xVSsDNh5BRQZQDbZAPUbI42qUu1YNEgdQc4LrTa4VBtTu/BTlkFwStI 5YoGkMz+7Sg3b3PfUcEDPKMyWiH/1Khs4ZPbarrJ6+t5BxFlqBaoIVILYnP4X7T6O9UX JrsA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:references:in-reply-to :user-agent:subject:to:from:date; bh=sV2Grr2tlb7X2G287qID2IrutYqvlrN3v6O4pI/jHLA=; fh=CwzRNPaHogWCSMd8gPYeJ6KgiXUiTmu2uJ1YekkeJjI=; b=sPHcB4qe+EksA1oVUIiSuE5GQ8GCnaPjMGitzWj0OAexWCZrwba8Kz7lDs5Ery4CKL SMvPgVUNlfPGwS/fFyUQdaj0HUzrYXwOFuNv+1lI4mKH9pXLs6bf8sm+PEZPEpISPPrl /nHvVmoq+sK0vxd3UQ31SUFSLrbudbmsKHyj+vxtEvth55WjDPaMSHaXLidaQkDxoOXm r9uwL2WFiH4wRHHd+C6shrA0yjzA33XKRFRoJiCSGai8soSZ6daq+DQ/O4fs0KwjY0Km UuaYAhPvkQljZvM1ki9NzMOjfyStD4cebs01xgQHrCA53HXf83VT41Q0WVk+5u0i1+Bx 5Wrw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-29048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29048-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g1-20020a05620a40c100b007833a7dd1fasi12813581qko.320.2024.01.17.06.09.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 06:09:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-29048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29048-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8CBF61C214BC for ; Wed, 17 Jan 2024 14:09:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BE0D2032F; Wed, 17 Jan 2024 14:09:23 +0000 (UTC) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8EF3200DD; Wed, 17 Jan 2024 14:09:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705500562; cv=none; b=t36JQBRbRcC3NxMuYA7heQUi6fRpofukFrg/3ta/KmWqwafJMpzSdu11RfgZidJxV3BhHrSWa0fWK7dEN0jNNuT0CWSYbY0OGuGcJmswRvZ0EV0FmpLE/fFE6jzvwUOggHLNRmVa+Idup1F9UbOpG7WnJqLL3PjTnqx5VD5/5uI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705500562; c=relaxed/simple; bh=lM2ydu1mYi/ifYk43KYS+WDGObFA2FXugqlIuWEB+14=; h=Received:Date:From:To:Subject:User-Agent:In-Reply-To:References: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; b=uG3LX2KdZ1jnDf/qEXIh7FQyAjBdNTjgeV/uQwL2flJx6n0pxK0hr2NuK6S++1NbUSJPNOCkpqrOLyZ7qnIUrDfEVkDdFvWIGh3JfuQs4Iu93WlemVbvCs/QPmBAdYhJQ0U6KJFcL8jIVRy88Kji03ywLmTWDIoCoQIHxvuDNzI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_128_GCM_SHA256:128) (Exim 4.96.2) (envelope-from ) id 1rQ6bH-0003kO-0n; Wed, 17 Jan 2024 14:09:04 +0000 Date: Wed, 17 Jan 2024 14:08:56 +0000 From: Daniel Golle To: linux-mediatek@lists.infradead.org, Jean Thomas , sean.wang@kernel.org, linus.walleij@linaro.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/2] pinctrl: mediatek: mt7981: add additional emmc groups User-Agent: K-9 Mail for Android In-Reply-To: <20240117124234.3137050-2-jean.thomas@wifirst.fr> References: <20240117124234.3137050-1-jean.thomas@wifirst.fr> <20240117124234.3137050-2-jean.thomas@wifirst.fr> Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 17 January 2024 12:42:34 UTC, Jean Thomas = wrote: >Add new emmc groups in the pinctrl driver for the >MediaTek MT7981 SoC: >* emmc reset, with pin 15=2E >* emmc 4-bit bus-width, with pins 16 to 19, and 24 to 25=2E >* emmc 8-bit bus-width, with pins 16 to 25=2E > >The existing emmc_45 group is kept for legacy reasons, even >if this is the union of emmc_reset and emmc_8 groups=2E > >Signed-off-by: Jean Thomas Reviewed-by: Daniel Golle >--- > drivers/pinctrl/mediatek/pinctrl-mt7981=2Ec | 17 ++++++++++++++++- > 1 file changed, 16 insertions(+), 1 deletion(-) > >diff --git a/drivers/pinctrl/mediatek/pinctrl-mt7981=2Ec b/drivers/pinctr= l/mediatek/pinctrl-mt7981=2Ec >index ca667ed25a4d=2E=2Eef6123765885 100644 >--- a/drivers/pinctrl/mediatek/pinctrl-mt7981=2Ec >+++ b/drivers/pinctrl/mediatek/pinctrl-mt7981=2Ec >@@ -700,6 +700,15 @@ static int mt7981_drv_vbus_pins[] =3D { 14, }; > static int mt7981_drv_vbus_funcs[] =3D { 1, }; >=20 > /* EMMC */ >+static int mt7981_emmc_reset_pins[] =3D { 15, }; >+static int mt7981_emmc_reset_funcs[] =3D { 2, }; >+ >+static int mt7981_emmc_4_pins[] =3D { 16, 17, 18, 19, 24, 25, }; >+static int mt7981_emmc_4_funcs[] =3D { 2, 2, 2, 2, 2, 2, }; >+ >+static int mt7981_emmc_8_pins[] =3D { 16, 17, 18, 19, 20, 21, 22, 23, 24= , 25, }; >+static int mt7981_emmc_8_funcs[] =3D { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, }; >+ > static int mt7981_emmc_45_pins[] =3D { 15, 16, 17, 18, 19, 20, 21, 22, 2= 3, 24, 25, }; > static int mt7981_emmc_45_funcs[] =3D { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,= }; >=20 >@@ -854,6 +863,12 @@ static const struct group_desc mt7981_groups[] =3D { > PINCTRL_PIN_GROUP("udi", mt7981_udi), > /* @GPIO(14) DRV_VBUS(1) */ > PINCTRL_PIN_GROUP("drv_vbus", mt7981_drv_vbus), >+ /* @GPIO(15): EMMC_RSTB(2) */ >+ PINCTRL_PIN_GROUP("emmc_reset", mt7981_emmc_reset), >+ /* @GPIO(16,17,18,19,24,25): EMMC_DATx, EMMC_CLK, EMMC_CMD */ >+ PINCTRL_PIN_GROUP("emmc_4", mt7981_emmc_4), >+ /* @GPIO(16,17,18,19,20,21,22,23,24,25): EMMC_DATx, EMMC_CLK, EMMC_CMD = */ >+ PINCTRL_PIN_GROUP("emmc_8", mt7981_emmc_8), > /* @GPIO(15,25): EMMC(2) */ > PINCTRL_PIN_GROUP("emmc_45", mt7981_emmc_45), > /* @GPIO(16,21): SNFI(3) */ >@@ -957,7 +972,7 @@ static const char *mt7981_i2c_groups[] =3D { "i2c0_0"= , "i2c0_1", "u2_phy_i2c", > static const char *mt7981_pcm_groups[] =3D { "pcm", }; > static const char *mt7981_udi_groups[] =3D { "udi", }; > static const char *mt7981_usb_groups[] =3D { "drv_vbus", }; >-static const char *mt7981_flash_groups[] =3D { "emmc_45", "snfi", }; >+static const char *mt7981_flash_groups[] =3D { "emmc_reset", "emmc_4", "= emmc_8", "emmc_45", "snfi", }; > static const char *mt7981_ethernet_groups[] =3D { "smi_mdc_mdio", "gbe_e= xt_mdc_mdio", > "wf0_mode1", "wf0_mode3", "mt7531_int", }; > static const char *mt7981_ant_groups[] =3D { "ant_sel", };