Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5937438pxb; Mon, 14 Feb 2022 11:09:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJywWkfM9tu7g7nLqwZRo88B3cDkufbp5ptIGELLpX5rSqjUIlIgPrVroqJx5WGbIXMkueAt X-Received: by 2002:a05:6a00:1d8b:: with SMTP id z11mr493718pfw.17.1644865750401; Mon, 14 Feb 2022 11:09:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644865750; cv=none; d=google.com; s=arc-20160816; b=sJWwT0S8GzIA0HK/wmp4dvCCuOqTj71kcmIonfZTu6yLeDjKpjGq1c4eCxsZ8ZgO5C hoXJUOdIoIFh93EAWiEoi9+/OKzKX6qNozJ1IBCRSFDH1PRKsfDyCJd0fJwmjwak3O9F TY4B0VTJibrLrO7AQ9swIEJK1lHw40KIHTt/EQQrc0QWiCLAR6JzU7ktJLJv7f29zzVk JW6OrkzE2J9bMZNt6rU2EWJQYvIyPjcJLz9FoujUDAt+4B/83ZQajkoCru9fEt35Xx4C Y8bpoTvyo2lk76I+1agwdY/mXfaAcmEKusA7e4YaiZIJzbz3TEZkRBo0KrzPZVLzvWi9 fdqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=HG8jtXPp4u738MPUQ2bwMIVf9F15iWa12x53RAQ//TA=; b=yqd3fjF5PT29HCWVqbHO3HyAM7jC40YugDEHjyV2v9FZHEoi+7HoEJCbmE+FwHWwLC uzbg6flRyu4p1xatNNdgnlWc+2VfvaHepMUd2dgrb9sJXsdPc/gdME0tU29l5l2zGhhr 4p3P2lUb3ubcgDpfxwQcKwacvoEQh5TojuMalok/Uf1OQYmt3eQazbiKuHsGsyUYiVYd 8xebzGTNPBKssFEhNS4cPm36w9sZyftVSAe3Z5xuTcYr/p5fqq9wKi4LM5/1ejFWJ2gW YN0KjGwAFol3jlHhiYn0PTrL7ewChbGctYoz0lBRvqLMYadGpVf3bLTzw7DarZacad8C hlWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=hVWzgIGj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k12si440336pgq.733.2022.02.14.11.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 11:09:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=hVWzgIGj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7875A9494E; Mon, 14 Feb 2022 11:05:07 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352126AbiBNLtT (ORCPT + 99 others); Mon, 14 Feb 2022 06:49:19 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347648AbiBNLsq (ORCPT ); Mon, 14 Feb 2022 06:48:46 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B11492BE1; Mon, 14 Feb 2022 03:45:24 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: adalessandro) with ESMTPSA id E0FFE1F43899 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1644839123; bh=G1V33pJNQ00HMRMQYtSYymxMctLJqbcyW6mYO6jW5gU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=hVWzgIGjpfSN+YrqXM2QuDqzogthlRnw0LFqU4Sm4Yf4L59rjF6cwKpZSZYCcSUSJ aZxbaILEYFNfUPVUXzYvhlvn8+gDLuquyhDdQ0z4xNh8xEG/0q5+HDYKrwRR1WMsZo qne8paHgh/oTqkgeQYtfj4YkuYl6gVUPIty5lDg0tweFhstpU6SScElApNXsG6ZUTX 8YuRYsHCyB0eJ+uToMEtlzQHVBUDswYxyIJ/+F25fuAXZRO5q7b2FIS7zY2KwxU2t+ pFQzD+ekeZvUREfAi3TDqX8wyMVDnM75x44kF1avwg71ThC0Xhg4cJywMvdCTPe8Mh gQOjec/ycAMOQ== Message-ID: Date: Mon, 14 Feb 2022 08:45:13 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: [PATCH v2 2/2] arm64: dts: imx8mn-bsh-smm-s2pro: Add tlv320aic31xx audio card node Content-Language: en-US To: Shawn Guo 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 References: <20220210134049.32576-1-ariel.dalessandro@collabora.com> <20220210134049.32576-2-ariel.dalessandro@collabora.com> <20220213041823.GL4909@dragon> From: Ariel D'Alessandro In-Reply-To: <20220213041823.GL4909@dragon> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no 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 Hi Shawn, Thanks for the review, will address all the below changes in v3. Regards, Ariel On 2/13/22 01:18, Shawn Guo wrote: > On Thu, Feb 10, 2022 at 10:40:49AM -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..3621354b4a92 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 >> >> / { >> 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>; > > Double spaces before '='. > >> + fsl,asrc-format = <10>; >> + status = "okay"; >> +}; >> + >> +&i2c2 { >> + clock-frequency = <400000>; >> + pinctrl-names = "default"; >> + pinctrl-0 = <&pinctrl_i2c2>; >> + status = "okay"; >> + >> + codec: tlv320dac3101@18 { > > 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: dac_rst { > > Name the node more in the same style as other pinctrl nodes. > > Shawn > >> + 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 >>