Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1093949iog; Mon, 13 Jun 2022 21:38:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVK/uV4pHmUWNUzD9gLzVDk6TE6Q6miEV1IIVwnz/AWE02P8Iw4YcccERw638dHx2tC0bi X-Received: by 2002:a17:906:6492:b0:712:1f5c:a2d6 with SMTP id e18-20020a170906649200b007121f5ca2d6mr2577565ejm.404.1655181511856; Mon, 13 Jun 2022 21:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655181511; cv=none; d=google.com; s=arc-20160816; b=CxytTR+HNtuZEGdnr3joGTP9l0ZNq3sUS7Q1O7r6l049YGR7CtlGQ9KfYWnXs8JceQ SsYTdm130cSwY06p3kCg7v4s0kXOdU5UiKueNS10yZWwwgYRqw8dvmwyyuHdL58RXlmJ kUZKz9A/7Ii76r54s8OOQpROxIKRl/mtM0+Hiymm2gOFRER6fM6ho65mpBlNKBe2+F+c AigPwM36ocTJLi74LJRQwflEr6Eo0xJ0fn+trIRJwbdCa4m8YYxU2xRDySTQJ2f8sAJS ZsG3Z64V2U7II7CLMxzuWHDvxYgvHFVuvzl+xocl/t0LcTNXTeUa7uce/FWoQfh6YBY0 cijw== 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=VPbIoz5/+Q+m64MsscbziiXHW13AKFdvFH5nY1f/pGUtWYufTJ8soGitMtf+2Jzca5 Aa5EHU9BMA7NQEZK9NlbiNJciPy3PwMfMFTvFuU5npZ/GgZDg9GX4MQeyr9rqbtVH+s4 17E9NEAHwxv0K1exhy28oS1hjeesbDoCnJ5548s7sCyMkOPyICyq3Wz/I2oamWVVrpnT 9IXJhtkndCOOAK80TKmiwSyRy4gAZGSCqmgsOLYlYTHD2zEADopaZ2TiJVDLrYQey/Fk buvZzpM7pQYSeWBkWD6AHaAiau4xBryZLuPrsb2jPXLVRQ0CS+q7mQ+mKC31ildBM6W5 EPhA== 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 sh16-20020a1709076e9000b00702d8bd9e13si9242281ejc.707.2022.06.13.21.38.06; Mon, 13 Jun 2022 21:38:31 -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 S1351497AbiFNE0F (ORCPT + 99 others); Tue, 14 Jun 2022 00:26:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347106AbiFNEZi (ORCPT ); Tue, 14 Jun 2022 00:25:38 -0400 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 727702A951; Mon, 13 Jun 2022 21:25:37 -0700 (PDT) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 36DCC1A2682; Tue, 14 Jun 2022 06:25:36 +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 E0B631A2685; Tue, 14 Jun 2022 06:25:35 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 05267180222C; Tue, 14 Jun 2022 12:25:33 +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 6/7] ASoC: dt-bindings: fsl-sai: Add new property to configure dataline Date: Tue, 14 Jun 2022 12:11:23 +0800 Message-Id: <1655179884-12278-7-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655179884-12278-1-git-send-email-shengjiu.wang@nxp.com> References: <1655179884-12278-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