From patchwork Mon Oct 21 16:34:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13844420 Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2071.outbound.protection.outlook.com [40.107.249.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 CA0B52F4A for ; Mon, 21 Oct 2024 16:34:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.249.71 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729528500; cv=fail; b=ErXSaIBDqUC8ztdaObqJKCEwwH7zO9SPJ1Lq3Y9KjNNyzFrG3WGdu1Q8dXoIGclsxKNdrLJk+LO1k5Kk7DQtjb7PwLLtcsVn/XgSekS5ldKxKJA0ux/APvldDUA9WCOa5icqcRC67laYqL4wpxNeUrSQxGUMx0vdbOJbQwTfRIU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729528500; c=relaxed/simple; bh=4s9o70erAfz174yHpp6HWKiDNkjuMzUKepKXz2HneSg=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=idXOUNEnwDNCb7l7MqZLRkiFiO9j3Ij2hRm5D1QCwhb5eoy5CssfZpq5Uxnho7rE01YjSCQ8TyI7YYJalQwebNcj9JJaPa+uUhNaHfhNyJl3MdQQNaCfeVBHK2V8gw9Kt1cWDK79XY13X0wNLdyKaQApyb7Y2rHW661C9v6sqJM= 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=Oqv6kKrk; arc=fail smtp.client-ip=40.107.249.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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="Oqv6kKrk" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UxPZxveLhkwOgwAHKLpUT8YdLZOOWCCbhUSQzZGAJiUzmW1GYGfNsqSvY2AErvC36SACtErEBx54+O3mpi4j8L4grefMmbsKMylFTFElSjJPy98COx3l5oPkmnR58BTa6GdATUziqROXf6+Kg+W3egdxy7xT2R/owj8SLbbej3ZVALP1yvUmZTk14BO69d5ZKLS+9CFU/7ITY1pzoan96YEoDIf66JvxX8n85I3iyLyHF9Si5tyCv/RAdGPogpO4oRJWubekJBa/kh9Xyu4oc6S7zNAstuiNTZWeO8rUmiaiIYxJ1fc+CTru+bwIwN0SkpPGj3nwT6RKRVM+y9JzgA== 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=fcHGoM3FqiCfCWcqQZpVMOJR59KqkDnEKJCHq5TTO8s=; b=vnJndKmMDkQMY7b8WHS3BGeCGDAM8pMH47f3zKztKzWYZcQJib2Q3m98lPjYmKlZArhhPbSJLS2896rFVvxhRv3Vzs0W0bXJ2tXPr7GQxxDUlfvTiXhNowGC1oYTaq0Cls01WVoZwxQKS86cGFDOvuoV/iV5l3/PaoV686qroQExxP8R2WJ9QbqOKTSjvX2P/tiZ7xfiBCe9qndJDf70exFKiLBXJOVorpQ+b46dUug4P35ZAAOnn+brRQL7bVDZy+w48N/mO4JTI+K+coiyVuTUsGVF0F8XRIvT/0GpGPRKlXrv4bLeodkAr+Jr/VxOKkEdKTo9BOFCMqdhDLmtEQ== 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=fcHGoM3FqiCfCWcqQZpVMOJR59KqkDnEKJCHq5TTO8s=; b=Oqv6kKrkOl2NqPcvjk85mJYjFyEA/MgUmPknQha56mzPM+Tp0b09V7pYaBXs/b8UGUO7MpZWbsxz2TwSdSySe6fhDglRvZx+8lddjRynIbOBan0Om0kfcCyZiBxLtJqrUo4dxYS+lYFGXlXV2NRIET82aSB0gw5Q1w7KitNq8z37cq/gSeZfUT1cQpeiA123vJ4AL0dFhvSzzkj86/L7BuaTHt2k5CVPs/uXWC/RwOOW9ERAOPjfXadwIRyrS6oBgvK361n/ukuloTBpvkPdgwymw7A6rfLgXvORtkmfKIr9QP672YgYTkhxbNk1tnS3Uky0nmgoUZKRo9xv3EDkng== 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 PAXPR04MB8831.eurprd04.prod.outlook.com (2603:10a6:102:20e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Mon, 21 Oct 2024 16:34:53 +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.8069.024; Mon, 21 Oct 2024 16:34:53 +0000 From: Frank Li To: shawnguo2@yeah.net Cc: Frank.Li@nxp.com, conor+dt@kernel.org, devicetree@vger.kernel.org, festevam@gmail.com, imx@lists.linux.dev, kernel@pengutronix.de, krzk+dt@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robh@kernel.org, s.hauer@pengutronix.de, shawnguo@kernel.org Subject: [PATCH v2 1/6] arm64: dts: imx8qxp-mek: add bluetooth audio codec Date: Mon, 21 Oct 2024 12:34:32 -0400 Message-Id: <20241021163437.1007507-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: BY5PR13CA0005.namprd13.prod.outlook.com (2603:10b6:a03:180::18) To DB9PR04MB9626.eurprd04.prod.outlook.com (2603:10a6:10:309::18) 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_|PAXPR04MB8831:EE_ X-MS-Office365-Filtering-Correlation-Id: 761c520e-ffc8-4338-f69f-08dcf1ee4a35 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|376014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: KL8vw8V51p7AukcbfOQ9t5xxmAS+rleh5csG2fx0NnEFoM1shD+xZk6qLY5LMLQT9mICy2RKab/HlZmktfioZ0txLDc4Kq+N6Qov4CDy2sHj5p95RCId7KR6dvb6OzCC/VpwnuJU/YT31k37ZQy7MCYXhS6M0zQmcApNn6DaEZfyggElp/gBXX02iOfYGWy4tQODOrtm8DkC4OYis+6u13Xkr4Ri0t3VyaVTfWe10YAukTBgzC/jEe5RukzNUprCFCCAFp8a0uM7BGqCa6rxoD3d1cNnVv8S5lXOO2z1gaU1ca477lu3B7Jx24+R+MQ727pSZOEYE0K81Cy7t3cSfhZV2DLDeNvrzWj7hqFvi7JRZbWUqzJ0X+JwfegNouFpZkBIkuaTE0tuWINMR/l1lAGJSdT/3hqVkmcwl4+NFcIg2wJ/HJLEPJJ5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qHj6/1R9D/8ncswyka8irFP0HsG3txm4pd7ATeUrjO7f2O4aWQSVqj/vPBkWjQnvi3rmCLGZgRpoUKekHrn6cmwM1ECKDejIAJcvV/udVAtu4xs17jiwSzAVM3GDo1NJ0tPWOdyG+qv6YlZP2OSa9FsrMnZO8RIIceeG6vlOIzLv10RLPwZdnfj89u/KmKHnBQvo01TutnFShptVgyj6UiIuooRhFlkphN/w9keoDO1q3qWhEOjvRIZVsRrrY6ti9Xgkjqof+NvptzCJOVt71FtLDzWIWZCcsFDllvLMny4b9KEQkYgJ6eesBlvHy8lAvZr/CalOlsx8axaeBNo8uFeXvPAES3qq9j0SFSK7kkyA0SL8CgFWLawgzo96Mf3jNdxCyORuwgRRC7z/+426MWp4aGRZEQVd0j7JIyRj2ijI5+xU2NWCDmUE7d5DCzE9JVrXNULht/kQvWX3wNu0Dp1nc8tjlZC/Hp5dIYG4wZdPmOeYnjMr9P+OVU035b7hlugbWyxJjW/0qJ+zt4hx0MFkaohejsMGO3tBdGsT9eWiRLu0LMh8L8ajA6Y4llbds3d6rwpphRQ5Ofn/QgepVBn8a4WvPc0ePn8XhNPRWI= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 761c520e-ffc8-4338-f69f-08dcf1ee4a35 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9626.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 16:34:53.6157 (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: DnJqJFpKVrVrjpDSLrUYHZR8fgnTKjRXJ1CxEhiSsL8GTbaGevjhFhj3zszlJNapwOKrpDLtkQX3Lb8BnKCFHg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8831 Add bluetooth audio codec. Signed-off-by: Frank Li --- change from v1 to v2 -none --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index 936ba5ecdcac7..d8d9e2883caf7 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -12,6 +12,11 @@ / { model = "Freescale i.MX8QXP MEK"; compatible = "fsl,imx8qxp-mek", "fsl,imx8qxp"; + bt_sco_codec: audio-codec-bt { + compatible = "linux,bt-sco"; + #sound-dai-cells = <1>; + }; + chosen { stdout-path = &lpuart0; }; @@ -45,6 +50,25 @@ usb3_data_ss: endpoint { }; }; + sound-bt-sco { + compatible = "simple-audio-card"; + simple-audio-card,bitclock-inversion; + simple-audio-card,bitclock-master = <&btcpu>; + simple-audio-card,format = "dsp_a"; + simple-audio-card,frame-master = <&btcpu>; + simple-audio-card,name = "bt-sco-audio"; + + simple-audio-card,codec { + sound-dai = <&bt_sco_codec 1>; + }; + + btcpu: simple-audio-card,cpu { + dai-tdm-slot-num = <2>; + dai-tdm-slot-width = <16>; + sound-dai = <&sai0>; + }; + }; + sound-wm8960 { compatible = "fsl,imx-audio-wm8960"; model = "wm8960-audio";