From nobody Tue Nov 26 05:47:36 2024 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2089.outbound.protection.outlook.com [40.107.105.89]) (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 EE57213AA4C; Tue, 22 Oct 2024 05:19:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.89 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729574376; cv=fail; b=IVOStRrDv0wvmVP9LEgWk9tNKNjGAo94C+EuW9z7izepjS5LxbNJs3KDXIgNtrM8L1n7Fe5tldBAIDdBAK/KPNTY2ZRhJ09GFqiUVxYkkfPV+Tb7LaRonhv+wE1GpYK8FGyJAIwVJ4gAkqzoghC6dvSTiJ1ST8WyG3ArN9pAZGo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729574376; c=relaxed/simple; bh=pHeRz8l+69uRa213DsXwJ+2eugbFh8OguVFT2YNaeeg=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=btJiRvFszoUYGc/zNs4i41I5RmAbmnG6NCYhqVj6P6TUjpdjguII4HxO+bMAoU0SYesMUnMFSnc53XuKZ4P/IOmat2cVVnVuIFZHf62N8nBQmyNulvjSGycZq/WhgZCkwGPAPSV5AQwwKZMJZIVbKrWvQzUdVJjM/J5Y7GQgCdg= 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=eiGNQg1O; arc=fail smtp.client-ip=40.107.105.89 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="eiGNQg1O" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YHThKZPN963TvAw6qxvlrQBv8i9u5ph/YztxLpPz2d7pdaedvgb9xkT8Fz1Y/tCydLlmyobj/ulGrBlvu1g3pDSJsXt8EHt8qUXg0hzoNt5noarSiPa2tPpV4Vx8aBHuDLZNn/Sj3UmNPRsHcq88/R638uxVtDhduwsjhZO9Y8RgBzBgaAfvfcTT6+OBHBrVgIPaaXCnpgA0ZfTvBjPiAENr7fgG1g91Ntmd4ntZwx34GiBih9hIUn0BYwiulCXkmVkMiS7GGVhU6TQM0CXkjMWLqW6Tpmsro1C3fzIpXvT2/22wKhUm4adV9o7wyUZIrbSbmoo80ROjn233WJntgw== 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=ipCLY1pO2CfqUcxxKLSMtVz20lU07W7JJkSZX/zosDI=; b=cYHC2ulvNbb5t+hU1schyWeQMwz6RM+MWgdxud4ALjgHxNL+qet8h55RM56Wqeuytp0qTb57ooH9iRJXVG3KIRQ5XHv7NEKj4CVDz65gtUG2gDaKxt8y4EzAH74/VpJlnTvlzOk8ze1ueX2tcau3HGo+gNnf0RAg3n5E9gsXa5d+pIUm6YqhBOwgRmd/ImLfHl5Q5+dqDHqdftUcFWZJIidrGfFJ37ZKAW+76py38KKl81VRA9nPuegT17HlsLncfInOP0r4a5tzuKo/9OVomauaPWq2oFB31wXwm6B/O/Q7xOdeabKguBDWsRCe06wKXEZyZDWnD2w4LNY1xkZxng== 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=ipCLY1pO2CfqUcxxKLSMtVz20lU07W7JJkSZX/zosDI=; b=eiGNQg1OHzvyCXPfcnUdC0tv2TfQlmj8luv+4JTdDPDIxpaTHekpp+B2t5Y3jkKxTlUn1Bb5/YxGjHPRIQ2Pl8xRjhm6l6TPGxbu4bNpTnfQeGG1XVNUrPaQQ7CJ0nUNuepCZi4Qka5reUPxI+SUp/AC+8GgGl2yVBK1n3oBMWRLARP4qjRSGs8EjlY+3Uf3hS4KuT6+vMD0wKU89KIe6M5WXTGGNmuJej7R+1JUhjPeR6biVX13IuZ3P13vXeM6eGxyrsoe0pKqlD2ppYK2Rx1tMpIOzv94ucjMxqd166D7Jh75LmnW1LciqPwBqYdpO3afhs/KfWZKigEIpQiomg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR04MB7044.eurprd04.prod.outlook.com (2603:10a6:208:191::20) by AM7PR04MB6853.eurprd04.prod.outlook.com (2603:10a6:20b:107::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 22 Oct 2024 05:19:32 +0000 Received: from AM0PR04MB7044.eurprd04.prod.outlook.com ([fe80::7be0:296:768c:e891]) by AM0PR04MB7044.eurprd04.prod.outlook.com ([fe80::7be0:296:768c:e891%6]) with mapi id 15.20.8093.014; Tue, 22 Oct 2024 05:19:32 +0000 From: Shengjiu Wang To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, shengjiu.wang@gmail.com Subject: [PATCH v2 2/3] arm64: dts: imx8ulp-evk: Add bt-sco sound card support Date: Tue, 22 Oct 2024 13:29:18 +0800 Message-Id: <20241022052919.1946074-3-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20241022052919.1946074-1-shengjiu.wang@nxp.com> References: <20241022052919.1946074-1-shengjiu.wang@nxp.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SI1PR02CA0054.apcprd02.prod.outlook.com (2603:1096:4:1f5::13) To VI1PR04MB7055.eurprd04.prod.outlook.com (2603:10a6:800:123::21) 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: AM0PR04MB7044:EE_|AM7PR04MB6853:EE_ X-MS-Office365-Filtering-Correlation-Id: 4695e63b-2ee1-453b-5691-08dcf2591c0a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|7416014|1800799024|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?36vw4RX3XKPsUEBiiP2BY9MdtimYnu5M/f7e+7Oz5xE36KO6n7VfS6Ogmybt?= =?us-ascii?Q?eWFTMBn6uN/GIEUwWDvqWdbWmcJqYp/qVH8ei+XG/pNobbJ5tVKsLO28+3O0?= =?us-ascii?Q?E5igiTBZQAIENjXZuZ/c1IMMw+L/lJ7oLikxYvZUYsu5sl3qrsqOaqHgpYQ2?= =?us-ascii?Q?U2juUgsdzjGgsa457WtnekXuodv1UEzX1uLjqD8eM8drWPuZKMvov+91Y0O0?= =?us-ascii?Q?7gjN0mNuIgfT+VnByOH5+6Und+5/uE4HuevH3TMI7EsnBC4wI8OoiaM2E45V?= =?us-ascii?Q?AsWMzz63AO36Do7uQY4HeT2L2yX/IKM3M9WNtuD54DCJs8dK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6bYBA4bsxlYUJAXr8+0U0cLo4GQwj6BidHjNKDv?= =?us-ascii?Q?E+VmZ0R70kOUR3BwngfUC/xpjkgsnzb3dk62bDKja+qcUGK4EBPZoo4LOsCs?= =?us-ascii?Q?1YV4Ppj7h3Q256OYBHMWHvrCd30JTVcoAsG7ZII/r/8U1pDElmrvbNOq2CXz?= =?us-ascii?Q?ahHXTc5HIuOJ0lamobGhPiZ7A1aQ?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB7044.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(7416014)(1800799024)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?p7KDOhtWFC6V8ibwFbKCKqBXXhWAnjByvZLQyPpPcEUH/683e1/BLFqGLg+u?= =?us-ascii?Q?DvGO0klzg0fugQoAXkh1L9QijrBmlf03Ot1XJuRe5cNLIJFafZNNnoIbdgwl?= =?us-ascii?Q?2TcSaKauM4XewleJ2Xrj3NtEQiVyrd5Gv3fQO2g+I8LM+XGDE+wuK1h+eASn?= =?us-ascii?Q?hN2Ovy0pUpC8MUWBjB9Qo8NdLw/CYYiU+T67qTbj0g6u0j+QwDuZEmABJw2d?= =?us-ascii?Q?3gKuTC1z8esxrqZqvloXMCcnDO7lmwGasfcc3WioO5AYPDaqnJUYsGevrTAV?= =?us-ascii?Q?QtD94CyS2Jvh+MYVMuplbinEKUDEi3L1K4CuIt8R07R5In+T+cJfrjQBK2vR?= =?us-ascii?Q?tFGmdrGkwUp1EKoC0Vio3Bc02QfxFCD+wd+q3KNOEDyxaDMhogY7oXckky+E?= =?us-ascii?Q?qg3ReaWQ3sdIQjccTidHnvVTvls5rp9wiOziLiVfsshjYIRyPsQTC01c9R/F?= =?us-ascii?Q?t476w2siTl4as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?us-ascii?Q?A+KyAsQaGgsv8gWyaYTiVC69oBQlLPtn7vG5SRsUdeWlDqWU5hNBxXZL8pZf?= =?us-ascii?Q?oohhaiZFe6+7DR6Qj4/qQ8txm7kIGMQcxkw0o9rUBVdxdKY4yzfWiRMsVQjI?= =?us-ascii?Q?2bV7QmuJFrfUVFgWZU5s3XFkylLiz4TuzT81Ctp4kY+78CGWhxixZ1X1taKq?= =?us-ascii?Q?3o9eDQdBICU2SGrg67w0PkDsoa+BqkjBlewTJcNw?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4695e63b-2ee1-453b-5691-08dcf2591c0a X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB7055.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2024 05:19:31.9357 (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: oCosfTfNcYt+Lr7q5kvG4ryMA3ALxgRZKQ6qj98B4rIGrybQdKiewhk9lC/X3383abfPPXBmJJHrlqnOjHDHlQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB6853 Content-Type: text/plain; charset="utf-8" Add bt-sco sound card, which is used by BT HFP case. It supports wb profile as default Signed-off-by: Shengjiu Wang --- arch/arm64/boot/dts/freescale/imx8ulp-evk.dts | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts b/arch/arm64/boo= t/dts/freescale/imx8ulp-evk.dts index e937e5f8fa8b..7d6d332fa779 100644 --- a/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts @@ -11,6 +11,11 @@ / { model =3D "NXP i.MX8ULP EVK"; compatible =3D "fsl,imx8ulp-evk", "fsl,imx8ulp"; =20 + bt_sco_codec: bt-sco-codec { + #sound-dai-cells =3D <1>; + compatible =3D "linux,bt-sco"; + }; + chosen { stdout-path =3D &lpuart5; }; @@ -83,6 +88,25 @@ clock_ext_ts: clock-ext-ts { clock-output-names =3D "ext_ts_clk"; #clock-cells =3D <0>; }; + + sound-bt-sco { + compatible =3D "simple-audio-card"; + simple-audio-card,name =3D "bt-sco-audio"; + simple-audio-card,format =3D "dsp_a"; + simple-audio-card,bitclock-inversion; + simple-audio-card,frame-master =3D <&btcpu>; + simple-audio-card,bitclock-master =3D <&btcpu>; + + btcpu: simple-audio-card,cpu { + sound-dai =3D <&sai5>; + dai-tdm-slot-num =3D <2>; + dai-tdm-slot-width =3D <16>; + }; + + simple-audio-card,codec { + sound-dai =3D <&bt_sco_codec 1>; + }; + }; }; =20 &cm33 { @@ -153,6 +177,16 @@ ptn5150_2: typec@3d { }; }; =20 +&sai5 { + pinctrl-names =3D "default", "sleep"; + pinctrl-0 =3D <&pinctrl_sai5>; + pinctrl-1 =3D <&pinctrl_sai5>; + assigned-clocks =3D <&cgc1 IMX8ULP_CLK_SAI5_SEL>; + assigned-clock-parents =3D <&cgc1 IMX8ULP_CLK_SPLL3_PFD1_DIV1>; + fsl,dataline =3D <1 0x08 0x01>; + status =3D "okay"; +}; + &usbotg1 { pinctrl-names =3D "default"; pinctrl-0 =3D <&pinctrl_usb1>; @@ -282,6 +316,15 @@ MX8ULP_PAD_PTE13__LPI2C7_SDA 0x20 >; }; =20 + pinctrl_sai5: sai5grp { + fsl,pins =3D < + MX8ULP_PAD_PTF26__I2S5_TX_BCLK 0x43 + MX8ULP_PAD_PTF27__I2S5_TX_FS 0x43 + MX8ULP_PAD_PTF28__I2S5_TXD0 0x43 + MX8ULP_PAD_PTF24__I2S5_RXD3 0x43 + >; + }; + pinctrl_typec1: typec1grp { fsl,pins =3D < MX8ULP_PAD_PTF3__PTF3 0x3 --=20 2.34.1