Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp70099ybm; Thu, 28 May 2020 16:20:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzT3wLYDkQHgEDQIjzuBh5XeGxwV/F5FZwzLK3V+Iqqj3LQUP5wxmJR+RL6F2IXIkKJpWph X-Received: by 2002:a17:906:edd3:: with SMTP id sb19mr5124561ejb.39.1590708016952; Thu, 28 May 2020 16:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590708016; cv=none; d=google.com; s=arc-20160816; b=GeO0k2TOR0aFM7fxOwyJL8g+O5dL60AVJjLVHK7mJybK5SNek/duh7RCzfk1EyEsQQ MUNU8jtrR81T0yY/97rtBa26snT+iZiLWKuQ6t0sH77zYgmlXHMeqAtDDZ9mpPGxWgjv //IYecG6ojtcEg5s+E+o4YafOW+WD59cQtseBbPHOqJBV1oCVoe/e3xZTytWP2pSiErl KjWc6nWnpsAMzFuMWKp9MTgcm83rQgTSZ0ZwUkAzi2nTjvhpqIHcrqEwDflY1PsrN3oy 50Vsi3OuPKGQkpUNR8R8XWbZPl2orYOE9UO5FVt2+YuHd/x/dGoUA/5dgtWgRtz6lxFi zR1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=kHt1I46lXnPM8uSEpy3eA9oH3DddGg6oQn9ZXscyMuY=; b=U0IBxU3UJnTbos/MUy4TnpFk+Uhqzfj1MqQWY05+PAPDmk0nFLpvA0g0gQovI2CzsJ AukZYtIjW1yNz7pmPaxrTleTkaTbkAHcj8Se1DaN+qKDT0vDx/MVzSs10OulqDIHfX5I sWtoOrfzMSFRaNYMv6vPbA/YKdOsFyfbImUZwIb1CdWfsWPee6i/HkAf2mQXu67QSLVN Zd0+lqlSOq5DZVxWJXfAC2/vC+Gr2Dwge1AF5YLGXxy8IQxtY7flhEVHWYfCzg43jXw3 LtLs9t9QGLm2n4ojs2Ckg3bQ1EXM7oEDJ6HcZf+NYN4vCmTcfH0RXg7VJ6hjI+24b8XS Sj+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j6si4320014eds.402.2020.05.28.16.19.54; Thu, 28 May 2020 16:20:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437469AbgE1XSI (ORCPT + 99 others); Thu, 28 May 2020 19:18:08 -0400 Received: from mail-il1-f193.google.com ([209.85.166.193]:42641 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437428AbgE1XSG (ORCPT ); Thu, 28 May 2020 19:18:06 -0400 Received: by mail-il1-f193.google.com with SMTP id 18so658997iln.9; Thu, 28 May 2020 16:18:06 -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:in-reply-to; bh=kHt1I46lXnPM8uSEpy3eA9oH3DddGg6oQn9ZXscyMuY=; b=DKJnlbAMob8w/LGvJoTpO9KdnfWU+uE9xHZ8zTpGJK8h/PERyDa5BnWVaNBGsKuyPH oX3DBoKQEpbSD/Kkotp6113XCo5/eofXnC00MxYAxLUHfo17XeXGS0qQecuJ+c8Doi1q qm7SYesUQj4nQpbcgk1jaaTkarCIyrofzUU/OsmuqCP2DbJW6PZ/dPnwKSM0D3g+SlYw /v878JUC83vehhsiUf6hgaO4106aq0OnDf8Qt6X3m449k9mYsN7Auhdvo7d6BIHx2Rcb XqAttBkz7bAO7SvCgbYzvpTlvI8z6udyv6VR0EJvj0rtOU24Af+VJIQuuRVuZSAXfrgT A39Q== X-Gm-Message-State: AOAM531cRkvBvpCoaJmlg7MZ5nIUTAADooLvpFMm6jrDjJ1LW2xJLDaf L4818bzfSHVAs62Xvk0b2A== X-Received: by 2002:a05:6e02:1287:: with SMTP id y7mr4538682ilq.63.1590707885705; Thu, 28 May 2020 16:18:05 -0700 (PDT) Received: from xps15 ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id w26sm4128801ill.19.2020.05.28.16.18.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 May 2020 16:18:04 -0700 (PDT) Received: (nullmailer pid 861926 invoked by uid 1000); Thu, 28 May 2020 23:18:03 -0000 Date: Thu, 28 May 2020 17:18:03 -0600 From: Rob Herring To: Palmer Dabbelt Cc: seanga2@gmail.com, anup@brainfault.org, Anup Patel , Paul Walmsley , aou@eecs.berkeley.edu, daniel.lezcano@linaro.org, tglx@linutronix.de, devicetree@vger.kernel.org, Damien Le Moal , linux-kernel@vger.kernel.org, Atish Patra , Alistair Francis , linux-riscv@lists.infradead.org Subject: Re: [PATCH 5/5] dt-bindings: timer: Add CLINT bindings Message-ID: <20200528231803.GA847232@bogus> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 26, 2020 at 05:32:30PM -0700, Palmer Dabbelt wrote: > On Thu, 21 May 2020 23:29:36 PDT (-0700), seanga2@gmail.com wrote: > > On 5/22/20 1:54 AM, Anup Patel wrote: > > > On Fri, May 22, 2020 at 1:35 AM Sean Anderson wrote: > > > > > > > > On 5/21/20 9:45 AM, Anup Patel wrote: > > > > > +Required properties: > > > > > +- compatible : "sifive,clint-1.0.0" and a string identifying the actual > > > > > + detailed implementation in case that specific bugs need to be worked around. > > > > > > > > Should the "riscv,clint0" compatible string be documented here? This > > > > > > Yes, I forgot to add this compatible string. I will add in v2. > > > > > > > peripheral is not really specific to sifive, as it is present in most > > > > rocket-chip cores. > > > > > > I agree that CLINT is present in a lot of non-SiFive RISC-V SOCs and > > > FPGAs but this IP is only documented as part of SiFive FU540 SOC. > > > (Refer, https://static.dev.sifive.com/FU540-C000-v1.0.pdf) > > > > > > The RISC-V foundation should host the CLINT spec independently > > > under https://github.com/riscv and make CLINT spec totally open. > > > > > > For now, I have documented it just like PLIC DT bindings found at: > > > Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.txt > > > > The PLIC seems to have its own RISC-V-sponsored documentation [1] which > > was split off from the older privileged specs. By your logic above, > > should it be renamed to riscv,plic0.txt (with a corresponding change in > > the documented compatible strings)? > > > > [1] https://github.com/riscv/riscv-plic-spec > > Let's propose tagging that PLIC spec as v1.0.0 in the platform spec group, but > I don't see a reason why that wouldn't be viable. Assuming that's all OK, we > can start calling this a RISC-V PLIC (in addition to a SiFive PLIC, as they'll > be compatible). > > > > > > > If RISC-V maintainers agree then I will document it as "RISC-V CLINT". > > > > > > @Palmer ?? @Paul ?? > > The CLINT is a SiFive spec. It has open source RTL so it's been implemented in > other designs, but it's not a RISC-V spec. The CLIC, which is a superset of > the CLINT, is a RISC-V spec. IIRC it's not finished yet (it's the fast > interrupts task group), but presumably we should have a "riscv,clic-2.0.0" (or > whatever it ends up being called) compat string to go along with the > specification. Whatever you all decide on, note that "sifive," is a SiFive thing (as it is documented) and corresponds to tag of the IP implmentation (at least it is supposed to). So you can't just copy that with 'riscv,' unless you have the same IP versioning and update the documentation. Using a spec version is fine, but not standalone. You need implementation specific compatible too because no one perfectly implements any spec and/or there details a spec may not cover. Rob