Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp193746iog; Fri, 17 Jun 2022 01:39:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tJwddNe7D+cTkW1ox1W5CYsUMS0/gCpzhfoXVJo/q8k5OmgZwbUQWy3G5FxX37LD/aDSil X-Received: by 2002:a17:906:739d:b0:713:c3f4:6ef with SMTP id f29-20020a170906739d00b00713c3f406efmr8050725ejl.180.1655455175145; Fri, 17 Jun 2022 01:39:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655455175; cv=none; d=google.com; s=arc-20160816; b=T1uBmBZ4BO5fyNBsiraz5LRqDiCMul1uMuYMpGIc9Y3w8v+a6bWgTSiaBKIEpFexfP sXqNkxCJPcV6JazjR1CWleiaG0O9odHNt5P2a8mP8U8JFGaut7ceo/mJcfSGJJI88Z3A FmEJdELY5DSvbxoC/wA0eTyVqB/XaAItV9QOChpl7HSj98HIXWPRGMotvN3wKVhLPvMW mqTAv/kQ7vI9HICDW77PM+v7QbuZc9JPgRJbYcapg6DLc3j9hyfi7AxMuhak/J3V8Ndf 4fGLCoMJBjpleJ7UpK2IbhqyM5PHOJsdnR+u73eE+y1jMqhY766PkCfz+6vRq6+i7CN4 mXAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=2ge+3Ie41hxFCOpWqSMH6oH+KnT9qv/E586Oi+bpiqE=; b=qs0/vrq7BgkKV652/zP+grSQXqp8td3ymjLTFR1U6PJToysnR7wzuaZtwUi39HB1MA 1My3kqRAw9P1cIZs2lcc9R0md6PL2SSPeAJrNwJlmsaw352O2Vg1h8YECq5dOc8A0pI8 ShZZqV9Mndn5nKy/N2HJ5UGoJzRFYwB+7Eo0Q1h/CRFY+39r49+kou3czkA+vLYZGB3k +bis3jk25RPZOFDplfuRbQnVHyyuFjCtKNbyzss76qE1sAEQvS9Pjax2y4V8Z5W5IWkQ bOtLagxs+iaLiL6JBJ2jKnsEPu9gYrBJCR3NjBCgxZ5u0/pk2osOqIp5WYGxoqbxZnRj hn8A== 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 n20-20020a05640206d400b004356442b3a8si722453edy.177.2022.06.17.01.39.10; Fri, 17 Jun 2022 01:39:35 -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 S1380703AbiFQH7T (ORCPT + 99 others); Fri, 17 Jun 2022 03:59:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbiFQH7S (ORCPT ); Fri, 17 Jun 2022 03:59:18 -0400 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 672315A2D8; Fri, 17 Jun 2022 00:59:17 -0700 (PDT) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id B77E1201FAA; Fri, 17 Jun 2022 09:59:15 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6E2B2201FAC; Fri, 17 Jun 2022 09:59: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 7FDD61820F45; Fri, 17 Jun 2022 15:59:13 +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 v2 0/7] Add PDM/DSD/dataline configuration support Date: Fri, 17 Jun 2022 15:44:30 +0800 Message-Id: <1655451877-16382-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 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 Support PDM format and DSD format. Add new dts property to configure dataline. The SAI has multiple successive FIFO registers, but in some use case the required dataline/FIFOs are not successive. Changes in v2: - refine the commit subject of patch 5/7 Shengjiu Wang (7): ASoC: fsl_sai: Add PDM daifmt support ASoC: fsl_sai: Add DSD bit format support ASoC: fsl_sai: Add support for more sample rates ASoc: fsl_sai: Add pinctrl operation for PDM and DSD ASoC: fsl_sai: Make res a member of struct fsl_sai ASoC: dt-bindings: fsl-sai: Add new property to configure dataline ASoC: fsl_sai: Configure dataline/FIFO information from dts property .../devicetree/bindings/sound/fsl-sai.txt | 8 + sound/soc/fsl/fsl_sai.c | 260 ++++++++++++++++-- sound/soc/fsl/fsl_sai.h | 26 +- 3 files changed, 272 insertions(+), 22 deletions(-) -- 2.17.1