Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2445086iog; Sun, 19 Jun 2022 18:16:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uqkBLYoLGOnyR4rOeT2c2g7O58VYZscYERulyHbQvkBByFWDrhEBM61jEMPc7YNNV7Cx1N X-Received: by 2002:a17:902:d484:b0:167:770b:666 with SMTP id c4-20020a170902d48400b00167770b0666mr21429004plg.148.1655687792072; Sun, 19 Jun 2022 18:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655687792; cv=none; d=google.com; s=arc-20160816; b=cnvkXi/R6l7R2ria0wE+Re6oEPDcXAYnK5jS30A7FBWqf6179SX16+odDxaV67jjds WC3/03AQuOdkxEJcWn5HBoHLI3D0wbtofW8DzvNQjQOruwlmc+obEKtwopvuFFdMzzl2 BWVvxxfjotLZn7gpETJeygAMKo5npIDCeKHb6MnyTnx2ABGIXJxlCxbQp8cc5gsSn++A quxncJPU4fBD0Pk0PAQjPRuSEDhABrA4WtxRrNL1Fffg7sGrguBS56m214y5FJKtQ69v OyCyXTU6a4O8hunRSxEiQ3zNs06wboyaJ1US+g5xgc6Zx9ZZ9gCUMHzhCLNVv7fIuvap eOQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Obk7twUjsToOBUxhSx17Ou4I3j/aHJrEhiRNYIf/0Rk=; b=vSPgY9Vy+28KpF4ni3MwIhOb7M3zEiV/9Ywlrv2CHaRhniADUe6pRnuQryAvHTfz3Z Wb7lBKIeJnhPfSi8lpS/3xZFk0BkwiAPq3RmTk6DkksGYZEoy7Gu+Jg+fTqjh05rU/y4 kWGTszorm8eDfTx+HEbR+pSree+y1T6uvJPTqE9hUt8b3xT2dnFb9DI9KpjiHQYRxv65 SMF11ON6ug76Pl2kH30NpS1Oz+UG2Fy5hITr2GVkYsPBnFWy1kgXaQNZWQEbTL2Ysx2G QrOo8v6xo4IsvZth+EuIvulxFQrlQWjkwhiCKWHrsotxYFdm1jTDeqAv2EuABNB74tD3 sY3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Pmm/Mn4/"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x4-20020aa79564000000b0052517c623e5si4928861pfq.72.2022.06.19.18.16.20; Sun, 19 Jun 2022 18:16:32 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Pmm/Mn4/"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238483AbiFTArj (ORCPT + 99 others); Sun, 19 Jun 2022 20:47:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238252AbiFTArW (ORCPT ); Sun, 19 Jun 2022 20:47:22 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64EAA101EA; Sun, 19 Jun 2022 17:45:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id EB8F4CE0F77; Mon, 20 Jun 2022 00:45:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1EDD4C385A9; Mon, 20 Jun 2022 00:45:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655685930; bh=stXGpXrhG+pcsvrn9jWc5b3YRIiB1eD8e+G9Psfu5uE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Pmm/Mn4/NiOrzcuBUBrJ72ub/Ds+jDz4eZr100wX6UHVCybiODGDiwOm6muJadb37 VWIp5TpH6LY5AXIU7LDidGD+J5YkLssdZF8PHfnx8KD/lYYAaZ+l/3ussQCaqIVgkQ fU59r8ua2WnqM02ZKumaFB2JbZG22jjWrl4tf0x0KggAIGpd56KrVJMUdXYIDhbqN5 aKAIT42ZygJP8JOS5kRnyMxkNKQTur1OgRlgN5qTFlRxCwWhwXOoYW5UDsspAfcj9e aAVCaryAahbTeL0JuSbn9+/BZ/4Tc+3rpushFGh3JYa/MIvS9fILvq85t+uICLMRhc IS/pfOoUNtp/g== Received: by mail-oi1-f176.google.com with SMTP id i25so11913536oii.7; Sun, 19 Jun 2022 17:45:30 -0700 (PDT) X-Gm-Message-State: AJIora8LbLnmUOIrFNDG58P3UvkyQAfnyrV2cD8Y3DMWoYir/XH5SC5i SEw3UoVXb0sslR8aX+R1HBse+DRjIRt+v2nkbM8= X-Received: by 2002:a05:6808:3021:b0:2f7:4c5b:2783 with SMTP id ay33-20020a056808302100b002f74c5b2783mr10187952oib.53.1655685929270; Sun, 19 Jun 2022 17:45:29 -0700 (PDT) MIME-Version: 1.0 References: <1655288134-14083-1-git-send-email-shengjiu.wang@nxp.com> <1655288134-14083-2-git-send-email-shengjiu.wang@nxp.com> <20220620004116.GP254723@dragon> In-Reply-To: <20220620004116.GP254723@dragon> From: Shawn Guo Date: Mon, 20 Jun 2022 08:45:18 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] arm64: dts: imx8mm-evk: add bt-sco sound card support To: Shengjiu Wang Cc: Rob Herring , Sascha Hauer , Sascha Hauer , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, Linux Kernel Mailing List , linux-arm-kernel@lists.infradead.org, shengjiu.wang@gmail.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Mon, Jun 20, 2022 at 8:41 AM Shawn Guo wrote: > > On Wed, Jun 15, 2022 at 06:15:32PM +0800, Shengjiu Wang wrote: > > Add bt-sco sound card, which supports wb profile as default > > > > Signed-off-by: Shengjiu Wang > > --- > > arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 43 +++++++++++++++++++ > > 1 file changed, 43 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi > > index c42b966f7a64..d99b562bb00e 100644 > > --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi > > +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi > > @@ -75,6 +75,11 @@ > > linux,autosuspend-period = <125>; > > }; > > > > + bt_sco_codec: bt_sco_codec { > > Generic node name, maybe 'audio-codec'? I see. There is already an 'audio-codec' node for wm8524. Maybe 'audio-codec-bt-sco'? In any case, hyphen is more recommended than underscore in node names. Shawn > > + #sound-dai-cells = <1>; > > + compatible = "linux,bt-sco"; > > + }; > > + > > wm8524: audio-codec { > > #sound-dai-cells = <0>; > > compatible = "wlf,wm8524"; > > @@ -107,6 +112,25 @@ > > clocks = <&clk IMX8MM_CLK_SAI3_ROOT>; > > }; > > }; > > + > > + 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 = <&sai2>; > > + dai-tdm-slot-num = <2>; > > + dai-tdm-slot-width = <16>; > > + }; > > + > > + simple-audio-card,codec { > > + sound-dai = <&bt_sco_codec 1>; > > + }; > > + }; > > }; > > > > &A53_0 { > > @@ -346,6 +370,16 @@ > > status = "okay"; > > }; > > > > +&sai2 { > > + #sound-dai-cells = <0>; > > + pinctrl-names = "default"; > > + pinctrl-0 = <&pinctrl_sai2>; > > + assigned-clocks = <&clk IMX8MM_CLK_SAI2>; > > + assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>; > > + assigned-clock-rates = <24576000>; > > + status = "okay"; > > +}; > > + > > &sai3 { > > pinctrl-names = "default"; > > pinctrl-0 = <&pinctrl_sai3>; > > @@ -494,6 +528,15 @@ > > >; > > }; > > > > + pinctrl_sai2: sai2grp { > > + fsl,pins = < > > + MX8MM_IOMUXC_SAI2_TXC_SAI2_TX_BCLK 0xd6 > > + MX8MM_IOMUXC_SAI2_TXFS_SAI2_TX_SYNC 0xd6 > > + MX8MM_IOMUXC_SAI2_TXD0_SAI2_TX_DATA0 0xd6 > > + MX8MM_IOMUXC_SAI2_RXD0_SAI2_RX_DATA0 0xd6 > > + >; > > + }; > > + > > pinctrl_sai3: sai3grp { > > fsl,pins = < > > MX8MM_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC 0xd6 > > -- > > 2.17.1 > >