From patchwork Fri Mar 8 15:30:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13586949 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2087.outbound.protection.outlook.com [40.107.22.87]) (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 6550D524CA; Fri, 8 Mar 2024 15:31:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.87 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709911894; cv=fail; b=Fs5+NqAXWWS4YuO2/59u35CQmEU95FF/bZbq4ahN76bbjLE9RBCOv9Qni2sLP9i4acVR2w80SJ3JHe4oHPKS6C/e24oQoeExYpsdw4Xk6mHQNdHviEPhh4IcSVe6VPTpHrDzRoRaIy9jtXzC4g7eybfVJiIXXxv+pB7s7/b6iic= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709911894; c=relaxed/simple; bh=D/R5xpB7nUStCi7qPZ8KjfQq8oLcfigi288bYzejh2I=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=DDWEAQzN6cQWsF77sEoyDXFDOBYsTGQTiVhBogcJNxLjnoSNuz0iUUNHvBm8h2ob1TCeOSC0jaKUw9NBd2cAW4ZaaDSif6dh/ULAM1Dd1BtjqakcMuGybDI61AxiCTPbkOlY2SSTJ0FJXKHDLSCcmLrx9BP3utJ1r3tmFTEaeOg= 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=skytGKec; arc=fail smtp.client-ip=40.107.22.87 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="skytGKec" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZHmmKfs++tOFXhfL+zHq1NFZZKsl19n+oEMFL0eJbvg9Q08v9W2AKU6pTFVmTNAWoy0UoV0gh4+CWHAUKhepNfHhI/gEHnZY+Oo3wUgSvR10ORwITxykTgfkSCuOttAHIykdHXR/gyWtT9Ya2DZDtzLhQtIJ1W8za6BpseHldGb2QbjaiHINWl4dKN/8UjuceEMU6HVEoe3fMtW8hUoBR+Iyc/JH/jbRyoek37pcCjlAGXu4yfD2856gK3iUQqtFEo99BAKIYM+WQMiOJrC/+lVl+aHdB261McTY3saNgvcZi6iFXKWX6kUk+0Dg5gS2a5gtMqLvHow+GB9pl1Jziw== 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=huR+ZJYUKZikB9kNtJDK+f8LbcOyOe0sZHlOK8cmly4=; b=BjgPO52oEvWfes0RrGmgTHkFNDH4cCTnSVEXpXvmW8IX9GoLpeZZyO3n5eKDXqfAJoT7Wl+txNnIloyuqFJi4K3rDeDIlu1w0rsAgjIAORQnwBpfzJhj4sF/ZxaLuT4TTuozdE3TYGomwZ+IF/a/eXIBMTmm/aZ7q/O1KpFujekQ+lomqZ2i5ERpFwc4wL/bU7D7RExf6kY2f0Kt2pJhG3J9ZzymsjUaGvoVt9I267UvN5sZrOiB7ZuQbM46844wmL+2xRVQJ0dU7V4Qw1Y2+pbjVkwabABdQQKz5SB4aI+DMbM6RireHBmtmJyBrZCVREB3yVcZsaPhGCWrnnzQOQ== 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=huR+ZJYUKZikB9kNtJDK+f8LbcOyOe0sZHlOK8cmly4=; b=skytGKeckAgcxC9TyPuPWBR/ugNuIxxNXyddo+o53dZL4363bwZXoCWneecmKgOzEg5Tb9PVp0bNpPzPisf0dM3ubu8MuQupN9zJ20Of1833z7A4GnckULo9jzaPpPsI0EeyIJtoQ9H4NcH/PZgiuW1w6HWuQaIiwnpRSzbzOc8= 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 DB9PR04MB8393.eurprd04.prod.outlook.com (2603:10a6:10:25f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.27; Fri, 8 Mar 2024 15:31:28 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::3168:91:27c6:edf6]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::3168:91:27c6:edf6%3]) with mapi id 15.20.7362.024; Fri, 8 Mar 2024 15:31:27 +0000 From: Frank Li Date: Fri, 08 Mar 2024 10:30:53 -0500 Subject: [PATCH v6 4/4] arm64: dts: imx8qxp: add asrc[0,1], esai0, spdif0 and sai[4,5] Message-Id: <20240308-asrc_8qxp-v6-4-e08f6d030e09@nxp.com> References: <20240308-asrc_8qxp-v6-0-e08f6d030e09@nxp.com> In-Reply-To: <20240308-asrc_8qxp-v6-0-e08f6d030e09@nxp.com> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Shengjiu Wang Cc: linux-sound@vger.kernel.org, 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-c87ef X-Developer-Signature: v=1; a=ed25519-sha256; t=1709911866; l=9815; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=D/R5xpB7nUStCi7qPZ8KjfQq8oLcfigi288bYzejh2I=; b=QLkd08p225I9lhBgOIsU40d0OJPqQraMCnLM62TP4KPlZVTQImNRSzGWNEt+zCN8HZ3gVQWg6 vL/DphLxuDcDliAfugy8dQcnHsnuaDNrLCKHpqG2C3qVP/XWtP9fhDZ X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0151.namprd05.prod.outlook.com (2603:10b6:a03:339::6) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DB9PR04MB8393:EE_ X-MS-Office365-Filtering-Correlation-Id: 5ecee955-ca56-4548-0991-08dc3f84d222 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EAqxBZG7cUDDCr552WqhsPSv34/dFDA8UOOz9t6xJa9s/RJxbQU6d4veJFDLBm+uvnivjBA7O6JItvlW31DjqNujRaLwutP7xC7SF/lUIIDG8/AmXSnnC20BKEz0VKQ9IGu6psRq4GN3eOuJb+i0NAZgneG+y+jASpphFIVCSq/ydRRl3eloedjWbuboTvwXtHqo8GleTpGrXI4UF4O1Z3RlUadbUoDyizPMfkPdIMIXgwLxU0htzQaUxg/lLPWO9Cs8hPBSeb8Oi/mXpphFkCbcp2WmOLdznpgBgsEEjhEujlITXl+OuEjrRZ31+OJHGU/3cCxdni/1eSLCx/4NeTR2XmKcdxYGTSEC9PMSmwdx+q89iWpoEkPFhE5HQ7CwiSBzeAUE0cKahSyaoikZliCE99eMIRGONpChBp/oGJMi5IUnLpRjlU/QicfKoTIl4q6PmzQTP/jhTeDc3e5GCAc4+HDq1DdrsYrROtc4nrDHhPnFlLAvbl3eoxvChgaG6DdPJxvVRpf3qRIj0SCiadhv+dLSrnQy7w8os7kX4+cOxhexgsUqIAq49aXzhZoTQbnmi+y3dvLB1e+EDukAOyicaHzSGNVTt1SmBXzuaecmKhYPr6yM7n3CEcOYxlITI97qkYnzIGNZKbTBQuC9vFkc2Bb1pnga309O9bHInEFReDOxMtEbWTZWo5HsKuh5ugBiA9LfPJBH3SGgjHMEtrCaT2WmmgWfCAEWvzYENdc= 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)(1800799015)(376005)(52116005)(7416005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?JBXnPyi7gRrONKA3fSYHcWLk7RBO?= =?utf-8?q?umaXR35ppQx68knC3aQ3ptFbJJrTGqXICoxsulrmVtjZ5V56dtf/UdRSckfSdr2gi?= =?utf-8?q?LSl5Hg7bQ8qKLTUOQokRcZuHoEjuoZQI6VWNWW30KknWBukqetEkoHnHZevtPD5zf?= =?utf-8?q?9o+AejGYi7Km7+yNVetRtPIngfa14wnTGUsydMu2H+YFN0nfxWGGbFE5rnxPfRBh7?= =?utf-8?q?1132BbpqmVoTlz05ePR8KkYm2lpOnm+IFS08SNByM4uMzZ8AMDAiK2nphq3BTUk7w?= =?utf-8?q?vT45gjR6wz10xDy/YLNg+HjmwAI2Oywy/pI1CSG849rGGhcUjGA004YYMNGev0I6i?= =?utf-8?q?vv6fVSV7I/sU0lciKGGBfPX+cH0AUsu29SZHOtipovMDX1vldBoe2rObw1/r6r9w0?= =?utf-8?q?q8BCK5UQIqOR8aWC805G+7q3YJkZrH4Iqq7HjCUs4N3HFjwjtR/Dv0GzCxtAEUO5n?= =?utf-8?q?7ZcgvjvtGPJugVW36df1jTLG9meBrcyPXTyaZgwN6HfGfJOQ5pWio5dL4a0wk98mi?= =?utf-8?q?hYRkWufOtxZF2mdPyopPEHcQ558/Bjw+fu+udX5PD3nvMhCnH22TvVIgHOqP++ZL5?= =?utf-8?q?jtpOk82Jx/WUCfxTGxnZGm5x27tCspCZj/OlgZeRSJaPc5n8rRlVnimMX3SY2NuXx?= =?utf-8?q?Cka8VUUdERXCXvM2NgSXusWvTYzF4wSE2qocwxYqeQOS3ZAZbUIA25Eigy6E36MVy?= =?utf-8?q?7rGb8UAQPK1DyiWreWr2CLko9elBunIdWzn+cW3dOxlDVuuxKI96eazwznFBePrg3?= =?utf-8?q?1fBfbMykrTQ863UWBKGnrRMfVicynbqT2wBhLN8sq6CArEijeI9sQNiRAJmPVHT1s?= =?utf-8?q?MZ8AjgTQuVgn+NGx4qP5JtBdTWn27YdfwOJUlUHukczFJPSRarcnGtRdGOyBDeaV4?= =?utf-8?q?wWpfE/siW03OlPonIgH9NUelxnQgUyQhYXYB6gdbVMZLpqbuFXza1OGjXmpw46PZ9?= =?utf-8?q?GuQ0aFB3QHsYpa0QEBw8rvkjwU56J0HZAZgvBH4jr1X4PKJHlL2vklGnWXBENaVgx?= =?utf-8?q?yz/Sv6TcbgB8ldNPrOz6FZNHsgzsNWblFnV8g6hCDScj5/DCgVh8wHCUbK6LPXv50?= =?utf-8?q?a06nCfqquP6UdRCJhRqJTfyzZ8bNUaJaoDeRyrcMKG2jV2Fw6DUYyi9NSjKK7Zfob?= =?utf-8?q?3YDGgQHx7/Y+/eUWqNi8ZRUgW1AkiBc8nZMX4J3cNwXBSoaawibIouBsQyhnha4sf?= =?utf-8?q?xTk0xO5HzEZzfxXr+7nxSDANCfiE1QTO4mCEax0akLSThz7I7RABDW8c/PuMQGuGR?= =?utf-8?q?GphqXM4p/i4VCFCgrM0r/0uYxfZ2AEGC6ocrokxvI6kJAbd8jRE/ncZLRtGx0WW47?= =?utf-8?q?RGjZAZrx3ijAB5gyQrVsZKv5KIuKDspzcfovdzIOneBCIb0UvHAUqbgGP3GZmh+//?= =?utf-8?q?9rSYtVqznkIYswuowwHQHptiYEEQneJ/V/WA6p8UOqIv6GdQVK3ldm/P7d4g8EJAw?= =?utf-8?q?iF7fFeuYabj6WMXK/d2y1+zTTrD4zYQY3xK1AKsxRmHPdvOkBaBOD0JnCU9jU9bP0?= =?utf-8?q?KIjuqCYwzhd5?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5ecee955-ca56-4548-0991-08dc3f84d222 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2024 15:31:27.4524 (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: 6dobCOPJ5YMqo2ez7M1I1h/Vln2e6P1GL2MbYSv7IbcC9aVmCYGLvfVSZgbB24Cor2pDCYs/MChMY6NZNC//Ug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8393 Add asrc[0,1], esai0, spdif0, sai[4,5] and related lpcg node for imx8 audio subsystem. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8-ss-audio.dtsi | 267 +++++++++++++++++++++++ 1 file changed, 267 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-audio.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-audio.dtsi index 07afeb78ed564..3c57593687f81 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-audio.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-audio.dtsi @@ -6,6 +6,7 @@ #include #include +#include #include audio_ipg_clk: clock-audio-ipg { @@ -119,6 +120,86 @@ audio_subsys: bus@59000000 { #size-cells = <1>; ranges = <0x59000000 0x0 0x59000000 0x1000000>; + asrc0: asrc@59000000 { + compatible = "fsl,imx8qm-asrc"; + reg = <0x59000000 0x10000>; + interrupts = ; + clocks = <&asrc0_lpcg 0>, + <&asrc0_lpcg 0>, + <&aud_pll_div0_lpcg 0>, + <&aud_pll_div1_lpcg 0>, + <&acm IMX_ADMA_ACM_AUD_CLK0_SEL>, + <&acm IMX_ADMA_ACM_AUD_CLK1_SEL>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>; + clock-names = "mem", "ipg", + "asrck_0", "asrck_1", "asrck_2", "asrck_3", + "asrck_4", "asrck_5", "asrck_6", "asrck_7", + "asrck_8", "asrck_9", "asrck_a", "asrck_b", + "asrck_c", "asrck_d", "asrck_e", "asrck_f", + "spba"; + dmas = <&edma0 0 0 0>, + <&edma0 1 0 0>, + <&edma0 2 0 0>, + <&edma0 3 0 FSL_EDMA_RX>, + <&edma0 4 0 FSL_EDMA_RX>, + <&edma0 5 0 FSL_EDMA_RX>; + /* tx* is output channel of asrc, it is rx channel for eDMA */ + dma-names = "rxa", "rxb", "rxc", "txa", "txb", "txc"; + fsl,asrc-rate = <8000>; + fsl,asrc-width = <16>; + fsl,asrc-clk-map = <0>; + power-domains = <&pd IMX_SC_R_ASRC_0>; + status = "disabled"; + }; + + esai0: esai@59010000 { + compatible = "fsl,imx8qm-esai", "fsl,imx6ull-esai"; + reg = <0x59010000 0x10000>; + interrupts = ; + clocks = <&esai0_lpcg 1>, <&esai0_lpcg 0>, <&esai0_lpcg 1>, <&clk_dummy>; + clock-names = "core", "extal", "fsys", "spba"; + dmas = <&edma0 6 0 FSL_EDMA_RX>, <&edma0 7 0 0>; + dma-names = "rx", "tx"; + power-domains = <&pd IMX_SC_R_ESAI_0>; + status = "disabled"; + }; + + spdif0: spdif@59020000 { + compatible = "fsl,imx8qm-spdif"; + reg = <0x59020000 0x10000>; + interrupts = , /* rx */ + ; /* tx */ + clocks = <&spdif0_lpcg 1>, /* core */ + <&clk_dummy>, /* rxtx0 */ + <&spdif0_lpcg 0>, /* rxtx1 */ + <&clk_dummy>, /* rxtx2 */ + <&clk_dummy>, /* rxtx3 */ + <&clk_dummy>, /* rxtx4 */ + <&audio_ipg_clk>, /* rxtx5 */ + <&clk_dummy>, /* rxtx6 */ + <&clk_dummy>, /* rxtx7 */ + <&clk_dummy>; /* spba */ + clock-names = "core", "rxtx0", "rxtx1", "rxtx2", "rxtx3", "rxtx4", + "rxtx5", "rxtx6", "rxtx7", "spba"; + dmas = <&edma0 8 0 (FSL_EDMA_MULTI_FIFO | FSL_EDMA_RX)>, + <&edma0 9 0 FSL_EDMA_MULTI_FIFO>; + dma-names = "rx", "tx"; + power-domains = <&pd IMX_SC_R_SPDIF_0>; + status = "disabled"; + }; + sai0: sai@59040000 { compatible = "fsl,imx8qm-sai"; reg = <0x59040000 0x10000>; @@ -239,6 +320,40 @@ edma0: dma-controller@591f0000 { <&pd IMX_SC_R_DMA_0_CH23>; }; + asrc0_lpcg: clock-controller@59400000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x59400000 0x10000>; + #clock-cells = <1>; + clocks = <&audio_ipg_clk>; + clock-indices = ; + clock-output-names = "asrc0_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_ASRC_0>; + }; + + esai0_lpcg: clock-controller@59410000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x59410000 0x10000>; + #clock-cells = <1>; + clocks = <&acm IMX_ADMA_ACM_ESAI0_MCLK_SEL>, + <&audio_ipg_clk>; + clock-indices = , ; + clock-output-names = "esai0_lpcg_extal_clk", + "esai0_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_ESAI_0>; + }; + + spdif0_lpcg: clock-controller@59420000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x59420000 0x10000>; + #clock-cells = <1>; + clocks = <&acm IMX_ADMA_ACM_SPDIF0_TX_CLK_SEL>, + <&audio_ipg_clk>; + clock-indices = , ; + clock-output-names = "spdif0_lpcg_tx_clk", + "spdif0_lpcg_gclkw"; + power-domains = <&pd IMX_SC_R_SPDIF_0>; + }; + sai0_lpcg: clock-controller@59440000 { compatible = "fsl,imx8qxp-lpcg"; reg = <0x59440000 0x10000>; @@ -333,6 +448,102 @@ dsp: dsp@596e8000 { status = "disabled"; }; + asrc1: asrc@59800000 { + compatible = "fsl,imx8qm-asrc"; + reg = <0x59800000 0x10000>; + interrupts = ; + clocks = <&asrc1_lpcg 0>, + <&asrc1_lpcg 0>, + <&aud_pll_div0_lpcg 0>, + <&aud_pll_div1_lpcg 0>, + <&acm IMX_ADMA_ACM_AUD_CLK0_SEL>, + <&acm IMX_ADMA_ACM_AUD_CLK1_SEL>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>; + clock-names = "mem", "ipg", + "asrck_0", "asrck_1", "asrck_2", "asrck_3", + "asrck_4", "asrck_5", "asrck_6", "asrck_7", + "asrck_8", "asrck_9", "asrck_a", "asrck_b", + "asrck_c", "asrck_d", "asrck_e", "asrck_f", + "spba"; + dmas = <&edma1 0 0 0>, + <&edma1 1 0 0>, + <&edma1 2 0 0>, + <&edma1 3 0 FSL_EDMA_RX>, + <&edma1 4 0 FSL_EDMA_RX>, + <&edma1 5 0 FSL_EDMA_RX>; + /* tx* is output channel of asrc, it is rx channel for eDMA */ + dma-names = "rxa", "rxb", "rxc", "txa", "txb", "txc"; + fsl,asrc-rate = <8000>; + fsl,asrc-width = <16>; + fsl,asrc-clk-map = <1>; + power-domains = <&pd IMX_SC_R_ASRC_1>; + status = "disabled"; + }; + + sai4: sai@59820000 { + compatible = "fsl,imx8qm-sai"; + reg = <0x59820000 0x10000>; + interrupts = ; + clocks = <&sai4_lpcg 1>, + <&clk_dummy>, + <&sai4_lpcg 0>, + <&clk_dummy>, + <&clk_dummy>; + clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3"; + dmas = <&edma1 8 0 FSL_EDMA_RX>, <&edma1 9 0 0>; + dma-names = "rx", "tx"; + power-domains = <&pd IMX_SC_R_SAI_4>; + status = "disabled"; + }; + + sai5: sai@59830000 { + compatible = "fsl,imx8qm-sai"; + reg = <0x59830000 0x10000>; + interrupts = ; + clocks = <&sai5_lpcg 1>, + <&clk_dummy>, + <&sai5_lpcg 0>, + <&clk_dummy>, + <&clk_dummy>; + clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3"; + dmas = <&edma1 10 0 0>; + dma-names = "tx"; + power-domains = <&pd IMX_SC_R_SAI_5>; + status = "disabled"; + }; + + amix: amix@59840000 { + compatible = "fsl,imx8qm-audmix"; + reg = <0x59840000 0x10000>; + clocks = <&amix_lpcg 0>; + clock-names = "ipg"; + power-domains = <&pd IMX_SC_R_AMIX>; + dais = <&sai4>, <&sai5>; + status = "disabled"; + }; + + mqs: mqs@59850000 { + compatible = "fsl,imx8qm-mqs"; + reg = <0x59850000 0x10000>; + clocks = <&mqs0_lpcg 0>, + <&mqs0_lpcg 1>; + clock-names = "mclk", "core"; + power-domains = <&pd IMX_SC_R_MQS_0>; + status = "disabled"; + }; + edma1: dma-controller@599f0000 { compatible = "fsl,imx8qm-edma"; reg = <0x599f0000 0xc0000>; @@ -481,4 +692,60 @@ acm: acm@59e00000 { "sai3_rx_bclk", "sai4_rx_bclk"; }; + + asrc1_lpcg: clock-controller@59c00000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x59c00000 0x10000>; + #clock-cells = <1>; + clocks = <&audio_ipg_clk>; + clock-indices = ; + clock-output-names = "asrc1_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_ASRC_1>; + }; + + sai4_lpcg: clock-controller@59c20000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x59c20000 0x10000>; + #clock-cells = <1>; + clocks = <&acm IMX_ADMA_ACM_SAI4_MCLK_SEL>, + <&audio_ipg_clk>; + clock-indices = , ; + clock-output-names = "sai4_lpcg_mclk", + "sai4_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_SAI_4>; + }; + + sai5_lpcg: clock-controller@59c30000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x59c30000 0x10000>; + #clock-cells = <1>; + clocks = <&acm IMX_ADMA_ACM_SAI5_MCLK_SEL>, + <&audio_ipg_clk>; + clock-indices = , ; + clock-output-names = "sai5_lpcg_mclk", + "sai5_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_SAI_5>; + }; + + amix_lpcg: clock-controller@59c40000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x59c40000 0x10000>; + #clock-cells = <1>; + clocks = <&audio_ipg_clk>; + clock-indices = ; + clock-output-names = "amix_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_AMIX>; + }; + + mqs0_lpcg: clock-controller@59c50000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x59c50000 0x10000>; + #clock-cells = <1>; + clocks = <&acm IMX_ADMA_ACM_MQS_TX_CLK_SEL>, + <&audio_ipg_clk>; + clock-indices = , ; + clock-output-names = "mqs0_lpcg_mclk", + "mqs0_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_MQS_0>; + }; };