linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add support for i.MX8QM
@ 2019-08-14  8:29 Daniel Baluta
  2019-08-14  8:29 ` [PATCH 1/2] ASoC: fsl_sai: Add support for imx8qm Daniel Baluta
  2019-08-14  8:29 ` [PATCH 2/2] ASoC: dt-bindings: Introduce compatible string for imx8qm Daniel Baluta
  0 siblings, 2 replies; 5+ messages in thread
From: Daniel Baluta @ 2019-08-14  8:29 UTC (permalink / raw)
  To: broonie
  Cc: Xiubo.Lee, nicoleotsuka, perex, alsa-devel, linux-kernel,
	festevam, devicetree, robh+dt, shengjiu.wang, viorel.suman,
	linux-imx, Daniel Baluta

i.MX8QM SOC integrates 6 SAI instances. Register map is similar with
i.MX6 series.

Daniel Baluta (2):
  ASoC: fsl_sai: Add support for imx8qm
  ASoC: dt-bindings: Introduce compatible string for imx8qm

 Documentation/devicetree/bindings/sound/fsl-sai.txt | 3 ++-
 sound/soc/fsl/fsl_sai.c                             | 7 +++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

-- 
2.17.1


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

* [PATCH 1/2] ASoC: fsl_sai: Add support for imx8qm
  2019-08-14  8:29 [PATCH 0/2] Add support for i.MX8QM Daniel Baluta
@ 2019-08-14  8:29 ` Daniel Baluta
  2019-08-21 12:15   ` Applied "ASoC: fsl_sai: Add support for imx8qm" to the asoc tree Mark Brown
  2019-08-14  8:29 ` [PATCH 2/2] ASoC: dt-bindings: Introduce compatible string for imx8qm Daniel Baluta
  1 sibling, 1 reply; 5+ messages in thread
From: Daniel Baluta @ 2019-08-14  8:29 UTC (permalink / raw)
  To: broonie
  Cc: Xiubo.Lee, nicoleotsuka, perex, alsa-devel, linux-kernel,
	festevam, devicetree, robh+dt, shengjiu.wang, viorel.suman,
	linux-imx, Daniel Baluta

SAI module on imx8qm features a register map similar with imx6 series
(it doesn't have VERID and PARAM registers at the beginning
of address spece).

Also, it has one FIFO which can help up to 64 * 32 bit samples.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
---
 sound/soc/fsl/fsl_sai.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index 69cf3678c859..168e1c9cda5c 100644
--- a/sound/soc/fsl/fsl_sai.c
+++ b/sound/soc/fsl/fsl_sai.c
@@ -1031,12 +1031,19 @@ static const struct fsl_sai_soc_data fsl_sai_imx8mq_data = {
 	.reg_offset = 8,
 };
 
+static const struct fsl_sai_soc_data fsl_sai_imx8qm_data = {
+	.use_imx_pcm = true,
+	.fifo_depth = 64,
+	.reg_offset = 0,
+};
+
 static const struct of_device_id fsl_sai_ids[] = {
 	{ .compatible = "fsl,vf610-sai", .data = &fsl_sai_vf610_data },
 	{ .compatible = "fsl,imx6sx-sai", .data = &fsl_sai_imx6sx_data },
 	{ .compatible = "fsl,imx6ul-sai", .data = &fsl_sai_imx6sx_data },
 	{ .compatible = "fsl,imx7ulp-sai", .data = &fsl_sai_imx7ulp_data },
 	{ .compatible = "fsl,imx8mq-sai", .data = &fsl_sai_imx8mq_data },
+	{ .compatible = "fsl,imx8qm-sai", .data = &fsl_sai_imx8qm_data },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, fsl_sai_ids);
-- 
2.17.1


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

* [PATCH 2/2] ASoC: dt-bindings: Introduce compatible string for imx8qm
  2019-08-14  8:29 [PATCH 0/2] Add support for i.MX8QM Daniel Baluta
  2019-08-14  8:29 ` [PATCH 1/2] ASoC: fsl_sai: Add support for imx8qm Daniel Baluta
@ 2019-08-14  8:29 ` Daniel Baluta
  2019-08-21 12:15   ` Applied "ASoC: dt-bindings: Introduce compatible string for imx8qm" to the asoc tree Mark Brown
  1 sibling, 1 reply; 5+ messages in thread
From: Daniel Baluta @ 2019-08-14  8:29 UTC (permalink / raw)
  To: broonie
  Cc: Xiubo.Lee, nicoleotsuka, perex, alsa-devel, linux-kernel,
	festevam, devicetree, robh+dt, shengjiu.wang, viorel.suman,
	linux-imx, Daniel Baluta

Register map for i.MX8QM is similar with i.MX6 series. Integration
of SAI IP into i.MX8QM SOC features a FIFO size of 64 X 32 bits samples.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
---
 Documentation/devicetree/bindings/sound/fsl-sai.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/sound/fsl-sai.txt b/Documentation/devicetree/bindings/sound/fsl-sai.txt
index e61c0dc1fc0b..0dc83cc4a236 100644
--- a/Documentation/devicetree/bindings/sound/fsl-sai.txt
+++ b/Documentation/devicetree/bindings/sound/fsl-sai.txt
@@ -9,7 +9,8 @@ Required properties:
 
   - compatible		: Compatible list, contains "fsl,vf610-sai",
 			  "fsl,imx6sx-sai", "fsl,imx6ul-sai",
-			  "fsl,imx7ulp-sai" or "fsl,imx8mq-sai".
+			  "fsl,imx7ulp-sai", "fsl,imx8mq-sai" or
+			  "fsl,imx8qm-sai".
 
   - reg			: Offset and length of the register set for the device.
 
-- 
2.17.1


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

* Applied "ASoC: fsl_sai: Add support for imx8qm" to the asoc tree
  2019-08-14  8:29 ` [PATCH 1/2] ASoC: fsl_sai: Add support for imx8qm Daniel Baluta
@ 2019-08-21 12:15   ` Mark Brown
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2019-08-21 12:15 UTC (permalink / raw)
  To: Daniel Baluta
  Cc: alsa-devel, broonie, devicetree, festevam, linux-imx,
	linux-kernel, Mark Brown, nicoleotsuka, perex, robh+dt,
	shengjiu.wang, viorel.suman, Xiubo.Lee

The patch

   ASoC: fsl_sai: Add support for imx8qm

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

From 6eeb60be5ebb73b2e5911e26fb1aed02940b7d09 Mon Sep 17 00:00:00 2001
From: Daniel Baluta <daniel.baluta@nxp.com>
Date: Wed, 14 Aug 2019 11:29:10 +0300
Subject: [PATCH] ASoC: fsl_sai: Add support for imx8qm

SAI module on imx8qm features a register map similar with imx6 series
(it doesn't have VERID and PARAM registers at the beginning
of address spece).

Also, it has one FIFO which can help up to 64 * 32 bit samples.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20190814082911.665-2-daniel.baluta@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/fsl/fsl_sai.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index 4a346fcb5630..728307acab90 100644
--- a/sound/soc/fsl/fsl_sai.c
+++ b/sound/soc/fsl/fsl_sai.c
@@ -1031,12 +1031,19 @@ static const struct fsl_sai_soc_data fsl_sai_imx8mq_data = {
 	.reg_offset = 8,
 };
 
+static const struct fsl_sai_soc_data fsl_sai_imx8qm_data = {
+	.use_imx_pcm = true,
+	.fifo_depth = 64,
+	.reg_offset = 0,
+};
+
 static const struct of_device_id fsl_sai_ids[] = {
 	{ .compatible = "fsl,vf610-sai", .data = &fsl_sai_vf610_data },
 	{ .compatible = "fsl,imx6sx-sai", .data = &fsl_sai_imx6sx_data },
 	{ .compatible = "fsl,imx6ul-sai", .data = &fsl_sai_imx6sx_data },
 	{ .compatible = "fsl,imx7ulp-sai", .data = &fsl_sai_imx7ulp_data },
 	{ .compatible = "fsl,imx8mq-sai", .data = &fsl_sai_imx8mq_data },
+	{ .compatible = "fsl,imx8qm-sai", .data = &fsl_sai_imx8qm_data },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, fsl_sai_ids);
-- 
2.20.1


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

* Applied "ASoC: dt-bindings: Introduce compatible string for imx8qm" to the asoc tree
  2019-08-14  8:29 ` [PATCH 2/2] ASoC: dt-bindings: Introduce compatible string for imx8qm Daniel Baluta
@ 2019-08-21 12:15   ` Mark Brown
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2019-08-21 12:15 UTC (permalink / raw)
  To: Daniel Baluta
  Cc: alsa-devel, broonie, devicetree, festevam, linux-imx,
	linux-kernel, Mark Brown, nicoleotsuka, perex, robh+dt,
	shengjiu.wang, viorel.suman, Xiubo.Lee

The patch

   ASoC: dt-bindings: Introduce compatible string for imx8qm

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

From c1fe93581ae9d85c3a783b5fad21912bb88a0f34 Mon Sep 17 00:00:00 2001
From: Daniel Baluta <daniel.baluta@nxp.com>
Date: Wed, 14 Aug 2019 11:29:11 +0300
Subject: [PATCH] ASoC: dt-bindings: Introduce compatible string for imx8qm

Register map for i.MX8QM is similar with i.MX6 series. Integration
of SAI IP into i.MX8QM SOC features a FIFO size of 64 X 32 bits samples.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20190814082911.665-3-daniel.baluta@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 Documentation/devicetree/bindings/sound/fsl-sai.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/sound/fsl-sai.txt b/Documentation/devicetree/bindings/sound/fsl-sai.txt
index e61c0dc1fc0b..0dc83cc4a236 100644
--- a/Documentation/devicetree/bindings/sound/fsl-sai.txt
+++ b/Documentation/devicetree/bindings/sound/fsl-sai.txt
@@ -9,7 +9,8 @@ Required properties:
 
   - compatible		: Compatible list, contains "fsl,vf610-sai",
 			  "fsl,imx6sx-sai", "fsl,imx6ul-sai",
-			  "fsl,imx7ulp-sai" or "fsl,imx8mq-sai".
+			  "fsl,imx7ulp-sai", "fsl,imx8mq-sai" or
+			  "fsl,imx8qm-sai".
 
   - reg			: Offset and length of the register set for the device.
 
-- 
2.20.1


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

end of thread, other threads:[~2019-08-21 12:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-14  8:29 [PATCH 0/2] Add support for i.MX8QM Daniel Baluta
2019-08-14  8:29 ` [PATCH 1/2] ASoC: fsl_sai: Add support for imx8qm Daniel Baluta
2019-08-21 12:15   ` Applied "ASoC: fsl_sai: Add support for imx8qm" to the asoc tree Mark Brown
2019-08-14  8:29 ` [PATCH 2/2] ASoC: dt-bindings: Introduce compatible string for imx8qm Daniel Baluta
2019-08-21 12:15   ` Applied "ASoC: dt-bindings: Introduce compatible string for imx8qm" to the asoc tree Mark Brown

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).