From patchwork Mon Nov 8 15:27:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 1732 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 1BD193F159 for ; Mon, 8 Nov 2021 16:27:50 +0100 (CET) Received: by mail-wr1-f69.google.com with SMTP id p17-20020adff211000000b0017b902a7701sf4150004wro.19 for ; Mon, 08 Nov 2021 07:27:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1636385269; cv=pass; d=google.com; s=arc-20160816; b=sqo44SerZkIauuHXuJuEJDsGy8lcFcEXcY6UZ9QU2nqEJNpAo1K93kOCJFxgvWHQkh bmI9dZvLpVJrleJFXWA6A97RZ8kd9sm/kq8Gpw/I5wi/1YPaNEzdQYqqsdr1Q21wWaR0 j9g9yt0pqBfR9QvAjw1zldCmWD1r0OkjQPKikt1UKtFoBzuM/BfB696RCdfj77+CtSE9 TFc4Zvh/b829wDC3eqMDiLbhwUMMDAsrHAtCjvHbKkfj9k3yqdN0VsGKKwB152JyOaCv RvuudATmJP8pTBr6FD3oH733TVtlP1qege4uxHZ7nI/bfX+2elGmnh2325tDh83L4jZY z4Bw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=UZAND2P0f8ueuCfx9B+vIkjO629NAR7zp4sz5zNhdDY=; b=wEZVXiMoKMM7Lznz50QOdqJRKZS51namZw0YIscPsIaB01AOS170vbsEiJh4npbMjP jF/hsvXhCSy4V75Kn5/it4y3eZ1pb8g9YKALRRvBY1w3N5FfIs4aLck+JBxnq1eSyVvA ZH8yEN21AzgOwZqv6P+iBME17FXRyEptxx0ZRUB/qMTFpFBsl0UD+ZOBM0p90BSwz1rt rmTXnoVGevX65XKQl9HUtTo6rDj58CdaQXP83lfgURROcl5BGtahGVCZU/fqp0AYuTUm qPZ2US57DHlEkVnRmFWp0vf+bmIRyu6ec8tY/uGJSB3x0PpEBihQTGyAfZ5X+7nUNc4T pTFA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=F0W8JY0Z; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=UZAND2P0f8ueuCfx9B+vIkjO629NAR7zp4sz5zNhdDY=; b=PqNjBsuiw0Tq7CD0Id5xwDrZV+STZecPAVH4GXXseu9Bs3Q7tkBkpuOGHi2+7SifXG fec7IBA7o+zULBvb2qdApQSRWU+r6IvfKFQwEHr4jcToM3tMW0DYUG+vSf9AvX/WS604 wdK0hjcn7w92cqDzA4+HOl6YU69Het/V7Y/ys= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=UZAND2P0f8ueuCfx9B+vIkjO629NAR7zp4sz5zNhdDY=; b=jLH6Afl1ht7Ux9IObZvGAI4bHErFz5mxSw392zwPL2DsPQ/jZ0QNihq1n3licaaUqd KP40pzPDy9XK2nxE7asfU3YNsQyWldvATK3DqHgmferlrvsD58wQw22qaUV8i31vTR4N 2WQn+relNiH5o1EyxBSZQFU4xf+bEVNMOkPM1jeCNp17jym5aT3l1i44qpRKThV/6/Pd WHZw13UPbw3yrE6ES1S0qQq519fSKbjEwDN/SMgeGVRgWYZCGZC4CefJB0tI9UwjkxKH 7rP2NV4K54gZo5P6jghDWTIeLIaDZ/nhSi2int7cgvC89c19CVLfmdb+CiD+nLTUQEgQ rYMQ== X-Gm-Message-State: AOAM532+DzSpFVjXYKGggzVwCQBb7uQueRPkyw3A83O6B69dNdEZh/Vg Xj4jheSCsFtTzRol7n2fTMKmF5Nr X-Google-Smtp-Source: ABdhPJzevqC444/PcBrZB4vbd4rJbUOJztnxjj99hUQt6cZVMLIdFS7mnz7nI+X0sgZEFcaR4aTGdg== X-Received: by 2002:adf:cf05:: with SMTP id o5mr620124wrj.325.1636385269749; Mon, 08 Nov 2021 07:27:49 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:3b8b:: with SMTP id n11ls3486695wms.2.canary-gmail; Mon, 08 Nov 2021 07:27:48 -0800 (PST) X-Received: by 2002:a05:600c:3b1b:: with SMTP id m27mr87009wms.125.1636385268527; Mon, 08 Nov 2021 07:27:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636385268; cv=none; d=google.com; s=arc-20160816; b=zmDRoTPiy3m+GYdNvPQMGxgn9JhWfEcsGHugcZ3AATlgdgzrleHmsWOwT7pK52kM24 T5Li7TGZTpumgTMP2nrSBNrDt200nPCzl7s1i/dV7Mu1y3V3XMGOB5QJvgJ4Zk+9+/Bz ZiXqKZIRvcMv7dCrmVo7M1JJ11ZUbaUY9DhhKEutqkuCKqwjYiaj35VjBtJNn9SFU+OS EgTysGI9dvbNY9XVlTeS9gjNwFL2bX+gb+TMKqTJzaJn0dNxhhqwdGwOcZoR4EXK3r9g ArHZBALWKk3Rtq5/FR/3meFP8CbglqeFjBHMeUCnRYgcRnGlGU9tsrvcBD+wRtHGyP5X zZ9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=AkxPQ+zGtzjWUEvEDMFx6AuIxHT4FxOagW5HLsqAaLc=; b=cXyZxVhm8LfysOh5slxQfeCXutHrDSk2bZ5m2KptJIfDzeYb94nAWvKoD9yfgyD+44 DhNK3fcbvOgan6bGfKL8mx0cdMGuKJteXyI2f3X2wMfMuElOG/3+RNC91UAiBCsqglDK V2CDHaR3EWaPR+dSUlk1R4FwEPYEn7eixHsOokBXNRkCsy8Nddj90+XiEcvbwldGTEqW OWEAXvHkQI+g1/ELc6+0lx7Mxl7QupJC+Be1GO84BZ7jy3I36QtMYT2Jk/iqtCry60ud 8mxci+n6tCVAAF8FJMe2E9yeK7aLdxjYZNRkYT3rUtDaAPzaNiV4rjNuiKCWBkBGsGFC ngUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=F0W8JY0Z; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id p22sor9284034wmi.21.2021.11.08.07.27.48 for (Google Transport Security); Mon, 08 Nov 2021 07:27:48 -0800 (PST) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a1c:80c5:: with SMTP id b188mr102657wmd.57.1636385268129; Mon, 08 Nov 2021 07:27:48 -0800 (PST) Received: from panicking.amarulasolutions.com ([2.198.173.211]) by smtp.gmail.com with ESMTPSA id y10sm21549729wrd.84.2021.11.08.07.27.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Nov 2021 07:27:47 -0800 (PST) From: Michael Trimarchi To: Ariel D'Alessandro Cc: linux-amarula@amarulasolutions.com, Anthony Brandon Subject: [PATCH V2 1/3] ASoC: fsl: add smm-s2-pro audio driver Date: Mon, 8 Nov 2021 16:27:43 +0100 Message-Id: <20211108152745.1974834-1-michael@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=F0W8JY0Z; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The smm-tlv320aic31xx driver implement audio support of smm-s2-pro BSH system master. Signed-off-by: Michael Trimarchi --- sound/soc/fsl/Kconfig | 11 ++ sound/soc/fsl/Makefile | 2 + sound/soc/fsl/smm-tlv320aic31xx.c | 308 ++++++++++++++++++++++++++++++ 3 files changed, 321 insertions(+) create mode 100644 sound/soc/fsl/smm-tlv320aic31xx.c diff --git a/sound/soc/fsl/Kconfig b/sound/soc/fsl/Kconfig index 8e05d092790e..74430bc1e640 100644 --- a/sound/soc/fsl/Kconfig +++ b/sound/soc/fsl/Kconfig @@ -364,6 +364,17 @@ config SND_SOC_IMX_CARD with OF-graph DT bindings. It also support DPCM of single CPU multi Codec ststem. +config SND_SOC_SMM2_CARD + tristate "SoC Audio Card for SMM2 pro BSH device" + depends on OF && I2C + select SND_SOC_FSL_EASRC + select SND_SOC_TLV320AIC31XX + select SND_SOC_IMX_PCM_DMA + select SND_SOC_FSL_SAI + select SND_SIMPLE_CARD_UTILS + help + This option enables audio sound card support for BSH SMM2 Pro + endif # SND_IMX_SOC endmenu diff --git a/sound/soc/fsl/Makefile b/sound/soc/fsl/Makefile index b54beb1a66fa..e85d7f6be709 100644 --- a/sound/soc/fsl/Makefile +++ b/sound/soc/fsl/Makefile @@ -72,6 +72,7 @@ snd-soc-imx-audmix-objs := imx-audmix.o snd-soc-imx-hdmi-objs := imx-hdmi.o snd-soc-imx-rpmsg-objs := imx-rpmsg.o snd-soc-imx-card-objs := imx-card.o +snd-soc-smm-tlv320aic31xx-objs := smm-tlv320aic31xx.o obj-$(CONFIG_SND_SOC_EUKREA_TLV320) += snd-soc-eukrea-tlv320.o obj-$(CONFIG_SND_SOC_IMX_ES8328) += snd-soc-imx-es8328.o @@ -81,3 +82,4 @@ obj-$(CONFIG_SND_SOC_IMX_AUDMIX) += snd-soc-imx-audmix.o obj-$(CONFIG_SND_SOC_IMX_HDMI) += snd-soc-imx-hdmi.o obj-$(CONFIG_SND_SOC_IMX_RPMSG) += snd-soc-imx-rpmsg.o obj-$(CONFIG_SND_SOC_IMX_CARD) += snd-soc-imx-card.o +obj-$(CONFIG_SND_SOC_SMM2_CARD) += snd-soc-smm-tlv320aic31xx.o diff --git a/sound/soc/fsl/smm-tlv320aic31xx.c b/sound/soc/fsl/smm-tlv320aic31xx.c new file mode 100644 index 000000000000..3aa71031d859 --- /dev/null +++ b/sound/soc/fsl/smm-tlv320aic31xx.c @@ -0,0 +1,308 @@ +// SPDX-License-Identifier: GPL-2.0 +// +// BSH smm2-pro audio card +// +// Copyright (C) 2021 BSH Hausgeraete GmbH +// +// Author: Michael Trimarchi + +#include +#include +#include +#include +#include +#include +#include + +#include "fsl_sai.h" +#include "../codecs/tlv320aic31xx.h" + +/** + * struct smm_card_priv - Freescale Generic ASOC card private data + * @dai_link: DAI link structure including normal one and DPCM link + * @pdev: platform device pointer + * @card: ASoC card structure + * @sample_rate: Current sample rate + * @sample_format: Current sample format + * @asrc_rate: ASRC sample rate used by Back-Ends + * @asrc_format: ASRC sample format used by Back-Ends + * @dai_fmt: DAI format between CPU and CODEC + * @name: Card name + */ + +struct smm_card_priv { + struct snd_soc_dai_link dai_link[2]; + struct platform_device *pdev; + struct snd_soc_card card; + u32 sample_rate; + snd_pcm_format_t sample_format; + u32 asrc_rate; + snd_pcm_format_t asrc_format; + u32 dai_fmt; + char name[32]; +}; + +static const struct snd_soc_dapm_route audio_map[] = { + /* 1st half -- Normal DAPM routes */ + {"Playback", NULL, "CPU-Playback"}, + /* 2nd half -- ASRC DAPM routes */ + {"CPU-Playback", NULL, "ASRC-Playback"}, +}; + +/* Add all possible widgets into here without being redundant */ +static const struct snd_soc_dapm_widget smm_card_dapm_widgets[] = { + SND_SOC_DAPM_SPK("Ext Spk", NULL), +}; + +static int smm_card_hw_params(struct snd_pcm_substream *substream, + struct snd_pcm_hw_params *params) +{ + struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); + struct smm_card_priv *priv = snd_soc_card_get_drvdata(rtd->card); + struct device *dev = rtd->card->dev; + int ret; + + priv->sample_rate = params_rate(params); + priv->sample_format = params_format(params); + + ret = snd_soc_dai_set_tdm_slot(asoc_rtd_to_cpu(rtd, 0), 0x3, 0x3, 2, 32); + if (ret && ret != -ENOTSUPP) { + dev_err(dev, "failed to set TDM slot for cpu dai\n"); + goto fail; + } + + ret = snd_soc_dai_set_sysclk(asoc_rtd_to_codec(rtd, 0), AIC31XX_PLL_CLKIN_BCKL, + priv->sample_rate * 256, SND_SOC_CLOCK_IN); + if (ret && ret != -ENOTSUPP) { + dev_err(dev, "failed to set SYSCLK: %d\n", ret); + goto fail; + } + + return 0; + +fail: + return ret; +} + +static const struct snd_soc_ops smm_card_ops = { + .hw_params = smm_card_hw_params, +}; + +static int be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, + struct snd_pcm_hw_params *params) +{ + struct smm_card_priv *priv = snd_soc_card_get_drvdata(rtd->card); + struct snd_interval *rate; + struct snd_mask *mask; + + rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE); + rate->max = rate->min = priv->asrc_rate; + + mask = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); + snd_mask_none(mask); + snd_mask_set_format(mask, priv->asrc_format); + + return 0; +} + +SND_SOC_DAILINK_DEFS(hifi_fe, + DAILINK_COMP_ARRAY(COMP_EMPTY()), + DAILINK_COMP_ARRAY(COMP_DUMMY()), + DAILINK_COMP_ARRAY(COMP_EMPTY())); + +SND_SOC_DAILINK_DEFS(hifi_be, + DAILINK_COMP_ARRAY(COMP_EMPTY()), + DAILINK_COMP_ARRAY(COMP_EMPTY()), + DAILINK_COMP_ARRAY(COMP_DUMMY())); + +static struct snd_soc_dai_link smm_card_dai[] = { + /* DPCM Link between Front-End and Back-End */ + { + .name = "HiFi-ASRC-FE", + .stream_name = "HiFi-ASRC-FE", + .dpcm_playback = 1, + .dpcm_capture = 0, + .dynamic = 1, + SND_SOC_DAILINK_REG(hifi_fe), + }, + { + .name = "HiFi-ASRC-BE", + .stream_name = "HiFi-ASRC-BE", + .be_hw_params_fixup = be_hw_params_fixup, + .ops = &smm_card_ops, + .dpcm_playback = 1, + .dpcm_capture = 0, + .no_pcm = 1, + SND_SOC_DAILINK_REG(hifi_be), + }, +}; + +static int smm_card_probe(struct platform_device *pdev) +{ + struct device_node *cpu_np, *codec_np, *asrc_np; + struct device_node *np = pdev->dev.of_node; + struct platform_device *asrc_pdev = NULL; + struct platform_device *cpu_pdev; + struct smm_card_priv *priv; + struct device *codec_dev = NULL; + const char *codec_dai_name; + const char *codec_dev_name; + u32 width; + int ret; + + priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); + if (!priv) + return -ENOMEM; + + cpu_np = of_parse_phandle(np, "audio-cpu", 0); + if (!cpu_np) { + dev_err(&pdev->dev, "CPU phandle missing or invalid\n"); + ret = -EINVAL; + goto fail; + } + + cpu_pdev = of_find_device_by_node(cpu_np); + if (!cpu_pdev) { + dev_err(&pdev->dev, "failed to find CPU DAI device\n"); + ret = -EINVAL; + goto fail; + } + + codec_np = of_parse_phandle(np, "audio-codec", 0); + if (codec_np) { + struct platform_device *codec_pdev; + struct i2c_client *codec_i2c; + + codec_i2c = of_find_i2c_device_by_node(codec_np); + if (codec_i2c) { + codec_dev = &codec_i2c->dev; + codec_dev_name = codec_i2c->name; + } + if (!codec_dev) { + codec_pdev = of_find_device_by_node(codec_np); + if (codec_pdev) { + codec_dev = &codec_pdev->dev; + codec_dev_name = codec_pdev->name; + } + } + } + + asrc_np = of_parse_phandle(np, "audio-asrc", 0); + if (asrc_np) + asrc_pdev = of_find_device_by_node(asrc_np); + + if (!asrc_pdev) { + dev_err(&pdev->dev, "Unable to register the ASRC DAI device\n"); + ret = -EINVAL; + goto fail; + } + + /* Default sample rate and format, will be updated in hw_params() */ + priv->sample_rate = 48000; + priv->sample_format = SNDRV_PCM_FORMAT_S32_LE; + priv->dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC; + + memcpy(priv->dai_link, smm_card_dai, + sizeof(struct snd_soc_dai_link) * ARRAY_SIZE(priv->dai_link)); + + codec_dai_name = "tlv320dac31xx-hifi"; + priv->card.dapm_routes = audio_map; + priv->card.num_dapm_routes = ARRAY_SIZE(audio_map); + + /* Initialize sound card */ + priv->pdev = pdev; + priv->card.dev = &pdev->dev; + priv->card.owner = THIS_MODULE; + ret = snd_soc_of_parse_card_name(&priv->card, "model"); + if (ret) { + snprintf(priv->name, sizeof(priv->name), "%s-audio", codec_dev_name); + priv->card.name = priv->name; + } + priv->card.dai_link = priv->dai_link; + priv->card.dapm_widgets = smm_card_dapm_widgets; + priv->card.num_dapm_widgets = ARRAY_SIZE(smm_card_dapm_widgets); + + if (of_property_read_bool(np, "audio-routing")) { + ret = snd_soc_of_parse_audio_routing(&priv->card, "audio-routing"); + if (ret) { + dev_err(&pdev->dev, "failed to parse audio-routing: %d\n", ret); + goto asrc_fail; + } + } + + /* DPCM DAI Links */ + priv->dai_link[0].cpus->of_node = asrc_np; + priv->dai_link[0].platforms->of_node = asrc_np; + priv->dai_link[1].codecs->dai_name = codec_dai_name; + priv->dai_link[1].codecs->of_node = codec_np; + priv->dai_link[1].cpus->of_node = cpu_np; + priv->dai_link[1].dai_fmt = priv->dai_fmt; + priv->card.num_links = 2; + + ret = of_property_read_u32(asrc_np, "fsl,asrc-rate", + &priv->asrc_rate); + if (ret) { + dev_err(&pdev->dev, "failed to get output rate\n"); + ret = -EINVAL; + goto asrc_fail; + } + + ret = of_property_read_u32(asrc_np, "fsl,asrc-format", + &priv->asrc_format); + if (ret) { + /* Fallback to old binding; translate to asrc_format */ + ret = of_property_read_u32(asrc_np, "fsl,asrc-width", + &width); + if (ret) { + dev_err(&pdev->dev, + "failed to decide output format\n"); + goto asrc_fail; + } + + if (width == 24) + priv->asrc_format = SNDRV_PCM_FORMAT_S24_LE; + else + priv->asrc_format = SNDRV_PCM_FORMAT_S16_LE; + } + + /* Finish card registering */ + platform_set_drvdata(pdev, priv); + snd_soc_card_set_drvdata(&priv->card, priv); + + ret = devm_snd_soc_register_card(&pdev->dev, &priv->card); + if (ret) { + if (ret != -EPROBE_DEFER) + dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret); + goto asrc_fail; + } + +asrc_fail: + of_node_put(asrc_np); + of_node_put(codec_np); + put_device(&cpu_pdev->dev); +fail: + of_node_put(cpu_np); + + return ret; +} + +static const struct of_device_id smm_card_dt_ids[] = { + { .compatible = "bsh,imx-audio-tlv320aic31xx", }, + {} +}; +MODULE_DEVICE_TABLE(of, smm_card_dt_ids); + +static struct platform_driver smm_bsh_card_driver = { + .probe = smm_card_probe, + .driver = { + .name = "smm-tlv320aic31xx", + .pm = &snd_soc_pm_ops, + .of_match_table = smm_card_dt_ids, + }, +}; +module_platform_driver(smm_bsh_card_driver); + +MODULE_DESCRIPTION("BSH smm2-pro audio card"); +MODULE_AUTHOR("Michael Trimarchi "); +MODULE_ALIAS("platform:smm-tlv320aic31xx"); +MODULE_LICENSE("GPL"); From patchwork Mon Nov 8 15:27:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 1733 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 5429B3F15A for ; Mon, 8 Nov 2021 16:27:51 +0100 (CET) Received: by mail-wm1-f71.google.com with SMTP id g81-20020a1c9d54000000b003330e488323sf38124wme.0 for ; Mon, 08 Nov 2021 07:27:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1636385271; cv=pass; d=google.com; s=arc-20160816; b=EQ4xu49NqiQIiiVfHvmrnlGka9pEJ6y7+KjKWgeCn2GVk5SqyKp78dDXZrV05ZTfCN WIB8TbRV73k/YzRUrepi07hOzvGNnKjFPPi9lCNJ4THFP3uwHjs89z8zkE4hF/wxMRua iul4ARfyqR322crYI+Li784b0s+VVdAqqEp4x8YCVy+ztar+xotFXT5UltfkrpoDs0MO y7IjVcFxuJBvzOdu8xzhPMciN/5elVyOzoEm/5yOsq5ClO5ogO1C3UCvvv2cu//yDO4A TinY2Fy2BdjaoKn3Gn0CT09LefAnvXJhZvReCPBFTgvD/zRK+oyN5g0zHRw48aOa5UuG X9SQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=v7PSLUN/EEuWcaBhaf4WRf9dNN+wgiVpQDa5IDoHxRI=; b=ciy4HbIKF3mvPNKWwr6yq088el/4nabVamsLUda8ak8cy19QeW8WC91NpmsnZSHlfE Rt99iwYFmJHLUiabM7Zc7pB8gIJgW2usNDJ5RjHp6e3sOCwS9I+bPjdOZhH7ZHnawkfh CrnQom5U+LD2a3OGQT3WtFsnVOBUV1Q+M+de4PCJj+Nto0BOv+Xfo0jFdRszA1m47vvO ll2D302aw6yWza1onffXkaWVp7DXt/J89v+oJWlrVilQ4iPBdXIZqobtlPZ4nrvsphLu 3PlF9b8r6DtR0PjNWvO/+35wQuh5PAtdu9lrJpGOHHU5tYIVb7vd2yXOcYWbvDDDpWFM +v+w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ACPMtMvj; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=v7PSLUN/EEuWcaBhaf4WRf9dNN+wgiVpQDa5IDoHxRI=; b=aDry6YvyKj6GipGZNKtpDUyj7eQnz5YSSd8SuGckUtSGn22Xqn/ohI5oDWCjR2ojYG TM2L6/4lSKJ5JMGcDYFwJEKWcPC9zXl13wnw/l0F17/zsP688i8P2u6DlVBq7XHB4ETR RYkFfi/tAKpZOL4UdDo4ac0TJcge+Vz9M+j0A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=v7PSLUN/EEuWcaBhaf4WRf9dNN+wgiVpQDa5IDoHxRI=; b=Lj5EPLlOtrcZXQy2C7TAuhpJBhl9IG0/OC3xojwMSi2L0jDpMtJ78kALe05Nyoe4lT ZUmTP2SwRp3pUYpkZZLeiot/plcM9Q97NJa5hM8oT6tiFlQuB2YNIoYGAfzMtEP2/RxI 31jRAuzBugIGOpFcWrw1FcRDY9+/5EaYKmXyDyTGkjXniEd+gnz8f9VJMG1L48ZGvVme kQAHUmSSmvys1k8PZ2nE7lojsR7c20T0YA7ASjZnb4z3xyDiud+jC8BCmfAWp3DnVxDt xV5lk4/EZBpT8hnvbHsPHrDUPReHZXRRNgqUxpDDHQiLjkMAgEDzcnY5lLpFkIDEKUbL 6mLg== X-Gm-Message-State: AOAM533T6crgWTMyqIbzJP/V9Y4GcECmNOTwPvFZkC6TdEIl7N8DtBhe m0hiM1eOj0vAWCVLgmBsz0CdTtzc X-Google-Smtp-Source: ABdhPJyuB7I36J9Ek/JHPCHFEBPIUzVSwi2UfJB1Fjz3pN7kW0LyZaSM8hM2vDwAwByp5C0y61ul5A== X-Received: by 2002:a1c:ed1a:: with SMTP id l26mr54274580wmh.19.1636385270977; Mon, 08 Nov 2021 07:27:50 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a1c:1c7:: with SMTP id 190ls3484780wmb.3.canary-gmail; Mon, 08 Nov 2021 07:27:50 -0800 (PST) X-Received: by 2002:a7b:c057:: with SMTP id u23mr55672601wmc.3.1636385269885; Mon, 08 Nov 2021 07:27:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636385269; cv=none; d=google.com; s=arc-20160816; b=U2aqKhOK5Q4kS9VLjUyYX8fMynBR/XSS/y53fKSZsmHvPYfbMkR5n8pCM0MEfH08p8 avSSxhVLjUefvvaj7qKhavlbEIUNn2Y+CwUECYt3pUZHuCl3/Amgivo/kYwdhvpCen5L ZYT2NXXksc3ClBsXyuV2WuE4yhCZA+TfLrCRjNU7T90Lf4YWCQpWk09NgHASwjhHOkg5 f63gE3kkgzOKkpJEXsMoiikNk33mKInhXNmMCjlQRRobmdJkeZUP19ZAMiNhbI3+VJ03 QofOJGdaygXuIQXOoZQ0wAKSZD8junxQjAB4tEZfxcumrB31kDxIoOusitt2NDpfhd/2 gmNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=DVQOG+R8CGUYb7QUhdryL6LACjc2mC79DucgGuVFeyA=; b=SWwrH/jMJYgenUSU8b3Zq5bIvfGuT6/edZZfzpuFL2Sod7DNBa+4rzpPOPgwTwvPqi nBHxnU7SDG3iSHLlnDF9zh92UJgv4/9b4yLj9nFcONiZj/5irjcyFNNGp/Ejub/+T9J3 kNhuUAxcIpf1tDuanDVBfGe2Di3PlFgHW/wO39kjit291c1ozqjZSNxpwrkzzoxnalll uEe2oB4MDbwmCZtoyCbbRfdB4X+ktMAjp1okSolYLoN/P8USLbnlZJOFmfi8YaXMnAxk fQgaqsRd7GE/aqiomxgv08NuG+9GDCFKzL68QbCBI3kzvhs8cNbpmTyZO1qAJetb/3Kv 1zhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ACPMtMvj; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a9sor10063539wro.1.2021.11.08.07.27.49 for (Google Transport Security); Mon, 08 Nov 2021 07:27:49 -0800 (PST) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:adf:f5c1:: with SMTP id k1mr27674wrp.96.1636385269617; Mon, 08 Nov 2021 07:27:49 -0800 (PST) Received: from panicking.amarulasolutions.com ([2.198.173.211]) by smtp.gmail.com with ESMTPSA id y10sm21549729wrd.84.2021.11.08.07.27.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Nov 2021 07:27:49 -0800 (PST) From: Michael Trimarchi To: Ariel D'Alessandro Cc: linux-amarula@amarulasolutions.com, Anthony Brandon Subject: [PATCH V2 2/3] arm64: dts: imx8mn-bsh-smm-s2-common: Fix the voltage of buck5 and buck4 Date: Mon, 8 Nov 2021 16:27:44 +0100 Message-Id: <20211108152745.1974834-2-michael@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211108152745.1974834-1-michael@amarulasolutions.com> References: <20211108152745.1974834-1-michael@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ACPMtMvj; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , buck5 and buck4 has 1.8v and 3.3v Signed-off-by: Michael Trimarchi --- arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-common.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-common.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-common.dtsi index 108a29d4e7ae..038a7368be86 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-common.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-common.dtsi @@ -128,7 +128,7 @@ buck3_reg: BUCK3 { buck4_reg: BUCK4 { /* PMIC_BUCK6 - VDD_3V3 */ regulator-name = "buck4"; - regulator-min-microvolt = <3000000>; + regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-boot-on; regulator-always-on; @@ -137,8 +137,8 @@ buck4_reg: BUCK4 { buck5_reg: BUCK5 { /* PMIC_BUCK7 - VDD_1V8 */ regulator-name = "buck5"; - regulator-min-microvolt = <1605000>; - regulator-max-microvolt = <1995000>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; regulator-boot-on; regulator-always-on; }; From patchwork Mon Nov 8 15:27:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 1734 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B00A93F159 for ; Mon, 8 Nov 2021 16:27:52 +0100 (CET) Received: by mail-wr1-f71.google.com with SMTP id d13-20020adf9b8d000000b00160a94c235asf4164550wrc.2 for ; Mon, 08 Nov 2021 07:27:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1636385272; cv=pass; d=google.com; s=arc-20160816; b=SfElKnUCD5ekT71BByom+onwYHBrb0ADrMw+RqDzC1iDibTekSe941yB/KX0sNfhRB Jw/AJopWXPB2/piC8Y1r/ZpZvwB830QgnmI0585m3aCDfq0P5Ys9I7BuXfY+f7w/pzvo jPVUayBmDiNVpCSMhNzfb3fMIRlYbpT5vZxICxMmDMFQzg8ysD3vrgVUggZ4p1DafyE6 KpVhhOObqvvbtO+ephwKSli53PuJm0yicsfH5ykR3eGlb3aK9bcAK7dHMeI9TrdVdbDZ PV9/aPXu5t1Mhu/Y/BHBZgzQpmFRgiJfIymZF4ijLXtqzhlFOICw4BtX0QzG1zzQ6Eku s2aQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=tAFnoVvTMH+Pf2L8MyoxyP4Fsg6w36QHSO8NqwhvOcg=; b=AIiwEUVjJapbQAMO6J/tC32Kze9sthcifG7OYf5MEmZSWb9y1um/Q37W0uV1gBOF1n 4XLHFxx4+xKv/RglfJR5cnsA2zCQWdLTW+lTQUojs2VJyaN/mClxbBXZ6erJOjymFSwM hDFaLV3GJ7Q8iKEsVW8XGY87sKxalf4dYIfMdAom9GKYBiRrQOwPS0cceuKrXbmnFUuZ vjF7Y6dxpgXE6/6t/rAgZUYgL3HFvEgR3Il8UjiilaIxhIAGziO3suH2XrqMTM4KiSuM aFBwSaHuuisi0qX6vsj+zQ8RZlX8QjPwNtqNGhMLQNQPnikcYQZSFs7F+K616uJYhI/l 40Dg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kIW5CMzM; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=tAFnoVvTMH+Pf2L8MyoxyP4Fsg6w36QHSO8NqwhvOcg=; b=ZbXuAC1mkD5zjAPKCupqEe+5PVpkokNRL0VrE84wBZz7pTVbxy4keMwYDyuB8HsEa6 wsVnB/EOeyORac/o4V2ZxGtEbAl1u7ABGsGYnFYFItFGJfkeLp0LQSXQO3rL1h9XaEnN h3re7Xi2wG9kfMLlU4Nt8QGPsiyGWub7paXw0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=tAFnoVvTMH+Pf2L8MyoxyP4Fsg6w36QHSO8NqwhvOcg=; b=a0ern91iUBSxE4Fqq9iQOD7SExUQr0mvKOdNJb2HCQJ3gq5ZZ5wY1pM7XHuTu6awze ul72X0K2q5bVfOhkWH55s/FmeinYusVxQ4zjL8HUaXo/I6lKSXcqUqy7asEq8W0J70n0 X/oOk0Oe2UpUkfhXEuBCx4RzjJF26ArQ1wP1VC02rqVcMQBguIMyW3I4FxbSk9+vGIYI NJD8jiBRw9HsPfDwcMUrlEpQRBPOs0GOm5N0byaXVj7nFqnzHAD94riq92vHR0CXHdIY sfjG2CroDe9gqr81/Sa8zuguROzRrkTYKJAI6v5bM5BQeddkdDFlLndU7dDh/abBMs8R OW7Q== X-Gm-Message-State: AOAM533ugbCHPUhlI3m1zUjZfIZZdpJRuausqrdCv2y9Mzffy0VYMszN jdAfFwNrcDapesK2oVN1ZzkGEMRT X-Google-Smtp-Source: ABdhPJxm4QYi0XxZ5v2KLXjNokoMqmVufbVt37+hN9dyzVD/k7SzhQOSSfQfX6iHsF17t6NHUJIBfQ== X-Received: by 2002:a1c:1bd8:: with SMTP id b207mr52883633wmb.114.1636385272388; Mon, 08 Nov 2021 07:27:52 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:adf:fe0b:: with SMTP id n11ls9154634wrr.0.gmail; Mon, 08 Nov 2021 07:27:51 -0800 (PST) X-Received: by 2002:a5d:4d51:: with SMTP id a17mr658242wru.384.1636385271304; Mon, 08 Nov 2021 07:27:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636385271; cv=none; d=google.com; s=arc-20160816; b=xuW4tLN600ODcEMw+x/PwkegPDMgbb9TT35OnNEQcMuAkFh3x3K/1pwmGm0CDbj5qA E7bb+DKgh7X8nlzXZbu4u4ev29HXw6YcOlYBksk8t6s/OkX6j6fUzFoIv0GzyUzASBPd DLCf8Z7M2mu5BNWRjZHv3HoF8wjwTXC4HhvqdhDYz3MPQjqdCjse2p87ju2mjVK+1qzm n7wsFbKL2FqFCnX5JqAShYJyiCprX2rBgQq1qk618btsRloDw2ZgGmEvRNvKQnC7irF4 IzlGgRlJqKg85uFVmssXMKHHTNEaiVksvxFXIzYiLwASwRS3Dc0Hjhx59FV5jWe+mZAq dt9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=e3Gd2u/dhy4/wDOB2tecOj2xgXpLhxwDayOZNM6tD8w=; b=arR+GKJnb/ZR7+1PkpEVqy4JSCOB0iM+1V/tAgG3JoecwgH0ZrL4pLhcEcY/JAPuy4 Zevwv/zLzBzix4wLfrwIwrCfzULecGzbN2iP4RVhmBDNwVJjarL+bCfwEpFSYdLRZmeh 0SYyfsd9Qeqr4WJ6lZNldOD3I8vSNlG7rnu7oTl4g6IfDdG7nHe4xdrwljSlj3+ASnNV KUPPk+HJ0R5H1jo5ut+ZjCjWVj1AaOlDO2Tp69wRufBUDntzX77JSCj2hclw3mdCADEb OxZyXuC0TrWpDKzoDUHQFRsYRQowi+jbmmnO2hvnUqPk6O4JPXZx3C5X7ogADK0cdMd0 EMtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kIW5CMzM; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id r15sor9883679wrq.29.2021.11.08.07.27.51 for (Google Transport Security); Mon, 08 Nov 2021 07:27:51 -0800 (PST) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:adf:f08d:: with SMTP id n13mr596615wro.395.1636385270979; Mon, 08 Nov 2021 07:27:50 -0800 (PST) Received: from panicking.amarulasolutions.com ([2.198.173.211]) by smtp.gmail.com with ESMTPSA id y10sm21549729wrd.84.2021.11.08.07.27.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Nov 2021 07:27:50 -0800 (PST) From: Michael Trimarchi To: Ariel D'Alessandro Cc: linux-amarula@amarulasolutions.com, Anthony Brandon Subject: [PATCH V2 3/3] arm64: dts: imx8mn-bsh-smm-s2pro: Adjust audio card name to new one Date: Mon, 8 Nov 2021 16:27:45 +0100 Message-Id: <20211108152745.1974834-3-michael@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211108152745.1974834-1-michael@amarulasolutions.com> References: <20211108152745.1974834-1-michael@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kIW5CMzM; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Michael Trimarchi --- arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2pro.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 5f8a00b955b2..0328e48e3f92 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2pro.dts +++ b/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2pro.dts @@ -19,7 +19,7 @@ memory@40000000 { }; sound-tlv320aic31xx { - compatible = "fsl,imx-audio-tlv320aic31xx"; + compatible = "bsh,imx-audio-tlv320aic31xx"; model = "tlv320aic31xx-hifi"; audio-cpu = <&sai3>; audio-codec = <&codec>;