Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10643127ybi; Thu, 25 Jul 2019 02:58:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqysVBWJKzInNmVujDn240ENpA7WbvET36J7WcHWoOij/Ic9Ka9d9K34sk4RhJGRHYYnbfKE X-Received: by 2002:a63:1e0b:: with SMTP id e11mr79423751pge.402.1564048695848; Thu, 25 Jul 2019 02:58:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564048695; cv=none; d=google.com; s=arc-20160816; b=q4xyxnIA6WZJqANfBPKTsWb5/VnEUXlCF726qA22gSWrpCJN2GU2pNqMI+Oxn80sYe Ms0nPfcGJMEJqr57vyx4tAGjFXPEtWMbAil4XI3hRd50CCc/F7I9YZBGDMEZDXZ3erbI kH7wsFAcf4SjMCcImKWSG5jWu09t8uHda7iPUzVzfb/T3A8WnmZkTLMhKiwjjhceVSPd zSTRh5+LgIZhDmehMAtMkXeQBQceFzeqr1W/PWycIc6245PQPokuohb2S+1wMIsLYGsY Jf5Bk0V9v3PMFGs7FAbFoJW0DXn77vk8Tjqx9q+AfVxaTPTmrEcwZR9iKGZ8jEiPZs39 SjIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=d+t+952qOGIU1AddOHVH/nDFUA90m4SMJ1NCUq2nKKI=; b=ZQCTzBkblIXfZMCClHKFCqEEl2Wkvgw4izYzyQsex04hX0Dc6noTpr21MS+6Y5vDxt 7syzMUnrqUST4Q92DQ7WnbHO+2qBoDA9yYO8fHSnqzxwJXIqOweIc6p6HZu+LogED/7M 2Zo5KB+1XhS77OPQOe3bPsrQNdoiGpqgLGsiqAppzj1sRl+GILxKyu1H/F7Y+TGRGxej oJZQl8jPatFOq8uI208OPguFeflDjlxzoxO6LhRlDS/+ib3yfj9QcxC4lPEg6xkrnwj4 p2lbGN6Fs+iVx75JKAmxGGbPXqxivkYeAE6G9gIp/76/nffkLX+zosgyuPrussZyoAx2 SVRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Sa4QuXYT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g34si15317200pld.266.2019.07.25.02.57.56; Thu, 25 Jul 2019 02:58:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Sa4QuXYT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729056AbfGXXNA (ORCPT + 99 others); Wed, 24 Jul 2019 19:13:00 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:33138 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726388AbfGXXM7 (ORCPT ); Wed, 24 Jul 2019 19:12:59 -0400 Received: by mail-pg1-f195.google.com with SMTP id f20so12725184pgj.0 for ; Wed, 24 Jul 2019 16:12:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=d+t+952qOGIU1AddOHVH/nDFUA90m4SMJ1NCUq2nKKI=; b=Sa4QuXYTDpG4z9VPVpCPn4be1hY1xZdVOzdRfkm5eeTmruwirxYioQZkmJndvCu/OF bzrzowYqU0xUjsFcb/9Gak318sfFLVIUWd1bEtZKQSov5e25ZaPricXKIHgcMDs0D9GX zM4mJcESv6Ad3QBx4ZTbbA70n96sGRf8fa97U7fgYq1Q7ckfFSCLwjZDEYTKFL4RE9Ft /noDhPKAvG871BL+wzXVGZMFh6VtQgbUW2K1P1E0a5GOgU3n9cNJKc903vD2QtySQcGn N/X+a3Lt7zuy7QItV4ewrlRjb576kj58NUH5FtirVnBLqvk8l5R+TPgYJ1PrxyBsAdIW EekA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=d+t+952qOGIU1AddOHVH/nDFUA90m4SMJ1NCUq2nKKI=; b=S0dlMm5F6OJg6TwNmCNsKfZpIRtVIKTb0EGb5k56hNc+B2PVuXlU9ftmlhoWX1Lvgw BuM/LszkcEWjjNutsuHBhldRsMO7F45QeZGid46MKvFnWafmrdLuaKg03sSPFSDQiZrr ZtEFVJVvbFVxINAyKOgOmpMRjRxrX4uSy0a8Qmv198y0KQDEVO15vFq0n5z6ILkn0KVb Em8qdyyqRg1EOGZ5V6NG20YxOoQMaNIPUwT5UC/6Q9L0s5v6vJiCJPQh1TwV8tdEWpIA XQRBlekzfDAt3tfvHZgYZKgZaji5muaB/vDSJ2nDTIQgiPz/jtntxaRQm/WdgfWLSwOG fHKw== X-Gm-Message-State: APjAAAUb09TZAdX8p4MJTTCNTI4AM2MeLVu1ZXTfbhnpUGfXvHOGFSgN 0AwYZ3Sq1CnbaQDbta9dhto= X-Received: by 2002:a62:f20b:: with SMTP id m11mr13713991pfh.125.1564009979132; Wed, 24 Jul 2019 16:12:59 -0700 (PDT) Received: from Asurada-Nvidia.nvidia.com (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id t9sm20439665pgj.89.2019.07.24.16.12.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jul 2019 16:12:58 -0700 (PDT) Date: Wed, 24 Jul 2019 16:13:43 -0700 From: Nicolin Chen To: Daniel Baluta Cc: broonie@kernel.org, festevam@gmail.com, perex@perex.cz, tiwai@suse.com, Xiubo.Lee@gmail.com, timur@kernel.org, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, shengjiu.wang@nxp.com, angus@akkea.ca, kernel@pengutronix.de, l.stach@pengutronix.de, viorel.suman@nxp.com Subject: Re: [PATCH 06/10] ASoC: dt-bindings: Document dl_mask property Message-ID: <20190724231342.GB6859@Asurada-Nvidia.nvidia.com> References: <20190722124833.28757-1-daniel.baluta@nxp.com> <20190722124833.28757-7-daniel.baluta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190722124833.28757-7-daniel.baluta@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 22, 2019 at 03:48:29PM +0300, Daniel Baluta wrote: > SAI supports up to 8 data lines. This property let the user > configure how many data lines should be used per transfer > direction (Tx/Rx). > > Signed-off-by: Daniel Baluta > --- > Documentation/devicetree/bindings/sound/fsl-sai.txt | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/sound/fsl-sai.txt b/Documentation/devicetree/bindings/sound/fsl-sai.txt > index 2e726b983845..59f4d965a5fb 100644 > --- a/Documentation/devicetree/bindings/sound/fsl-sai.txt > +++ b/Documentation/devicetree/bindings/sound/fsl-sai.txt > @@ -49,6 +49,11 @@ Optional properties: > + - fsl,dl_mask : list of two integers (bitmask, first for RX, second Not quite in favor of the naming here; And this patch should be sent to the devicetree maillist and add DT maintainers -- they would give some good naming advice. From my point of view, I feel, since data lines are enabled consecutively, probably it'd be clear just to have something like "fsl,num-datalines = <2 2>", corresponding to "dl_mask = <0x3 0x3>". I believe there're examples in the existing DT bindings, so let's see how others suggest. > + for TX) representing enabled datalines. Bit 0 > + represents first data line, bit 1 represents second > + data line and so on. Data line is enabled if > + corresponding bit is set to 1. Would be better to mention: "as a default use case, if this property is absent, only the first data line will be enabled for both TX and RX", since it's an optional property. And one more extension(?) of it could be what if there's no data line being physically connected for one direction, for example "dl_mask = <0x0 0x1>", indicating that SAI enables one single TX line only, so driver would disable RX feature. What do you think?