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 D9A3FC0018C for ; Tue, 7 Nov 2023 15:48:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344204AbjKGPsb (ORCPT ); Tue, 7 Nov 2023 10:48:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344207AbjKGPsF (ORCPT ); Tue, 7 Nov 2023 10:48:05 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1FFE10CC; Tue, 7 Nov 2023 07:47:42 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A44BC433C8; Tue, 7 Nov 2023 15:47:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699372062; bh=tKFpKQIGfyOOkAon60Qttv+lJyaDdDfp75P/GJCyMuU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pReNISxOJDZLjeoNcLWR0uX9kVcMwZFOLQGY2tV0ii6jC9sU3iDcUoXCIJR/P4Bpx tADtHIxBPC88vjg1Es6uPAYOasLNfrJh4PllyNfWi2hgUCYcMtHhLLrQLB7yb//2K6 vxcJ+QoQQq18thXhsBbwzL47I/t6WeCC61k4yhC2LCNYLlNcY+vSnSSuTFxjk+5/70 yFE0YgUwu7ks+29WeTj/r03QxG6rLW648xSI5hg1ik7sO1n0UqongR9i2S2lAHDfLT t3IY61ZGlIAG5zrcQMJwD8nKTbxFIo2UwvpVmoDa96kdK5LulM5a9/3OOEubSh6c+t CRUEGMFpTIaFQ== 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.6 19/36] gpiolib: of: Add quirk for mt2701-cs42448 ASoC sound Date: Tue, 7 Nov 2023 10:46:01 -0500 Message-ID: <20231107154654.3765336-19-sashal@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231107154654.3765336-1-sashal@kernel.org> References: <20231107154654.3765336-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.6 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-gpio@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 531faabead0f4..d9525d95e818d 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.42.0