Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp384073iog; Wed, 15 Jun 2022 04:24:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1upo2JL+ah81TrcXPKrhysX3n157UEum62PCstxM9Ge0CMVth5RknIRIKL94OnN9R3V+VVL X-Received: by 2002:a17:906:3087:b0:6f4:2901:608a with SMTP id 7-20020a170906308700b006f42901608amr8544252ejv.646.1655292264041; Wed, 15 Jun 2022 04:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655292264; cv=none; d=google.com; s=arc-20160816; b=eWiVlFqwwct9Hzi9fR6TK0L8J7ghZSS+61Uq5fDYu9+YF/7/3WxvWjPhuJVqZtoxXH roFbI5eRtwk2vrShq83nmmqYElk1yPdx03+OaPJ4oPxTBrdNeoQWmFoHMXmUQRwnb+aB LOjKve7bkyR+itq26bgO9E0XgCbn+T+8LeArP7BqJhB0QXKymTir0rEQti3Y3xiqovR2 b0DQmOKqaaLlbTg4NxCpJ6IFq28BJxsyizxXdTcFAp59x097bQ9AV+Hp7SEb7b0j9/Dm DyhYBU3YkHR4CnBBbLK/GlLXHe+PWHzAt3RaFU66o6XOql+gbui39Fr26mxtvL7zpS2L UPdQ== 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=nbwBxZqRbHNfndZAm4o62aParwGBaXtyLLFAji7sHUk=; b=aHlM7kzYxpx3oP2ZTg4Dczxw/5NFo75WpRfavE34AoobmoVuRqHCMqJHJG07mziAn0 zs4PbUfE5hwNs+o2G93IPBn51b0CeFKtxU8X3ucrmkxwAM+0bHomtkvJWWePbmqSOAuv vmxpZomzao8e/IQzyKEvpsekANjcb5Qyi8LHXoc64c2Hp4XRsm6BIeYWLmzG7twzuhx+ WxE8ww+V79u8dvLxmEvGyOY41cwK8qHbqOE0htd/VrOgzn4CLPKDYhTwrS8wq9kQFpo7 /8D/RPTxWC1faGCXDaGQVS0l8AdYGx81YUTSVqfoxk0gsJS1Lg8/H07wDQnuT8p+auOE LE4Q== 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 ss28-20020a170907c01c00b007123913a0b3si2584669ejc.931.2022.06.15.04.23.58; Wed, 15 Jun 2022 04:24:24 -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 S1348624AbiFOK3v (ORCPT + 99 others); Wed, 15 Jun 2022 06:29:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347564AbiFOK3i (ORCPT ); Wed, 15 Jun 2022 06:29:38 -0400 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B71C3F8B6; Wed, 15 Jun 2022 03:29:37 -0700 (PDT) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 3616B200CD9; Wed, 15 Jun 2022 12:29:36 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id F3FF2200CD6; Wed, 15 Jun 2022 12:29:35 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id E87271820F57; Wed, 15 Jun 2022 18:29:34 +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 2/3] arm64: dts: imx8mq-evk: add bt-sco sound card support Date: Wed, 15 Jun 2022 18:15:33 +0800 Message-Id: <1655288134-14083-3-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655288134-14083-1-git-send-email-shengjiu.wang@nxp.com> References: <1655288134-14083-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..c4375c95facb 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>; }; + bt_sco_codec: bt_sco_codec { + #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 = <&bt_sco_codec 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