[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMRc=MdY2DU1R5_Ntkhw6UP0Vp+uhyUvti72KChBQqSF1ruWPw@mail.gmail.com>
Date: Mon, 9 Oct 2023 09:09:36 +0200
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Linus Walleij <linus.walleij@...aro.org>
Cc: Andy Shevchenko <andy@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, alsa-devel@...a-project.org
Subject: Re: [PATCH 1/8] gpiolib: of: Add quirk for mt2701-cs42448 ASoC sound
On Fri, Oct 6, 2023 at 3:46 PM Linus Walleij <linus.walleij@...aro.org> 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 <linus.walleij@...aro.org>
> ---
> 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
Powered by blists - more mailing lists