Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp172048iog; Fri, 17 Jun 2022 01:03:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1snO/a9S9S5suxYIX2nxBzw0p7cERuheUYAxzWg0wHCuRhaYGVRvx73ad2t/Hu1FjS7EdNZ X-Received: by 2002:a17:906:58c8:b0:6fe:91d5:18d2 with SMTP id e8-20020a17090658c800b006fe91d518d2mr7881823ejs.190.1655453021659; Fri, 17 Jun 2022 01:03:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655453021; cv=none; d=google.com; s=arc-20160816; b=hRVCwNSJClnkcekb3wVF+oHuKzcQjYLlRurd6VBolh6xX34cZfNersSAHt0KlHjmrk XEm0XEhlX10Xd7RTG3PdPqLC9VnrzWevVlXEmk6UzvmvkJ4NBJywm2m8CuFB2Urnse4D bJSsjlvNkuJfrfXuwMOW43LHRLpUM/JXUYY/+ZclMnCG79o14nYWJhc0+PRU9WecffM3 sxqabyYJQB5Zm9phl64jsR5I22DNjgHg1lBzQS9PL5Bu6yyavMa1sOAMsGL2yONcv9J+ ff2BR026aS9ej/Xb3zpHBzw03DOAzy/n9Jz2kNV8HaYe2ccxc8sVCcdU1uO6tcdtEsZ+ TRKA== 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=dRcjdB85YB0d1kYMHOsWwemNIx5Rm0t/r5Y+HeWId5I=; b=ndSUy1PrfLcMAUX58Lu6POOeHmacJMYpRuTDig1lBfxNFAbUVrgiUGcb/8bzThiDX0 oAioHJncKOHzzzVX3KLi4jVnRTsp2918X+s4dsvue1ZPK53gZMzL//bedDrnD2xjcf/0 +En4b9dCtAoSX7xTFnyS55+gYkmk/jbOzOYr7sIhTpHzx2CAefRq1fZ+7ywLed6toIr5 XlnebP8iv0N/ksWk48skfz8kt6tfzbMaJm402XPq/3+PtlKX1D9KOoNNJke7sZbN/Vgy ap+wcSfLWXzZlJOsth7KjO/+NzL5nCLeL0H1nsV+Pld1C1tPRY+jAdXN14WnIaThT50d K5tg== 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 d26-20020a056402401a00b004355dc6e91bsi1661006eda.111.2022.06.17.01.01.37; Fri, 17 Jun 2022 01:03:41 -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 S1380766AbiFQH7b (ORCPT + 99 others); Fri, 17 Jun 2022 03:59:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380748AbiFQH7Z (ORCPT ); Fri, 17 Jun 2022 03:59:25 -0400 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BAE167D03; Fri, 17 Jun 2022 00:59:24 -0700 (PDT) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E81A21A30BC; Fri, 17 Jun 2022 09:59:22 +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 9C0B81A2A06; Fri, 17 Jun 2022 09:59:22 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id B1A691820F57; Fri, 17 Jun 2022 15:59:20 +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 6/7] ASoC: dt-bindings: fsl-sai: Add new property to configure dataline Date: Fri, 17 Jun 2022 15:44:36 +0800 Message-Id: <1655451877-16382-7-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655451877-16382-1-git-send-email-shengjiu.wang@nxp.com> References: <1655451877-16382-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 "fsl,dataline" is added to configure the dataline of SAI. It has 3 value for each configuration, first one means the type: I2S(1) or PDM(2), second one is dataline mask for 'rx', third one is dataline mask for 'tx'. for example: fsl,dataline = <1 0xff 0xff 2 0xff 0x11>, it means I2S type rx mask is 0xff, tx mask is 0xff, PDM type rx mask is 0xff, tx mask is 0x11 (dataline 1 and 4 enabled). Signed-off-by: Shengjiu Wang --- Documentation/devicetree/bindings/sound/fsl-sai.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/fsl-sai.txt b/Documentation/devicetree/bindings/sound/fsl-sai.txt index c71c5861d787..4c66e6a1a533 100644 --- a/Documentation/devicetree/bindings/sound/fsl-sai.txt +++ b/Documentation/devicetree/bindings/sound/fsl-sai.txt @@ -49,6 +49,14 @@ Required properties: receive data by following their own bit clocks and frame sync clocks separately. + - fsl,dataline : configure the dataline. it has 3 value for each configuration + first one means the type: I2S(1) or PDM(2) + second one is dataline mask for 'rx' + third one is dataline mask for 'tx'. + for example: fsl,dataline = <1 0xff 0xff 2 0xff 0x11>; + it means I2S type rx mask is 0xff, tx mask is 0xff, PDM type + rx mask is 0xff, tx mask is 0x11 (dataline 1 and 4 enabled). + Optional properties: - big-endian : Boolean property, required if all the SAI -- 2.17.1