Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp330748ybh; Mon, 20 Jul 2020 18:16:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzga23yEgpNrmPR3PAKqSi8HdUGpHW4py99fHS1RGjKMN9yoPSASRZaPBP80nTLQuhuLz97 X-Received: by 2002:a17:906:b45:: with SMTP id v5mr22293355ejg.464.1595294218016; Mon, 20 Jul 2020 18:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595294218; cv=none; d=google.com; s=arc-20160816; b=GzYtMrhm2SjRbcg8W/cEIj4deWVMbeX9dvedsFpBpnu+Mk9wJzRv9axqVGoOdd5ImA qfXfQBltKSuL8y0q8ejup2Z87gozUbVJFIEyQV0LhMA7iMHpDjB/+XCFi9X0T1hzzmuF u8l03WF8tNZpVyBfvyjxFNTAVNBqglNNmCslR9VgbEIcGeALJtUFEEr54HaHwx3CKZpo EK0v24YkDqmybjXvwE/ecz+Mzh9eX9naOeBK5sWxbI8fvd4+7XhS1uP2okAMLytXfUR1 wkvYh235zDHs7v5IoIKZsJiVo9gyrp0NddTFSL36J5dBZbuEvK6p0eqMC17lZkNk79Iy wLgA== 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=0m1PBDlf1LPTxPG0j6MS17W+ARPO8tVxYxjfZxGbckE=; b=DFOzkyQYLWnI2+16M3hE2mJbdbEw43awrOjgjRN5LfXp7XHaJP3VVuuvuh+noDX+5l b4ljbgOhmSELsfQZFw0Mhh006pLxdvuMiLD8ITsGdK+LuhDruM4JAQM6+6ZKeS0bTznk afWxeCcSDDkmG8MwsCK/U0TYJdUxkk1Q5wDyrKJp5kI9OF7zXcYJorCXB/prJ4lDyZ3O KCiT7u/f3/HFRj2elAf9DzZ8npRo2N5JZtKnvNNliiNIM110SZgTjjZzB/A9M67Bq0m5 J2rR3Z1kI7Pfr9zTAyRt3nU0uF9j9YQGvNySoYfCYO5k1PGif5BFP68vo8+gor0V0Tbn qzHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@atishpatra.org header.s=google header.b=Ce5+x++x; 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 v21si11446042edw.286.2020.07.20.18.16.33; Mon, 20 Jul 2020 18:16:58 -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=@atishpatra.org header.s=google header.b=Ce5+x++x; 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 S1728096AbgGUBPq (ORCPT + 99 others); Mon, 20 Jul 2020 21:15:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbgGUBPp (ORCPT ); Mon, 20 Jul 2020 21:15:45 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15CABC061794 for ; Mon, 20 Jul 2020 18:15:45 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id f18so1219372wml.3 for ; Mon, 20 Jul 2020 18:15:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atishpatra.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0m1PBDlf1LPTxPG0j6MS17W+ARPO8tVxYxjfZxGbckE=; b=Ce5+x++xkvWmQy5tV2ek8r7BcQsw1cnHjnq9IuBBj4ctIMLrk93iuc98LxUYPCK4Og jXE88z4QZFv4Ix7/4u8SyV5QyNcB5lOUWBtoMAEp9hnwWYnqxtvg2AUoepjjXtt6EOru t89VHWNOMR1jUPfsemv6niF42JiAx3scOvcV0= 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=0m1PBDlf1LPTxPG0j6MS17W+ARPO8tVxYxjfZxGbckE=; b=JMzSBWYBHICemQeI5UszzTnZFS6Z/adbruTOOFdYMNQVOVeP7UfMSWI73WK8MA+/+C kh0KnN9bXDEyvDZ+X2FKMB0RHR370aZzRf0TAqkM+PoCEM3URsgQUwlsRFZVWDCGjJ7m btoNhpp9WzS4jvr5GNtC55e6eRacI+MEfUtkX/2WrATvTUTBstSDyf+RgyEXH/L4nS1l CR6jBMiGOjCinnnUqexzsRwgIY4lkp63qE7paHah8F9lLoaQ9nd2AXIhxkjxg2S+Qca9 MyAR9vNDongMfSCFLFmXZl8PQYXeM1o5MNOdYbkdpZOi9YhJ/ARgWJjno7+g8ZNTbgFe RZ7Q== X-Gm-Message-State: AOAM532avS8y978jfBDNrr6YCsRxTlyZLz1StyLlkqNaSvD1hZz2VsBg 3/MylM5Tv+Xt/rvnL/h4RG4+phusZYPSjJcsJgE2 X-Received: by 2002:a1c:2095:: with SMTP id g143mr1620823wmg.78.1595294143811; Mon, 20 Jul 2020 18:15:43 -0700 (PDT) MIME-Version: 1.0 References: <20200717075101.263332-1-anup.patel@wdc.com> <20200717075101.263332-5-anup.patel@wdc.com> In-Reply-To: <20200717075101.263332-5-anup.patel@wdc.com> From: Atish Patra Date: Mon, 20 Jul 2020 18:15:32 -0700 Message-ID: Subject: Re: [PATCH v4 4/4] dt-bindings: timer: Add CLINT bindings To: Anup Patel Cc: Palmer Dabbelt , Paul Walmsley , Albert Ou , Rob Herring , Daniel Lezcano , Thomas Gleixner , devicetree@vger.kernel.org, Damien Le Moal , Palmer Dabbelt , Emil Renner Berhing , Anup Patel , "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 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. > + 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