From patchwork Tue Mar 5 17:33:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13582806 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2071.outbound.protection.outlook.com [40.107.20.71]) (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 2B7BC17C6E for ; Tue, 5 Mar 2024 17:33:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.71 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709660024; cv=fail; b=slP1Msb0MCwOVy/ynV1/A60henaF+zWyPxASLE0xmWVe772FNAR3oV776Qx0Xkha6fhMPfOvchTlJblTjZu81vAUJcJepXBg/ZgStWiHMftQVMCg3tJn7xXzUWuNfEXYD52SVnA6ri1Whv5fHIm13WjXFJaM6pj12NKIMs1Fk6U= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709660024; c=relaxed/simple; bh=scx2tJGGMPCuV31oHuIscaL9iO3JoVAe7DIQfQq/hnM=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=gAOXhPUWBjj0iB715/t6mFGMZMtY+KqcWPd24lhKY2NSvCz3kzhLDhIe+4zUqYcEWQxaagDlI6Zdg5frn1fbcLOha0vU+aeX7KDXvv++RYnWOBDaMvo0Kwuu8O/OAOEUlhoTI4hcDIIjPku/LccqJZkgWiaaKd7EqOtymA7lfG4= 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=ZGIeWcC4; arc=fail smtp.client-ip=40.107.20.71 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="ZGIeWcC4" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=npIFK6cjjqUS7Q+2u5K72TiYLnZY3lgQ8fKRnkkjacWUWaDSu3eZeUE2F+fGR453HKRzE/DP+HGQ8Vru534GK3x8xyHtV8PMEdfZcH+IMQOmcG0BIjtojTenQQNXJluWWLrLv5MIZbUmuO1tcNttc+RjEb6poa0OCfuoqPMM324N4LSp958Yb+O4C2e9TJzXHnjmyUcqw/YVSnLZoSywaBlgyFbtwmUNTW04gbK/eRF3MmNp8ESuAC2sU/x83dosYUb8Gz+gHIPzwRJZq/G7q+WdwMIE0W2fwXeWDeV2KoBPN6wwVEeZiXxHcm3KFLDPU4EKwy7MQNeXfsKql/8+oQ== 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=/PZ5N9gHK+DW2QnqzPlUHbIbh+Ah3oD1V2TcxCSFXQE=; b=cknMgitn+MXoLHYSgQLaIgpgstPeIMPWesDMVObK2vEfzZKQWyehAxbc3sszDKwkmWl8GkCkxBQN1jXdpEB2pLvPoMKNUwM/8EbZxZ/fjtV9U7vOMNd0Qgj86mgY3Qpo6tW0+1Y/lQKkV9atmcOjopw7UjDdp9JJxbYVhhD0minbSvt53sS6YXZMD18/RVz16D0ry/GcJvBRLGfgMLL8yzoqNsNESRjuZtdfpjW7Ac0RP5naannga9qjYeE0n7fYF5dzqbKDPbd2q89yTvgHjyeFgl6RQ2dyaI+F1e2JWcLxW8uFW4o/RZ29NY5SxZ5egKsvLFzoVnjMhNX7zcMIWQ== 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=/PZ5N9gHK+DW2QnqzPlUHbIbh+Ah3oD1V2TcxCSFXQE=; b=ZGIeWcC4+hjj3R/Y0MDEfQ5AAHObBitzroETyeAN0agvDT69+wHIYfKifwXBLc3VZ/8HX/Ngyi+fqF4Q9jU1kSXfVBTyYCmq24DYPsp72iFf5h7G1xkUI1PxVLHsLW624sNa7ZfNpas8u14YfB8cjMn0T6FDFPholJQs7hQ+nVk= 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 PAXPR04MB9280.eurprd04.prod.outlook.com (2603:10a6:102:2b6::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.37; Tue, 5 Mar 2024 17:33:37 +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.7339.035; Tue, 5 Mar 2024 17:33:37 +0000 From: Frank Li Date: Tue, 05 Mar 2024 12:33:05 -0500 Subject: [PATCH v4 4/4] arm64: dts: imx8qxp: add asrc[0,1], esai0, spdif[0,1] and sai[4,5] Message-Id: <20240305-asrc_8qxp-v4-4-c61b98046591@nxp.com> References: <20240305-asrc_8qxp-v4-0-c61b98046591@nxp.com> In-Reply-To: <20240305-asrc_8qxp-v4-0-c61b98046591@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=1709659997; l=10528; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=scx2tJGGMPCuV31oHuIscaL9iO3JoVAe7DIQfQq/hnM=; b=chMUJ7/XT0uXG86bVjfTRkPeJ8jj6HQXKQdDUNHBoCNlKTGaBtHfJIf/01fGrJO08pw2JZ30p 8eWnX0LvG1CAgwLrHRREHGyo0UzK8QxMiMUz++bsU+GnyGE15IPe85/ X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0159.namprd05.prod.outlook.com (2603:10b6:a03:339::14) 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_|PAXPR04MB9280:EE_ X-MS-Office365-Filtering-Correlation-Id: 14d3754c-fd88-4178-fb15-08dc3d3a63ac X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FvP1mygq/vc1Ilq5QJ13MLIDFSkNsO4uayvr7mMv+/AyIO5i+8ktfL15bXaKtfeMwWHEez0ZRVsxMeA5fQY5NOSg+dHN/c9767gt/Ft/BQwHfWI5MJyhB6EOH55UjmbEYhXGxT5xg4Jqgd5Y0m7RRjV1+WIBVyxZVNbhjnoX9orHqDtA7QOGytIBGVpfrUUBKJdFUXc6HJtqHURlz1Rs8lrXVAaz+sEZO8YlipZPn8YtoRrZxi73kdiONhMHqRfPevvolpB02i9b5GcOxKp8TSji0f/Dbvn07mE7lQdkUO5TJKzYeXJZjCPR8oxDdKPFeR/QIXdNnseRVtEPoxn0ZfA1ZUrbw+kW0cyEh08hpwHABX3UdfnYtvuwEmHUUunxrNVnmtXJCWuXL8e1BENi+T4p8bACNS0B0jsteIDnANw8gq/4UGrs1rH44msi4rQmj6+QCpBgdszO+ELYzzJw+vPB28p4ZjmNxUSVW+FC+6rWSXO4WL3rzzVdrhKENycA7f0A6uxHJ548+zVnHRzJ/4FfDEji6n6grge9Li5s904TUIBEJrb7nypuceIKXoYUAh0nNKAZv//VtcO/SxpMX19e1SeNJuEsI0q/54o/vKUN9xQi9a0Mj6FeDUcmJbjqmYdMQq/pFZ48srcBikm9e4nfKJmPyrX/1z1aaHnOf2A5Y16aqbaILGwkAxiJ78FpMZEgRiO3TRgZZvSMbmMTJaEHcT0ApPsREEY91MNVd80= 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)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?J9aqGSGANWt2iZ7I/6eTV7aGsdcv?= =?utf-8?q?qRPY9RSNc16iVHCPqJt/w6zDTjgxgOWhMgZAvCVCci0uw8tTbjR5NiLkiit2kNVa+?= =?utf-8?q?JtQAEwWOY5A7tr4X1sDQn8FnQm1uz6vOIye6XurybJiExyOQLAdEWCKvwBbGQrhHd?= =?utf-8?q?VYGbnqiZrEuEEryav4Briq0I70mWREpYinslOOeLWTBWNmbq2uhag1sOJ1Ler3Clb?= =?utf-8?q?YpK1zQO4d0wuv7hQA+405YsX3FYn95l8y92EWsg2raQczo6cCigrtKAxeEQi7ZoGF?= =?utf-8?q?4LFUhhnClfRbg8ywQ2H4eJ1MfyC/sboTgndeauxY5J18p75VVV8An8U5TflDbGfJA?= =?utf-8?q?6HoKK+59FOVNhq5LQzPqQCH3z7Ecpdcw7lPTjwqHoINU6P7GvAXyZ2blJB51iSDxM?= =?utf-8?q?XKuPF4751vEe9tIJPAtztVZsLFWETRiqgI+4lvtPUYzDa8hhr4OgIZAt08igkzCG6?= =?utf-8?q?OhmXmjo2EPoBy8QDOs3oMUPa3ONDyMX3c967GTeztRncjSo5PBHqxyrEmbFASsXnX?= =?utf-8?q?Au+1HCmyvw83Uc5mWVHamTuQ2nOlNLmDdLKu9A7rU+zqknD0z4NjmcNaaLa9DyTxX?= =?utf-8?q?0jk9hQ0+w+b+i2mmvPcSZrIrT10ig6RUIuO/PiOWT82AiAS17Et6QQIkfXhAnGfh+?= =?utf-8?q?nM4wQRG7xWMnASMZ5uj6WVR06YcGUZ/RK8p69uJIZ12nGb6/r8+zFKix2WwvVSRbG?= =?utf-8?q?U2QZnxfogjc/1SF2gcYuojKP3+fg85zL74k/wRKK5tmi5qCeoycVoekhezpshH9E1?= =?utf-8?q?6DPSctOgLjXzthtiN9cEntGVrhoDG7EEky9cPPsp7QtlsTWy7bsfSfnjEX+2XIrgH?= =?utf-8?q?8qPAznFNcvKR/lgYuIlmSH8sNq1cE9Wq1RZDB3VIBGEzdLMi97pSSyeZz9sBrlg+1?= =?utf-8?q?Vq2pMntFKaeJPMhHZUUeh0eCtsWGauycIOoT/yijH2O602MXYGJ6A/D9BPQcs+QQR?= =?utf-8?q?kncH8UwZawC+puPQkNX+6TV40IEZ42NWAZnoiCVXmVsumAAVBlrqFyzWKt1FOC5MX?= =?utf-8?q?1wxkTPOE2AOXcVJkCR+HYUyCMNyXj53ioUtXjb4nT2QiCFza9zr5SlTYupto1qOGC?= =?utf-8?q?HvBCMekSLzYvOv0J6joNqM0S7keOKnGNvoYeC7H9AzkXzuNn3G1aOHUlRzBPv3AgU?= =?utf-8?q?3BZGC4GM7UoB9whgxFSQbBiuE4s5RYiMfxQpC87MZ3Byyua8TylUoh1kMV1IlfB/r?= =?utf-8?q?cWmj61Co/Qq//us9t24oaf71g30d6/PmbivmRaGXwyIOq3yyNEFq6REvGNTS6d2qK?= =?utf-8?q?wgeGNWiYcHZWfq58WZ4ypnY9SpWM36t+eA3vIhCZzfqXsU0wfgVyCMzXX8o178Pq/?= =?utf-8?q?HjKWSmn2mWvExMRaf4oDvocejhtBShuYjXrKwWXlZ6zu2Fa2ZWun2cuZ2rBQ0NWtG?= =?utf-8?q?nXC60tbQBBn7jml9COxbXxj0Fs3PtWwX6mMhP7T4dQ4uELmbS/bWnXFxn8bLzjT6s?= =?utf-8?q?lW3Ov6cDjVj0Lwdda27Oots4o/wV9rNumIyGzoKF+2si1V33SYUC4lVIWyCcx3WBc?= =?utf-8?q?i1W9XyKOG+bb?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 14d3754c-fd88-4178-fb15-08dc3d3a63ac X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2024 17:33:37.0214 (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: v1M1+doEbl786LSCEm8555yhKSVmmfdkjhV1fgT8/p/vJJ67wN59Qc2M/G2fg60PnYZK9fn4cBLUsrhTl+pdTg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9280 Add asrc[0,1], esai0, spdif[0,1], 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 | 304 +++++++++++++++++++++++ 1 file changed, 304 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..78305559f15c9 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 { @@ -481,4 +482,307 @@ acm: acm@59e00000 { "sai3_rx_bclk", "sai4_rx_bclk"; }; + + 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"; + }; + + spdif1: spdif@59030000 { + compatible = "fsl,imx8qm-spdif"; + reg = <0x59030000 0x10000>; + interrupts = , /* rx */ + ; /* tx */ + clocks = <&spdif1_lpcg 1>, /* core */ + <&clk_dummy>, /* rxtx0 */ + <&spdif1_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 10 0 (FSL_EDMA_MULTI_FIFO | FSL_EDMA_RX)>, + <&edma0 11 0 FSL_EDMA_MULTI_FIFO>; + dma-names = "rx", "tx"; + power-domains = <&pd IMX_SC_R_SPDIF_1>; + 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"; + }; + + 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>; + }; + + spdif1_lpcg: clock-controller@59430000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x59430000 0x10000>; + #clock-cells = <1>; + clocks = <&acm IMX_ADMA_ACM_SPDIF1_TX_CLK_SEL>, + <&audio_ipg_clk>; + clock-indices = , ; + clock-output-names = "spdif1_lpcg_tx_clk", + "spdif1_lpcg_gclkw"; + power-domains = <&pd IMX_SC_R_SPDIF_1>; + status = "disabled"; + }; + + 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>; + }; };