Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1092407iol; Thu, 9 Jun 2022 23:25:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyve/bxI5nk+RrGw1kKfLkuGtrXDX1GA6BASPEbNkV85hotYcp89IesjNlq1lAUU89uUKAQ X-Received: by 2002:a17:906:649b:b0:711:fde4:3a31 with SMTP id e27-20020a170906649b00b00711fde43a31mr8926134ejm.236.1654842305024; Thu, 09 Jun 2022 23:25:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654842305; cv=none; d=google.com; s=arc-20160816; b=X1BhQs8nEo8pd4VlGTlcwaL5/y7POeGscjOaQ68CdRtaiqy/yGK6YGmytPXuaEjQwl YuQNVTE5cgcC7g9UqKwtOiWISIyWeqh2b9beUs2LSkX0dcM2uLdu0b6mrv14Sf7p/2xb QlidmpwJ4rZew4yF4Hz7aUOIFYY8oLr7AboMxK2PBu4hwIaxL9Jq5/kEKIQTu6qVSavU 4nS+NIP6YF5RSBHybzX/jWzlTuMZ3OOy+Oy4cJb7i+K30h47wyudxl5WNDJy5htp7JoQ HpPMnsz3hpwKMSVtA5pclL+K/F2GOT+iQb5MR2W28jXn3tM0+XcLKCdVUaw48r/JkJ8r PUVQ== 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=HWqCve0iOHgo6rQVfH8i3Xx7mJ+5PBXj6Sez2XNjNas=; b=nymhH+vi/uhdTzt1oN3Lo/GbrnYP7xqybCrxl9aQ+T/1D4Ab62v0cvxlrOP5H6JepH kFFIkn+ap9lZpp+MmlBgBJGePO6dnG/b5josE7pGEs61EeQtHg41aHO/gxDHb5zF8ku5 XrfWn/feNJbTL6pXSIcPOeNwPAfmbNCWihDqwxbMV3/1ZTf6k3BBMfqxcu0lVaJNKpFf uHlDG3+1Cmpyio8BJWdXspa026MbiE/StVkI/4KBshtFoOzShb3c2a9lbg0CaN199weA kwvk5eWdLyVmXqjOtYO7LWixo+27hP/xZSmuWcm6U9C2IIWYXovc7PC+cFMlnZrxB0yW gO0w== 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 l23-20020a056402345700b0042ddc8cda2csi26039533edc.48.2022.06.09.23.24.31; Thu, 09 Jun 2022 23:25:05 -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 S1346359AbiFJGBU (ORCPT + 99 others); Fri, 10 Jun 2022 02:01:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243665AbiFJGBS (ORCPT ); Fri, 10 Jun 2022 02:01:18 -0400 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 923F81312A8; Thu, 9 Jun 2022 23:01:17 -0700 (PDT) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3EE3F1A00BF; Fri, 10 Jun 2022 08:01:16 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id EB9501A005B; Fri, 10 Jun 2022 08:01:15 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 8217D1802202; Fri, 10 Jun 2022 14:01:14 +0800 (+08) From: Shengjiu Wang To: nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, shengjiu.wang@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, robh+dt@kernel.org, krzk+dt@kernel.org, devicetree@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] ASoC: fsl_mqs: Add support for i.MX93 platform Date: Fri, 10 Jun 2022 13:47:22 +0800 Message-Id: <1654840042-7069-2-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1654840042-7069-1-git-send-email-shengjiu.wang@nxp.com> References: <1654840042-7069-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 i.MX93 compatible string and specific soc data Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_mqs.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sound/soc/fsl/fsl_mqs.c b/sound/soc/fsl/fsl_mqs.c index 8a8d727319d6..aefb73cab59c 100644 --- a/sound/soc/fsl/fsl_mqs.c +++ b/sound/soc/fsl/fsl_mqs.c @@ -338,9 +338,23 @@ static const struct fsl_mqs_soc_data fsl_mqs_imx6sx_data = { .div_shift = IMX6SX_GPR2_MQS_CLK_DIV_SHIFT, }; +static const struct fsl_mqs_soc_data fsl_mqs_imx93_data = { + .use_gpr = true, + .ctrl_off = 0x20, + .en_mask = BIT(1), + .en_shift = 1, + .rst_mask = BIT(2), + .rst_shift = 2, + .osr_mask = BIT(3), + .osr_shift = 3, + .div_mask = GENMASK(15, 8), + .div_shift = 8, +}; + static const struct of_device_id fsl_mqs_dt_ids[] = { { .compatible = "fsl,imx8qm-mqs", .data = &fsl_mqs_imx8qm_data }, { .compatible = "fsl,imx6sx-mqs", .data = &fsl_mqs_imx6sx_data }, + { .compatible = "fsl,imx93-mqs", .data = &fsl_mqs_imx93_data }, {} }; MODULE_DEVICE_TABLE(of, fsl_mqs_dt_ids); -- 2.17.1