From patchwork Tue Oct 22 05:29:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "S.J. Wang" X-Patchwork-Id: 13845111 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 72877D1CDA0 for ; Tue, 22 Oct 2024 05:24:17 +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:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ipCLY1pO2CfqUcxxKLSMtVz20lU07W7JJkSZX/zosDI=; b=qFpyaWq6Mg9gmjkZiOkycj9Kcv g84jPG4qi/5zs94MuSyNtzXZLkj7VjkJeR9yat3OlsVdWbM+sHpHeNI1R07iCzYUKFHmZjCO4SGC1 Hw05vs/KAnVv3zcbeRwDxey2I6k1HKrIqiXBEtSO/pBwU7qulWZpQzJqroGfepihPBLJYKquI2nJM LJxCnxYpPe/MZIdjDVJjFniLBuk94OjWAMcSVk7UbP6cIpwq8moRYcofvbQnCzSlC2dNUJGHT2olK /xn2ugLZ3funLfWXJgv9m1QQnfhPlSWSAoqsRVw+caeNYiP9r9ZipArtQRTD1Pxkk5oYBSURXE36g 9jz/Aq7Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t37NF-00000009dlu-1vAv; Tue, 22 Oct 2024 05:24:05 +0000 Received: from mail-vi1eur03on2061d.outbound.protection.outlook.com ([2a01:111:f403:260c::61d] helo=EUR03-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t37Ix-00000009d9r-0fh9 for linux-arm-kernel@lists.infradead.org; Tue, 22 Oct 2024 05:19:40 +0000 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> X-ClientProxiedBy: SI1PR02CA0054.apcprd02.prod.outlook.com (2603:1096:4:1f5::13) To VI1PR04MB7055.eurprd04.prod.outlook.com (2603:10a6:800:123::21) 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: 36vw4RX3XKPsUEBiiP2BY9MdtimYnu5M/f7e+7Oz5xE36KO6n7VfS6OgmybteWFTMBn6uN/GIEUwWDvqWdbWmcJqYp/qVH8ei+XG/pNobbJ5tVKsLO28+3O0E5igiTBZQAIENjXZuZ/c1IMMw+L/lJ7oLikxYvZUYsu5sl3qrsqOaqHgpYQ2U2juUgsdzjGgsa457WtnekXuodv1UEzX1uLjqD8eM8drWPuZKMvov+91Y0O07gjN0mNuIgfT+VnByOH5+6Und+5/uE4HuevH3TMI7EsnBC4wI8OoiaM2E45VAsWMzz63AO36Do7uQY4HeT2L2yX/IKM3M9WNtuD54DCJs8dKpKWcUIAX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;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: p7KDOhtWFC6V8ibwFbKCKqBXXhWAnjByvZLQyPpPcEUH/683e1/BLFqGLg+uDvGO0klzg0fugQoAXkh1L9QijrBmlf03Ot1XJuRe5cNLIJFafZNNnoIbdgwl2TcSaKauM4XewleJ2Xrj3NtEQiVyrd5Gv3fQO2g+I8LM+XGDE+wuK1h+eASnhN2Ovy0pUpC8MUWBjB9Qo8NdLw/CYYiU+T67qTbj0g6u0j+QwDuZEmABJw2d3gKuTC1z8esxrqZqvloXMCcnDO7lmwGasfcc3WioO5AYPDaqnJUYsGevrTAVQtD94CyS2Jvh+MYVMuplbinEKUDEi3L1K4CuIt8R07R5In+T+cJfrjQBK2vRtFGmdrGkwUp1EKoC0Vio3Bc02QfxFCD+wd+q3KNOEDyxaDMhogY7oXckky+Eqg3ReaWQ3sdIQjccTidHnvVTvls5rp9wiOziLiVfsshjYIRyPsQTC01c9R/Ft476w2siTl4asMXSAawLgLTfl/WVYyi7+izDO9xb9F0HWqEf76vR1ltPZmizgjxZWBJcac1/IPrqOnbx2CIAuogcvS8ipNmGrfPixwyKJKMxja71AHEiegC0PavviXUIpKyGd7D0aOA+Y4P44HV3vY9kOtsZ85WRUYM+/ubyWy5qo2feglDnhL9vk3Bz4ee16mguDer/gzqFZ9FKDSt+U02KaNij06l3NmgS4rCecakVaK4FBF1Cg8xlxOpxQnDlLwwY1MMau+ZTw/J+gdfnxq6C2IrqnJm34M3zjsjIaBYJUa1LyYJZHO0ZtSPY2EL17ThUi5eH1cVE8llQE5TE3Ezf/loyVQscmHDYQ220QDIu1LwEepQvzzgl9DK22HkgxaXaDwjZSVrU7PXDwchTDtlpBasWRAQC1aKYNCZ0S3mNs+v/t/FGYUtn7CodfoP3H25BPPipTsAOlZhUM5WDMoMP0r4qSOASck2envCnnpuIWtiE+4Zspeqb6iWmf2RMoI2QjIMaqjTkFDv03JpwuW0aqDIPEPkVV2ZAjctRlknB73ya37aAwpRqnABzESZTLH+Z1d5g3FNy6huvDklZ7iRKhgJQVpiSeqAxKg+eLMkcSL/EPWrVEgrMiCrYMCrhLqUpnKnM0fgii5S6tSLiz8WrOFkXzH4R+nWsO5UopK3q/J4g1VnBismzEbR/5GL0tU3hwLhg3mqRm/UEMadxKp2dqRxgnNWaJN3ViPU0D5aDK2+4wGBcCP4GvhTjwF2etRWec8wZbUseKX9bq1Euf1yfo/FHdNxC0ZuKalIQDwdc9wi52WjnEOl34lx7Q1M3jsl6BC/AxKz1wh5sNVV+7i84VFUaXAIvA6kxyFrNs/349dM9e+Wf57L3piD/5PwttPoTA+KyAsQaGgsv8gWyaYTiVC69oBQlLPtn7vG5SRsUdeWlDqWU5hNBxXZL8pZfoohhaiZFe6+7DR6Qj4/qQ8txm7kIGMQcxkw0o9rUBVdxdKY4yzfWiRMsVQjI2bV7QmuJFrfUVFgWZU5s3XFkylLiz4TuzT81Ctp4kY+78CGWhxixZ1X1taKq3o9eDQdBICU2SGrg67w0PkDsoa+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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241021_221939_224787_F15CAB58 X-CRM114-Status: GOOD ( 11.20 ) 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 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/boot/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 = "NXP i.MX8ULP EVK"; compatible = "fsl,imx8ulp-evk", "fsl,imx8ulp"; + bt_sco_codec: bt-sco-codec { + #sound-dai-cells = <1>; + compatible = "linux,bt-sco"; + }; + chosen { stdout-path = &lpuart5; }; @@ -83,6 +88,25 @@ clock_ext_ts: clock-ext-ts { clock-output-names = "ext_ts_clk"; #clock-cells = <0>; }; + + 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 = <&sai5>; + dai-tdm-slot-num = <2>; + dai-tdm-slot-width = <16>; + }; + + simple-audio-card,codec { + sound-dai = <&bt_sco_codec 1>; + }; + }; }; &cm33 { @@ -153,6 +177,16 @@ ptn5150_2: typec@3d { }; }; +&sai5 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_sai5>; + pinctrl-1 = <&pinctrl_sai5>; + assigned-clocks = <&cgc1 IMX8ULP_CLK_SAI5_SEL>; + assigned-clock-parents = <&cgc1 IMX8ULP_CLK_SPLL3_PFD1_DIV1>; + fsl,dataline = <1 0x08 0x01>; + status = "okay"; +}; + &usbotg1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usb1>; @@ -282,6 +316,15 @@ MX8ULP_PAD_PTE13__LPI2C7_SDA 0x20 >; }; + pinctrl_sai5: sai5grp { + fsl,pins = < + 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 = < MX8ULP_PAD_PTF3__PTF3 0x3