From patchwork Mon Sep 30 21:25:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13817109 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010023.outbound.protection.outlook.com [52.101.69.23]) (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 8905D1A2643 for ; Mon, 30 Sep 2024 21:26:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.23 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727731591; cv=fail; b=ropjLqKkHbNRFzqWQ8dJQXqOoWCC4/QDYsjqSvwI3lR/fnVAkn3iR1/zQRb1JHc2BzTZLIjErc19DT/tXYtbFmyqO8W5aRIw8nB5BLyVpWROPUGc6n7rsQKKb6DTBurRkNkSzLpMUKvKcLeYqfkGvn7/9uKiS2xJWo1GEnHGYXA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727731591; c=relaxed/simple; bh=l8w2g6G5IYNmzAemWU0DYb0QitEiAVuXLhbeYUjd/H4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=AKz2yJ+LsSl917DkEqh72jEscwJ2hH3p7XmaRdk3FwII8sdrMMmusqtC5EROR97pELuSYTgyO77OG146XH0rT4v4Tf1StB1Sa0UHkZg4tg1XegJDqtcWj6WIIKepp9bR/p84As2t0DN8YlTKCMrRJwt2bXkdMIPhFGB6V3c85Zk= 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=hqVooCjt; arc=fail smtp.client-ip=52.101.69.23 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="hqVooCjt" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xDeMyWbMhpnXly7liktLKmbvv2qs0LmQ/XteofuIOAfG7u6q6CXNN6MpvDmheMb/Lz+WcQDoC2gmPjm9EcxIvM9ykA9KIYDSf6pKdpgTVbXU5uE1wsHKn3mqpJEfVKP+pKRa7mvEsrGbfTjOG7DfcwEDKYLevBkDOgj3cD0yqo10NwMTxIIOYTjpW1oyvhLk/OETG0DWkvL5C4p0mfUF5tPzNicBq2KdqTpU2QEyOCCNZ86jFAHZmqd9pxEL7XkGMN1EfwlI47DCKrsraCyd1B1LoJh+cbmIXiB+hAbUQD3/auwpU7lJ2uzDDUZa7sG/2k3LeafWmEqOApwWtNIkoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=lDB+aVrP+AVnW9kt2EdWDtNEGhvgOvo0zG+tOG9OKlE=; b=KHQNVPpvJfU4wnjBXN6H9Tq7V7cFVMRyb08SMcUpvJBz3GWCSujA1u1Z91VfosKur980Ma/awgkDVACh41xfJ39SSHiAl+gP17/hsAfej7WPRiUyS3L5r5Vi4ypPu9DE+MaM3wbM+frDcSVz0DoqRIGKi6/BvmpiSndqZaktmNwdAq5wXklz7cCR9L7F7hwkkI0CEZjSjjZw1KSuW0YHVu8Qwy6a57PcekAf7mOm80lxDzWKNvtObyZ6D3eudpCiqPa1jOvp6UQCBBL0s4oLPPZ8z+YydCXnLaNPXv3XYXPymQfMox9axiyzlZ/eT0Lpb5cnjQYmYfWw6reOBaShjQ== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lDB+aVrP+AVnW9kt2EdWDtNEGhvgOvo0zG+tOG9OKlE=; b=hqVooCjt0X2Jk3LrZpauvbtT7HNgEbVfYLxRsIsKiY08PCNlMtL60kaGugudaoMHIE/a8pVo9XvEADJ9p2b98HpsQKxBWSuctGHjyQjugQN5+Km3jIkRlHBo5+5SM1gybcT0N3PMeYbjayLPRz1psBESfUHlFWMJlWgBo2KGgiy33xmw3hbYlPeZk7Syr+KweYhFHz3eVz8oZro8TGUcRv0AeVpCLHwWNNFx+C6qXUoQRkaGsKN09k32JHLcW+AuZUs64Xl4jcTcyu3y+45yXTtCFfO/fvK6nVOEuWD7ozfsYJbvr+ebc4VjOP//26QeTmDh7cSgtwRbDPQmA2VV6g== 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 AM9PR04MB7601.eurprd04.prod.outlook.com (2603:10a6:20b:285::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.27; Mon, 30 Sep 2024 21:26:25 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8005.024; Mon, 30 Sep 2024 21:26:25 +0000 From: Frank Li To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), imx@lists.linux.dev (open list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev Subject: [PATCH 2/6] arm64: dts: imx8qxp-mek: add esai, cs42888 and related node Date: Mon, 30 Sep 2024 17:25:59 -0400 Message-Id: <20240930212604.118756-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240930212604.118756-1-Frank.Li@nxp.com> References: <20240930212604.118756-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR03CA0335.namprd03.prod.outlook.com (2603:10b6:a03:39c::10) 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_|AM9PR04MB7601:EE_ X-MS-Office365-Filtering-Correlation-Id: 1a2ea2b6-8f7d-4af7-7b96-08dce196899b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|376014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: 2rDZbfS6rC+M+bcKr3olF16Xy/Q4P7NI3bQMdF/EnfpjATMpsPj8bnmyynsXH8QTaqKDUohZn2v1JtqU9TH/GLxYQGbItTY0OLUAoxG9jEy9Fa5dx/xqoD9lIDrFFXbWV/1E70qv02FBK02EOUvUCr00Tu5rr4uj844qB97GvRe8Uhkx8HEzPnmSp38vioHQH3jYpaOm7ILKSpzT/x1CsjVA1C+QbtSDex6V+ElK3a5R+i3Vygl2EbXD8OYo9JbQrVqAO/Y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uOuoWulZ1+OhPeNzNS/1+WN4n+weNRxDNjpwQum1kl412M6GioAlNIIcB6+bL1rjYfKoBdPL6ECPK4n3VDUsEY1siWQp0fYnVHJCJpYUbmr6XJzoCIvPvGzZESxDDI= 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:(13230040)(1800799024)(366016)(52116014)(376014)(7416014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GqA/l8qQkFnb35j7HZmQ6mul4NfO37hsFRCu1fxoPUHtGwKv/i9P10h3P9IDYbvl/FC09NpVyHMpDWnnxJkHSiakN5LaVGw5G1mHR4tnOZZx5xFQMiC7eUXcCPtLY8PgV2NTcKwsMTIVICMMsqnqDnRip5xoOqLTNeCLezlOuuabaLxb3w/TpwWynzKPBCPqJhyQdpkpxGDwOtRr2pRVRLfotR9vzXOSwzKW415X9qrV0g/gCg8xhdNVPR5pacg+kjkwSz6bL9buQiq7g4YP5nQuVlTTrcJgvNH5BGznn+NHclPC2S/mtBsX9nUbcQ9gCPhqOCJp+hseVliZfbTzV7Os6y/4rOUBB6Q3XaimxYUvMCm/iT5wRtf9v92oKq8TUKBkNStDuPScJu4gtRlk6ZC12sH8tGtn0jU7ryb5FZhvXdJj1pEc6WXS/9+66HLiI7gROfLvad6ByB71TP1q0BPtnYqnp7m88fRIxPxe+5uX2m5BYyU6FajNp5FpVO9ZLfSRKZa8/OXkq1f3izSCFDwUKvikPOs/E0cZOEMO2y3i5MeCwBWSoswCFuF9q1ujTmzA43AyvDTef/YFE6VuHquUf/tOsgjqkLH//wwfAdUQnjAZ3LO+C07TL+DknHOvS7UFh8avvrZQmUCj2GbmfT+K/Kh02hInAI5g1Z90xf5xQ3nn0aSZHRaJQ88uusXvWIQoHU5oGdqdlCg2IjcH9QAy/PHAoCci0Hn55WhyQZdXRYGNimFIiRTBNjHim2wjbxO+cL5As9b8cZVYdBKrGrNNkiFDZ+yL2nfGdvlq3ZUDaJRnJAxply9ZkIyDQYz8HTeeJaBdXexsU5wa+OdbiBzSi0wFureYBhfioOA/qCOgkax5dsHN5ujths6mc/EesKOptSgsKp7j+DmENHWUWroR/pAxY4mVTE7rKZQI29UN9Svza8uV1xMepdv/Q5yWiZKd4mgJnR5HKS8kYmkVgXjHgXp6KhI7An/nyvjiDUOEd+eV+BoYOweeKIKtX6lF1V2jW+zPLaw/124y95gVzhUuzAVKZ9yRVLe8ISVd+3T0osSKUL4J+Ha8awOWG6gCeemn8hsPSEiWSvILX91oOViHcejeHld3odccw5pgORtujxi1nPq2aojpkY4LlAsL/kp546+uyqoreMJ6qei6uB1ng4KAnhN9Xovv2o0Rd513bB126kg1JzaaIYka0H0E3M6q76+FaWPpr4nQlfYDZAiGAlOA9XRfDrYf6/Whg3W8fbuNfrbA5BAyVcp2b8HMHaClO1MTRwQlTYauVZkImTsaJPp26qu47okbAt6ucR9aLK9fOui7+QBf5YDiFswKi9AS7C2Gftha23ex0sGztaT29ZL9TP6LREh3rqUy3MF7vCmLZJIq6EPyQoyo7gYnJ2nQSKU5nY0Bno5DhkFpD0JYCRHTWWiuHUBa3ye2mR+b688B5qMNjlVu2BQQ2UuLjFQPRc+5zoNv4R/ADTRDcfC9NI6Jv6Nq9tsnZnNJIIhvmziw5+USzYb9NNzVp4HCaQlUgb6C/4+nrRh0fAN4rFEUxuP9qFSg5E2Hk6VRcRw= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1a2ea2b6-8f7d-4af7-7b96-08dce196899b X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 21:26:25.1708 (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: 32y6pMZxXU2WzhXtB3pHIIXFv5B9JhLg8XblSJF8i2/kgRq0bF8ozFmpjFwUJcB2CVp+3VSaQRwOjHYJ22ckQA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB7601 Add audio codec cs42888 and related node. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dtb: esai@59010000: Unevaluated properties are not allowed ('power-domains' was unexpected) update binding patch already sent https://lore.kernel.org/linux-devicetree/20240927205618.4093591-1-Frank.Li@nxp.com/#R --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index d8d9e2883caf7..9b9ad389a807a 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -50,6 +50,13 @@ usb3_data_ss: endpoint { }; }; + reg_audio: regulator-audio { + compatible = "regulator-fixed"; + regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3300000>; + regulator-name = "cs42888_supply"; + }; + sound-bt-sco { compatible = "simple-audio-card"; simple-audio-card,bitclock-inversion; @@ -69,6 +76,28 @@ btcpu: simple-audio-card,cpu { }; }; + sound-cs42888 { + compatible = "fsl,imx-audio-cs42888"; + audio-asrc = <&asrc0>; + audio-codec = <&cs42888>; + audio-cpu = <&esai0>; + audio-routing = + "Line Out Jack", "AOUT1L", + "Line Out Jack", "AOUT1R", + "Line Out Jack", "AOUT2L", + "Line Out Jack", "AOUT2R", + "Line Out Jack", "AOUT3L", + "Line Out Jack", "AOUT3R", + "Line Out Jack", "AOUT4L", + "Line Out Jack", "AOUT4R", + "AIN1L", "Line In Jack", + "AIN1R", "Line In Jack", + "AIN2L", "Line In Jack", + "AIN2R", "Line In Jack"; + model = "imx-cs42888"; + status = "okay"; + }; + sound-wm8960 { compatible = "fsl,imx-audio-wm8960"; model = "wm8960-audio"; @@ -86,6 +115,15 @@ sound-wm8960 { }; }; +&amix { + status = "okay"; +}; + +&asrc0 { + fsl,asrc-rate = <48000>; + status = "okay"; +}; + &dsp { memory-region = <&dsp_reserved>; status = "okay"; @@ -95,6 +133,19 @@ &dsp_reserved { status = "okay"; }; +&esai0 { + assigned-clocks = <&acm IMX_ADMA_ACM_ESAI0_MCLK_SEL>, + <&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>, + <&esai0_lpcg 0>; + assigned-clock-parents = <&aud_pll_div0_lpcg 0>; + assigned-clock-rates = <0>, <786432000>, <49152000>, <12288000>, <49152000>; + pinctrl-0 = <&pinctrl_esai0>; + pinctrl-names = "default"; + status = "okay"; +}; + &fec1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_fec1>; @@ -264,6 +315,24 @@ pca6416: gpio@20 { gpio-controller; #gpio-cells = <2>; }; + + cs42888: audio-codec@48 { + compatible = "cirrus,cs42888"; + reg = <0x48>; + clocks = <&mclkout0_lpcg 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>, + <&mclkout0_lpcg 0>; + assigned-clock-rates = <786432000>, <49152000>, <12288000>, <12288000>; + reset-gpios = <&pca9557_b 1 GPIO_ACTIVE_LOW>; + VA-supply = <®_audio>; + VD-supply = <®_audio>; + VLC-supply = <®_audio>; + VLS-supply = <®_audio>; + + }; }; &cm40_intmux { @@ -458,6 +527,21 @@ IMX8QXP_ADC_IN0_LSIO_GPIO1_IO10 0xc600004c >; }; + pinctrl_esai0: esai0grp { + fsl,pins = < + IMX8QXP_ESAI0_FSR_ADMA_ESAI0_FSR 0xc6000040 + IMX8QXP_ESAI0_FST_ADMA_ESAI0_FST 0xc6000040 + IMX8QXP_ESAI0_SCKR_ADMA_ESAI0_SCKR 0xc6000040 + IMX8QXP_ESAI0_SCKT_ADMA_ESAI0_SCKT 0xc6000040 + IMX8QXP_ESAI0_TX0_ADMA_ESAI0_TX0 0xc6000040 + IMX8QXP_ESAI0_TX1_ADMA_ESAI0_TX1 0xc6000040 + IMX8QXP_ESAI0_TX2_RX3_ADMA_ESAI0_TX2_RX3 0xc6000040 + IMX8QXP_ESAI0_TX3_RX2_ADMA_ESAI0_TX3_RX2 0xc6000040 + IMX8QXP_ESAI0_TX4_RX1_ADMA_ESAI0_TX4_RX1 0xc6000040 + IMX8QXP_ESAI0_TX5_RX0_ADMA_ESAI0_TX5_RX0 0xc6000040 + >; + }; + pinctrl_fec1: fec1grp { fsl,pins = < IMX8QXP_ENET0_MDC_CONN_ENET0_MDC 0x06000020