From mboxrd@z Thu Jan 1 00:00:00 1970 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 549B5C4332F for ; Tue, 7 Nov 2023 16:10:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344406AbjKGQKr (ORCPT ); Tue, 7 Nov 2023 11:10:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344494AbjKGQI6 (ORCPT ); Tue, 7 Nov 2023 11:08:58 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DCC8134; Tue, 7 Nov 2023 07:49:32 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC42FC433C7; Tue, 7 Nov 2023 15:49:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699372172; bh=wQ1PQM7f/JCvzuyybW/BE93r8Z0xUqIiIBrvLO+vPEM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f8TmrTSZtf6pcmxeRiV70QUW6c5JcFs2HQgOnOAOqo25TTtho7qxV4jSByKiAWeuq lNAcoAQ+Lb+98rlIgdYa62bl5hl9ef327xMAYFy3CHBru5hxtOGFRvd713Ws17onfk A4KOuMzy63jTE30EueW/vZgA72jHLeQA9HHN0C/6k7GwDRHLztpEOlkNpcJjb/Wq3c 2V1u+g/NQPGQsbce9LHizFN+5kimavvGAHZEzFSAsTAP7KNVW5iRoIlYTrol1y6TYV TxuADtwBbeULL+ESf43w34qUXEDZrm/OeN2jHbvoVcBu1qpBGFbCU/RoFsaLcm/J/o u9AK+z9uEuKbQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Linus Walleij , Bartosz Golaszewski , AngeloGioacchino Del Regno , Mark Brown , Sasha Levin , brgl@bgdev.pl, matthias.bgg@gmail.com, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH AUTOSEL 6.5 17/34] gpiolib: of: Add quirk for mt2701-cs42448 ASoC sound Date: Tue, 7 Nov 2023 10:47:57 -0500 Message-ID: <20231107154846.3766119-17-sashal@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231107154846.3766119-1-sashal@kernel.org> References: <20231107154846.3766119-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.5.10 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Linus Walleij [ Upstream commit 9e189e80dcb68528dea9e061d9704993f98cb84f ] 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 Acked-by: Bartosz Golaszewski Reviewed-by: AngeloGioacchino Del Regno Link: https://lore.kernel.org/r/20231006-descriptors-asoc-mediatek-v1-1-07fe79f337f5@linaro.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- 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 1436cdb5fa268..219bf8a82d8f9 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -496,6 +496,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.42.0