Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp56750imu; Thu, 6 Dec 2018 16:02:11 -0800 (PST) X-Google-Smtp-Source: AFSGD/Ux/6XBeLIZJu6U+y+mN8FYgbI3VEufx4486mQAr6QpaU3W67tGS5JTE1k8OIMTTxHPiSya X-Received: by 2002:a17:902:aa0a:: with SMTP id be10mr12964plb.266.1544140931748; Thu, 06 Dec 2018 16:02:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544140931; cv=none; d=google.com; s=arc-20160816; b=tndm99D2isWvRXa8YEb308iFljn+xkW0mmcdm2YGOa2UreitXfT4wWSxU7c5Vxvm/A gWekFr+2GFob9ak+IEwmrrRhKtWPmx9co7G8je75m0CA/W6XFCDibfRhkcqSXFYiwK2r NQq/gmPwe1ywfTlTbxa+IuQJCKgnbteqMGXUV6A7r5yyU6M9Moowoe2sw5S3nEXqSi5H my93/5bJZaCeg6hSFBSEr3tyIwT6pcgKSVZgubR30Yt8snRT7wrpgoOqYLKyveS2aSxV wqOGv32DR07NVtz39Z58owLcWabCU0Go+X3umTpY/LYjW7dKJbe/bVCOOR9eF+K8QS45 wJhg== 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; bh=LwzlsoSLS1LyoW+7m+QbMfUGASe8IlJLO+Uqy7FOS14=; b=rHHF8RoAYImo4OPZfH66QoY6YRQYzsSSjGQ4SQZVUlPukLcJ97Au/XKCrgJ8fW1Did bc8WoW8GRsuloPwU+q0nG8RFPpR348NqgcwZhmTYMCoeU3xzN4/Y1G/V3RJak8NnTCI9 HMN9Imb2Df3Usb5vi7kZOA256tqQ1p+irAnitPjcK3Zb+vsZPEktvevF5cDsLO1EYvUv jmSdKNRL+094+spU2mypZlKQdqq/QyME1RbcVPEps3WyoIfw63DTsCaFXs9Ll7UGiGz4 cN/Dwuk3KzW/QhgboTgvx5sGkAd5TCOMmEo4HO0N9LoVrZvQjGQMt6LQJxa8Nl9Q+o9F o5ug== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4si1247759pgv.512.2018.12.06.16.01.45; Thu, 06 Dec 2018 16:02:11 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726275AbeLGABH (ORCPT + 99 others); Thu, 6 Dec 2018 19:01:07 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:41723 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbeLGABG (ORCPT ); Thu, 6 Dec 2018 19:01:06 -0500 Received: by mail-oi1-f195.google.com with SMTP id j21so1997549oii.8; Thu, 06 Dec 2018 16:01:06 -0800 (PST) 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=LwzlsoSLS1LyoW+7m+QbMfUGASe8IlJLO+Uqy7FOS14=; b=qPNBtvwzifOvBI5GfCZqN7KUe7kouUfLq8Js5Xc31l3QJIQu8fm/qSEcU7xw052rkl YNk3Rky1Nd/hc2y5hJrXkZaqn21Jp9+851hf4sOvkPrK4pwoQSp+OVqUktgcFnP+mHb1 V4AlTXgmikv3zVGBgbIpzzFUQXX8B1MtoTmlEbjQgqQ+C6teFkyTEujRJTszaoVSYlZq EJEeyVcC6f4wn+AfyT5kUDV86G7Ac9CK8m7Pn+6wEjgih3KReSyWJo9BMDsDz/shbq8e JDQyX5qLjZXYNqxQj4K4pDFCr8KYGVO6i4Cqp5WWFsUzTuonOEtGXNvw6/RRaPyl0mRE R95A== X-Gm-Message-State: AA+aEWaxdrlY/cFNQ9DD5YfNUcj/wFjYOZRRNxfRs28TnPGS07MGREzz nYgBeztc2WQ/RCqOhRXQt9g+S5w= X-Received: by 2002:aca:5c87:: with SMTP id q129mr19498529oib.189.1544140865662; Thu, 06 Dec 2018 16:01:05 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id z18sm672778otp.41.2018.12.06.16.01.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Dec 2018 16:01:04 -0800 (PST) Date: Thu, 6 Dec 2018 18:01:04 -0600 From: Rob Herring To: Paul Walmsley Cc: devicetree@vger.kernel.org, Palmer Dabbelt , Megan Wachs , Wesley Terpstra , Mark Rutland , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, paul@pwsan.com Subject: Re: [PATCH] dt-bindings: sifive: describe sifive-blocks versioning Message-ID: <20181207000104.GA10814@bogus> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Wed, Nov 21, 2018 at 05:06:56PM -0800, Paul Walmsley wrote: > > For IP blocks that are generated from the public, open-source > sifive-blocks repository, describe the version numbering policy > that its maintainers intend to use, upon request from Rob > Herring . > > Cc: Rob Herring > Cc: Palmer Dabbelt > Cc: Megan Wachs > Cc: Wesley Terpstra > Cc: Mark Rutland > Cc: devicetree@vger.kernel.org > Cc: linux-riscv@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Paul Walmsley > Signed-off-by: Paul Walmsley > --- > > Hi Rob, please let me know if this document works with your > requirements, or if some changes are needed. - Paul Looks pretty good to me. > .../sifive/sifive-blocks-ip-versioning.txt | 38 +++++++++++++++++++ > 1 file changed, 38 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sifive/sifive-blocks-ip-versioning.txt Use the path that was suggested. > diff --git a/Documentation/devicetree/bindings/sifive/sifive-blocks-ip-versioning.txt b/Documentation/devicetree/bindings/sifive/sifive-blocks-ip-versioning.txt > new file mode 100644 > index 000000000000..b899e5c6e00c > --- /dev/null > +++ b/Documentation/devicetree/bindings/sifive/sifive-blocks-ip-versioning.txt > @@ -0,0 +1,38 @@ > +DT compatible string versioning for SiFive open-source IP blocks > + > +This document describes the version specification for DT "compatible" > +strings for open-source SiFive IP blocks. HDL for these IP blocks > +can be found in this public repository: > + > +https://github.com/sifive/sifive-blocks > + > +IP block-specific DT compatible strings are contained within the HDL, > +in the form "sifive,". Really, my preference would be to add a '-v' in this: sifive,-v But given this ship has already sailed, I guess it is fine as is. > + > +An example is "sifive,uart0" from: > + > +https://github.com/sifive/sifive-blocks/blob/master/src/main/scala/devices/uart/UART.scala#L43 That's nice, but will be out of date as soon as someone adds or removes a line above it. Can you point to a tagged version? > + > +Until these IP blocks (or IP integration) support version > +autodiscovery, the maintainers of these IP blocks intend to increment > +the suffixed number in the compatible string whenever the software > +interface to these IP blocks changes, or when the functionality of the > +underlying IP blocks changes in a way that software should be aware of. > + > +Driver developers can use compatible string "match" values such as > +"sifive,uart0" to indicate that their driver is compatible with the > +register interface and functionality associated with the relevant > +upstream sifive-blocks commits. It is expected that most drivers will > +match on these IP block-specific compatible strings. > + > +DT data authors, when writing data for a particular SoC, should > +continue to specify an SoC-specific compatible string value, such as > +"sifive,fu540-c000-uart". This way, if SoC-specific > +integration-specific bug fixes or workarounds are needed, the kernel > +or other system software can match on this string to apply them. The > +IP block-specific compatible string (such as "sifive,uart0") should > +then be specified as a subsequent value. > + > +An example of this style: > + > + compatible = "sifive,fu540-c000-uart", "sifive,uart0"; > -- > 2.19.1 >