* [PATCH V2 2/3] arm64: dts: imx8mm: Add node for SPDIF
2020-10-19 16:50 [PATCH V2 1/3] arm64: dts: imx8mm: Add support for micfil Adam Ford
@ 2020-10-19 16:50 ` Adam Ford
2020-10-19 16:50 ` [PATCH V2 3/3] arm64: defconfig: Enable additional sound drivers on i.MX8M Mini Adam Ford
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Adam Ford @ 2020-10-19 16:50 UTC (permalink / raw)
To: linux-arm-kernel
Cc: aford, Adam Ford, Rob Herring, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
Catalin Marinas, Will Deacon, devicetree, linux-kernel
The i.MX8M Mini can support SPDIF which is compatible to the
IP used on the i.MX35. Add the node.
Signed-off-by: Adam Ford <aford173@gmail.com>
---
V2: Fix some typos
diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
index fad1f9cdb241..7cc2899db12e 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
@@ -358,6 +358,30 @@ micfil: audio-controller@30080000 {
status = "disabled";
};
+ spdif1: spdif@30090000 {
+ compatible = "fsl,imx35-spdif";
+ reg = <0x30090000 0x10000>;
+ interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clk IMX8MM_CLK_AUDIO_AHB>, /* core */
+ <&clk IMX8MM_CLK_24M>, /* rxtx0 */
+ <&clk IMX8MM_CLK_SPDIF1>, /* rxtx1 */
+ <&clk IMX8MM_CLK_DUMMY>, /* rxtx2 */
+ <&clk IMX8MM_CLK_DUMMY>, /* rxtx3 */
+ <&clk IMX8MM_CLK_DUMMY>, /* rxtx4 */
+ <&clk IMX8MM_CLK_AUDIO_AHB>, /* rxtx5 */
+ <&clk IMX8MM_CLK_DUMMY>, /* rxtx6 */
+ <&clk IMX8MM_CLK_DUMMY>, /* rxtx7 */
+ <&clk IMX8MM_CLK_DUMMY>; /* spba */
+ clock-names = "core", "rxtx0",
+ "rxtx1", "rxtx2",
+ "rxtx3", "rxtx4",
+ "rxtx5", "rxtx6",
+ "rxtx7", "spba";
+ dmas = <&sdma2 28 18 0>, <&sdma2 29 18 0>;
+ dma-names = "rx", "tx";
+ status = "disabled";
+ };
+
gpio1: gpio@30200000 {
compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
reg = <0x30200000 0x10000>;
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH V2 3/3] arm64: defconfig: Enable additional sound drivers on i.MX8M Mini
2020-10-19 16:50 [PATCH V2 1/3] arm64: dts: imx8mm: Add support for micfil Adam Ford
2020-10-19 16:50 ` [PATCH V2 2/3] arm64: dts: imx8mm: Add node for SPDIF Adam Ford
@ 2020-10-19 16:50 ` Adam Ford
2020-10-19 17:51 ` Krzysztof Kozlowski
2020-10-19 17:53 ` [PATCH V2 1/3] arm64: dts: imx8mm: Add support for micfil Krzysztof Kozlowski
2020-10-31 9:08 ` Shawn Guo
3 siblings, 1 reply; 6+ messages in thread
From: Adam Ford @ 2020-10-19 16:50 UTC (permalink / raw)
To: linux-arm-kernel
Cc: aford, Adam Ford, Rob Herring, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
Catalin Marinas, Will Deacon, devicetree, linux-kernel
The i.MX8M Mini has micfil and SPDIF support but the drivers
are not being loaded.
This patch updates the defconfig to add support for these drivers.
Signed-off-by: Adam Ford <aford173@gmail.com>
---
V2: No Change
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index e0f33826819f..20362359b212 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -674,6 +674,10 @@ CONFIG_SND_HDA_CODEC_HDMI=m
CONFIG_SND_SOC=y
CONFIG_SND_BCM2835_SOC_I2S=m
CONFIG_SND_SOC_FSL_SAI=m
+CONFIG_SND_SOC_FSL_MICFIL=m
+CONFIG_SND_IMX_SOC=m
+CONFIG_SND_SOC_IMX_SPDIF=m
+CONFIG_SND_SOC_IMX_AUDMIX=m
CONFIG_SND_MESON_AXG_SOUND_CARD=m
CONFIG_SND_MESON_GX_SOUND_CARD=m
CONFIG_SND_SOC_SDM845=m
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH V2 3/3] arm64: defconfig: Enable additional sound drivers on i.MX8M Mini
2020-10-19 16:50 ` [PATCH V2 3/3] arm64: defconfig: Enable additional sound drivers on i.MX8M Mini Adam Ford
@ 2020-10-19 17:51 ` Krzysztof Kozlowski
0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2020-10-19 17:51 UTC (permalink / raw)
To: Adam Ford
Cc: linux-arm-kernel, aford, Rob Herring, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
Catalin Marinas, Will Deacon, devicetree, linux-kernel
On Mon, Oct 19, 2020 at 11:50:38AM -0500, Adam Ford wrote:
> The i.MX8M Mini has micfil and SPDIF support but the drivers
> are not being loaded.
>
> This patch updates the defconfig to add support for these drivers.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
> ---
> V2: No Change
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH V2 1/3] arm64: dts: imx8mm: Add support for micfil
2020-10-19 16:50 [PATCH V2 1/3] arm64: dts: imx8mm: Add support for micfil Adam Ford
2020-10-19 16:50 ` [PATCH V2 2/3] arm64: dts: imx8mm: Add node for SPDIF Adam Ford
2020-10-19 16:50 ` [PATCH V2 3/3] arm64: defconfig: Enable additional sound drivers on i.MX8M Mini Adam Ford
@ 2020-10-19 17:53 ` Krzysztof Kozlowski
2020-10-31 9:08 ` Shawn Guo
3 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2020-10-19 17:53 UTC (permalink / raw)
To: Adam Ford
Cc: linux-arm-kernel, aford, Rob Herring, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
Catalin Marinas, Will Deacon, devicetree, linux-kernel
On Mon, Oct 19, 2020 at 11:50:36AM -0500, Adam Ford wrote:
> The i.MX8M Mini has supports the MICFIL digital interface.
> It's a 16-bit audio signal from a PDM microphone bitstream.
> The driver is already in the kernel, but the node is missing.
>
> This patch adds the micfil node.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
> ---
> V2: No change
>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH V2 1/3] arm64: dts: imx8mm: Add support for micfil
2020-10-19 16:50 [PATCH V2 1/3] arm64: dts: imx8mm: Add support for micfil Adam Ford
` (2 preceding siblings ...)
2020-10-19 17:53 ` [PATCH V2 1/3] arm64: dts: imx8mm: Add support for micfil Krzysztof Kozlowski
@ 2020-10-31 9:08 ` Shawn Guo
3 siblings, 0 replies; 6+ messages in thread
From: Shawn Guo @ 2020-10-31 9:08 UTC (permalink / raw)
To: Adam Ford
Cc: linux-arm-kernel, aford, Rob Herring, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
Catalin Marinas, Will Deacon, devicetree, linux-kernel
On Mon, Oct 19, 2020 at 11:50:36AM -0500, Adam Ford wrote:
> The i.MX8M Mini has supports the MICFIL digital interface.
> It's a 16-bit audio signal from a PDM microphone bitstream.
> The driver is already in the kernel, but the node is missing.
>
> This patch adds the micfil node.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
Applied all, thanks.
^ permalink raw reply [flat|nested] 6+ messages in thread