Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1816463ybh; Tue, 14 Jul 2020 08:05:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznzAt8NwDjrOieyd3GR8Np2/XJTWNDvdaklrh2ZUi2MHtKT8HmxTUBGklourtbLuci4Pqh X-Received: by 2002:a17:906:3b15:: with SMTP id g21mr4714808ejf.221.1594739126940; Tue, 14 Jul 2020 08:05:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594739126; cv=none; d=google.com; s=arc-20160816; b=PweUReLoAw1nfwoGOoiUFEjsG3K8ldGEw2+PLLzgJpj9wCWGMueegF/1+/2nhWX33S U0qWIeoLx0cYCVWOEGlcZ+iyhKMkswnhtZ88azcpqh6kl1NY/D3frVb/WSx+Y2Y2cTVX db4JWm80q1PAj3mLWWumgqqKJM4EBYNEP4gdD5lyAz0ufd0EcpxIsgNYn87acctlA7ms Hj2GtSVtRvLTezKU5eAWODO2IaCCbDnomj9tqzfGcFOJ9V3GFSTu6PwJNwJPv/63i/aZ xXmrNHf7M1Rycl6jUbWmCmadf/214ig05U/el5Y/4/4YeL03RoRibfZJ/9OUMIUZ+IM7 jQXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=BhnExgq+Nd5ozoKz49wxamTqT6Vp1vBf1v4wQYr05aE=; b=ualI/2yby+l7LPpBPj6zcnDo4LSpuHC3ju3uajGAhJ3zPEE3XWNTPjKul+8vYP+k9i WYaE4hUZ+Ukbi1OBg/86lNZa24FM8ugE/L5/3+yMTCNdESzB4DtvxcS9PObQbNk0HNE+ DA94SkH+PjaiSkZIHDlMbA9PDwDqX4LWVfzWwmRka8VZ/ja4nVJOo8hT4mFpzB17bmQU 2/2/5lK+E1ns/YgbRq7OM52T8AvBHCgPausAq/quXSKEf1tkBpnB0TjjVo0wLWIqgwW4 5N6PLGminCJaVXpODTJSS/1uB9vnrYLmBB4Rj+Z2t5DnORUQBWdbY13+dWjuvgz0O2Px dVaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vKFLh7a7; 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 s21si11002117edy.104.2020.07.14.08.04.59; Tue, 14 Jul 2020 08:05:26 -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; dkim=pass header.i=@kernel.org header.s=default header.b=vKFLh7a7; 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 S1727108AbgGNPEZ (ORCPT + 99 others); Tue, 14 Jul 2020 11:04:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:39448 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbgGNPEY (ORCPT ); Tue, 14 Jul 2020 11:04:24 -0400 Received: from mail-oo1-f42.google.com (mail-oo1-f42.google.com [209.85.161.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D08B722473; Tue, 14 Jul 2020 15:04:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594739063; bh=FYCfNCt5uaRkVo5QbOItUGbXRJQEdHEvBhLF5JIiyX4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=vKFLh7a7V8L2G7kls9Fkf68/5iKD9IjMArDhOL2udS1vFjV919bMfuiBuhR99/c+W rerP0+vnmTb+9qhqC1iLUMLrbIAcFu9MeN397oe931Pu5+VDjm0IA5F6kkhvu+RvWq GdsMz58j+EV54H9qXsHHRTVWGwH3hJ4tw+UP7fjM= Received: by mail-oo1-f42.google.com with SMTP id p26so3398024oos.7; Tue, 14 Jul 2020 08:04:23 -0700 (PDT) X-Gm-Message-State: AOAM533M4YaWXafcSvsO9uzZuhhbcBKXiw8tRCbpmGOoxLaodDMO6XaK QOCxIcFhfxvSv/EE9g1OxEFldWI+BJrJaFGbvw== X-Received: by 2002:a4a:ae07:: with SMTP id z7mr1744282oom.25.1594739063197; Tue, 14 Jul 2020 08:04:23 -0700 (PDT) MIME-Version: 1.0 References: <20200627161957.134376-1-anup.patel@wdc.com> <20200627161957.134376-6-anup.patel@wdc.com> <20200714023748.GA1164267@bogus> In-Reply-To: From: Rob Herring Date: Tue, 14 Jul 2020 09:04:12 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 5/5] dt-bindings: timer: Add CLINT bindings To: Anup Patel Cc: Anup Patel , Palmer Dabbelt , Paul Walmsley , Albert Ou , Daniel Lezcano , Thomas Gleixner , Damien Le Moal , Atish Patra , Alistair Francis , linux-riscv , "linux-kernel@vger.kernel.org List" , devicetree@vger.kernel.org, Palmer Dabbelt Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 13, 2020 at 9:47 PM Anup Patel wrote: > > On Tue, Jul 14, 2020 at 8:07 AM Rob Herring wrote: > > > > On Sat, Jun 27, 2020 at 09:49:57PM +0530, Anup Patel wrote: > > > We add DT bindings documentation for CLINT device. > > > > > > Signed-off-by: Anup Patel > > > Reviewed-by: Palmer Dabbelt > > > --- > > > .../bindings/timer/sifive,clint.txt | 34 +++++++++++++++++++ > > > 1 file changed, 34 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/timer/sifive,clint.txt > > > > Bindings should be in DT schema format now. > > Okay, will update. > > > > > > > > > diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.txt b/Documentation/devicetree/bindings/timer/sifive,clint.txt > > > new file mode 100644 > > > index 000000000000..45b75347a7d5 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/timer/sifive,clint.txt > > > @@ -0,0 +1,34 @@ > > > +SiFive Core Local Interruptor (CLINT) > > > +------------------------------------- > > > + > > > +SiFive (and other RISC-V) SOCs include an implementation of the SiFive Core > > > +Local Interruptor (CLINT) for M-mode timer and inter-processor interrupts. > > > + > > > +It directly connects to the timer and inter-processor interrupt lines of > > > +various HARTs (or CPUs) so RISC-V per-HART (or per-CPU) local interrupt > > > +controller is the parent interrupt controller for CLINT device. > > > + > > > +The clock frequency of CLINT is specified via "timebase-frequency" DT > > > +property of "/cpus" DT node. The "timebase-frequency" DT property is > > > +described in: Documentation/devicetree/bindings/riscv/cpus.yaml > > > + > > > +Required properties: > > > +- compatible : should be "riscv,clint0" or "sifive,clint-1.0.0". A specific > > > > A new versioning scheme from SiFive? To review, we don't do version > > numbers unless there's a well defined and documented scheme. IOW, one > > that's not s/w folks just making up v1, v2, v3, etc. > > The "riscv,clint0" is already used by various RISC-V systems (including QEMU). Not my problem that undocumented bindings are being used. > The "sifive,clint-1.0.0" is for being consistent with the PLIC > versioning scheme. Where is that documented? This is what I expect you to be following or updating to match: Documentation/devicetree/bindings/sifive/sifive-blocks-ip-versioning.txt > > There is no clear documentation of CLINT versioning scheme. I think it's best > to just drop "sifive,clint-1.0.0" . Agree ?? No, because then you are left with a very generic compatible string. You need something specific enough to handle any implementation features/quirks/bugs without needing a DT update. Typically, this means a per SoC compatible string for a block as even the same IP version can have different integration quirks. Rob