From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
"krzysztof.kozlowski+dt@linaro.org"
<krzysztof.kozlowski+dt@linaro.org>,
"shawnguo@kernel.org" <shawnguo@kernel.org>,
"s.hauer@pengutronix.de" <s.hauer@pengutronix.de>,
"kernel@pengutronix.de" <kernel@pengutronix.de>,
"festevam@gmail.com" <festevam@gmail.com>,
"linux-imx@nxp.com" <linux-imx@nxp.com>,
"lgirdwood@gmail.com" <lgirdwood@gmail.com>,
"broonie@kernel.org" <broonie@kernel.org>,
"perex@perex.cz" <perex@perex.cz>,
"tiwai@suse.com" <tiwai@suse.com>,
"peng.fan@nxp.com" <peng.fan@nxp.com>,
"m.felsch@pengutronix.de" <m.felsch@pengutronix.de>,
"shengjiu.wang@nxp.com" <shengjiu.wang@nxp.com>,
"Markus.Niebel@ew.tq-group.com" <Markus.Niebel@ew.tq-group.com>,
"hongxing.zhu@nxp.com" <hongxing.zhu@nxp.com>,
"tommaso.merciai@amarulasolutions.com"
<tommaso.merciai@amarulasolutions.com>,
"jun.li@nxp.com" <jun.li@nxp.com>,
"ckeepax@opensource.cirrus.com" <ckeepax@opensource.cirrus.com>,
"rf@opensource.cirrus.com" <rf@opensource.cirrus.com>,
"povik+lin@cutebit.org" <povik+lin@cutebit.org>,
"pierre-louis.bossart@linux.intel.com"
<pierre-louis.bossart@linux.intel.com>,
"james.schulman@cirrus.com" <james.schulman@cirrus.com>,
"flatmax@flatmax.com" <flatmax@flatmax.com>,
"srinivas.kandagatla@linaro.org" <srinivas.kandagatla@linaro.org>,
"ryan.lee.analog@gmail.com" <ryan.lee.analog@gmail.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: [PATCH] Support for MAX98090/91 codec in iMX8MM evk
Date: Wed, 11 Jan 2023 09:58:50 +0100 [thread overview]
Message-ID: <44232168-815a-eb68-9287-d83de910bd25@linaro.org> (raw)
In-Reply-To: <MA0PR01MB7145CB5A2D487FB713CD7C01FFFC9@MA0PR01MB7145.INDPRD01.PROD.OUTLOOK.COM>
On 11/01/2023 08:16, Hardevsinh Palaniya wrote:
> From: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>
> Date: Sat, 7 Jan 2023 17:08:28 +0530
> Subject: [PATCH] Support for MAX98090/91 codec in iMX8MM evk
Use subject prefixes matching the subsystem (which you can get for
example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory
your patch is touching).
>
> - Adding node for MAX98090/91 in dts imx8mm-evk.dtsi
> - Adding tristate option in <sound/soc/codecs/Kconfig>
>
> Signed-off-by: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>
Your CC list insane. Use get_maintainers.pl.
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
> index e0b604ac0da4..58ff63cbc930 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
> @@ -132,6 +132,32 @@ simple-audio-card,codec {
> clocks = <&clk IMX8MM_CLK_SAI3_ROOT>;
> };
> };
> +
> + sound-max98090 {
> + compatible = "simple-audio-card";
> + simple-audio-card,name = "max98090-audio";
> + simple-audio-card,format = "i2s";
> + simple-audio-card,frame-master = <&cpudai>;
> + simple-audio-card,bitclock-master = <&cpudai>;
> + simple-audio-card,widgets = "Speakers", "Speakers";
> + simple-audio-card,routing =
> + "Speakers", "SPKR",
> + "Speakers", "SPKL",
> + "IN1", "MICBIAS",
> + "MIC1","IN1",
> + "MIC2","IN1";
> +
> + cpudai: simple-audio-card,cpu {
> + sound-dai = <&sai5>;
> + dai-tdm-slot-num = <2>;
> + dai-tdm-slot-width = <32>;
> + };
> +
> + simple-audio-card,codec {
> + sound-dai = <&max98090>;
> + clocks = <&clk IMX8MM_CLK_SAI5_ROOT>;
> + };
> + };
> };
>
> &A53_0 {
> @@ -339,6 +365,14 @@ &i2c3 {
> pinctrl-0 = <&pinctrl_i2c3>;
> status = "okay";
>
> + max98090: max98090@10 {
Node names should be generic.
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
> + #sound-dai-cells = <0>;
> + compatible = "maxim,max98090";
compatible is first, then reg.
> + reg = <0x10>;
> + clocks = <&clk IMX8MM_CLK_SAI5_ROOT>;
> + clock-names = "mclk";
> + };
> +
> pca6416: gpio@20 {
> compatible = "ti,tca6416";
> reg = <0x20>;
> @@ -391,6 +425,20 @@ &sai3 {
> status = "okay";
> };
>
> +&sai5 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_sai5>;
> + assigned-clocks = <&clk IMX8MM_CLK_SAI5>;
> + assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>;
> + assigned-clock-rates = <24576000>;
> + clocks = <&clk IMX8MM_CLK_SAI5_IPG>, <&clk IMX8MM_CLK_DUMMY>,
> + <&clk IMX8MM_CLK_SAI5_ROOT>, <&clk IMX8MM_CLK_DUMMY>,
> + <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_AUDIO_PLL1_OUT>,
> + <&clk IMX8MM_AUDIO_PLL2_OUT>;
> + clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3", "pll8k", "pll11k";
> + status = "okay";
> +};
> +
> &snvs_pwrkey {
> status = "okay";
> };
> @@ -552,6 +600,16 @@ MX8MM_IOMUXC_SAI3_TXD_SAI3_TX_DATA0 0xd6
> >;
> };
>
> + pinctrl_sai5: sai5grp {
> + fsl,pins = <
> + MX8MM_IOMUXC_SAI5_MCLK_SAI5_MCLK 0xd6
> + MX8MM_IOMUXC_SAI5_RXD2_SAI5_TX_BCLK 0xd6
> + MX8MM_IOMUXC_SAI5_RXD1_SAI5_TX_SYNC 0xd6
> + MX8MM_IOMUXC_SAI5_RXD0_SAI5_RX_DATA0 0xd6
> + MX8MM_IOMUXC_SAI5_RXD3_SAI5_TX_DATA0 0xd6
> + >;
> + }
> +
> pinctrl_typec1: typec1grp {
> fsl,pins = <
> MX8MM_IOMUXC_SD1_STROBE_GPIO2_IO11 0x159
> diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
> index 0f9d71490075..efef2df362a4 100644
> --- a/sound/soc/codecs/Kconfig
> +++ b/sound/soc/codecs/Kconfig
> @@ -1009,7 +1009,7 @@ config SND_SOC_MAX98088
> depends on I2C
>
> config SND_SOC_MAX98090
> - tristate
> + tristate "Maxim MAX98090/1, Stereo Audio Codec"
No, code cannot be mixed with DTS. This is unrelated and not explained
in commit msg.
> depends on I2C
>
> config SND_SOC_MAX98095
> --
> 2.25.1
Best regards,
Krzysztof
next prev parent reply other threads:[~2023-01-11 8:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-11 7:16 Hardevsinh Palaniya
2023-01-11 8:58 ` Krzysztof Kozlowski [this message]
2023-01-11 9:05 ` Daniel Baluta
[not found] ` <MA0PR01MB71451A4A70DBD85680E90AE0FFFC9@MA0PR01MB7145.INDPRD01.PROD.OUTLOOK.COM>
[not found] ` <CAEnQRZDowp=-Cqvy=hJzQDDN_+cEUS7Pj-GJ-0oAhqq=N2STWw@mail.gmail.com>
2023-01-13 5:50 ` Hardevsinh Palaniya
2023-01-13 8:31 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44232168-815a-eb68-9287-d83de910bd25@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=Markus.Niebel@ew.tq-group.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=ckeepax@opensource.cirrus.com \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=flatmax@flatmax.com \
--cc=hardevsinh.palaniya@siliconsignals.io \
--cc=hongxing.zhu@nxp.com \
--cc=james.schulman@cirrus.com \
--cc=jun.li@nxp.com \
--cc=kernel@pengutronix.de \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=m.felsch@pengutronix.de \
--cc=peng.fan@nxp.com \
--cc=perex@perex.cz \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=povik+lin@cutebit.org \
--cc=rf@opensource.cirrus.com \
--cc=robh+dt@kernel.org \
--cc=ryan.lee.analog@gmail.com \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=shengjiu.wang@nxp.com \
--cc=srinivas.kandagatla@linaro.org \
--cc=tiwai@suse.com \
--cc=tommaso.merciai@amarulasolutions.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®