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: 13844426 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C4D34D15DBA for ; Mon, 21 Oct 2024 16:36:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=fcHGoM3FqiCfCWcqQZpVMOJR59KqkDnEKJCHq5TTO8s=; b=SWFZDf/qK6ftIdAxNsfdavfkLK zlRD2srBPEw52O24iSjTokMzgJoyMTI5QnBui7E6E+mY8w0o4WPaIVbxB4/17SJjcUPCKtsoB2zAf H0q2cd3/walVvTyncMjlnn/G2bNiqLwkrp8q9Src28u3DvFjYfodnA16DfF0bo1nAD2DFfdh2TzTb ALPoABRGgLk7ZtZ/FmLQG1avHa139Q5ulXTUyU6UjXjTaNfw0fu6Z4xVzCOLe6oMQ4/ih/vgcUWrM 3q93rb0J04F2FX+Q9UZrLpisw6tjlGycbbxvxbsUuQWH7QjHqW7K9qau+iAaz2a6nIREWLeC6saYg srHwg5XQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2vOY-00000007yUq-14pm; Mon, 21 Oct 2024 16:36:38 +0000 Received: from mail-vi1eur02on20620.outbound.protection.outlook.com ([2a01:111:f403:2607::620] helo=EUR02-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2vN1-00000007y7Z-1yEg for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 16:35:04 +0000 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) 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/HJLEPJJ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040)(1800799024)(366016)(52116014)(376014)(7416014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DZsIYC2vZ2/9VW/39Ccelo9gM45Y3LXfDF8Rk4D7o/RbZvhDvbkeB3cNXGPKB2W1aD/xjTrLZyRdDp6yI58T3P7YOZ6Z6jBRaqbS9RAzgRO5sZABvvSqd84D1GwcI0ibJ7JaJv7h4YW0dLCx7P0rF/CtHNTpDtPs6u3Na047TsodSKoywaxctQsXkUdHZyYEY36ovyGeetSZl6lilBPOH5WccN70XDeVhBC3ZxpmPRBRNFx2/PDFkCyRFeRd/iE0SlDNo+bWQOHRJSKhQzTrgsF9VL3EZg/SM5DHEj63jVOyj+EJH16YA8m++Ya4OqV2c3ua3VeB6Z+rcDbbTCMQZnasqnGivaJmcfS6qIbxvRtYjy6PNZW5CIlWB+uaYE/gQcFnA6Hf4Bt7L8JOAon2ZCL0ZOeDiRn1YjPZ+4iExsYrncm4xuO54gXfV3+1UIGhGUSkznimttT/OJi1j3tCPu58JaQLxoT2NCcziM48+Uq8CGKPkWvcggek0m+L71+9+ZuDrBkq8ttZO+a+yto643l95fKojDV27J/Av2EC1FV/iLFcHOp8wApZxEf6DcNVrrUwy7vj5T7ZvpCDgE4UpDGsHzFRkecyUkZhP8H/XXmKG2JkcUyu71NAYfdvskWM4bHC0YPq1dd/pWMG+WePiC7Dj5wVk4BqxKlofsVQ/7Kz4Wb6qRjsc4gp7S9iK2neazHcvYb4G2El3P03+xt9LWO7va4QXuYbk5eQmteSP31GcBZ1eK7HXv4lATzyKGx0PhbBUHLiIWm75Jb5AuUf6nwtRluAU3/LFNhVeAWbUbu+rFFZ+hZ3yLDyZupXuysDDr+3R+VAV5/0qx0aWTarW/Snf7UAxpGjuswPCbqBbi2KzDQHmdHh9n6wHWRGiTAoTqUjS6KnOaOKGCMqOYRpDX5SP29oYhcOMAIzr6/8HZhc2WTjplTsN9SnhMkd5I5trqHj6/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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241021_093503_550394_42327723 X-CRM114-Status: GOOD ( 10.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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";