Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp649208ybh; Tue, 21 Jul 2020 04:43:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjdT4VchqgdaRqUGiSRiQbA/LnhGZo9idGfxgOFlELhQowJVT4yeMP13oY2+lPzXeLASYo X-Received: by 2002:a05:6402:b57:: with SMTP id bx23mr24619930edb.304.1595331816034; Tue, 21 Jul 2020 04:43:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595331816; cv=none; d=google.com; s=arc-20160816; b=KX+Y+5EwG9xe3VvfyrQ0L/KcVAqwo5lm9wJ9gTdDq44sQDlLxGv4fhGQGJ5Jd/Oij3 yLotIV99dKocuE9NJH1Cl6n1Gvy/q3bH8BmnUVsP6H0Bhiu/stWypKizySk03uR4XB8w 57juiScON6EGMGgr+lVSct1bwmP3dDmLxjjpWVOM87boeI6YtSjjJ39Ek6jnzyDVxQgu orrLuY/Txhk2WYde7APTIwllCEXCkS1y2ReomQ0F/t81D29Amfp6sUr/2V7RxksPTW1N rtCluqqD4/UtT4cXsBm5HvLJgG0vQmobhOYFB3964mflQwUar8hKwgvnv1OdyWlcdaxP rIJA== 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=0J627pM80T7+XlutPkaKlOVr/z1gAAVKrENSM8VXItA=; b=WCiyzI3qQi3egg0QdmfvkJWYbuJTBkdT5TCWWJcG17e4zHnyql88D2ogf8Rc5160yu Ek1SVFINXKI67wZUpqcw126nCDcEfZQ3kumgLqtsAaOXbk7/cNfgYKolU034YrsriSBc IVn+R86WOe0C5/hVVgkPQu1Oo3ODFYdQF3UuY8PGBh9ThDGTwUccs2W7z/DxOcQopmmA B5vQYfJ6yJa8KpvO32m3P9D8vHZNLUn86/p1zhugWLma1GtBFTCZUnKfSKZkxwT/VgOs NbTuVxrfH08v6ZDiwPGOiuJT70Ua4Yz30Jyn+Lhm1O/5uZdCNcHgSuVJL15pQJbsI2c/ AJmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=aomBaqjh; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h17si11306539ejl.514.2020.07.21.04.43.13; Tue, 21 Jul 2020 04:43:36 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=aomBaqjh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729831AbgGULj4 (ORCPT + 99 others); Tue, 21 Jul 2020 07:39:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729629AbgGULjz (ORCPT ); Tue, 21 Jul 2020 07:39:55 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F557C0619D8 for ; Tue, 21 Jul 2020 04:39:55 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id o2so2545348wmh.2 for ; Tue, 21 Jul 2020 04:39:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0J627pM80T7+XlutPkaKlOVr/z1gAAVKrENSM8VXItA=; b=aomBaqjhstgNyLO0iG3oISEZgsZDk7I+CDVjJSDyjcwaHIcVOM0K5+HMK231PboQEK A2/ll23OKsSMzr4PBzWM/DbQPDdAXv8woUbnirpcylvahf9sCXpntRikrd5FDy6LQZ2B SmTb9NoSOXZFwQaGSGnrM85rIzJ/RYWvzWs9TqfX4QDozPArJJYYN0fR+XV8WYEazdak fqfgAyk+tRfLhx++g8eDu4I6cSvQqVY7/E7HpFo2iRa2PN0jocZFSwPjXCv94ELTWkDr ll6e0eO5qV6cSOnljZYyuajsWMjDhHTcfa6BE6Fz+nVCFLQK3gnfas6LdEJB9o1fiMwF ZjAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0J627pM80T7+XlutPkaKlOVr/z1gAAVKrENSM8VXItA=; b=mDCgq/akkuBAnxjuf+Nq1e0TrPBXQ8BtiNRoFCjEvcPH7sBtN+bXDz+jH+gl2XBUjy ivhlCO4cF+BUYCtE3DXViGOgdEznrPj7TAEh/7c5rIZ6safXhjqGB1pzQy73fAZ0J9S1 L6sur0/IcsDoeZFaIw3HpBqPtDYi16MpW3lZ3/2amfC5NDbAjb3+huhrH1yZjj9aVCCC 8NMjyCnXwvV58nzkc3HjJz5ou/DSbkdRHEEg6InIw11YmXN0sGaGrJ/3blBwpAm+m+Yj PBm5E2aUBv6/DV9YmMKaSZhaT+A6Kh5hS8y2Ze+CsXuxaeKLHqQxyUxIjscZyoaS4eGx o5ag== X-Gm-Message-State: AOAM532zjMzgP3aiHORMC2ltX+fy/cvsb+RZ0meA2u10VAtIlUEqvqA5 hTGWqEDabOg/JChXIvY2RJ7fDDonFAVLZFpuaeiiEQ== X-Received: by 2002:a1c:2d91:: with SMTP id t139mr3589796wmt.3.1595331593814; Tue, 21 Jul 2020 04:39:53 -0700 (PDT) MIME-Version: 1.0 References: <20200717075101.263332-1-anup.patel@wdc.com> <20200717075101.263332-5-anup.patel@wdc.com> In-Reply-To: From: Anup Patel Date: Tue, 21 Jul 2020 17:09:41 +0530 Message-ID: Subject: Re: [PATCH v4 4/4] dt-bindings: timer: Add CLINT bindings To: Atish Patra Cc: Anup Patel , Palmer Dabbelt , Paul Walmsley , Albert Ou , Rob Herring , Daniel Lezcano , Thomas Gleixner , devicetree@vger.kernel.org, Damien Le Moal , Palmer Dabbelt , Emil Renner Berhing , "linux-kernel@vger.kernel.org List" , Atish Patra , Alistair Francis , linux-riscv 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 Tue, Jul 21, 2020 at 6:45 AM Atish Patra wrote: > > On Fri, Jul 17, 2020 at 12:52 AM Anup Patel wrote: > > > > We add DT bindings documentation for CLINT device. > > > > Signed-off-by: Anup Patel > > Reviewed-by: Palmer Dabbelt > > Tested-by: Emil Renner Berhing > > --- > > .../bindings/timer/sifive,clint.yaml | 58 +++++++++++++++++++ > > 1 file changed, 58 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/timer/sifive,clint.yaml > > > > diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > > new file mode 100644 > > index 000000000000..8ad115611860 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > > @@ -0,0 +1,58 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/timer/sifive,clint.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: SiFive Core Local Interruptor > > + > > +maintainers: > > + - Palmer Dabbelt > > + - Anup Patel > > + > > +description: > > + SiFive (and other RISC-V) SOCs include an implementation of the SiFive > > + Core Local Interruptor (CLINT) for M-mode timer and M-mode 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 > > + > > +properties: > > + compatible: > > + items: > > + - const: sifive,clint0 > > + - const: sifive,fu540-c000-clint > > + > > + description: > > + Should be "sifive,-clint" and "sifive,clint". > > + Supported compatible strings are - > > + "sifive,fu540-c000-clint" for the SiFive CLINT v0 as integrated > > + onto the SiFive FU540 chip, and "sifive,clint0" for the SiFive > > + CLINT v0 IP block with no chip integration tweaks. > > + Please refer to sifive-blocks-ip-versioning.txt for details > > + > > As the DT binding suggests that the clint device should be named as "sifive,**", > I think we should change the DT property in kendryte dts as well. Okay, I will do it as a separate patch. > > > + reg: > > + maxItems: 1 > > + > > + interrupts-extended: > > + minItems: 1 > > + > > +required: > > + - compatible > > + - reg > > + - interrupts-extended > > + > > +examples: > > + - | > > + clint@2000000 { > > + compatible = "sifive,clint0", "sifive,fu540-c000-clint"; > > + interrupts-extended = <&cpu1intc 3 &cpu1intc 7 > > + &cpu2intc 3 &cpu2intc 7 > > + &cpu3intc 3 &cpu3intc 7 > > + &cpu4intc 3 &cpu4intc 7>; > > + reg = <0x2000000 0x4000000>; > > + }; > > +... > > -- > > 2.25.1 > > > > > > _______________________________________________ > > linux-riscv mailing list > > linux-riscv@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-riscv > > Otherwise, > > Reviewed-by: Atish Patra > > -- > Regards, > Atish Regards, Anup