Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1726560rdb; Mon, 9 Oct 2023 00:10:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+t21Tjx4RRFfqhhi8rSLlRzkWj2DvW8L+4QDyjY1QUxIDRG7fmYGq5X+wn70uvtmWUIoQ X-Received: by 2002:a05:6a20:1397:b0:154:edaf:f410 with SMTP id hn23-20020a056a20139700b00154edaff410mr10435182pzc.58.1696835413635; Mon, 09 Oct 2023 00:10:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696835413; cv=none; d=google.com; s=arc-20160816; b=lZt1kZ6OuW0jAXmLRoxkDRtAqVsQgLaAlL7z8hjLIVYIdiIW3T9OLJWLCzCRWVgmSU os28hA2iEtRIzHpiS65LPhO+dmamQq3lgibsF63SRvOJFnOI27dEcJJBNcDz2b74M28Y qAa0ytGq+V0x41IHLzXiAOv0atVE5fbqauxdf1g+08MROobz6a3cseBFToz+YX9WNdyn 8b0309gcTw+zmnYrewIiCJ4HlwYSvVuWp01IaVVLbIvAy/zMWz72VVk4MgCn1dvOzotf 7E55IBLeMZ1xLui0CRgQ9+mfqLg1N4G41ByhF7Rq9vOlohaLY3ItRpY32xuEiNibSQ1+ VUGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=QhLRpwsuxmOsvcZ8fYOZy3OVA1IUIC5Nv3spoy9OsQY=; fh=iu5lnx4O+wRh7jthflfi9qzM9VAtzxr9pZnxfNdvXO4=; b=YGmnAWttxeH1QNkG+IJu5dyHe9P7hVU0ZxH0wdWBtMwY5xJOAYfYzszjEdPX4DywRD 08eCT/BHzyxZTnI9v1sddqR+toU8MfaIQkw9fPwryZc42+4z4FpLoMDxG7yVYtMgfosi PmjFiIDLD2T5RoMRNgYzQ0JlDbXR022DckuMbduZg5qTo93k4az0r2Qze76yg3upcTiC tgCahIfz0bvVHodW+EJtlbKkX4UuSSgLXYlh881cv3yQX3KHMNK6wu7d4gWk+rnlQmzU FVa9mKvEF58+BkDJLWHm55WOU0JizQCP2zdlaodM61mBnY5Pxsd1bTl8y3RvxBXVmFX4 wxkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=wYUiuaHC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id a28-20020a637f1c000000b00565eedb1cf8si5480256pgd.825.2023.10.09.00.10.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 00:10:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=wYUiuaHC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 6088F804C678; Mon, 9 Oct 2023 00:10:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345341AbjJIHJv (ORCPT + 99 others); Mon, 9 Oct 2023 03:09:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232775AbjJIHJt (ORCPT ); Mon, 9 Oct 2023 03:09:49 -0400 Received: from mail-vs1-xe31.google.com (mail-vs1-xe31.google.com [IPv6:2607:f8b0:4864:20::e31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD92494 for ; Mon, 9 Oct 2023 00:09:48 -0700 (PDT) Received: by mail-vs1-xe31.google.com with SMTP id ada2fe7eead31-4526a936dcaso1698815137.2 for ; Mon, 09 Oct 2023 00:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1696835388; x=1697440188; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QhLRpwsuxmOsvcZ8fYOZy3OVA1IUIC5Nv3spoy9OsQY=; b=wYUiuaHCIt12QIXTNzhdt5t4QDYrHUIyDySxqGu8Dp15pVnX+Rbr9RiPTOhab6RAYk /7i8gp8cF6A7smr8CG+ppsSLrqDAidC+t0d7fEuUslJnLkWnajXL9RggEOVAdE7obDM8 X+0cJVoIanT8pK+ZIkDKKdEjy4HDe1roINYe+1Q2/ZZpCRZ3mDIIqRAW7LcWA7/M5w9I s9PGPJYZwdyluHYGyZqF+cM55whXnyBlHB6PWHkYdylP0PtXac/4M+HHvUXzbA/spJG4 4Q7NravOUjQ3rjC3FMqQqGKT3PwkhXO/tIAhr6v7ncWqaLrH1yFwR5icfYP90RPlmjYu UdGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696835388; x=1697440188; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QhLRpwsuxmOsvcZ8fYOZy3OVA1IUIC5Nv3spoy9OsQY=; b=lAuBtJP03JsvwFtAG8f5Lq3/5XcoxaPtwD4kgPUzSpbvVL+I3c5bUcBUBEvbZ5MuDg +1cpWtZFee/0I96o1QooNVxl9Gk6CVm5tCr358bKxiMhbC+XHkizVwKZrLJcyDOgbNIi QwpqeFOLrQVQnwDH5cQfdVTzjT1Fkwjzramo2olF/guwJjxnnhkUvK8/wZsJeTgLcTFN jJ//o176Zw2gRs0rVNvOul2g3erLyoVUUHoqtKzTldfN6dcI/l5NXjKvMQKwEd5GYuoj 7V+zDAWWdyXFNeEcMoLx1gXTsEYTvbpYQg/IirM7DUdFjDlaZMFoQ5xKBFx3OWQVJoq6 pHKQ== X-Gm-Message-State: AOJu0YyMdYdMOtlub3E9uu/EEEuWGWWCZJM2a3Ly6Gp1xaM+QtAwWSsm HloTa+xRuDg4xpURcQqIDZt6JnzzdDNK+WVcriSeww== X-Received: by 2002:a05:6102:f09:b0:457:79e5:50df with SMTP id v9-20020a0561020f0900b0045779e550dfmr2089711vss.33.1696835387451; Mon, 09 Oct 2023 00:09:47 -0700 (PDT) MIME-Version: 1.0 References: <20231006-descriptors-asoc-mediatek-v1-0-07fe79f337f5@linaro.org> <20231006-descriptors-asoc-mediatek-v1-1-07fe79f337f5@linaro.org> In-Reply-To: <20231006-descriptors-asoc-mediatek-v1-1-07fe79f337f5@linaro.org> From: Bartosz Golaszewski Date: Mon, 9 Oct 2023 09:09:36 +0200 Message-ID: Subject: Re: [PATCH 1/8] gpiolib: of: Add quirk for mt2701-cs42448 ASoC sound To: Linus Walleij Cc: Andy Shevchenko , Matthias Brugger , AngeloGioacchino Del Regno , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, alsa-devel@alsa-project.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 09 Oct 2023 00:10:11 -0700 (PDT) X-Spam-Level: ** On Fri, Oct 6, 2023 at 3:46=E2=80=AFPM Linus Walleij wrote: > > These gpio names are due to old DT bindings not following the > "-gpio"/"-gpios" conventions. Handle it using a quirk so the > driver can just look up the GPIOs. > > Signed-off-by: Linus Walleij > --- > drivers/gpio/gpiolib-of.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c > index 531faabead0f..d9525d95e818 100644 > --- a/drivers/gpio/gpiolib-of.c > +++ b/drivers/gpio/gpiolib-of.c > @@ -512,6 +512,10 @@ static struct gpio_desc *of_find_gpio_rename(struct = device_node *np, > #if IS_ENABLED(CONFIG_SND_SOC_CS42L56) > { "reset", "cirrus,gpio-nreset", "cirrus,cs42l56" = }, > #endif > +#if IS_ENABLED(CONFIG_SND_SOC_MT2701_CS42448) > + { "i2s1-in-sel-gpio1", NULL, "mediatek,mt2701-cs42448-= machine" }, > + { "i2s1-in-sel-gpio2", NULL, "mediatek,mt2701-cs42448-= machine" }, > +#endif > #if IS_ENABLED(CONFIG_SND_SOC_TLV320AIC3X) > { "reset", "gpio-reset", "ti,tlv320aic3x" }, > { "reset", "gpio-reset", "ti,tlv320aic33" }, > > -- > 2.34.1 > I suppose this is a run-time dependency only for the other patches? Can I just pick it up into my tree? Bart