Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp299990imu; Mon, 26 Nov 2018 11:04:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/WoxlnfhD7RLqPlLbiuyVn5QcTW7aNf3Cj8117Jk+QinGr4cnynepP3KoG6lMR3ABac2nPI X-Received: by 2002:a17:902:a83:: with SMTP id 3mr23631208plp.276.1543259094083; Mon, 26 Nov 2018 11:04:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543259094; cv=none; d=google.com; s=arc-20160816; b=gbtISQH2kyzZP7wfO2Lyb5bUMSLEFuBpKw6CxfQ557D0i/V95m8uvE73nK6TX/DYxN 2iLsOjcqcuNi92wRaV+mqtzSk0lWEavKTuWqnX+2G3G5763YYlyBwgxtsGFBA17PGPyn tkFsqx7i+fBWs4oAVwnovP3bRkZ9otH4MjjzNwkcImFqrFOPqgYotlx/lv9u+pnA+GIA FYxYzRgTON65VgyZ5COnecshEVghcKfqCVUcGad21N7ot+wugJ4I5Bwkh+k0JTiGYk4/ BryyZ6itwnwOhdNIr3YLvXWfu0vRzxGAt6yv7SHeLbE01O1f/x6jBalcFkpYomi5xwmk smDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=OVp5h6hiWa5viWYNBzxoxu5Tt47L+PYW4lVWplLHQ2s=; b=kgEvUWWrEy4PglZfWbHBv9JXJVKp+uIZsu5uSSV4v/IqWNqTjG7QWCGIwpUPkO4+WZ krAr3BOjV5WjScRgiEaFCj/3QZDAsJuIUZJo/l5nV4ui7RfoYV4njR2MBg3QcKH8CDnp vfc9z2ZMgDGIsBZwSLjugmfyebZ9Z3GyUQa7n3xJ4AAPET0sWwD8JCCcAUIVqdGX22Yz G17EVku/jeWqF9o9QOfqajpwPhYehZKERLfATakELXHY1Rbq2RXuoK0q9U1/H1xBgWNz YYS606iBtUapJs72wIblTT6Bk0tp2RQbHWvlamCWyc7zjRnLjn2lhpw0IINA3EVf6Mqh T1Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="R8v/JUL4"; 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 u27si1175159pfa.103.2018.11.26.11.04.15; Mon, 26 Nov 2018 11:04:54 -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; dkim=pass header.i=@sifive.com header.s=google header.b="R8v/JUL4"; 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 S1726380AbeK0F5w (ORCPT + 99 others); Tue, 27 Nov 2018 00:57:52 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:41656 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726140AbeK0F5w (ORCPT ); Tue, 27 Nov 2018 00:57:52 -0500 Received: by mail-pl1-f196.google.com with SMTP id u6so14317535plm.8 for ; Mon, 26 Nov 2018 11:02:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=OVp5h6hiWa5viWYNBzxoxu5Tt47L+PYW4lVWplLHQ2s=; b=R8v/JUL4kbq3vbtJLbOwQ65Lnv9cPIqMzefPeScfLel9qtZivlFuIVTg4lRl8jKyBy zw8t517enCnR5QNVPjOreimXhv9y394P3a+CsmpOoydJ0BIxrcsnMdZw7E+RyCCfeFH1 ziCfJmMcpvCd1+2zGu1lCMYp1ziAlHhaFPaGXXsDJosdLr9Fo0XxXTmDMc0bc5byYMrP oq/8CQeYZp/Uu2HjOIJYCEzgTbYjiBPraxphFmX4BteUd13Ga8tR51EJS3yYiZWlaraP plDSJ5Qzk2tlAFXAz5WkzcBozIsnIilYlVTm5iXNxtAIj+WANNRruxae1IQxVdNva57B 5L6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=OVp5h6hiWa5viWYNBzxoxu5Tt47L+PYW4lVWplLHQ2s=; b=ETTPrHvCasoUlIaFSy+HaiN87QeklQ5J1PQQUQEG9yaB271dh+2PQ6/0ICxYkqmsWl o8DMCG5rd9AhOqGJyGFDMwUwJE5g/i5xbJE4xs2zclj6Q3y3Xer8abqTGmb3RsoorWz3 N5k4NRGiY/VWdTHIi296BQVjXCx0kQU8Tu+bAgg+FtZe2lpXS/Zh34D0kKQ0LAdnRhpD hF4LR7J6zi22mQzzvvpwuTc9yQtx4BldsX4gk79uLTVWsL39SdYfKq0CQBo0MqFx3Sbe fuye/FfANJcolXw1ekoaadwgxp7/MFlxWm70QVjs+5/1UmayRBellKMepzE4Z1IFAm9y PBKw== X-Gm-Message-State: AA+aEWYvUM+FF56XwKW+l2Pjagzq8CX9fyljZywBZ3Ns6mSiuEw5sQdX j7O0XYkmsP7mfYEQO+5WKRM4iA== X-Received: by 2002:a17:902:583:: with SMTP id f3mr29865894plf.202.1543258969829; Mon, 26 Nov 2018 11:02:49 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id t66sm1467295pfd.54.2018.11.26.11.02.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Nov 2018 11:02:48 -0800 (PST) Date: Mon, 26 Nov 2018 11:02:48 -0800 (PST) X-Google-Original-Date: Mon, 26 Nov 2018 10:27:42 PST (-0800) Subject: Re: [PATCH] dt-bindings: sifive: describe sifive-blocks versioning In-Reply-To: CC: robh+dt@kernel.org, devicetree@vger.kernel.org, Megan Wachs , Wesley Terpstra , mark.rutland@arm.com, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, paul@pwsan.com From: Palmer Dabbelt To: Paul Walmsley Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Nov 2018 17:06:56 PST (-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 > > .../sifive/sifive-blocks-ip-versioning.txt | 38 +++++++++++++++++++ > 1 file changed, 38 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sifive/sifive-blocks-ip-versioning.txt > > 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,". > + > +An example is "sifive,uart0" from: > + > +https://github.com/sifive/sifive-blocks/blob/master/src/main/scala/devices/uart/UART.scala#L43 > + > +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"; Reviewed-by: Palmer Dabbelt