From patchwork Mon Apr 22 19:50: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: 13638889 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2048.outbound.protection.outlook.com [40.107.21.48]) (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 74391155739 for ; Mon, 22 Apr 2024 19:50:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713815430; cv=fail; b=aaWxvNIIcbHBvqKthUqp/r3wY/d2wnhmhQLIR7gZ1d7LBo2DBRAwXArgTVKpjYfdITj7we7x3SzFtX695Njwq73VNxbxBp3xl63i3HL0Hxcs9vQpqDGOTOLNpNc2upxt1K5LKkS+s46u7KKnn/kFBJwzdq7qMeTrDTBUR4iztUQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713815430; c=relaxed/simple; bh=OwTYkXzrFDUZm194y6jPRu+hj6zyMaee5U8q6ZnC/vo=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=A9qFBRBnTlC3G+gHXA8Lcd8WW9dbs0LTUCqHxjEOLvLGhOK6iJee4tSNHXvChNH1ggFVxpYHXtfR3im93trDOSF2OmGXIdPMg3m5tc4dgQzz8wMdTfi/qVWtkETrjXXX7R2sHERLdg5Okcc8kZkQgmqPzImdD0Slsp6ch85Ci9g= 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=kdAJEBDI; arc=fail smtp.client-ip=40.107.21.48 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="kdAJEBDI" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c2G5Ofej2JWTwwAfWRRRfRibj0DHgJ+zwqQLZyCECvOSn5lWJv7CEAvzqIKRqORAF674WI4Z3uXgJ936W3XtjoGThlX9jQxshR2BpbLLO7vUYags3XmUtBcCVYVyUcBJ1DWRNByg2V073auBB8ambyNTWTbGGCURAhZgtpJb2wAJx3HzdLNvHQqWMwEVwu9dp7w/PJwYB3vwkiypV4wA7GCm0YgNr3XdxyEgV5TwEXi1+Ps1L2/EO3iBPb/M/fU48AbJ1XOQJ+dwnxaAOp6M40IGveCQnHjIEv+4yHmR8B6X+VcwyQ2RPyTBLcOVdXqTg+V3oWh+luruWULn9XVDbw== 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=EA0iYjLjvM8OJdpj6SYo+QqVKIOuYyG/Krg41c7qsO8=; b=GwC18PpfBtV9MaDGcsvVWqbtkbBJUVFDPWCLrazqBa3aEQJysciZ+fQhbdju0KG8GKB4bZIAeg4hZPWJ3AEOX6ezxXn9DaIqCcoYXzj/m+3+u8lmrNfEY2J4p0qas4kTFpQWYnEz4NjYq+2cNBd553H7tERvfdGuR27b+2sm3i1IKRWVzGGXUbIh4PBh1m1dXU1iG0x3bKFJYSZ0jeYXMoGUl8S6HTEL8gfBEuOyVAPSlevQccMpag4d4PA23hbdvwlTRRlDCBishlNJ1ikDWuerWsNTKPoJ9rTJF7C3C1saHsz9h+1HBrilMJpJxOIpJ69qemRm6TMvCkAdYTULXw== 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=EA0iYjLjvM8OJdpj6SYo+QqVKIOuYyG/Krg41c7qsO8=; b=kdAJEBDIfhd7qtb2sM6yW+t5pDNzb61XeYydxFu5r7mH+9wclO6YaSbOwTxmDojlTce5NxaqRb+yy+P+VnzxMmZQuaIrAD2edTiTGjcxvQ4YVldrMYLQMBH31Mazr2uFL1e2Gq3KB0K8zhGAcEV3oBbzp5zm5F6u23FGW+F+Jh0= 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 GVXPR04MB9734.eurprd04.prod.outlook.com (2603:10a6:150:112::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Mon, 22 Apr 2024 19:50:21 +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; Mon, 22 Apr 2024 19:50:21 +0000 From: Frank Li Date: Mon, 22 Apr 2024 15:50:05 -0400 Subject: [PATCH v3 03/10] arm64: dts: imx8qm-mek: add sai and wm8960 support Message-Id: <20240422-dts_8qm_audio-v3-3-680cee731ced@nxp.com> References: <20240422-dts_8qm_audio-v3-0-680cee731ced@nxp.com> In-Reply-To: <20240422-dts_8qm_audio-v3-0-680cee731ced@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=1713815413; l=5318; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=OwTYkXzrFDUZm194y6jPRu+hj6zyMaee5U8q6ZnC/vo=; b=bcNK30PZpm70c+NEoJG+T+qw2oHIRydJnkNwlaWjRR5PagSm69lw/fVG4QVBWrX4hNEDWOa7X W3SA7gP8+o6AWzzY5hRsqVeRwMR4fY0IlohMsIUpUxht41Ml3XxkOpR X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SA1P222CA0189.NAMP222.PROD.OUTLOOK.COM (2603:10b6:806:3c4::15) 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_|GVXPR04MB9734:EE_ X-MS-Office365-Filtering-Correlation-Id: 50a0045c-2441-41b6-4fe7-08dc630571cf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?q?bFib4iWfiAoLv6CLCxH7deX98ziIfXh?= =?utf-8?q?0Qybfc2M7XLPmEvSra7SadUyYAEWUcm+HT1v75FggFxxx8CQV0SXPolObJUdqTwaD?= =?utf-8?q?aTRkEsnCZbu2+kp5mGH03+hG4djJCmxcrELB8Sn29sRo3hlPM/llD92gkwQxnE8XB?= =?utf-8?q?hXkEvevE+lhy178XK2ywrOjPo+UoAxG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MrDxssKkV7c0ClzyFhK66q?= =?utf-8?q?opTt79Z2j5Skn9mJepwg+6UexpL8RUdw/WYTuN3ciQWvMy51N1DK4rX/4TCaa0qpx?= =?utf-8?q?/5vuqqVbRTzX9ISWNI65x/O2O6UYjYqHEzsxKe+nJCCFFxNVGDdQCurAr96iTffmQ?= =?utf-8?q?GSV6O9cGwCpgGMNQjZqNk2RiOEeI6gdKdTnp3UPTTtLwNPwAoocWF6gtldjPhRy8e?= =?utf-8?q?yscvQ+YwLNOp93VZrzfuPJlvXGWyg1bAAAg=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)(52116005)(1800799015)(7416005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?wtBc/5Lb+k4J/UVRqMZCxW4nFOMB?= =?utf-8?q?F37lxmUBSorWEqcR7KmBa8KcKI09K9hTRn86IbD+E9YlUzVig0hw63zlGDHjjJ6C4?= =?utf-8?q?qyoWKTT5o1RXG4CG4HWur0PifQCoc0VaFXugQWt/GBMA4ph270rWdEr53e3CPrHN0?= =?utf-8?q?tiRPcJq8V2a+dFOvXXAHjZig2HXyvccEoBaSiTmsmBMzOn0bB7oZC9RM9SE0Ux3SM?= =?utf-8?q?4QMjVR3wk7YnFHobpe9KNV06HfQECIUDjMMtdzoCWJslon2bJFqUYnABtg5ANScP8?= =?utf-8?q?TqjvpbI8ObQse2Za+or1pbREK2MDn7NyDwr1oab/Jy0jH9SgcVNZB3Xux8JkqWbLP?= =?utf-8?q?fRERMOn3GjRWv2t7tyPhuzbiiiz0EPCr/vybvvu+Nra2eyA4Ofr5DJZ4yTfi67WA8?= =?utf-8?q?nPgiSlhE8rl9nvRYGb4SudxG2dKuMThww7M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OFf8/R/xiC+bmiSuHKUzwL14x9Z1ZWK1bXz?= =?utf-8?q?P+jjzCIVsRF/e6KMSKH6Yzk+9ZnXa07764at/6koFT8sBvtH7uOVZ2iEVIME1ecHi?= =?utf-8?q?z7lAQdpCcCVyigeAFiK1Wdj87Kl+DqorEoF8WqmTTd31q8JsYh0SAmK51JVqyXL7p?= =?utf-8?q?5MZMuSCCqF7LmBesKng/pK31hymWYGkYcJL2Lp0ygIslbjGd5NXBP2o7RW047UnrQ?= =?utf-8?q?RZnpp28akaij?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 50a0045c-2441-41b6-4fe7-08dc630571cf X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2024 19:50:21.6353 (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: oyYRXYQx9hcYoowG9YthJUC378HgRwPtM6JnKv9sd4tl87FfRVnuQtFFY4wju2tM2PbwMbz5gSUHiyrPN+xNKg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB9734 Add sai[0,1,6,7], wm8960 and asrc0 support. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 139 +++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index 5c6b39c6933fc..5c7df6171a9a5 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -46,6 +46,46 @@ reg_vref_1v8: regulator-adc-vref { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; }; + + 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 { + compatible = "fsl,imx-audio-wm8960"; + model = "wm8960-audio"; + audio-cpu = <&sai1>; + audio-codec = <&wm8960>; + hp-det-gpio = <&lsio_gpio0 31 GPIO_ACTIVE_HIGH>; + 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 { @@ -65,6 +105,77 @@ &i2c1 { scl-gpios = <&lsio_gpio0 14 GPIO_ACTIVE_HIGH>; sda-gpios = <&lsio_gpio0 15 GPIO_ACTIVE_HIGH>; status = "okay"; + + wm8960: audio-codec@1a { + compatible = "wlf,wm8960"; + reg = <0x1a>; + clocks = <&mclkout0_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>, + <&mclkout0_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>; + }; +}; + +&asrc0 { + fsl,asrc-rate = <48000>; + status = "okay"; +}; + +&amix { + status = "okay"; +}; + +&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_4>; + assigned-clock-rates = <786432000>, <49152000>, <12288000>, <49152000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai0>; + 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_4>; + assigned-clock-rates = <786432000>, <49152000>, <12288000>, <49152000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai1>; + status = "okay"; +}; + +&sai6 { + assigned-clocks = <&acm IMX_ADMA_ACM_SAI6_MCLK_SEL>, + <&clk IMX_SC_R_AUDIO_PLL_1 IMX_SC_PM_CLK_PLL>, + <&clk IMX_SC_R_AUDIO_PLL_1 IMX_SC_PM_CLK_SLV_BUS>, + <&clk IMX_SC_R_AUDIO_PLL_1 IMX_SC_PM_CLK_MST_BUS>, + <&sai6_lpcg IMX_LPCG_CLK_4>; + assigned-clock-parents = <&aud_pll_div1_lpcg IMX_LPCG_CLK_0>; + assigned-clock-rates = <0>, <786432000>, <98304000>, <12288000>, <98304000>; + fsl,sai-asynchronous; + status = "okay"; +}; + +&sai7 { + assigned-clocks = <&acm IMX_ADMA_ACM_SAI7_MCLK_SEL>, + <&clk IMX_SC_R_AUDIO_PLL_1 IMX_SC_PM_CLK_PLL>, + <&clk IMX_SC_R_AUDIO_PLL_1 IMX_SC_PM_CLK_SLV_BUS>, + <&clk IMX_SC_R_AUDIO_PLL_1 IMX_SC_PM_CLK_MST_BUS>, + <&sai7_lpcg IMX_LPCG_CLK_4>; + assigned-clock-parents = <&aud_pll_div1_lpcg IMX_LPCG_CLK_0>; + assigned-clock-rates = <0>, <786432000>, <98304000>, <12288000>, <98304000>; + fsl,sai-asynchronous; + status = "okay"; }; &lpuart0 { @@ -161,6 +272,16 @@ &usdhc2 { }; &iomuxc { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hog>; + + pinctrl_hog: hoggrp { + fsl,pins = < + IMX8QM_MCLK_OUT0_AUD_ACM_MCLK_OUT0 0x0600004c + IMX8QM_SCU_GPIO0_03_LSIO_GPIO0_IO31 0x0600004c + >; + }; + pinctrl_i2c1: i2c1grp { fsl,pins = < IMX8QM_GPT0_CLK_DMA_I2C1_SCL 0x0600004c @@ -256,6 +377,24 @@ IMX8QM_M41_GPIO0_01_DMA_UART3_TX 0x06000020 >; }; + pinctrl_sai0: sai0grp { + fsl,pins = < + IMX8QM_SPI0_CS1_AUD_SAI0_TXC 0x0600004c + IMX8QM_SPI2_CS1_AUD_SAI0_TXFS 0x0600004c + IMX8QM_SAI1_RXFS_AUD_SAI0_RXD 0x0600004c + IMX8QM_SAI1_RXC_AUD_SAI0_TXD 0x0600006c + >; + }; + + pinctrl_sai1: sai1grp { + fsl,pins = < + IMX8QM_SAI1_RXD_AUD_SAI1_RXD 0x06000040 + IMX8QM_SAI1_TXFS_AUD_SAI1_TXFS 0x06000040 + IMX8QM_SAI1_TXD_AUD_SAI1_TXD 0x06000060 + IMX8QM_SAI1_TXC_AUD_SAI1_TXC 0x06000040 + >; + }; + pinctrl_usdhc1: usdhc1grp { fsl,pins = < IMX8QM_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041