Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2701899ybh; Fri, 24 Jul 2020 22:05:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSZsyuY8Rttg+W2PKViCz/lF7/SL4pXcdAK+oZnfF4l9HgjG9yw6f8xH9PHpKIZAqJRbc4 X-Received: by 2002:a17:906:375a:: with SMTP id e26mr3584642ejc.324.1595653533022; Fri, 24 Jul 2020 22:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595653533; cv=none; d=google.com; s=arc-20160816; b=FicmTcizBqFXliAYycC7KZ+hhAFxnhF9pBB5QeI79YhQIvXZIjecpRScMur/O+LPQK XSt0ZEj5YEdgUSBwB02QpugCUrYu4KIghDVPtY+BZ1WyEMiqUJCRHRDx3fFspHAfQ9q/ IPwy4WV1fNQ4duXDxaiR/PS2M8Zmx23bsp19YTADx795bAjMHVFHvSnMf0NvaizK1Y77 pL6rAQqPECP8/Vyobhwin8Qw1yngIjnTiagZKSFP7OAP5gTRBHhP4ld7vuUEk7YQv0KP xXgav+QBJmnaKUtu2V5aWoIaJqnOTqZK4QRrPUoewgaq9oN0cOkik9fKDHIuc/3KfaEU yt5A== 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=d0dV2iws6uddsenYWAYMkWA+zVZMQ5+yYDWKXhWbbSQ=; b=GqW50taEYvGAQn16c4cb/3wJVMj8obZtR5Ex9fibTPjIzoITX681L4TVYp8Vt1bggP RJdlwGnz16l+woUErmiyBxTy0Rudf6qFmuNn1y0Kt5H36V+h1GzgQmHw6oTeBnJlkuR7 wG80j4Y9uB/7txbccuvE1TqpDsX9ogYtQf6qlUQ1JR9iTnQj+0/H0p4WDUB/m0DhOfTp wr+d2tLyUoTWZMrzQhqBgqelIu2OsPHcu29EGWWLcoE914T1KZ/oEKChouobfZpWQI8M DVSxz5X3Ix7p8XnzG7gKslG2RdqfJ2t2vt7IvhhgwoiwCzghxfS6e8+jxfkrnlfcmql6 X0Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@atishpatra.org header.s=google header.b=WEHHTg4b; 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 bd15si1714389edb.45.2020.07.24.22.05.09; Fri, 24 Jul 2020 22:05:33 -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=WEHHTg4b; 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 S1726784AbgGYFEp (ORCPT + 99 others); Sat, 25 Jul 2020 01:04:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbgGYFEo (ORCPT ); Sat, 25 Jul 2020 01:04:44 -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 3D626C0619E4 for ; Fri, 24 Jul 2020 22:04:44 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id j18so9554655wmi.3 for ; Fri, 24 Jul 2020 22:04:44 -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=d0dV2iws6uddsenYWAYMkWA+zVZMQ5+yYDWKXhWbbSQ=; b=WEHHTg4beksBQ7vroTRmltI3g6curLkD166WwiL4Dxtfln8Ff3lGwkRIlGZuHvbSKu O5MNgM0tt+tB3+BsHpVnC9DCPAyDf1Vcqo7jzAtq64Nicz5DoPTqvSGbJ35TIantjMCM VuVttfjZ2WA6fzPWni1AP8D9p6+iKM8fhPtiU= 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=d0dV2iws6uddsenYWAYMkWA+zVZMQ5+yYDWKXhWbbSQ=; b=H3mcC4Ome7GFRNQ8cFaGJNmW23YWm3/mbY200bpxAWxt0mlu9OS9L39IYNvRs5nHHi PMechrkRBYiYFcP5Bgx4MEYPltfYG7QiCozEUvrxnvVDHTUp0TefYgoDO54cCVv/VKJ+ j7GVYkELYTMcxY2rGjOLxjCu27+WmPkKNjqSTYCrj9zTQZJZndD9pVBabLQGmjh9Yxk8 8bhQAls0RLR+7SNWV95XccSk/p+Qhu3gCxWaCWhloiS+yDb4QtVRMYONI4B0V5ZQ2sBf MLHW5E5kaY8+Q0sGhEscdn4KshWWSWB1Xh6v7CfEauwXPPEww+Ry9VAdmg40pY46RaS1 AIDw== X-Gm-Message-State: AOAM532mAB/sY4HMZqj0MHjdBoA7MHsWRb237guBZSus2hsM9BlyrIWf IS44MJvtV6PS8DGtQcXiyr+hKt4bJwzXa6IWxYpI X-Received: by 2002:a05:600c:2f88:: with SMTP id t8mr11403103wmn.186.1595653482851; Fri, 24 Jul 2020 22:04:42 -0700 (PDT) MIME-Version: 1.0 References: <20200724071822.126758-1-anup.patel@wdc.com> <20200724071822.126758-5-anup.patel@wdc.com> In-Reply-To: <20200724071822.126758-5-anup.patel@wdc.com> From: Atish Patra Date: Fri, 24 Jul 2020 22:04:31 -0700 Message-ID: Subject: Re: [PATCH v6 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 24, 2020 at 12:19 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 | 60 +++++++++++++++++++ > 1 file changed, 60 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..2a0e9cd9fbcf > --- /dev/null > +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > @@ -0,0 +1,60 @@ > +# 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,fu540-c000-clint > + - const: sifive,clint0 > + > + 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 > + > + reg: > + maxItems: 1 > + > + interrupts-extended: > + minItems: 1 > + > +additionalProperties: false > + > +required: > + - compatible > + - reg > + - interrupts-extended > + > +examples: > + - | > + timer@2000000 { > + compatible = "sifive,fu540-c000-clint", "sifive,clint0"; > + interrupts-extended = <&cpu1intc 3 &cpu1intc 7 > + &cpu2intc 3 &cpu2intc 7 > + &cpu3intc 3 &cpu3intc 7 > + &cpu4intc 3 &cpu4intc 7>; > + reg = <0x2000000 0x10000>; > + }; > +... > -- > 2.25.1 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv Reviewed-by: Atish Patra -- Regards, Atish