Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1491784ybh; Thu, 23 Jul 2020 10:08:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYUj3xXnpkjM+P7pYpbGBQx6Vcp8pqxbr0bVJY+1I4lTikTwGpn2Mt6IHlFov9z/Iv9JJN X-Received: by 2002:a17:906:f907:: with SMTP id lc7mr5568657ejb.143.1595524122750; Thu, 23 Jul 2020 10:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595524122; cv=none; d=google.com; s=arc-20160816; b=fSi1hTnwTC8SOW2EuSPNjf9BC7a0VhUHnnBQyrS37cktFaYH1zKef3rIl1q/6X40QK mubM6lrl/R+qqKK92iIXIdTGKdeK0V8E64MNg+Bh9oxBQQlViIGF2zRZ6OeJ+Crer/s/ JK5k4KUO1Tp+IoMZFVkZAmHHnSme24wJkPJ8MfVZzvDXotuHer+xeHFs1fG7hy5DurMq FaIdpJzWAX61D3kiEal4vwgnKgfMp+FW2B3RgHOoCWB8PZ6+LLQKnkpGyehX5oj4tUBx QW4n/Ze5N9G8rcl8cCF9Te1/Ah78E5AYmzFiu2lrUtoQZjlJm15FsNslN/G8ZltAUZJ+ ZYtQ== 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=2PWZkJpZ4ipb8P8p+Pg9LEmAeqADVPvG7RRrCZ//S+E=; b=olcvuKtU/9ONwsdWu7D1xpm0xUgkVV5Imm1SqbHqCtKzqRcG/cAO6iqsDUqn25nv9C 6gduSx2LS3vuHjlG/Kk2qG8WVnIsn/sp9nyTldiBei2+YQ9iJIkcMPvDQ6Q9u7JiM7Qx 1ZG/+oU0RJdwcuP10EHKduL2M2AzUEbyQP8fkyEL0jiti1rQeCk/reFm15FxB8YuI8Z4 ohFyCWEhfVbGfTYIqd27SR+AGjPaab1ueFeVjCb+5sydmc4fY4uO7ULpxHfz/yG2sfgx FHNsNwRixFPkN0egioHicgAJmBNi9ThJ7jHgQN+qO9LUwcFRuP5RNRLmbx6+ZZSaWppH EZoA== 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 n6si2278430edb.96.2020.07.23.10.08.19; Thu, 23 Jul 2020 10:08:42 -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 S1726784AbgGWRIK (ORCPT + 99 others); Thu, 23 Jul 2020 13:08:10 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:43602 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726650AbgGWRIJ (ORCPT ); Thu, 23 Jul 2020 13:08:09 -0400 Received: by mail-io1-f66.google.com with SMTP id k23so6962190iom.10; Thu, 23 Jul 2020 10:08:08 -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=2PWZkJpZ4ipb8P8p+Pg9LEmAeqADVPvG7RRrCZ//S+E=; b=qD0xTsqkPQUJrr/7dbMgo0CxBgTIw5RnBAT+Cox7K+bvWBN71BM4GlfWdngtsqGFSu BC/aE7iQyBNet0JTKLhQ4IF6Ffb2QimWaabuvklKo0aHelc/IHHYRxZR3sNx77+S88bl QB8hDoYXGnmtRJkjiiZ4RzVZa2/RL++xPV8MbCba72Lsy1gCnJx30dNZGRbwA0WxzfcO hLjEA7oKp5Wiae8YlLuNndNS0ZL/gh1AcvrNW2fLGOc1AUbwu6gDGDdMBMJK9BodxaBo b79qjeQ2KE3vAlBwnZTnWvH9oEjdiCRYI81z1/EsdR+Sw8NU7zgmwCxaOhfYU3rB2Anz 9Nsg== X-Gm-Message-State: AOAM530dq+k/dofK83dVs6ai5/RUQBmM3o2EPN+4LWml8mivsUlyjZK8 e2ej7knRuEbj8BHXfabVyA== X-Received: by 2002:a6b:7c08:: with SMTP id m8mr2363635iok.200.1595524087764; Thu, 23 Jul 2020 10:08:07 -0700 (PDT) Received: from xps15 ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id n15sm1524181ioc.15.2020.07.23.10.08.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 10:08:07 -0700 (PDT) Received: (nullmailer pid 542912 invoked by uid 1000); Thu, 23 Jul 2020 17:08:06 -0000 Date: Thu, 23 Jul 2020 11:08:06 -0600 From: Rob Herring To: Anup Patel Cc: Palmer Dabbelt , Paul Walmsley , Albert Ou , Daniel Lezcano , Thomas Gleixner , Damien Le Moal , Atish Patra , Alistair Francis , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Palmer Dabbelt , Emil Renner Berhing Subject: Re: [PATCH v5 4/4] dt-bindings: timer: Add CLINT bindings Message-ID: <20200723170806.GA535824@bogus> References: <20200723142409.47057-1-anup.patel@wdc.com> <20200723142409.47057-5-anup.patel@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200723142409.47057-5-anup.patel@wdc.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 23, 2020 at 07:54:09PM +0530, 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 Wrong order. Most specific goes first. > + > + 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 > + > +required: > + - compatible > + - reg > + - interrupts-extended Add: additionalProperties: false > + > +examples: > + - | > + clint@2000000 { timer@... > + 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>; 64MB of register space? Doesn't matter much for 64-bit, but would waste lots of virtual space (low mem) on 32-bit. > + }; > +... > -- > 2.25.1 >