Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1702999ybk; Thu, 21 May 2020 13:10:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3kq+7Yy9QhPU5dhKaIxFaJh33X04UffhbHBEM21ktr7xHesdXUxq4EOeMjiM57Sdp7RWd X-Received: by 2002:a50:9a86:: with SMTP id p6mr369262edb.153.1590091801297; Thu, 21 May 2020 13:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590091801; cv=none; d=google.com; s=arc-20160816; b=xZnK/1/Mebq+rbMx9UBeRsHD/D6o1cokq1662jUl1qskz7rmXo6i37UL7KEM0htNiG eSiO4PQFRbQ5phHWegsuvjpmzKIaStgwhQDSLO+qpNIPkgZfIKT0OjfjCh7vWtfvzgYb 2FSoOKlTMMsobS0uieTb6GC1+/WQE9C68kir3GUdyEPwyE2FcIVGogfWvPSw8nXykE5A NErIO26kfM5sDxR6og4oF0Z1bg9BhbBkeCskM914Mjv65RG1G0kMGbA2cjo7DHIOGkyn EFUMKyJYA19nXFlgB7gsvJiq2Go4ZrahirnctczHv9GlDk7Ust0oqcSUD/Hs4+DLxT2W bv8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=2Hose8PlqDAqdvvWUSVa6xrNHWRQshi8g7D6paJwuuE=; b=xLLCnX5ZT5YEKSx7uspMkrntpwgk/rcGQLjQ44cl+uw0DNHssmq2uqd8ksV2HY7MGY drXr1Bc7F8zniu3woeH1Pyw1eVgwGWzyv3ncczGY8TxT6aBdyBiV/iAHVwmO2zsjZxhn V4qhE7crk6W17WNyvwyW9f5Qjx7UGSnylP8pD9lsUWpZ0FCfgWvJE7ocRBABJBzGkHOt pYQ1N2oAnOEm0BCLBGHRQ4q7IvH2SiNVYV6ISxtlYr//14dpgtAJVsj6PDIyYEXfRJ7F h24WkSX/2Sx8W1oHCXRreA/WXWkDp65f3ZqwNDw69Tygcudb01flQAk4VXJGcYWQ/EgQ /9Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bVevxNEp; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si3899060ejg.711.2020.05.21.13.09.37; Thu, 21 May 2020 13:10:01 -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=@gmail.com header.s=20161025 header.b=bVevxNEp; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728250AbgEUUFO (ORCPT + 99 others); Thu, 21 May 2020 16:05:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726814AbgEUUFN (ORCPT ); Thu, 21 May 2020 16:05:13 -0400 Received: from mail-qv1-xf41.google.com (mail-qv1-xf41.google.com [IPv6:2607:f8b0:4864:20::f41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4E72C061A0E; Thu, 21 May 2020 13:05:13 -0700 (PDT) Received: by mail-qv1-xf41.google.com with SMTP id x13so3686026qvr.2; Thu, 21 May 2020 13:05:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2Hose8PlqDAqdvvWUSVa6xrNHWRQshi8g7D6paJwuuE=; b=bVevxNEpteRG82qyDRmOLqo52u6P+Dto5vXshN5yOjP/GqFrqVCkYDJHpX6ttJ300w x5XjjqAH0QLQwhdC/PxXwKR17Mc1kpjgxx7YFrGkFNfS1PsunIj1JsBtUnxddA1cjdk2 W/3pHMu3jmItlRHqyAZoNLGA1sugI/HDXRJ0opK2DOStVkgj0bmA6SOTtc1TAAmDFYm6 qGLTqCVi9XQI200JNXUMzbFx2d5GnyC3tT2zwcJS9srDuLjXhOJflFwd0fyaew8bieB7 MHN8Lz2lHXuwoACjoBigt1sH4iYMNnpl7PLt8hOVpS5ThP3CeZq/Dt9qji2Qeh2lYnfv F/Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=2Hose8PlqDAqdvvWUSVa6xrNHWRQshi8g7D6paJwuuE=; b=aAfjS9n1LUEfBKeIOLoxb2LadfO9ZPNGOgCFKQZ4hry3cLD7paVP2H/AY6i6RMDk0c Og6HygarW1aLLlpBuaHldFtVlJeQoyzkG6eBsY5FvTmv9f+VEzg3H0x1nfDDEWIRUcLj oqf10zU4dkjg7fk67/4Ba47EWMEzGtJxDVRzNSANYaloBaimjyE4zzH3RNomHnZLU3VZ fRyCWabuYGxUkC3HsIgFN52W3FOc58Q4qpiMCZh404OtZm9yOdyCrzTNEMiRdckMvg38 deeAYGEn4hmbzPd94hr17DJ6dGijm2DuMhcGKbyZHO+k+zGy5/iOnV+Wtcyr6yT6x/T9 vTxQ== X-Gm-Message-State: AOAM532USLMd8s++E3y2d8RqVyxZ1EeRdxVY84OiGPMmhqaVM0020w0N fQFp+hB5WJSoQ7I3AOxKF6jmv/SWtNUNxw== X-Received: by 2002:a0c:fe88:: with SMTP id d8mr424154qvs.208.1590091512897; Thu, 21 May 2020 13:05:12 -0700 (PDT) Received: from [192.168.1.209] (pool-108-51-35-162.washdc.fios.verizon.net. [108.51.35.162]) by smtp.googlemail.com with ESMTPSA id m59sm5849656qtd.46.2020.05.21.13.05.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 May 2020 13:05:12 -0700 (PDT) Subject: Re: [PATCH 5/5] dt-bindings: timer: Add CLINT bindings To: Anup Patel , Palmer Dabbelt , Paul Walmsley , Albert Ou , Rob Herring , Daniel Lezcano , Thomas Gleixner Cc: devicetree@vger.kernel.org, Damien Le Moal , Anup Patel , linux-kernel@vger.kernel.org, Atish Patra , Alistair Francis , linux-riscv@lists.infradead.org References: <20200521134544.816918-1-anup.patel@wdc.com> <20200521134544.816918-6-anup.patel@wdc.com> From: Sean Anderson Autocrypt: addr=seanga2@gmail.com; prefer-encrypt=mutual; keydata= mQENBFe74PkBCACoLC5Zq2gwrDcCkr+EPGsT14bsxrW07GiYzQhLCgwnPdEpgU95pXltbFhw 46GfyffABWxHKO2x+3L1S6ZxC5AiKbYXo7lpnTBYjamPWYouz+VJEVjUx9aaSEByBah5kX6a lKFZWNbXLAJh+dE1HFaMi3TQXXaInaREc+aO1F7fCa2zNE75ja+6ah8L4TPRFZ2HKQzve0/Y GXtoRw97qmnm3U36vKWT/m2AiLF619F4T1mHvlfjyd9hrVwjH5h/2rFyroXVXBZHGA9Aj8eN F2si35dWSZlIwXkNu9bXp0/pIu6FD0bI+BEkD5S7aH1G1iAcMFi5Qq2RNa041DfQSDDHABEB AAG0K1NlYW4gR2FsbGFnaGVyIEFuZGVyc29uIDxzZWFuZ2EyQGdtYWlsLmNvbT6JAVcEEwEK AEECGwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4ACGQEWIQSQYR1bzo1I0gPoYCg+6I/stKEQ bgUCXT+S2AUJB2TlXwAKCRA+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rRzOuw+qnWVgWGBPxdDftz0Wck941tYF9XE0aMgkf4o1sGoDZFUFPCQdfEYPzzV7O S5hN3/mP5UeooFHb Message-ID: <2aec08b7-7197-4b60-89d9-c3b0d5a8a258@gmail.com> Date: Thu, 21 May 2020 16:05:10 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200521134544.816918-6-anup.patel@wdc.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/21/20 9:45 AM, Anup Patel wrote: > We add DT bindings documentation for CLINT device. > > Signed-off-by: Anup Patel > --- > .../bindings/timer/sifive,clint.txt | 33 +++++++++++++++++++ > 1 file changed, 33 insertions(+) > create mode 100644 Documentation/devicetree/bindings/timer/sifive,clint.txt > > diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.txt b/Documentation/devicetree/bindings/timer/sifive,clint.txt > new file mode 100644 > index 000000000000..cae2dad1223a > --- /dev/null > +++ b/Documentation/devicetree/bindings/timer/sifive,clint.txt > @@ -0,0 +1,33 @@ > +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 : "sifive,clint-1.0.0" and a string identifying the actual > + detailed implementation in case that specific bugs need to be worked around. Should the "riscv,clint0" compatible string be documented here? This peripheral is not really specific to sifive, as it is present in most rocket-chip cores. > +- reg : Should contain 1 register range (address and length). > +- interrupts-extended : Specifies which HARTs (or CPUs) are connected to > + the CLINT. Each node pointed to should be a riscv,cpu-intc node, which > + has a riscv node as parent. > + > +Example: > + > + clint@2000000 { > + compatible = "sifive,clint-1.0.0", "sifive,fu540-c000-clint"; > + interrupts-extended = < > + &cpu1-intc 3 &cpu1-intc 7 > + &cpu2-intc 3 &cpu2-intc 7 > + &cpu3-intc 3 &cpu3-intc 7 > + &cpu4-intc 3 &cpu4-intc 7>; > + reg = <0x2000000 0x4000000>; > + }; > --Sean