arm64: dts: imx8mm: Add support for micfil
Subsystems (2)
PATCH v2 1/3 arm64: dts: imx8mm: Add support for micfil
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.
---
V2: No change
arch/arm64/boot/dts/freescale/imx8mm.dtsi +19 -0
@@ -339,6 +339,25 @@ sai6: sai@30060000 { status = "disabled"; }; + micfil: audio-controller@30080000 { + compatible = "fsl,imx8mm-micfil"; + reg = <0x30080000 0x10000>; + interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk IMX8MM_CLK_PDM_IPG>, + <&clk IMX8MM_CLK_PDM_ROOT>, + <&clk IMX8MM_AUDIO_PLL1_OUT>, + <&clk IMX8MM_AUDIO_PLL2_OUT>, + <&clk IMX8MM_CLK_EXT3>; + clock-names = "ipg_clk", "ipg_clk_app", + "pll8k", "pll11k", "clkext3"; + dmas = <&sdma2 24 25 0x80000000>; + dma-names = "rx"; + status = "disabled"; + }; + gpio1: gpio@30200000 { compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio"; reg = <0x30200000 0x10000>;
Signature · 1 line
2.25.1
PATCH v2 2/3 arm64: dts: imx8mm: Add node for SPDIF
The i.MX8M Mini can support SPDIF which is compatible to the IP used on the i.MX35. Add the node.
---
V2: Fix some typos
arch/arm64/boot/dts/freescale/imx8mm.dtsi +24 -0
@@ -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>;
Signature · 1 line
2.25.1
PATCH v2 3/3 arm64: defconfig: Enable additional sound drivers on i.MX8M Mini
In reply to Adam FordThe 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.
---
V2: No Change
arch/arm64/configs/defconfig +4 -0
@@ -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
Signature · 1 line
2.25.1
Re: [PATCH V2 3/3] arm64: defconfig: Enable additional sound drivers on i.MX8M Mini
Quoted 8 lines · Adam Ford
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 <[email protected]>---
V2: No Change
Best regards,
Krzysztof
Quoted 10 lines · Adam Ford
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 <[email protected]>---
V2: No change
Best regards,
Krzysztof
Shawn Guo
AppliedQuoted 7 lines · Adam Ford
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 <[email protected]>
Applied all, thanks.