From patchwork Tue Apr 23 14:11:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13640155 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2088.outbound.protection.outlook.com [40.107.20.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C70FE13B583 for ; Tue, 23 Apr 2024 14:11:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.88 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713881496; cv=fail; b=RDYey2rgzA+kzZ3CfKRl52jrQXsqnO/PsXKfrIr6yiNmKzjnjZGUBbPv8D2IjC0tc1kfIfZVNunJIyfxfoUos7xBVmF+L6jASWFb21T7qt8t83pqoS2ARDkQqh9gewPra93aOz85ysm+aFOCbvf1JU11QXTmdsYYv7oPVoOhWJM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713881496; c=relaxed/simple; bh=qrQLaMF/gRED4r83So9+2LZetjs5jchCu1eByvUzGlU=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=e8bQBWroOQu43VQsX9fKobgCm+9Y5wNxrJxOKcKsNxEKQxu2Fp3NAKFU/8UDTegcCn8EuDZClLWYL2IKggXLoVMpOx3vkSGhe6PgBmfHUwCHy7vN7aYXK/trX61tw9xWOmPalOd+oYatu79z3yv813EbcgEvvIgzJ0ts9eqsxGg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=S0Fu8vR3; arc=fail smtp.client-ip=40.107.20.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="S0Fu8vR3" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LTkleusIGtUmasaLC1OCyUp4sKGK/kBmmaXoC+UJHvrmFGyJ7bFTzkLyevJwRqa3LnmXd8QxgWUEkLWWoANcQh4aoMZ4moUBNSnJW0jCTvEL7oXo3Wf7gQQeIYciWsl6p7PGQ4DFOMrpImYQtbO7sPhr88+c4Gp422ETwaguCnPKMjLW0zEE+jF1lWFGoqLBk0NWkkgfo62shYM7D9BKELKHAdylKq6Pc4bEf4Try/+3QvehWjiue7rSvOy/Xhj6sFIWfv8mzh3EfgY5UgVTtHsCSkkWkAYFXN6KcJ/UbS5KifgPTsm7qeQ+WWQmekMGClq2ye7zQjL9UhhspZDPZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=O3Yy3JMXVqldoA8/f5RBTF8QfUPuwIP+06CmUzmT8Tg=; b=n1GxMy+z5LDcLmK6YmYsQy/QjtjbKscY9oIDuVI+nxFa9Qrj+LvTr37o/UTyZkupeaUD9Q+LHNIh7+6gAJThXTf2RzU4fWIr8DDCl5WCnZy/u0ytXqT3woZ1KvXrQaHBthUwmShXIUAgEUBWaNIjC0wfUFxFKgIAyX7+pKy8zkbAu9j1GkgfGw63nl5hIYt71O/wqnd+p6eqji5ZKq4jQb3D+TDatVtqfN9U9S1Pn8wWA8vOVqz6QMEA8ypX1XSVgxrLTuMCeV7uVjzQhqH1OZ+1FiuXdmil+3qLRORN/ggJRAMrwecPZkg3wOgKGse+XZrkI5L9UbUwVUC8XwtceQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=O3Yy3JMXVqldoA8/f5RBTF8QfUPuwIP+06CmUzmT8Tg=; b=S0Fu8vR3T2qrtnhuJrVesGsW1QO6hbZq9X9GjPTBKPm8S1FXoieW+zXYmCQ8AGkGxiKLlZJRpwXy4DBYCGIfenIawbRepi+/uaOKz1ygBOKM4j32dOZFL1vXmUKOitwlVViemcG8DSzUV4EH6i4e47qupVUL/VAchgCiDitKIYw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DU2PR04MB9018.eurprd04.prod.outlook.com (2603:10a6:10:2d9::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.22; Tue, 23 Apr 2024 14:11:29 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58%7]) with mapi id 15.20.7472.044; Tue, 23 Apr 2024 14:11:29 +0000 From: Frank Li Date: Tue, 23 Apr 2024 10:11:15 -0400 Subject: [PATCH v4 3/3] arm64: dts: imx8dxl-evk: add audio nodes Message-Id: <20240423-b4-dts_dxl_audio-v4-3-0c57eb7399a7@nxp.com> References: <20240423-b4-dts_dxl_audio-v4-0-0c57eb7399a7@nxp.com> In-Reply-To: <20240423-b4-dts_dxl_audio-v4-0-0c57eb7399a7@nxp.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1713881481; l=7899; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=qrQLaMF/gRED4r83So9+2LZetjs5jchCu1eByvUzGlU=; b=tgew2C6gS90qDU/v0a7sUjgT9kE8oTBIr4M1rYHMuQn9hu5IioyfGQkWwdN0PLN1xLbWLjuwS v4L89/PogkCDHnkenmS6MC3cR0albxR+CmL8X/v/S/umUfkaaKIXfx/ X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SA1PR03CA0006.namprd03.prod.outlook.com (2603:10b6:806:2d3::19) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DU2PR04MB9018:EE_ X-MS-Office365-Filtering-Correlation-Id: f4901cf2-2b84-40e6-46ff-08dc639f4536 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|1800799015|7416005|52116005|366007|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?PUjx4pOcMPL+Juy+WtW5WDUHIirzbfB?= =?utf-8?q?e824X9UaXunNrUhJAuSrwpoO+gt2VbofRBkRc3MA3lXeKCIRuU2+O1GcJWp97ZuEs?= =?utf-8?q?z97eGg+Q0Dnr33ctVJSijmIGhrYRJeR7DPdXzB7T6gT4Tep7t0oh8KyckmO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8?q?sxF6z9Pn0Ca8xHpKnsciCt7wtKYUrXgDF9XdVcppftO2mXN+ZpKNfCQQvwt/STU6G?= =?utf-8?q?FciAGXNFzb44Stg5FrFTIMTtrVkSk3nsr3VkXDk72Cxthk/m3HUcTqbQ856kX2/Rn?= =?utf-8?q?hlKxQ5T2nJDFHKrHGXzpniO1l/y8v21tZqlFRFBul2T/U4CZahjMotePk0oDE8XJX?= =?utf-8?q?rYdUads2h54yaNEegMlKTFxWf5Mep2tY1dXjVxuju8cDYdj9DuIC9EeaFOcDt9W8M?= =?utf-8?q?Qwr2edz8VQZoOym3Ow/CKtDgGM9tH7t+7Vw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(7416005)(52116005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?7l6Ei1OpfkvYqI3JOTPq7EKDv6qx?= =?utf-8?q?Uor8FPrNKq+RbQ/GWJAMarsR3Y5nkZqupoD/nmbqqyxuI0fa6PdxY83iqeq3oXGqZ?= =?utf-8?q?mLQ7MLtxw+jSAgAb1gpZZn/2dI+wnKNdY2RC/VOAf/n0MEwsSMXYSpBewqIwdgayy?= =?utf-8?q?gcymoq6yl1j1/qLSvKBxDAvxfGxijhW4mAHH9yq/bJd73llghzsGxRHucENyPPVCS?= =?utf-8?q?gQPN91jJlzQ0aDoYfpH/c6tEyKpukJQtzlIPDRs9uEujFKi9BjqHC16Vej0hLU7h0?= =?utf-8?q?xEr6lj9aTmtc5QOSCXM3TZEv9iZIXSpD49z1JDCEuQsi/GeJ3KE4TXtc1pNCPEIen?= =?utf-8?q?syHzlQC6GykK4QtfdUyR6/rRD1VpehpEy/q0v9pUt79knUvnjYs6ru0h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dJVGqkfdQsat?= =?utf-8?q?arALgob4m2bmMv8lxBwFtdIlLfDwOX/jJ33KZaaVL/sT1JW2F0UUz2p6lBPVryuI1?= =?utf-8?q?kaV8jQrFigIyXoZPqkxG7xXo5Rkm83ok2CdtbwJ20isia75lyvz2HblY9/lPCGoGs?= =?utf-8?q?RaaDm2kJN3NU2P4CXZuWzeDOJIyPvOXW3U1M3vNg0EjWJxYIsK/K/66XvVduo7+WC?= =?utf-8?q?zR+noZ3TnEtfoN8nBIo8gjCHyGvmVDch1//ri9hcFE6lXv0JTnle6c4JyLDxdMtZd?= =?utf-8?q?++6u8+XTvHIM?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f4901cf2-2b84-40e6-46ff-08dc639f4536 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Apr 2024 14:11:29.2979 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OIJ83LzVHxnsxlej3LXAsR8qoD4H6vMExz7hPeDPneX9XLQ8BcKq5sN09D20Urr7LxNHsIDGoZ6qyv4jAurrUQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9018 Add audio nodes for imx8dxl-evk boards. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 229 ++++++++++++++++++++++++++ 1 file changed, 229 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts index 2123d431e0613..ad1479c91e558 100644 --- a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts @@ -125,6 +125,76 @@ mii_select: regulator-4 { enable-active-high; regulator-always-on; }; + + bt_sco_codec: audio-codec-bt { + compatible = "linux,bt-sco"; + #sound-dai-cells = <1>; + }; + + sound-bt-sco { + compatible = "simple-audio-card"; + simple-audio-card,name = "bt-sco-audio"; + simple-audio-card,format = "dsp_a"; + simple-audio-card,bitclock-inversion; + simple-audio-card,frame-master = <&btcpu>; + simple-audio-card,bitclock-master = <&btcpu>; + + btcpu: simple-audio-card,cpu { + sound-dai = <&sai0>; + dai-tdm-slot-num = <2>; + dai-tdm-slot-width = <16>; + }; + + simple-audio-card,codec { + sound-dai = <&bt_sco_codec 1>; + }; + }; + + sound-wm8960-1 { + compatible = "fsl,imx7d-evk-wm8960", "fsl,imx-audio-wm8960"; + model = "wm8960-audio"; + audio-cpu = <&sai1>; + audio-codec = <&wm8960_1>; + audio-asrc = <&asrc0>; + audio-routing = "Headphone Jack", "HP_L", + "Headphone Jack", "HP_R", + "Ext Spk", "SPK_LP", + "Ext Spk", "SPK_LN", + "Ext Spk", "SPK_RP", + "Ext Spk", "SPK_RN", + "LINPUT1", "Mic Jack", + "Mic Jack", "MICB"; + }; + + sound-wm8960-2 { + compatible = "fsl,imx7d-evk-wm8960", "fsl,imx-audio-wm8960"; + model = "wm8960-audio-2"; + audio-cpu = <&sai2>; + audio-codec = <&wm8960_2>; + audio-routing = "Headphone Jack", "HP_L", + "Headphone Jack", "HP_R", + "Ext Spk", "SPK_LP", + "Ext Spk", "SPK_LN", + "Ext Spk", "SPK_RP", + "Ext Spk", "SPK_RN", + "LINPUT1", "Mic Jack", + "Mic Jack", "MICB"; + }; + + sound-wm8960-3 { + compatible = "fsl,imx7d-evk-wm8960", "fsl,imx-audio-wm8960"; + model = "wm8960-audio-3"; + audio-cpu = <&sai3>; + audio-codec = <&wm8960_3>; + audio-routing = "Headphone Jack", "HP_L", + "Headphone Jack", "HP_R", + "Ext Spk", "SPK_LP", + "Ext Spk", "SPK_LN", + "Ext Spk", "SPK_RP", + "Ext Spk", "SPK_RN", + "LINPUT1", "Mic Jack", + "Mic Jack", "MICB"; + }; }; &adc0 { @@ -132,6 +202,11 @@ &adc0 { status = "okay"; }; +&asrc0 { + fsl,asrc-rate = <48000>; + status = "okay"; +}; + &eqos { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_eqos>; @@ -259,6 +334,78 @@ max7322: gpio@68 { }; }; + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x1>; + + wm8960_1: audio-codec@1a { + compatible = "wlf,wm8960"; + reg = <0x1a>; + clocks = <&mclkout1_lpcg IMX_LPCG_CLK_0>; + clock-names = "mclk"; + assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>, + <&mclkout1_lpcg IMX_LPCG_CLK_0>; + assigned-clock-rates = <786432000>, + <49152000>, + <12288000>, + <12288000>; + wlf,shared-lrclk; + wlf,hp-cfg = <2 2 3>; + wlf,gpio-cfg = <1 3>; + }; + }; + + i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x2>; + + wm8960_2: audio-codec@1a { + compatible = "wlf,wm8960"; + reg = <0x1a>; + clocks = <&mclkout1_lpcg IMX_LPCG_CLK_0>; + clock-names = "mclk"; + assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>, + <&mclkout1_lpcg IMX_LPCG_CLK_0>; + assigned-clock-rates = <786432000>, + <49152000>, + <12288000>, + <12288000>; + wlf,shared-lrclk; + wlf,hp-cfg = <2 2 3>; + wlf,gpio-cfg = <1 3>; + }; + }; + + i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x3>; + + wm8960_3: audio-codec@1a { + compatible = "wlf,wm8960"; + reg = <0x1a>; + clocks = <&mclkout1_lpcg IMX_LPCG_CLK_0>; + clock-names = "mclk"; + assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>, + <&mclkout1_lpcg IMX_LPCG_CLK_0>; + assigned-clock-rates = <786432000>, + <49152000>, + <12288000>, + <12288000>; + wlf,shared-lrclk; + wlf,hp-cfg = <2 2 3>; + wlf,gpio-cfg = <1 3>; + }; + }; + i2c@4 { #address-cells = <1>; #size-cells = <0>; @@ -362,6 +509,53 @@ &lsio_gpio5 { status = "okay"; }; +&sai0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai0>; + #sound-dai-cells = <0>; + assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>, + <&sai0_lpcg IMX_LPCG_CLK_0>; + assigned-clock-rates = <786432000>, <49152000>, <12288000>, <49152000>; + status = "okay"; +}; + +&sai1 { + assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>, + <&sai1_lpcg IMX_LPCG_CLK_0>; + assigned-clock-rates = <786432000>, <49152000>, <12288000>, <49152000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai1>; + status = "okay"; +}; + +&sai2 { + assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>, + <&sai2_lpcg IMX_LPCG_CLK_0>; + assigned-clock-rates = <786432000>, <49152000>, <12288000>, <49152000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai2>; + fsl,sai-asynchronous; + status = "okay"; +}; + +&sai3 { + assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>, + <&sai3_lpcg IMX_LPCG_CLK_0>; + assigned-clock-rates = <786432000>, <49152000>, <12288000>, <49152000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai3>; + fsl,sai-asynchronous; + status = "okay"; +}; + &thermal_zones { pmic-thermal { polling-delay-passive = <250>; @@ -595,6 +789,41 @@ IMX8DXL_UART0_TX_ADMA_UART0_TX 0x06000020 >; }; + pinctrl_sai0: sai0grp { + fsl,pins = < + IMX8DXL_SPI0_CS0_ADMA_SAI0_RXD 0x06000060 + IMX8DXL_SPI0_CS1_ADMA_SAI0_RXC 0x06000040 + IMX8DXL_SPI0_SCK_ADMA_SAI0_TXC 0x06000060 + IMX8DXL_SPI0_SDI_ADMA_SAI0_TXD 0x06000060 + IMX8DXL_SPI0_SDO_ADMA_SAI0_TXFS 0x06000040 + >; + }; + + pinctrl_sai1: sai1grp { + fsl,pins = < + IMX8DXL_FLEXCAN0_RX_ADMA_SAI1_TXC 0x06000040 + IMX8DXL_FLEXCAN0_TX_ADMA_SAI1_TXFS 0x06000040 + IMX8DXL_FLEXCAN1_RX_ADMA_SAI1_TXD 0x06000060 + IMX8DXL_FLEXCAN1_TX_ADMA_SAI1_RXD 0x06000060 + >; + }; + + pinctrl_sai2: sai2grp { + fsl,pins = < + IMX8DXL_SNVS_TAMPER_OUT3_ADMA_SAI2_RXC 0x06000040 + IMX8DXL_SNVS_TAMPER_IN0_ADMA_SAI2_RXFS 0x06000040 + IMX8DXL_SNVS_TAMPER_OUT4_ADMA_SAI2_RXD 0x06000060 + >; + }; + + pinctrl_sai3: sai3grp { + fsl,pins = < + IMX8DXL_SNVS_TAMPER_IN1_ADMA_SAI3_RXC 0x06000040 + IMX8DXL_SNVS_TAMPER_IN3_ADMA_SAI3_RXFS 0x06000040 + IMX8DXL_SNVS_TAMPER_IN2_ADMA_SAI3_RXD 0x06000060 + >; + }; + pinctrl_usdhc1: usdhc1grp { fsl,pins = < IMX8DXL_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041