Received: by 10.192.165.148 with SMTP id m20csp5118214imm; Tue, 1 May 2018 09:20:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoku55zg6V41pvDGQuO75lSBvSHnjjHubXgnAa1DkZOjw1NM6YDctnggjGHi46gn0OkVBCb X-Received: by 10.98.246.25 with SMTP id x25mr8439360pfh.106.1525191618511; Tue, 01 May 2018 09:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525191618; cv=none; d=google.com; s=arc-20160816; b=a69Cz6YvaC1Wud5Uf/SDk9L7CgBonXaLuuPF4VzCXP6XUtk6dWvtp0dRNqVpBnLbAa 9OJSiBsAHdn/0VwN9iFP+1dSveegq8JA0YWtbqN/CxGtlk/yABVMFg7eF6RD6erjTzmV YX9UgfISWENmCKFIhE78dMMojNZC75ZD5oBWKj5YnYPM6E/IXI7jJ2GD8PcJLlnxZm6n cD1q0wRHoMrxFdQxH0w228Npe4ru1h7ddTjhdPF0S1qAkNozOTxa9QC5xk9m5P37qGEh xd5S2504UjxEEqVk6S/3JPIkYxaF4NViiPwr8vQ9p5T+myNxTdbQ1cknYpb1qNnTofSH alBQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=jr1u3WVMNcgmUc0UIqOs3o+ISz3ZPXUr235HJ5tVjjM=; b=YKM+1bBmHfBR+LaSx8aeEwdSGHYwCjaky4w1pEzGKiq2m1pnB+dP8dCQbU5RvtEXie SM8gcRqaltJ8cAesRwzN3TgoD3x9udFZ2QHWuaT7guyOb2OijBLPTG1UT7CDTraYIb/0 ZjSRDGlh8c9GNZ6uBga0v04lEYIooIsERXxEeaGww5lbhnKahc9z2+uCpYtweF6YyUUA 25RUFKlr4AY1KSaIHgJpPjwee5omMPdOqG5IPxicQWfc3qh2otkWHGK6Jm7GxanhQ8qo h0Lv2u869IGSDd05CxW6CCsys4gOG8JLljwWSpAS4LRO08dWJerXzTizSCRqDxoBDU3R A6JQ== 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 f19-v6si7961906pgn.277.2018.05.01.09.20.04; Tue, 01 May 2018 09:20:18 -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 S1756156AbeEAQTc (ORCPT + 99 others); Tue, 1 May 2018 12:19:32 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:39711 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755316AbeEAQTa (ORCPT ); Tue, 1 May 2018 12:19:30 -0400 Received: by mail-ot0-f195.google.com with SMTP id l12-v6so13460274oth.6; Tue, 01 May 2018 09:19:29 -0700 (PDT) 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:content-transfer-encoding :in-reply-to:user-agent; bh=jr1u3WVMNcgmUc0UIqOs3o+ISz3ZPXUr235HJ5tVjjM=; b=SS2fRF09zcF3R0By9g+vqhvMiQwpXgtLQN+klN+pyI2RZvH+PUby33pOgX87eMSnnd tyfZdhsyvd9bj7HgvkA/SpFKOZaTFFk65pljsOiYVwa3OKIte7L+c8Il3OaQwUGX872L Ze6Xph0YXrHXTb9dQeJPR7oBPRx4S9hUy/0WdItKzLnzoZhh6YFjifBRMuUesryLzHcz qBLFE3My6I52mS3SNuwHQycLQg/usmKZ8jU4Z7A6n2XOSl65iym/hkBpSDWWzMWLFnuS h8tz31PemSb37FxxIayAYCROZyq3lCiKPWbIVDVWlD237gLgwa6N9yJ94b8pdY+5TQNp nt9g== X-Gm-Message-State: ALQs6tCp9YiG6HFKRFzoXqTvukfgO3mKb4Gd77Ag8idfrH1NoFcQ0L2k fqYWf2BeVKyBlzRscELQTw== X-Received: by 2002:a9d:94:: with SMTP id w20-v6mr12313072oti.310.1525191086794; Tue, 01 May 2018 09:11:26 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id p23-v6sm6356520ota.45.2018.05.01.09.11.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 May 2018 09:11:25 -0700 (PDT) Date: Tue, 1 May 2018 11:11:25 -0500 From: Rob Herring To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: Thierry Reding , Wesley Terpstra , Mark Rutland , Noralf =?iso-8859-1?Q?Tr=F8nnes?= , David Lechner , Alexandre Belloni , SZ Lin , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] dt-bindings: added new pwm-sifive driver documentation Message-ID: <20180501161125.GA14380@rob-hp-laptop> References: <1524869998-2805-1-git-send-email-wesley@sifive.com> <1524869998-2805-2-git-send-email-wesley@sifive.com> <20180429055417.GA10221@mithrandir> <60772240-3c75-7814-9237-d60916a8ceca@suse.de> <20180430081946.GH2484@ulmo> <61f24d16-5095-76e4-845e-2434029fe1f0@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <61f24d16-5095-76e4-845e-2434029fe1f0@suse.de> 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, Apr 30, 2018 at 12:45:20PM +0200, Andreas F?rber wrote: > Am 30.04.2018 um 10:19 schrieb Thierry Reding: > > On Sun, Apr 29, 2018 at 02:08:07PM -0700, Wesley Terpstra wrote: > >> On Sun, Apr 29, 2018 at 2:01 PM, Andreas F?rber wrote: > >>> "pwm0" sounds like a zero-indexed instance of some pwm block. If 0 is > >>> the version here, I'd suggest to make it "pwm-0" for example - you might > >>> want to take a look at the Xilinx bindings, which use a strict x.yy suffix. > >> > >> That's fine. I'll change it to pwm-0.00 in the next patch series. > > > > This should match the version that you use. If you're internal > > versioning uses single digits, or a single version number, then I think > > there's no need to use 0.00, because that would just be confusing. > > However I think it'd be good to make sure it is discernible as a version > > number. Perhaps something like sifive,pwm-v0. That seems to be a fairly > > common scheme. > > Yes. My point was not to adopt another vendor's versioning scheme but to > adopt _some_ consistent scheme and document it, e.g., in a sifive.txt > similar to xilinx.txt: > > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/xilinx.txt > > It should be made clear what in the compatible string the version is > (thus my proposal of using a dash as separator), and there you may want > to document how to map between IP/documentation and compatibles for any > new bindings. Yes. And using versions in compatible strings is only accepted when there is a well defined versioning process. FPGAs tend to be the main case as most SoC vendors don't have rigorous versioning processes. I guess it makes sense for SiFive from the little I know about them. What doesn't make sense or get accepted is software folks just making up v1, v2, v3, etc. Rob