Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2502131iog; Sun, 19 Jun 2022 20:21:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vUlPvDjlOVYoZ2oXQQBH3O5wPMTdZYI3ceh56Etg0Rz41WAbPpuBOcY84qSfrO3XRJJ7NV X-Received: by 2002:a05:6402:5206:b0:42e:1279:cc8b with SMTP id s6-20020a056402520600b0042e1279cc8bmr27592071edd.186.1655695293575; Sun, 19 Jun 2022 20:21:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655695293; cv=none; d=google.com; s=arc-20160816; b=gwzjOmhuG0+YPb++aBeH2G+KvC+tdJNfwEJb82H3w/+QmXKcankBd0xRg53tgBZ757 fb/K3/A57lPDI/a3PLRlm14MBFx28b1Hnt6fYRM1UjoDDTpfvFNitjsazigeAtwo5OpW Bd95cYHDHCYn+VzBOGeCLr9rm3H2KlI3xzaS9C0C8qivqRstegvU7+sankHPw+6GYKRR kv+vD/p5xHdblHdbzRUObGaB0aJDWQRRQVtwB+2kd6zJhoHE2d/c3jrOjtXS3Pt3gAa7 6Ti7jFce+VP1Ikmi9Q3Xe9scWTTsXoGhu5uIOFrsuNXGoe6qg0+yyrCwZ5WyxIHeGPae kjGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=joDX0oyDnEqViBzpBTywQZ11cq4VJOFjvNnELE0tRqk=; b=QdAhaUFWwG5zZHeyYomEH+MYxBaNrlniEdBVmQ/EwRHwzdYx8MHyWUtOJTXHab/r7R rawTz3fRnpw/X7I+tkAfZ63HA/BZc1S90fumXzqX93Qj8nGUgsjHRDVCMX9vXfmCUOEC X31/8973FqvFBMh65UOWcXxpvHhJmgQYU1HtXNjjWjqnYyze16QmT+rGvA/zcKgjRt+p 7ZRSA8khjwh0nh4l98jhob0vS75dgAzCW9joREeyTWe0oDCkFs1MpmJsJznCWdXG+le/ YGMqvrBRSgE/Tjyhe4KaBUJVrJAiR0HTJsvP9B/v/Z1Lfig4+/6FgQ585LOUgfrds/PD 4gqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x7-20020a056402414700b004357f8bc462si2547880eda.272.2022.06.19.20.21.07; Sun, 19 Jun 2022 20:21:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235284AbiFTCht (ORCPT + 99 others); Sun, 19 Jun 2022 22:37:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbiFTChp (ORCPT ); Sun, 19 Jun 2022 22:37:45 -0400 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E148BC30; Sun, 19 Jun 2022 19:37:45 -0700 (PDT) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A9E141A05F1; Mon, 20 Jun 2022 04:37:43 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 5E28E1A05E7; Mon, 20 Jun 2022 04:37:43 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id B17281802183; Mon, 20 Jun 2022 10:37:41 +0800 (+08) From: Shengjiu Wang To: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: shengjiu.wang@gmail.com Subject: [PATCH v2 2/3] arm64: dts: imx8mq-evk: add bt-sco sound card support Date: Mon, 20 Jun 2022 10:23:32 +0800 Message-Id: <1655691813-19878-3-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655691813-19878-1-git-send-email-shengjiu.wang@nxp.com> References: <1655691813-19878-1-git-send-email-shengjiu.wang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add bt-sco sound card, which supports wb profile as default Signed-off-by: Shengjiu Wang --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 43 ++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts index 99fed35168eb..993cd91e1153 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts @@ -71,12 +71,36 @@ linux,autosuspend-period = <125>; }; + audio_codec_bt_sco: audio-codec-bt-sco { + #sound-dai-cells = <1>; + compatible = "linux,bt-sco"; + }; + wm8524: audio-codec { #sound-dai-cells = <0>; compatible = "wlf,wm8524"; wlf,mute-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; }; + 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 = <&sai3>; + dai-tdm-slot-num = <2>; + dai-tdm-slot-width = <16>; + }; + + simple-audio-card,codec { + sound-dai = <&audio_codec_bt_sco 1>; + }; + }; + sound-wm8524 { compatible = "simple-audio-card"; simple-audio-card,name = "wm8524-audio"; @@ -386,6 +410,16 @@ status = "okay"; }; +&sai3 { + #sound-dai-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai3>; + assigned-clocks = <&clk IMX8MQ_CLK_SAI3>; + assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>; + assigned-clock-rates = <24576000>; + status = "okay"; +}; + &snvs_pwrkey { status = "okay"; }; @@ -548,6 +582,15 @@ >; }; + pinctrl_sai3: sai3grp { + fsl,pins = < + MX8MQ_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC 0xd6 + MX8MQ_IOMUXC_SAI3_TXC_SAI3_TX_BCLK 0xd6 + MX8MQ_IOMUXC_SAI3_TXD_SAI3_TX_DATA0 0xd6 + MX8MQ_IOMUXC_SAI3_RXD_SAI3_RX_DATA0 0xd6 + >; + }; + pinctrl_spdif1: spdif1grp { fsl,pins = < MX8MQ_IOMUXC_SPDIF_TX_SPDIF1_OUT 0xd6 -- 2.17.1