Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp495751ybb; Fri, 20 Mar 2020 03:00:49 -0700 (PDT) X-Google-Smtp-Source: ADFU+vufUDMudhq3o+iINxiHA3bNaARFys/i1uS0UyrCR3vSsjF2Mx6JHxQrM79KqmGS7HKAF27U X-Received: by 2002:a9d:7359:: with SMTP id l25mr6175464otk.18.1584698449445; Fri, 20 Mar 2020 03:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584698449; cv=none; d=google.com; s=arc-20160816; b=hyagEJqFzN2pXD8iUqKrJ0lV7NhW7W9lwjWuyMS4xnU+nTsK8wlGCTAYirY+hKEuBY +dcXyYTk6jE18SKL7rqUK6J96McLigsT3HEStO+D7TPxcL9y/BeO9kxL0CmJvcFojp5D /3Ln5XkJp9bDK83RPo2/hL3wTP6S+rz5Rk1vo346Lv4pBYuQCazOigbkf6e06GOZ/it7 u9uzPQyXnibbmHy8GK5pmuJOtoJF+QMoIXd+iY6bFmELziAW0nRjWKuM58enyGOPrsAE Vsp41xhcChO0jXlr0btwBAfpZ1JxzAPO5q0LLzyN6x8UvoOQHSpBr58GjHeLrfh1uBnC Afnw== 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=3Eaim+zDpawwEuM0413nMdVwW/AUNTKPYs+q8/iEwxY=; b=sfJbYyOlb4fGnyqJEFxl8kPve2bNnEhOIHexT+CWP0q340z7Pp/kX9JlijRNz5wpoe i2cHxV6lYTihL61NiKHzCDljYsgIxuTwQDd0QMRSttemPY1nrvSRDste8nMiFVDLir7H yqRoHxp/Pd7EWg3EJpyGxyVFLYWCSuzj6Gzun3lk2NDV3a+xAbdb/v00d0E/Gf3qlKVZ OfpDBM4WCqBbi0XLEd9qClQjzOac0dAjeZzWNjKjcvOQCx+MAWGshEziBv636nQQVaFz 8s1kXa7ek823Hj3BPUShW7QM6cCo2wUYUkYGRhIgOHu0P6U+agDJea+WgCafVhxhUtR/ 7dpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Ohp5TXh1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m6si2433654oim.230.2020.03.20.03.00.37; Fri, 20 Mar 2020 03:00:49 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=Ohp5TXh1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727213AbgCTJ7P (ORCPT + 99 others); Fri, 20 Mar 2020 05:59:15 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:58876 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726527AbgCTJ7P (ORCPT ); Fri, 20 Mar 2020 05:59:15 -0400 Received: from pendragon.ideasonboard.com (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id CA6A1504; Fri, 20 Mar 2020 10:59:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1584698353; bh=ZzexViwT1sNWNVrixfFMMsQEew/KhYKWu3YzN5cmzCI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ohp5TXh1V32/7TUc41A62vGmBmoziycU4oAdYUdLefFdH37z8W96SsCvO+jDYOPci yl56teBS9RGHB2sEtwfPKoIF4R0VFKV7zfs7bEv6wK6b+oVhRBgi9uw+HZ903G71qx CnOC7JOVk/Z9/c2QQky3jfKcRhZ0B5Dqi7Y4FRrw= Date: Fri, 20 Mar 2020 11:59:07 +0200 From: Laurent Pinchart To: Alex Riesen Cc: Geert Uytterhoeven , Kieran Bingham , Mauro Carvalho Chehab , Hans Verkuil , Rob Herring , Mark Rutland , Kuninori Morimoto , driverdevel , Linux Media Mailing List , Linux Kernel Mailing List , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux-Renesas Subject: Re: [PATCH v2 07/10] dt-bindings: adv748x: add information about serial audio interface (I2S/TDM) Message-ID: <20200320095907.GB5193@pendragon.ideasonboard.com> References: <20200319180125.GJ14585@pendragon.ideasonboard.com> <20200320084406.GB4344@pflmari> <20200320090339.GD4344@pflmari> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200320090339.GD4344@pflmari> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alex, On Fri, Mar 20, 2020 at 10:03:39AM +0100, Alex Riesen wrote: > Geert Uytterhoeven, Fri, Mar 20, 2020 09:48:14 +0100: > > On Fri, Mar 20, 2020 at 9:44 AM Alex Riesen wrote: > > > Laurent Pinchart, Thu, Mar 19, 2020 19:01:25 +0100: > > > > On Thu, Mar 19, 2020 at 06:42:36PM +0100, Alex Riesen wrote: > > > > > As the driver has some support for the audio interface of the device, > > > > > the bindings file should mention it. > > > > > > > > > > @@ -16,6 +18,8 @@ Required Properties: > > > > > slave device on the I2C bus. The main address is mandatory, others are > > > > > optional and remain at default values if not specified. > > > > > > > > > > + - #clock-cells: must be <0> if the I2S port is used > > > > > > > > Wouldn't it be simpler to set it to 0 unconditionally ? > > > > > > Would it? If the port itself is optional, shouldn't the clock be an option > > > too? > > > > You'd be surprised how many board designers would consider this a cheap > > 12.288 MHz clock source, without using the I2S port ;-) > > Well, I am :-) > > Especially considering that the driver will not switch the MCLK pin aktive > (all I2S-related pins are tristate by default). If the MCLK can't be output without enabling the I2S then I don't mind if we make the #clock-cells optional, although, as Geert mentioned, someone may still want to use it. > And how do I require it to be set unconditionally? By just removing the > "if ..." part of the statement? Yes. For YAML it's easy too, the hard part is making properties conditional :-) -- Regards, Laurent Pinchart