From patchwork Tue Feb 25 12:07:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marco Felsch X-Patchwork-Id: 13989964 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E88ADC021B2 for ; Tue, 25 Feb 2025 12:49:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=ZdT2eAV4IEfIQPWkA1dt7PbZ0W7C/5bIcL/QQrYOBNg=; b=UwMeGbQD9g5R1HsYNf48brGHOF 0k2wUc/nVuE1gl8VfHRZH9JcUa3f3eI1/mshjxPcMd0n400Dy7kCO/VowL9WifBi+wGs2BtHGVg20 accIQhv0SQQk0ocDE3/4x5mCjQpjExGUNDMAGNhAOkbesml+m6iSU7/QpAxxDHJPulPuWFzw8F48c NLIMz77dCawTSYEWz9DAegTzqNv56ENKL/Dh1d17yK9AWx/Ie9+/SRw3UuHeZKMKfkcaFV0t6wYbA +65f5DC72f7u9g3ewsLrRqFFzWjV9CWcn748t3i8qDy6zT3Wijqc2cLA3PAVFvclLADFRraxErUzQ kClbCoVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tmuNX-0000000HFuy-138p; Tue, 25 Feb 2025 12:49:39 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tmtir-0000000H9WA-2w6z for linux-arm-kernel@lists.infradead.org; Tue, 25 Feb 2025 12:07:38 +0000 Received: from dude02.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::28]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1tmtid-00055V-T1; Tue, 25 Feb 2025 13:07:23 +0100 From: Marco Felsch To: "robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, Sascha Hauer" Cc: kernel@pengutronix.de, aford173@gmail.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] arm64: dts: imx8mn: fix micfil dmas settings Date: Tue, 25 Feb 2025 13:07:04 +0100 Message-Id: <20250225120707.2658709-1-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::28 X-SA-Exim-Mail-From: m.felsch@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250225_040737_743091_75F542A7 X-CRM114-Status: GOOD ( 12.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The third dma cell is used for priority information not to encode something else. The NXP downstream kernel use the third cell to encode more information: - Bit31: sw_done feature enable/disable - Bit15~Bit8: selector - Bit7~Bit0: priority level but this was never mainlined. Therefore drop the further information and just specify the priority which is 0. FTR: The sw_done feature was mainlined without making use of the devicetree. Fixes: cca69ef6eba5 ("arm64: dts: imx8mn: Add support for micfil") Signed-off-by: Marco Felsch Reviewed-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index a5f9cfb46e5d..8ab4af78acb5 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -369,7 +369,7 @@ micfil: audio-controller@30080000 { <&clk IMX8MN_CLK_EXT3>; clock-names = "ipg_clk", "ipg_clk_app", "pll8k", "pll11k", "clkext3"; - dmas = <&sdma2 24 25 0x80000000>; + dmas = <&sdma2 24 25 0>; dma-names = "rx"; #sound-dai-cells = <0>; status = "disabled"; From patchwork Tue Feb 25 12:07:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marco Felsch X-Patchwork-Id: 13989970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 20DB0C021B2 for ; Tue, 25 Feb 2025 12:51:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YpsTlwcICJfX9Gsv+WVOr167OvaPwidQ959L6ncuKK4=; b=4b5pEDvt1gttJW02qrqYqVt4SH H8HVkSf3VN8V0Pepy0nVjQpiTe5M3AmK+d4av/ERyuXAVupv2ClyQu/t3e2f9Mg/+nGQKuyelk2+l JfaFSnQTCaqieFqC9s+IyTc55e3MbhhyK3Uy/HbmbC/26+5+WtjsTWEGB4qAkHsUqTcMPqmES9mx+ ceQKtZPaXw5ZsMGdRkPRghnPy3S+BVD1bYHOOe0QxqCcYZVgNWpmbAnYZtP661KGlveNfTB38pCon q9OJLfUSrgT4blXXJ0xkf+1jTQFry55TpZoONfJX58IH5FRZv0sIwaa6W68x8ztfQ+/ihAhnWhERT SPakTDvg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tmuP3-0000000HG8P-46kZ; Tue, 25 Feb 2025 12:51:13 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tmtir-0000000H9WB-30AP for linux-arm-kernel@lists.infradead.org; Tue, 25 Feb 2025 12:07:39 +0000 Received: from dude02.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::28]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1tmtie-00055V-WB; Tue, 25 Feb 2025 13:07:25 +0100 From: Marco Felsch To: "robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, Sascha Hauer" Cc: kernel@pengutronix.de, aford173@gmail.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] arm64: dts: imx8mp: fix micfil dmas settings Date: Tue, 25 Feb 2025 13:07:05 +0100 Message-Id: <20250225120707.2658709-2-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250225120707.2658709-1-m.felsch@pengutronix.de> References: <20250225120707.2658709-1-m.felsch@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::28 X-SA-Exim-Mail-From: m.felsch@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250225_040737_756604_1C33CCC2 X-CRM114-Status: GOOD ( 12.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The third dma cell is used for priority information not to encode something else. The NXP downstream kernel use the third cell to encode more information: - Bit31: sw_done feature enable/disable - Bit15~Bit8: selector - Bit7~Bit0: priority level but this was never mainlined. Therefore drop the further information and just specify the priority which is 0. FTR: The sw_done feature was mainlined without making use of the devicetree. Fixes: 5c6d04e48197 ("arm64: dts: imx8mp: Add micfil node") Signed-off-by: Marco Felsch --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index e0d3b8cba221..af51f1caa71a 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -1544,7 +1544,7 @@ micfil: audio-controller@30ca0000 { <&clk IMX8MP_CLK_EXT3>; clock-names = "ipg_clk", "ipg_clk_app", "pll8k", "pll11k", "clkext3"; - dmas = <&sdma2 24 25 0x80000000>; + dmas = <&sdma2 24 25 0>; dma-names = "rx"; status = "disabled"; }; From patchwork Tue Feb 25 12:07:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marco Felsch X-Patchwork-Id: 13989971 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F358BC021B2 for ; Tue, 25 Feb 2025 12:52:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YZFp+4mX/xLepMshbn1qluOh6HrQWjdEFpUwqel3Ws8=; b=j02Ekt1Vm2xE5MXK660IoK9Fih aWJHlPnP62c+2GXCFTpyibtIHOxBRAZGyepN3Ox6kBObdX28vOXjbC8VEncrzn0WHi/kxJlwnohtI QiiQquEylegW9t6evV4lMUHzLmqzUIzMtCyyXN0p0j2/0+BGJCgorEV1hcOzqmbFYPfnndKvrorMH ayZVcu8Zh+E/sQcynyS7haDkxbh9sz+conggSZc4USd07mOSNZUsOlO/h7Es/K18JH4f1Q3N5Lp63 nmgK1biCPol8vuYQdc/HMYs8679S/dnrypKODPQF0zNe94d/DRx/aXQ2HzAKorIrb8zlZHjccnbzl w1nygJuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tmuQa-0000000HGeP-2Y17; Tue, 25 Feb 2025 12:52:48 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tmtit-0000000H9X6-0GOh for linux-arm-kernel@lists.infradead.org; Tue, 25 Feb 2025 12:07:40 +0000 Received: from dude02.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::28]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1tmtig-00055V-2R; Tue, 25 Feb 2025 13:07:26 +0100 From: Marco Felsch To: "robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, Sascha Hauer" Cc: kernel@pengutronix.de, krzk@kernel.org, aford173@gmail.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: imx8mm: fix micfil dmas settings Date: Tue, 25 Feb 2025 13:07:06 +0100 Message-Id: <20250225120707.2658709-3-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250225120707.2658709-1-m.felsch@pengutronix.de> References: <20250225120707.2658709-1-m.felsch@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::28 X-SA-Exim-Mail-From: m.felsch@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250225_040739_127230_2E364490 X-CRM114-Status: GOOD ( 12.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The third dma cell is used for priority information not to encode something else. The NXP downstream kernel use the third cell to encode more information: - Bit31: sw_done feature enable/disable - Bit15~Bit8: selector - Bit7~Bit0: priority level but this was never mainlined. Therefore drop the further information and just specify the priority which is 0. FTR: The sw_done feature was mainlined without making use of the devicetree. Fixes: 3bd0788c43d9 ("arm64: dts: imx8mm: Add support for micfil") Signed-off-by: Marco Felsch --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index 4de3bf22902b..88e6a75e6c86 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -397,7 +397,7 @@ micfil: audio-controller@30080000 { <&clk IMX8MM_CLK_EXT3>; clock-names = "ipg_clk", "ipg_clk_app", "pll8k", "pll11k", "clkext3"; - dmas = <&sdma2 24 25 0x80000000>; + dmas = <&sdma2 24 25 0>; dma-names = "rx"; #sound-dai-cells = <0>; status = "disabled";