Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1658178lqp; Mon, 15 Apr 2024 12:55:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQ1Z6CSsWnI2UkrlkDDdkWylXMz352Gu9k42h4xy+5+GMzpW/dqkIRI0vmeAUL3djAdUelpGoEaMQZC6XIkECqBzuBW0JRqU4CcEbwIQ== X-Google-Smtp-Source: AGHT+IFMAhzi8qJ81Ljgm2j7/owjg1fayHEGzvgYB6I5Q+dN9Hy5Q3VBiZh2o9W/sF3nd+l9cL/w X-Received: by 2002:a05:6359:4f03:b0:186:291f:e902 with SMTP id nf3-20020a0563594f0300b00186291fe902mr18822069rwb.26.1713210931702; Mon, 15 Apr 2024 12:55:31 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m189-20020a6326c6000000b005f07c403b5dsi8221370pgm.281.2024.04.15.12.55.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 12:55:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145834-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=XIEqAqz3; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-145834-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145834-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C04D0285115 for ; Mon, 15 Apr 2024 19:53:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E886E15E7E0; Mon, 15 Apr 2024 19:47:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="XIEqAqz3" Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2081.outbound.protection.outlook.com [40.107.105.81]) (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 D98CB15E5AF; Mon, 15 Apr 2024 19:47:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.81 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713210436; cv=fail; b=G2P36o/tawq9DJ1y/zJ7/s7RfY/Zj2XWuiSku+9XRuABmWXCHjhl+2alowxlI3jTy0lUJfY4uvEqZL3wAJ7KhBXkppiLogLCBpTREP+n2+bS+7+c+xk+D/HkPKSuQoolgCmY/9bM7ltQTuicQs8PTn8ZcVm+Csu/p0VeQQEzA0Q= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713210436; c=relaxed/simple; bh=f+JqUQ1Tu0rXb9A4lvR6ENX7ENB3nwMHpcuGLkZ9Tqg=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Iww+r61PbhzkD4ms8Kc0zQZWlQ1eCnibm3v5ep8w32m64OjsgnkYKlkEHFuxyMoX6tWLgp/prTId4+jsUFfpqbcsj/E2Ll8SeWBkZx1HV2lsyJuhzfB2wvdrcO250VZyrC7Yt8xrwCgs4UYVZ/r5K5H3g9LLs8o4jt9BxYObYyw= 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=XIEqAqz3; arc=fail smtp.client-ip=40.107.105.81 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WeRE4OJSNdDihVeSmsCjcnjMkfFXbPwpcsT728ZWuV5HWajxyLTJj7Sh/zdcoRU5DsoZpp4z1/gKAnc0cTK/RE3O7TpvqYzlffgf6hvHn8TuQ9yp+l7HmVZzbyvEZKJBMv5Ag8t4hr1/79pxwZ8Wx8tsHlDclXDcbb0C1ikYH55iXu9xsK0f5BD6GiBQuGiqblgV3jZ58r5lD7/aXfapS1inVmj+ni5xRzvIcSyWOxtOT/LaY1BCmGBicwHi23zO3MW1F8/y7inyBwlH97tonIkdvPnqlvyIYuqMsQWAxvF/N5TlbOLkEvuJrvbxoXYm5OXFsHdePhBMTEE/ZTwbXw== 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=+t+VVeG58klg1hoj+WVnQ+V2ED1aK406z4370Oa0w6I=; b=PxdslWhYRUoKD2rgntxiC28ilZmJsFCHhcrTbvq8gC9206srhCUoetcICJoBHuW+YZJtpoEPGI8SkDZCvefGsRdPvvRe7pjVixO7D2slgx14yNp/drY5aI4NyfQ+Tv4KMZdPLNumItJcjXOZE77SNbzlmueDBkF7cM3CdYdyUwpLs2xw3r5SLBkKkwEVzxEnfAUUG1CzdYl9IOuA0EkGPfkpSfC1TLR9k4i+RNmA1lVh6yN3DUt2Vzf84s+RkArPaXcjr/NaGorSwBJZ4w2fgVp1EerH3sprpMUnBnNpJ82M/Eo5pTce3iGM7loecTdmke8/Jp26BTyx2pMFEoYZTQ== 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=+t+VVeG58klg1hoj+WVnQ+V2ED1aK406z4370Oa0w6I=; b=XIEqAqz3dAm7h9LjUrCv2yQfvYJjS1Z9dHOv9IBRD5ab7xMahfF8TIdUAjr/akO+qiDPRafDFYWx4161bZkbIv6tKMFTVAGRpH7q6jjMWzV2A/vJO/9gldhZElGO/iF+yJFMIeyYjdGiLsNvlTd1w4pFeX+XAjxkJCyrVC4GTwc= 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 PR3PR04MB7290.eurprd04.prod.outlook.com (2603:10a6:102:82::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Mon, 15 Apr 2024 19:47:12 +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.7452.049; Mon, 15 Apr 2024 19:47:12 +0000 From: Frank Li Date: Mon, 15 Apr 2024 15:46:39 -0400 Subject: [PATCH 03/10] arm64: dts: imx8qm-mek: add sai and wm8960 support Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240415-dts_8qm_audio-v1-3-2976c35a0c52@nxp.com> References: <20240415-dts_8qm_audio-v1-0-2976c35a0c52@nxp.com> In-Reply-To: <20240415-dts_8qm_audio-v1-0-2976c35a0c52@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=1713210421; l=5354; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=f+JqUQ1Tu0rXb9A4lvR6ENX7ENB3nwMHpcuGLkZ9Tqg=; b=aagvGSO+s8mgI4RY8cLQvgaqtwKifO00gb/hkAE5q77Bv1OprsGYchmgVJddKfpv/etv+An8r hABiC8auhpQBWrYzxul6xz3q+PJ8jxjeA+TVK9si4cTjxQdkrox2pPg X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR05CA0061.namprd05.prod.outlook.com (2603:10b6:a03:74::38) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PR3PR04MB7290:EE_ X-MS-Office365-Filtering-Correlation-Id: 11a9379d-196d-425b-a386-08dc5d84d854 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nLrLWcMVv2ppqr7rRYOiRnG0DpRRR6MiKrQK2ONscylBUGynzOo+0h7GlcdLAZj2U8JDBoU+cOQ3K76jiQZh3UgEotfQxzwR0VqYmLPD/TfTxfT8lRkz2IZoPY2++taN18Npry12xaMoYeXcGia8tQg22uDwc6lnknL9bE7IFhbKvgeC2sZWtJIfG5vagbACXRlPgGvjL/xjLAvBqnUKIb3HNBmmiI9qsgjRDZVOsPELAB8i4ZITvmIG6ElISbQIPOcrNcC5qP1iCJExuI0m9i8DrYMGwdxkCnNjZ62qtyMlbgHxJz+YyN4i++pRAp8/CsLolD7YXmuazUlVBXjQ4lviTnHx9fCHo+N3hvQ4aNoCHSo+qtDz+32q5e4S1y1bxxHWJYr7uRgqLhBPvTWc7hQ1BfP2+1EQrnvJfwbJYAREBoZ1REruYHzNUolhVI/OrVdO82UHZkKHeyXRbYhoYvm+N7npbpRlN6Y4RYjgy38+iW4vfMp5YfjO38q+83Jyi00+4NHHnAFJRSWmx3LcI1sd2HOutB23lUvWCYXdelFSmMDdG3VoHNHVJxc4GmOO7Kbh1XEjJbJUjyWLWIj+X3xImFtbXOArtbGhIHdOgKJAWDdJHMfq354FDOnQNm5PTjtVrL5JV5+N+RdkSYaoUh8CHXjn5G/88enfyj16fpm8m1PxjVhMz6ucYymm7H9LExjoVRoN4/ccb/OkNVMvsA== 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)(7416005)(376005)(52116005)(1800799015)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eklzZkpoK2xITHpTeVFxSDZvVFFlTU5lT00zK3ZZSWN6NHZNeW1pLzU3QTJx?= =?utf-8?B?UkhpSUhFLzNydExqS0hyU2FsSVkvMHViczZ0UWJJUStJY2g0N1lJNFdXZWpZ?= =?utf-8?B?aHB1ak9MdXdUeUFYeUxDcWh1Yk5vVnk4M0M4SzhLUzd4Qy9XZ01pWHAxb2NK?= =?utf-8?B?cHlkVC9Ha2Zmb0pqcTdyMDlYSWV2MVJqdlFvUVFZWW9sL3F3Vk5yZFdxbXJP?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Qjg2ZzQ2TG10M0twV21EWU9iTngvekVOVkxJc0Z1?= =?utf-8?B?cEJRRmVEN1REb0lMQktZWFVucW90WUVXNG1TbFhta29FSDlxbko1WXc2eC9H?= =?utf-8?Q?um450GRJnpx5L2ohCRl0WkPDe?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11a9379d-196d-425b-a386-08dc5d84d854 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2024 19:47:12.6950 (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: CCyIViGVFxoFT4h+jkygE7+Ah66TVgCqke5CJD3Llw7n5ZhzBf9pQFJeNEinm0YQegVQ5qEEuLgRS6ofL6iw7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7290 Add sai[0,1,6,7], wm8960 and asrc0 support. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 140 +++++++++++++++++++++++++++ 1 file changed, 140 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index 5c6b39c6933fc..9dd84126493ef 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -46,6 +46,47 @@ reg_vref_1v8: regulator-adc-vref { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; }; + + bt_sco_codec: bt_sco_codec { + #sound-dai-cells = <1>; + compatible = "linux,bt-sco"; + }; + + 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 +106,77 @@ &i2c1 { scl-gpios = <&lsio_gpio0 14 GPIO_ACTIVE_HIGH>; sda-gpios = <&lsio_gpio0 15 GPIO_ACTIVE_HIGH>; status = "okay"; + + wm8960: wm8960@1a { + compatible = "wlf,wm8960"; + reg = <0x1a>; + clocks = <&mclkout0_lpcg IMX_LPCG_CLK_0>; + clock-names = "mclk"; + wlf,shared-lrclk; + wlf,hp-cfg = <2 2 3>; + wlf,gpio-cfg = <1 3>; + 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>; + }; +}; + +&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>; /* FIXME: should be sai1, original code is 0 */ + 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 +273,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 +378,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 -- 2.34.1