Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3618222pxb; Mon, 21 Feb 2022 01:59:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHF2W7jububmrrrh1xb3od2j06opwkQc8O9fpvDTMzVSp+lAbNvY98edk/p3guzGF1oOq2 X-Received: by 2002:a17:903:22c4:b0:14f:9f4b:a50b with SMTP id y4-20020a17090322c400b0014f9f4ba50bmr7848000plg.46.1645437545683; Mon, 21 Feb 2022 01:59:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645437545; cv=none; d=google.com; s=arc-20160816; b=yT6uo8vF3AWFdXuyvs/T4gbpzp71jQEot1xPw+qroZeJZWI3Gn3AejVNoZiQZpT1Pk zZgH1xsCNWP/80ZItH/KVGTh9VA79rg4QsiLnqfD61NJVAlCHL8GAfkZ+oGLYe5YZ0iO BaTEk/4tmizj5V9jnpUuMEtGgRI0a0qTVCNux1QfyKwIZTCrpJO2Z47ffJQv1EeqWbxo gLrtseKEAPtJ4g/4SFkBfMBzLdiuYsc/OFUeP5/8jjdyDccA0HTKoS+G7om/CJsoA9Ui cRMJpH6Yj6Kexd64ATWozFcVaRXKgdjgczFqd430mI0vdlECGzNiJv5he0dV8rn7n7Wo PT3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YxO8qGs0d28/WLU0Ow9QySUo8Q8KKoi8pI5VI/AHb4g=; b=0/A8XNaQpFo7y0MjbEwg9qXdbNRYDM3xQYNka+zmN37LDo1bA0s00j6mp2InC8uAL6 OSEpHZ5QUhRqh9DFgs44JOeqnA0gwAWOhHgOgmFoWggGrkFaUcLRkxqJ5QffoCppGQ+R yp8++Cs35ptRUMOnGVWdbLCCbvs5OCUAkBaae/Oi15ECvC79/AUbK5n51QBVJFoXj6xE zy2ikiFgXetFp3XjHMS8FTH9hoxz+hkwTAfdKf8SLn0iX5Z1Ewg13jPVjATEgF0K13Is avC/KiNZAoA9k4/YBn62Oz+u6JhS0bYjmty9J98Xwn9dmvAHygfdTVDhX1R58F/TPwDf CSbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fF6eKmzU; 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 s12-20020a17090a5d0c00b001b9975f431esi5760083pji.158.2022.02.21.01.58.52; Mon, 21 Feb 2022 01:59:05 -0800 (PST) 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=fF6eKmzU; 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 S244696AbiBUEAg (ORCPT + 99 others); Sun, 20 Feb 2022 23:00:36 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:51506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244303AbiBUEAd (ORCPT ); Sun, 20 Feb 2022 23:00:33 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 572F251E76; Sun, 20 Feb 2022 20:00:10 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id E091561182; Mon, 21 Feb 2022 04:00:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4B6EC340E9; Mon, 21 Feb 2022 04:00:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645416009; bh=EkGuGgzb5N9FmkTHBRN2CjL/sAm46fYFQB1dTF/2VrY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fF6eKmzUMUxMjiHrZLLWNjEU5kU7w4uFBKc36H0/lCPmE6dj982vcoC/Wq4R33QTm B8oVFSRbSS4uUa0DDkVGeJmx9xLCX5qZlnIcfWJ7pBx/PgLBQFjTMmHu1pacA8BHTh 6EwZJ9ke1lDM4Q3rOx6infC88/VJr+9vjy+eMgrhtDaEoGJ/UWHL+i5wPOZFinksth zMYHPmwyNy1AcSm+rvcKR3sraiWUjIY9X3UdMb1ZdRMStNGl1dwimnjTfRbfJ8wbb8 8NQKLI2hEI+JFW0OhG3rd3J23zW+m+9GVrbJ9Jscf8KuWx+I/G7I1cN/jYE8OywmeM oF+/cwDOEHO7w== Date: Mon, 21 Feb 2022 12:00:03 +0800 From: Shawn Guo To: Ariel D'Alessandro Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org, kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, broonie@kernel.org, festevam@gmail.com, krzysztof.kozlowski@canonical.com, lgirdwood@gmail.com, michael@amarulasolutions.com, robh+dt@kernel.org, s.hauer@pengutronix.de Subject: Re: [PATCH v3] arm64: dts: imx8mn-bsh-smm-s2pro: Add tlv320aic31xx audio card node Message-ID: <20220221040003.GI2249@dragon> References: <20220214120307.15665-1-ariel.dalessandro@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220214120307.15665-1-ariel.dalessandro@collabora.com> X-Spam-Status: No, score=-7.1 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, Feb 14, 2022 at 09:03:07AM -0300, Ariel D'Alessandro wrote: > BSH SystemMaster (SMM) S2 PRO board comes with an audio card based on > tlv320aic31xx family codec. > > The audio card exposes two playback devices, one of them using the EASRC > (Enhanced Asynchronous Sample Rate Converter) module. Note that this > would require SDMA and EASRC firmware in order to work. > > Signed-off-by: Ariel D'Alessandro > Signed-off-by: Michael Trimarchi > --- > .../dts/freescale/imx8mn-bsh-smm-s2pro.dts | 94 +++++++++++++++++++ > 1 file changed, 94 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2pro.dts b/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2pro.dts > index c6a8ed6745c1..44e2635d3096 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2pro.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2pro.dts > @@ -7,6 +7,7 @@ > /dts-v1/; > > #include "imx8mn-bsh-smm-s2-common.dtsi" > +#include Ping me when this header lands on Linus's tree. Shawn > > / { > model = "BSH SMM S2 PRO"; > @@ -16,6 +17,69 @@ memory@40000000 { > device_type = "memory"; > reg = <0x0 0x40000000 0x0 0x20000000>; > }; > + > + sound-tlv320aic31xx { > + compatible = "fsl,imx-audio-tlv320aic31xx"; > + model = "tlv320aic31xx-hifi"; > + audio-cpu = <&sai3>; > + audio-codec = <&codec>; > + audio-asrc = <&easrc>; > + audio-routing = > + "Ext Spk", "SPL", > + "Ext Spk", "SPR"; > + mclk-id = ; > + }; > + > + vdd_input: vdd_input { > + compatible = "regulator-fixed"; > + regulator-name = "vdd_input"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + }; > +}; > + > +&easrc { > + fsl,asrc-rate = <48000>; > + fsl,asrc-format = <10>; > + status = "okay"; > +}; > + > +&i2c2 { > + clock-frequency = <400000>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_i2c2>; > + status = "okay"; > + > + tlv320dac3101: audio-codec@18 { > + #sound-dai-cells = <0>; > + compatible = "ti,tlv320dac3101"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_dac_rst>; > + reg = <0x18>; > + > + ai31xx-micbias-vg = ; > + > + HPVDD-supply = <&buck4_reg>; > + SPRVDD-supply = <&vdd_input>; > + SPLVDD-supply = <&vdd_input>; > + AVDD-supply = <&buck4_reg>; > + IOVDD-supply = <&buck4_reg>; > + DVDD-supply = <&buck5_reg>; > + reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; > + > + clocks = <&clk IMX8MN_CLK_SAI3_ROOT>; > + clock-names = "mclk"; > + }; > +}; > + > +&sai3 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_sai3>; > + assigned-clocks = <&clk IMX8MN_CLK_SAI3>; > + assigned-clock-parents = <&clk IMX8MN_AUDIO_PLL1_OUT>; > + assigned-clock-rates = <24576000>; > + fsl,sai-mclk-direction-output; > + status = "okay"; > }; > > /* eMMC */ > @@ -30,6 +94,36 @@ &usdhc1 { > }; > > &iomuxc { > + pinctrl_dac_rst: dacrstgrp { > + fsl,pins = < > + MX8MN_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x19 /* DAC_RST */ > + >; > + }; > + > + pinctrl_espi2: espi2grp { > + fsl,pins = < > + MX8MN_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x082 > + MX8MN_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x082 > + MX8MN_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x082 > + MX8MN_IOMUXC_ECSPI2_SS0_ECSPI2_SS0 0x040 > + >; > + }; > + > + pinctrl_i2c2: i2c2grp { > + fsl,pins = < > + MX8MN_IOMUXC_I2C2_SCL_I2C2_SCL 0x400000c3 > + MX8MN_IOMUXC_I2C2_SDA_I2C2_SDA 0x400000c3 > + >; > + }; > + > + pinctrl_sai3: sai3grp { > + fsl,pins = < > + MX8MN_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC 0xd6 > + MX8MN_IOMUXC_SAI3_TXC_SAI3_TX_BCLK 0xd6 > + MX8MN_IOMUXC_SAI3_TXD_SAI3_TX_DATA0 0xd6 > + >; > + }; > + > pinctrl_usdhc1: usdhc1grp { > fsl,pins = < > MX8MN_IOMUXC_SD1_CLK_USDHC1_CLK 0x40000090 > -- > 2.34.1 >