Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10201047imu; Wed, 5 Dec 2018 18:31:39 -0800 (PST) X-Google-Smtp-Source: AFSGD/W8t4lm18uusTu776vZY533c8T3NA+m8vExqx90LEYpmYdmsRt1SeR9FXU+q82pziuUvZgN X-Received: by 2002:a62:16d6:: with SMTP id 205mr26719618pfw.256.1544063499919; Wed, 05 Dec 2018 18:31:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544063499; cv=none; d=google.com; s=arc-20160816; b=wIeQ5CffiVUebHxzVqynhQJbH/zkHaP2D64ot0+xvoudwHSdC9iYMSqqQEwfgT8rDG MwfWjqpFrCbDT6pBctL5Ln6wZ/YehWDwLTjMF2OFT81kUwmfqoAkCljIWr86zJG37H9T WoPaIguZAErq5a8UltZayUXAQJYtZGZxEboAZnjicddoQUs3/GJHEfZotHJKKssLUQl+ D75nRJlLVayJYcC1S//VbL2fW74FOxFJhEpjuDKfEtFeCDCsGgv8kTgXzLjSobtksTld t5CrfFtvDqfLNiXRhbcHEoE+yNfkRDWfS2IswK6ENJj2c8eHfcKAOGl51n9xb9LEVCQZ RUaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:date:from:dkim-signature; bh=zC2S0O8x2BqWz4XPnEW4Ujvl3xqsv0EQz+TgQBAGvqQ=; b=jtjH5+cPoMNExnDs4YQ1CERjAsueptWFsgjzqVk7G94WB209vazjVQYaeh/cPD45uX qJQf2De8PuYDK7d8dLRhG00WpyIsJK0WbqWQpaXWfpKsgPTebJ4NBP0SYqDJv59ka9el VbjKgN3W1NsTgzyBmInQbueCElG72gt3f0QEeEXgy+YS27k8YxKtyzx10f1ETgW0EtP0 ptdBE6/5TRxTFNFR7+qzOWT1F7Rs5GXGhMKt00zXXVJ/mKHiTV2BxQwS6CGL9xT0wVHN vw7c+haccJ7sd4MzTmXMm2+BpuRRIBTnO1WEwDUc6/CJeG7negHf9JQ5dum0jMKBrf8Y tSyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=Etj0mYAw; 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 k18si20852610pgf.97.2018.12.05.18.31.24; Wed, 05 Dec 2018 18:31:39 -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=Etj0mYAw; 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 S1728833AbeLFCas (ORCPT + 99 others); Wed, 5 Dec 2018 21:30:48 -0500 Received: from mail-yb1-f196.google.com ([209.85.219.196]:36251 "EHLO mail-yb1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727940AbeLFCas (ORCPT ); Wed, 5 Dec 2018 21:30:48 -0500 Received: by mail-yb1-f196.google.com with SMTP id w203so6114072ybg.3 for ; Wed, 05 Dec 2018 18:30:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=zC2S0O8x2BqWz4XPnEW4Ujvl3xqsv0EQz+TgQBAGvqQ=; b=Etj0mYAwVdBYrcofq7zlhfWwMYxhR27yRzX0cBNo0gdVyU2pi1xDziRB8gdXpG8/5T OdGgjt0dC7/OtfyXcbQVCjpeOwIi7lRgTtscFT1P0sLVW0V2t6PZ7MXplrW2eee2xg7a dkjmZvYtI5hRzVppALjkx5MM/6IiOt7Di/v8ejmXTyT93Fewskg8o4ipQSi4PXD28DGd pzKVJIfO9ku1Eso27+iaLAx8ysjtjd93Wb68joEgSNEawcdmu+zuLMDyRIzOlXzMSAJV AoHpAK0AEN/n/fnFEFYrAsaU2v5ZElOh4NUke/dEs2y5QhfgMD5RxonJMQtaOCG9Z9L2 HBrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=zC2S0O8x2BqWz4XPnEW4Ujvl3xqsv0EQz+TgQBAGvqQ=; b=CfpcjyaeaV5K85bCDtEjB+CDShxQfKJDRgY0EzxjCc4Nry4TBzNsC/D5pMtba/iTIe hsfl0rW5FIMHE2SyPpao1pK81BZlT5mFaCQB8fufyCbX0uX5wQozdFRSa7oXJeRrknyp 38H3e2GS/b6Ldd/ZTzL/XRaw1HxuRVyUmmF7yzlSaXT2EUi/3LLWAIVg4sutNmgmhZOK v8+fNZQwXwOOfnR3aaauY7VHGQTCjFXoNmDlazsXOFZNwlwJNeTduSzFSZwY76a2hDu1 cMrF5iaBBwbCFMsx8aqqfVpaD6+n8BTd0Qm8vWZEQ+uc6zEd/81z7w3c4hN7BvyfZ56p EHKw== X-Gm-Message-State: AA+aEWYUVefp4tq3K8/+1szk7R12K7ahRnK2oh68ouIC++q5ievbBzUH 3SPOagF5KPtP0RhE+3L1eH6YVA== X-Received: by 2002:a81:a109:: with SMTP id y9mr26779268ywg.269.1544063446990; Wed, 05 Dec 2018 18:30:46 -0800 (PST) Received: from localhost ([208.115.86.73]) by smtp.gmail.com with ESMTPSA id w77sm9229093ywa.9.2018.12.05.18.30.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Dec 2018 18:30:46 -0800 (PST) From: Paul Walmsley X-Google-Original-From: Paul Walmsley Date: Wed, 5 Dec 2018 18:30:45 -0800 (PST) To: Atish Patra cc: Paul Walmsley , Rob Herring , "devicetree@vger.kernel.org" , Mark Rutland , "paul@pwsan.com" , Megan Wachs , Palmer Dabbelt , "linux-kernel@vger.kernel.org" , Wesley Terpstra , "linux-riscv@lists.infradead.org" Subject: Re: [PATCH] dt-bindings: sifive: describe sifive-blocks versioning In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Atish, On Wed, 21 Nov 2018, Atish Patra wrote: > On 11/21/18 5:07 PM, 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 > > It should be be under > Documentation/devicetree/bindings/riscv/sifive/sifive-blocks-ip-versioning.txt > ? These IP blocks could be used with any CPU architecture - ARM, x86, MIPS, etc. - so it probably makes sense just to keep them under sifive/, rather than associating them with a specific CPU architecture. > > @@ -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 > > /s/autodiscovery/auto discovery I've changed it to "auto-discovery" per your request. Let me know if it's not OK for you > > +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"; > > > > Just for the sake of completion, should this document also specify what should > be the style of any possible closed IP as well? Let's handle those separately, as Palmer discussed. Thanks for the review, - Paul