Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp460739ybb; Fri, 20 Mar 2020 02:16:23 -0700 (PDT) X-Google-Smtp-Source: ADFU+vslGsfCvS3EnwXr63LfgBE2ec8xEaijPuizNuXpNc33rlx37Gh4Kaei4/3g5m1Mi/G+OT1P X-Received: by 2002:aca:5354:: with SMTP id h81mr5494394oib.164.1584695783883; Fri, 20 Mar 2020 02:16:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584695783; cv=none; d=google.com; s=arc-20160816; b=oeLIx2X1s8MqUMCdpEQtPR5jBf285LyorqrHRNWpjWr45c0XO+fG9gw0yGqdXxX8J4 4dS4H74ec+kvD+NJT5QFaZTy3EkE1z3DadzDbBd7euR3vqgmuU3P1NBDqdboDHVzqXF1 vvzzcy7Rv3FLIugzeTwan1yvloc/1Xt9TwwvodNsontpPpXYg8mygpXpr0ggdJSO0Vjv nzwDhgKQRjIc/DybGz+lBgF4Fyj3HE4mzIjkX/TLdrJK1upJPRmoYwjq0OKqwDLE7//w zLQxEMhn5oyfDc7nabHBNUKYHCJNHWZGWejBQxDN/HGwfEAyf6OXEvn0o6OtQiOkOOOa JJ0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=8x4focGPb4ERLGjucd62jlveYIVPZ0IBCjA7nXBe5yM=; b=Xjh/drWuDAy66yHDWeixK853OrU/fDU5yDLM4zmZK5HW2WxC2NpOH9t8iYV9qmw6va hvZcWLIx2I6sovb0oY2jDe6iGznUjkzkNFxK7lESQeUFPTWFCZp8vtXXj4n/TzG8IY1f R7TCyCthqSizJBZryyuQwJATGUA2uomvBvpEJoN5RsQzh0Sf1sPv/vOPKnuF89db7xqj 42FPRYDrhpA//h5nfgsYhhTOXQARcE6wIIV/AZVp4hdouxi4J7sG+koKmv/r/M5AoyZe vTo2zyNVAbI/t9LhTcUci/IYQhazaEUy+IBDuzEetUPFf6VuADjNxPwSmCb7s5sGX9T9 25kA== ARC-Authentication-Results: i=1; mx.google.com; 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 m10si2754318otq.115.2020.03.20.02.16.10; Fri, 20 Mar 2020 02:16:23 -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; 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 S1727333AbgCTJPb (ORCPT + 99 others); Fri, 20 Mar 2020 05:15:31 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:46765 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726631AbgCTJPa (ORCPT ); Fri, 20 Mar 2020 05:15:30 -0400 Received: by mail-ot1-f67.google.com with SMTP id 111so5243678oth.13; Fri, 20 Mar 2020 02:15:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=8x4focGPb4ERLGjucd62jlveYIVPZ0IBCjA7nXBe5yM=; b=sME/KImcjBxE/37hOQylbQP4HypdVVyIc3va3OtlqWKytWb1lJRvFntHZHme8p6h/R 6B3FF5CP0y9lCMox2fxr7Dmi57sspcvJv1B1zJUaliqEXvc3TR+Fe2e8b81piwYinsj2 cwd/IKP8goTMZaNU0gToUnbFBFl3KFgIyZuiVi0qJz2tmsWG0aI0x402XCpHPkdU0SeO Q92cSm6viNVU9kGW/n1VcAcWpNgEyQfubPJET3E2n7V1OD03QuzodcJqZGRc/hGVs0GL PfKXljaE0xDNqC1UoPPGkfn/JM3rtPazyp9lTO9jmSrPt+rqmIFLK2qu7UPIRSXSNPks jPmA== X-Gm-Message-State: ANhLgQ3OHt6fVwgDspHxVJNZ4972UanHIR9RYw2ppSK2V+fjHB/a/kqD v4VufE3IR7ArcMs8P0taNfddU0XvevI/himV5rp+wQ== X-Received: by 2002:a9d:6a47:: with SMTP id h7mr6013558otn.297.1584695728515; Fri, 20 Mar 2020 02:15:28 -0700 (PDT) MIME-Version: 1.0 References: <20200319180125.GJ14585@pendragon.ideasonboard.com> <20200320084406.GB4344@pflmari> <20200320090339.GD4344@pflmari> In-Reply-To: <20200320090339.GD4344@pflmari> From: Geert Uytterhoeven Date: Fri, 20 Mar 2020 10:15:17 +0100 Message-ID: Subject: Re: [PATCH v2 07/10] dt-bindings: adv748x: add information about serial audio interface (I2S/TDM) To: Alex Riesen , Geert Uytterhoeven , Laurent Pinchart , 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 Content-Type: text/plain; charset="UTF-8" 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 AM 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). OK, didn't consider that. But that still won't stop the hardware designer. E.g. on Lager, the clock input of the PMIC is tied to the clock line of an SPI bus, so to use that feature, the SPI clock must be kept running all the time, not just when doing a transfer. > And how do I require it to be set unconditionally? By just removing the > "if ..." part of the statement? Indeed. This is still the plain text binding, not yaml. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds