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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 34E11C4167D for ; Tue, 7 Nov 2023 15:48:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2EXZhrwml+C6l2z+j3eLMAykA0mf5JJqx1qsDPAWHYU=; b=stVKSQkVlPau3p 7G+VVIgQ6GrAwm7wKKxnw73+FFbTUFX2O+1bho/EKCNejRH5x7YqJ/Adl034VXdBRMsP44+iTuiuS arNb9CB8Ft6D2bGZ3nwxipXaRyE4WnCgeEE1/+WjTsjnnW/qQBPFoXQgO9Y/bPkicmcWF1czeBXWq vT537SwsGnI/eoLo3oz6pBeZayYaJGDs1cOAscq3TEOCB+rHlutlizsGJSY2qlmK6F1m47VrKANI2 E1JpvTihaO/NKivBN87rm9hZLKogkdUXdB8CWZsGDXXUudURuqsTW/MLJgf1PR5jZIys3LVCukxtj HK/hlRszKE/3mcyXfhFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r0OIr-001swy-2u; Tue, 07 Nov 2023 15:47:45 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r0OIp-001svg-20; Tue, 07 Nov 2023 15:47:44 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id DFDAD611C8; Tue, 7 Nov 2023 15:47:42 +0000 (UTC) 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231107_074743_700540_B3ED2991 X-CRM114-Status: GOOD ( 10.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel