linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/5] Enable wm8524 on i.MX8MQ
@ 2019-02-26  7:08 Daniel Baluta
  2019-02-26  7:08 ` [PATCH v3 1/5] arm64: dts: imx8mq: Add SDMA nodes Daniel Baluta
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Daniel Baluta @ 2019-02-26  7:08 UTC (permalink / raw)
  To: shawnguo
  Cc: S.j. Wang, angus, robh+dt, mark.rutland, s.hauer, kernel,
	festevam, l.stach, Abel Vesa, ccaione, baruch, agx, devicetree,
	linux-arm-kernel, linux-kernel, dl-linux-imx, Aisheng Dong,
	kuninori.morimoto.gx, Daniel Baluta

On i.MX8MQ we can start the party using the wm8524 codec
which gets it's data through the SAI2 interface.

In order to make it work this patch series enables the SDMA nodes,
sets the correct pinctrl configuration and uses the simple card
machine driver to put everything together.

Changes since v2:
	- s/QM/MQ after Chris comments

Changes since v1:
	- added cover letter
	- remove "fsl,imx8mq-sdma" compatible for sdma.

Daniel Baluta (5):
  arm64: dts: imx8mq: Add SDMA nodes
  arm64: dts: imx8mq: Add SAI2 node
  arm64: dts: imx8mq: Add SAI pinctrl configuration
  arm64: dts: imx8mq: Enable SAI2 for wm8524 codec
  arm64: dts: imx8mq: Enable wm8524 codec

 arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 48 ++++++++++++++++++++
 arch/arm64/boot/dts/freescale/imx8mq.dtsi    | 38 ++++++++++++++++
 2 files changed, 86 insertions(+)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH v3 1/5] arm64: dts: imx8mq: Add SDMA nodes
  2019-02-26  7:08 [PATCH v3 0/5] Enable wm8524 on i.MX8MQ Daniel Baluta
@ 2019-02-26  7:08 ` Daniel Baluta
  2019-02-26  7:08 ` [PATCH v3 2/5] arm64: dts: imx8mq: Add SAI2 node Daniel Baluta
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: Daniel Baluta @ 2019-02-26  7:08 UTC (permalink / raw)
  To: shawnguo
  Cc: S.j. Wang, angus, robh+dt, mark.rutland, s.hauer, kernel,
	festevam, l.stach, Abel Vesa, ccaione, baruch, agx, devicetree,
	linux-arm-kernel, linux-kernel, dl-linux-imx, Aisheng Dong,
	kuninori.morimoto.gx, Daniel Baluta, Anson Huang

SDMA1 is part of AIPS-3 region and SDMA2 is part
of AIPS-1 region.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
[initial submit in i.MX internal tree]
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
[adaptation for linux-next]
---
 arch/arm64/boot/dts/freescale/imx8mq.dtsi | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
index 9155bd4784eb..8cafec17726b 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
@@ -234,6 +234,17 @@
 				status = "disabled";
 			};
 
+			sdma2: sdma@302c0000 {
+				compatible = "fsl,imx7d-sdma";
+				reg = <0x302c0000 0x10000>;
+				interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
+				clocks = <&clk IMX8MQ_CLK_SDMA2_ROOT>,
+					 <&clk IMX8MQ_CLK_SDMA2_ROOT>;
+				clock-names = "ipg", "ahb";
+				#dma-cells = <3>;
+				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
+			};
+
 			iomuxc: iomuxc@30330000 {
 				compatible = "fsl,imx8mq-iomuxc";
 				reg = <0x30330000 0x10000>;
@@ -575,6 +586,17 @@
 				status = "disabled";
 			};
 
+			sdma1: sdma@30bd0000 {
+				compatible = "fsl,imx7d-sdma";
+				reg = <0x30bd0000 0x10000>;
+				interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
+				clocks = <&clk IMX8MQ_CLK_SDMA1_ROOT>,
+					 <&clk IMX8MQ_CLK_SDMA1_ROOT>;
+				clock-names = "ipg", "ahb";
+				#dma-cells = <3>;
+				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
+			};
+
 			fec1: ethernet@30be0000 {
 				compatible = "fsl,imx8mq-fec", "fsl,imx6sx-fec";
 				reg = <0x30be0000 0x10000>;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v3 2/5] arm64: dts: imx8mq: Add SAI2 node
  2019-02-26  7:08 [PATCH v3 0/5] Enable wm8524 on i.MX8MQ Daniel Baluta
  2019-02-26  7:08 ` [PATCH v3 1/5] arm64: dts: imx8mq: Add SDMA nodes Daniel Baluta
@ 2019-02-26  7:08 ` Daniel Baluta
  2019-02-26 12:54   ` Fabio Estevam
  2019-02-26  7:08 ` [PATCH v3 3/5] arm64: dts: imx8mq: Add SAI pinctrl configuration Daniel Baluta
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 12+ messages in thread
From: Daniel Baluta @ 2019-02-26  7:08 UTC (permalink / raw)
  To: shawnguo
  Cc: S.j. Wang, angus, robh+dt, mark.rutland, s.hauer, kernel,
	festevam, l.stach, Abel Vesa, ccaione, baruch, agx, devicetree,
	linux-arm-kernel, linux-kernel, dl-linux-imx, Aisheng Dong,
	kuninori.morimoto.gx, Daniel Baluta

SAI2 is part of AIPS-3 memory region and it's the DAI through
which the wm8524 codec gets its data.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8mq.dtsi | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
index 8cafec17726b..6fe5798afd2d 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
@@ -489,6 +489,22 @@
 				status = "disabled";
 			};
 
+			sai2: sai@308b0000 {
+				#sound-dai-cells = <0>;
+				compatible = "fsl,imx8mq-sai",
+					     "fsl,imx6sx-sai";
+				reg = <0x308b0000 0x10000>;
+				interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
+				clocks = <&clk IMX8MQ_CLK_SAI2_IPG>,
+					 <&clk IMX8MQ_CLK_DUMMY>,
+					 <&clk IMX8MQ_CLK_SAI2_ROOT>,
+					 <&clk IMX8MQ_CLK_DUMMY>, <&clk IMX8MQ_CLK_DUMMY>;
+				clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3";
+				dmas = <&sdma1 10 24 0>, <&sdma1 11 24 0>;
+				dma-names = "rx", "tx";
+				status = "disabled";
+			};
+
 			i2c1: i2c@30a20000 {
 				compatible = "fsl,imx8mq-i2c", "fsl,imx21-i2c";
 				reg = <0x30a20000 0x10000>;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v3 3/5] arm64: dts: imx8mq: Add SAI pinctrl configuration
  2019-02-26  7:08 [PATCH v3 0/5] Enable wm8524 on i.MX8MQ Daniel Baluta
  2019-02-26  7:08 ` [PATCH v3 1/5] arm64: dts: imx8mq: Add SDMA nodes Daniel Baluta
  2019-02-26  7:08 ` [PATCH v3 2/5] arm64: dts: imx8mq: Add SAI2 node Daniel Baluta
@ 2019-02-26  7:08 ` Daniel Baluta
  2019-02-26  7:08 ` [PATCH v3 4/5] arm64: dts: imx8mq: Enable SAI2 for wm8524 codec Daniel Baluta
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: Daniel Baluta @ 2019-02-26  7:08 UTC (permalink / raw)
  To: shawnguo
  Cc: S.j. Wang, angus, robh+dt, mark.rutland, s.hauer, kernel,
	festevam, l.stach, Abel Vesa, ccaione, baruch, agx, devicetree,
	linux-arm-kernel, linux-kernel, dl-linux-imx, Aisheng Dong,
	kuninori.morimoto.gx, Daniel Baluta

This sets the pin configuration for SAI pins BLCK/MCLK/FSYNC/DATA.
GPIO_01 is used for mute.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
index 54737bf1772f..d21ee2a5312c 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
@@ -223,6 +223,16 @@
 		>;
 	};
 
+	pinctrl_sai2: sai2grp {
+		fsl,pins = <
+			MX8MQ_IOMUXC_SAI2_TXFS_SAI2_TX_SYNC     0xd6
+			MX8MQ_IOMUXC_SAI2_TXC_SAI2_TX_BCLK      0xd6
+			MX8MQ_IOMUXC_SAI2_MCLK_SAI2_MCLK        0xd6
+			MX8MQ_IOMUXC_SAI2_TXD0_SAI2_TX_DATA0    0xd6
+			MX8MQ_IOMUXC_GPIO1_IO08_GPIO1_IO8       0xd6
+		>;
+	};
+
 	pinctrl_i2c1: i2c1grp {
 		fsl,pins = <
 			MX8MQ_IOMUXC_I2C1_SCL_I2C1_SCL			0x4000007f
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v3 4/5] arm64: dts: imx8mq: Enable SAI2 for wm8524 codec
  2019-02-26  7:08 [PATCH v3 0/5] Enable wm8524 on i.MX8MQ Daniel Baluta
                   ` (2 preceding siblings ...)
  2019-02-26  7:08 ` [PATCH v3 3/5] arm64: dts: imx8mq: Add SAI pinctrl configuration Daniel Baluta
@ 2019-02-26  7:08 ` Daniel Baluta
  2019-02-26  7:08 ` [PATCH v3 5/5] arm64: dts: imx8mq: Enable " Daniel Baluta
  2019-02-26 12:52 ` [PATCH v3 0/5] Enable wm8524 on i.MX8MQ Fabio Estevam
  5 siblings, 0 replies; 12+ messages in thread
From: Daniel Baluta @ 2019-02-26  7:08 UTC (permalink / raw)
  To: shawnguo
  Cc: S.j. Wang, angus, robh+dt, mark.rutland, s.hauer, kernel,
	festevam, l.stach, Abel Vesa, ccaione, baruch, agx, devicetree,
	linux-arm-kernel, linux-kernel, dl-linux-imx, Aisheng Dong,
	kuninori.morimoto.gx, Daniel Baluta

This enables SAI2 digital audio interface to be used with
wm8524 codec.

wm8524 works only in slave mode, so we make sure that IMX8MQ_CLK_SAI2
has an appropriate frequency in order to easily derive rates divisible
with 8000.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
index d21ee2a5312c..58de4a3d6029 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
@@ -52,6 +52,15 @@
 	};
 };
 
+&sai2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_sai2>;
+	assigned-clocks = <&clk IMX8MQ_CLK_SAI2>;
+	assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>;
+	assigned-clock-rates = <24576000>;
+	status = "okay";
+};
+
 &i2c1 {
 	clock-frequency = <100000>;
 	pinctrl-names = "default";
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v3 5/5] arm64: dts: imx8mq: Enable wm8524 codec
  2019-02-26  7:08 [PATCH v3 0/5] Enable wm8524 on i.MX8MQ Daniel Baluta
                   ` (3 preceding siblings ...)
  2019-02-26  7:08 ` [PATCH v3 4/5] arm64: dts: imx8mq: Enable SAI2 for wm8524 codec Daniel Baluta
@ 2019-02-26  7:08 ` Daniel Baluta
  2019-02-26 12:52 ` [PATCH v3 0/5] Enable wm8524 on i.MX8MQ Fabio Estevam
  5 siblings, 0 replies; 12+ messages in thread
From: Daniel Baluta @ 2019-02-26  7:08 UTC (permalink / raw)
  To: shawnguo
  Cc: S.j. Wang, angus, robh+dt, mark.rutland, s.hauer, kernel,
	festevam, l.stach, Abel Vesa, ccaione, baruch, agx, devicetree,
	linux-arm-kernel, linux-kernel, dl-linux-imx, Aisheng Dong,
	kuninori.morimoto.gx, Daniel Baluta

This uses simple-audio-card machine driver adding 1 CPU DAI
and 1 Codec DAI.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 29 ++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
index 58de4a3d6029..77f590c13ee0 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
@@ -31,6 +31,35 @@
 		gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
 		enable-active-high;
 	};
+
+	wm8524: audio-codec-0 {
+		#sound-dai-cells = <0>;
+		compatible = "wlf,wm8524";
+		clocks = <&clk IMX8MQ_CLK_SAI2_ROOT>;
+		clock-names = "mclk";
+		wlf,mute-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
+	};
+
+	sound-wm8524 {
+		compatible = "simple-audio-card";
+		simple-audio-card,name = "wm8524-audio";
+		simple-audio-card,format = "i2s";
+		simple-audio-card,frame-master = <&cpudai>;
+		simple-audio-card,bitclock-master = <&cpudai>;
+		simple-audio-card,widgets =
+			"Line", "Left Line Out Jack",
+			"Line", "Right Line Out Jack";
+		simple-audio-card,routing =
+			"Left Line Out Jack", "LINEVOUTL",
+			"Right Line Out Jack", "LINEVOUTR";
+		cpudai: simple-audio-card,cpu {
+			sound-dai = <&sai2>;
+		};
+		link_codec: simple-audio-card,codec {
+			sound-dai = <&wm8524>;
+			clocks = <&clk IMX8MQ_CLK_SAI2_ROOT>;
+		};
+	};
 };
 
 &fec1 {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH v3 0/5] Enable wm8524 on i.MX8MQ
  2019-02-26  7:08 [PATCH v3 0/5] Enable wm8524 on i.MX8MQ Daniel Baluta
                   ` (4 preceding siblings ...)
  2019-02-26  7:08 ` [PATCH v3 5/5] arm64: dts: imx8mq: Enable " Daniel Baluta
@ 2019-02-26 12:52 ` Fabio Estevam
  2019-02-26 13:05   ` Daniel Baluta
  5 siblings, 1 reply; 12+ messages in thread
From: Fabio Estevam @ 2019-02-26 12:52 UTC (permalink / raw)
  To: Daniel Baluta
  Cc: shawnguo, S.j. Wang, angus, robh+dt, mark.rutland, s.hauer,
	kernel, l.stach, Abel Vesa, ccaione, baruch, agx, devicetree,
	linux-arm-kernel, linux-kernel, dl-linux-imx, Aisheng Dong,
	kuninori.morimoto.gx

Hi Daniel,

On Tue, Feb 26, 2019 at 4:08 AM Daniel Baluta <daniel.baluta@nxp.com> wrote:
>
> On i.MX8MQ we can start the party using the wm8524 codec
> which gets it's data through the SAI2 interface.
>
> In order to make it work this patch series enables the SDMA nodes,
> sets the correct pinctrl configuration and uses the simple card
> machine driver to put everything together.
>
> Changes since v2:
>         - s/QM/MQ after Chris comments
>
> Changes since v1:
>         - added cover letter
>         - remove "fsl,imx8mq-sdma" compatible for sdma.

Why? It is good practice to add the new compatible entry.

In case we find out a need for a fix that only affects imx8mq in the
future we can do that by using the specific compatible and no dts
change will be needed.

>
> Daniel Baluta (5):
>   arm64: dts: imx8mq: Add SDMA nodes
>   arm64: dts: imx8mq: Add SAI2 node
>   arm64: dts: imx8mq: Add SAI pinctrl configuration
>   arm64: dts: imx8mq: Enable SAI2 for wm8524 codec
>   arm64: dts: imx8mq: Enable wm8524 codec

I would suggest making the last three patches as a single one.

Also, please make the Subject as: arm64: dts: imx8mq-evk when a patch
is specific to the imx8mq-evk dts.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v3 2/5] arm64: dts: imx8mq: Add SAI2 node
  2019-02-26  7:08 ` [PATCH v3 2/5] arm64: dts: imx8mq: Add SAI2 node Daniel Baluta
@ 2019-02-26 12:54   ` Fabio Estevam
  2019-02-26 13:06     ` Daniel Baluta
  0 siblings, 1 reply; 12+ messages in thread
From: Fabio Estevam @ 2019-02-26 12:54 UTC (permalink / raw)
  To: Daniel Baluta
  Cc: shawnguo, S.j. Wang, angus, robh+dt, mark.rutland, s.hauer,
	kernel, l.stach, Abel Vesa, ccaione, baruch, agx, devicetree,
	linux-arm-kernel, linux-kernel, dl-linux-imx, Aisheng Dong,
	kuninori.morimoto.gx

On Tue, Feb 26, 2019 at 4:08 AM Daniel Baluta <daniel.baluta@nxp.com> wrote:
>
> SAI2 is part of AIPS-3 memory region and it's the DAI through
> which the wm8524 codec gets its data.

Please do not mention wm8524 in a SoC dtsi file commit message.

It is the imx8mq-evk board that uses this codec and this information
is not SoC related.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v3 0/5] Enable wm8524 on i.MX8MQ
  2019-02-26 12:52 ` [PATCH v3 0/5] Enable wm8524 on i.MX8MQ Fabio Estevam
@ 2019-02-26 13:05   ` Daniel Baluta
  2019-02-26 13:10     ` Fabio Estevam
  0 siblings, 1 reply; 12+ messages in thread
From: Daniel Baluta @ 2019-02-26 13:05 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Daniel Baluta, shawnguo, S.j. Wang, angus, robh+dt, mark.rutland,
	s.hauer, kernel, l.stach, Abel Vesa, ccaione, baruch, agx,
	devicetree, linux-arm-kernel, linux-kernel, dl-linux-imx,
	Aisheng Dong, kuninori.morimoto.gx

On Tue, Feb 26, 2019 at 2:53 PM Fabio Estevam <festevam@gmail.com> wrote:
>
> Hi Daniel,
>
> On Tue, Feb 26, 2019 at 4:08 AM Daniel Baluta <daniel.baluta@nxp.com> wrote:
> >
> > On i.MX8MQ we can start the party using the wm8524 codec
> > which gets it's data through the SAI2 interface.
> >
> > In order to make it work this patch series enables the SDMA nodes,
> > sets the correct pinctrl configuration and uses the simple card
> > machine driver to put everything together.
> >
> > Changes since v2:
> >         - s/QM/MQ after Chris comments
> >
> > Changes since v1:
> >         - added cover letter
> >         - remove "fsl,imx8mq-sdma" compatible for sdma.
>
> Why? It is good practice to add the new compatible entry.

I get your point here. But for the moment it is identical with
"fsl,imx7d-sdma" so there is no need to add it now!

See the discussion here, and comment from Lucas:

https://lkml.org/lkml/2019/1/28/194

So, I prefer to keep it simple.

>
> In case we find out a need for a fix that only affects imx8mq in the
> future we can do that by using the specific compatible and no dts
> change will be needed.
>
> >
> > Daniel Baluta (5):
> >   arm64: dts: imx8mq: Add SDMA nodes
> >   arm64: dts: imx8mq: Add SAI2 node
> >   arm64: dts: imx8mq: Add SAI pinctrl configuration
> >   arm64: dts: imx8mq: Enable SAI2 for wm8524 codec
> >   arm64: dts: imx8mq: Enable wm8524 codec
>
> I would suggest making the last three patches as a single one.

I'm not convinced about this. I try to separate patches like this
in order for people to really understand step by step how
audio is enabled on i.MX board.

I will give a second thought though. Maybe 3/5 and 4/5 could be squashed
together.

>
> Also, please make the Subject as: arm64: dts: imx8mq-evk when a patch
> is specific to the imx8mq-evk dts.

Indeed, will fix in next version.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v3 2/5] arm64: dts: imx8mq: Add SAI2 node
  2019-02-26 12:54   ` Fabio Estevam
@ 2019-02-26 13:06     ` Daniel Baluta
  0 siblings, 0 replies; 12+ messages in thread
From: Daniel Baluta @ 2019-02-26 13:06 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Daniel Baluta, shawnguo, S.j. Wang, angus, robh+dt, mark.rutland,
	s.hauer, kernel, l.stach, Abel Vesa, ccaione, baruch, agx,
	devicetree, linux-arm-kernel, linux-kernel, dl-linux-imx,
	Aisheng Dong, kuninori.morimoto.gx

On Tue, Feb 26, 2019 at 2:55 PM Fabio Estevam <festevam@gmail.com> wrote:
>
> On Tue, Feb 26, 2019 at 4:08 AM Daniel Baluta <daniel.baluta@nxp.com> wrote:
> >
> > SAI2 is part of AIPS-3 memory region and it's the DAI through
> > which the wm8524 codec gets its data.
>
> Please do not mention wm8524 in a SoC dtsi file commit message.
>
> It is the imx8mq-evk board that uses this codec and this information
> is not SoC related.

Got it. Thanks for the comment. Will fix in next version.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v3 0/5] Enable wm8524 on i.MX8MQ
  2019-02-26 13:05   ` Daniel Baluta
@ 2019-02-26 13:10     ` Fabio Estevam
  2019-02-26 13:29       ` Daniel Baluta
  0 siblings, 1 reply; 12+ messages in thread
From: Fabio Estevam @ 2019-02-26 13:10 UTC (permalink / raw)
  To: Daniel Baluta
  Cc: Daniel Baluta, shawnguo, S.j. Wang, angus, robh+dt, mark.rutland,
	s.hauer, kernel, l.stach, Abel Vesa, ccaione, baruch, agx,
	devicetree, linux-arm-kernel, linux-kernel, dl-linux-imx,
	Aisheng Dong, kuninori.morimoto.gx

On Tue, Feb 26, 2019 at 10:05 AM Daniel Baluta <daniel.baluta@gmail.com> wrote:

> I get your point here. But for the moment it is identical with
> "fsl,imx7d-sdma" so there is no need to add it now!
>
> See the discussion here, and comment from Lucas:
>
> https://lkml.org/lkml/2019/1/28/194

Lucas' suggestion was not change the sdma driver code and I also agree with it.

The SoC dts should still use:

compatible = "fsl, imx8mq-sdma","fsl,imx7d-sdma";

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v3 0/5] Enable wm8524 on i.MX8MQ
  2019-02-26 13:10     ` Fabio Estevam
@ 2019-02-26 13:29       ` Daniel Baluta
  0 siblings, 0 replies; 12+ messages in thread
From: Daniel Baluta @ 2019-02-26 13:29 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Daniel Baluta, shawnguo, S.j. Wang, angus, robh+dt, mark.rutland,
	s.hauer, kernel, l.stach, Abel Vesa, ccaione, baruch, agx,
	devicetree, linux-arm-kernel, linux-kernel, dl-linux-imx,
	Aisheng Dong, kuninori.morimoto.gx

On Tue, Feb 26, 2019 at 3:10 PM Fabio Estevam <festevam@gmail.com> wrote:
>
> On Tue, Feb 26, 2019 at 10:05 AM Daniel Baluta <daniel.baluta@gmail.com> wrote:
>
> > I get your point here. But for the moment it is identical with
> > "fsl,imx7d-sdma" so there is no need to add it now!
> >
> > See the discussion here, and comment from Lucas:
> >
> > https://lkml.org/lkml/2019/1/28/194
>
> Lucas' suggestion was not change the sdma driver code and I also agree with it.
>
> The SoC dts should still use:
>
> compatible = "fsl, imx8mq-sdma","fsl,imx7d-sdma";

Ok, makes sense. Will fix in next version.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-02-26 13:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-26  7:08 [PATCH v3 0/5] Enable wm8524 on i.MX8MQ Daniel Baluta
2019-02-26  7:08 ` [PATCH v3 1/5] arm64: dts: imx8mq: Add SDMA nodes Daniel Baluta
2019-02-26  7:08 ` [PATCH v3 2/5] arm64: dts: imx8mq: Add SAI2 node Daniel Baluta
2019-02-26 12:54   ` Fabio Estevam
2019-02-26 13:06     ` Daniel Baluta
2019-02-26  7:08 ` [PATCH v3 3/5] arm64: dts: imx8mq: Add SAI pinctrl configuration Daniel Baluta
2019-02-26  7:08 ` [PATCH v3 4/5] arm64: dts: imx8mq: Enable SAI2 for wm8524 codec Daniel Baluta
2019-02-26  7:08 ` [PATCH v3 5/5] arm64: dts: imx8mq: Enable " Daniel Baluta
2019-02-26 12:52 ` [PATCH v3 0/5] Enable wm8524 on i.MX8MQ Fabio Estevam
2019-02-26 13:05   ` Daniel Baluta
2019-02-26 13:10     ` Fabio Estevam
2019-02-26 13:29       ` Daniel Baluta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).