Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1626145ybg; Thu, 4 Jun 2020 14:53:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMlAKA/lrykgPcLTeeZqmB2oRov+k+HSgYcpE1V/+C7p5CIyP6K9a6TqKGKsi2dPKWnjrZ X-Received: by 2002:a17:906:838a:: with SMTP id p10mr5612295ejx.243.1591307606410; Thu, 04 Jun 2020 14:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591307606; cv=none; d=google.com; s=arc-20160816; b=FGhEV+J7X2PqvxVHMRRVdm2Yq3UUSvRXE0YMvItGGRYgl8zGxkuBQRaLxB1EXEDSWi zcnAThUmorcqQGTwlMvMt63A2khbM/DJEHn3FC1y3PifBy/R/eXBo+maZsAD9cihr2v2 F2fnxhNud+KJ5+GHCiegYNrFWxIcgFXb48Ill68G5EnQwr6nmnX5YRzJ5PrxidBq1ygD BQmqlzyWAx4HexB721OhE3pTHkmlQcz5znQrvDHB+9j3vbM3ITR7LI/aun0Useu3wb+/ 9SmcEmJ/M+9s1eK5upQ6GAb9Eg2ccQk6Xl5MnzhanpIbIKkIU4mnMHL8boCE24+pEikB LzUg== 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:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=xx1SMceBerbJ4D9bRiE7FtxAAA2jXtiHh9vjFS/GUGo=; b=atzdJaCB1BBMBCXDKxoJ3BYqrAfRSLsIiKsrJUjxzRptVSObo9lGrNSSNM3MvcWTSp wHh1eKHLTjEXwbZ4cik6Pg9v0pAsFjKf2X3IH6DVbzSqCSki45EdAwknLaRzrnvs7zCw bNxP7Fcr4d5jvdLwdZ8AmUXsXxslKI712NOp17qrAbTSGeaxmKw0pPgpo5TuMQNRNK2R n/B5cRlrN4z1/ZYHiryOi/i/Ymyvt7WhXgE6RqxuEvDP54kQpM6vcE+4iFaJp1GEWKhW U71EheodUvMi548YNZ3Nl1AFP/LzaKpzxOHYrthhtvbK0QYqhSf7HMCAGJNE/W0UwD5r s+Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=Om00MRPn; 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 oz26si2420757ejb.252.2020.06.04.14.53.03; Thu, 04 Jun 2020 14:53:26 -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=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=Om00MRPn; 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 S1730025AbgFDUkc (ORCPT + 99 others); Thu, 4 Jun 2020 16:40:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730048AbgFDUk0 (ORCPT ); Thu, 4 Jun 2020 16:40:26 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B856C08C5C1 for ; Thu, 4 Jun 2020 13:40:25 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id t7so4063854pgt.3 for ; Thu, 04 Jun 2020 13:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=xx1SMceBerbJ4D9bRiE7FtxAAA2jXtiHh9vjFS/GUGo=; b=Om00MRPnxHudI86qW6Iuw7en1e4tOjieEUvzDKvCJ6A4wtwo1q9bHu+SKpd17jbVHg s6b16xASEjJDBwRXkiDBeVMUAIEYfTycGII1FWri4gs9Asw2e1SM/lwwLyrDNzifqpef G+Df9AN2+/XtCA1WyfBtD9WRGwKj1bEsapAaCQjDc7QDthWz6yufc8gSlHF1I7+GlFhY eTnag4NLzgahcscyUqOavCXNQVqvO5Ht1vIczZBrSxb1jod3rQMBFdd1jGOs3rVChTqx bmyp47HhTQH80xJaS5IIGoLQSnph+dZFze9hr5HNHcmtr0W2mIwVn2Vjjo1vON2LFoyS THPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=xx1SMceBerbJ4D9bRiE7FtxAAA2jXtiHh9vjFS/GUGo=; b=YGTgT2sZESehJPKsDFh4v/SDTMiKb/CGnrZvhOpGMHIv9TzGUVh9UoyBS6cOMym/TS E8gl5pFe8Z+RNEBg4ghDmcj3KHMCa5ZgtFMKxZgBTpEOVlpXaf1P6yaXkYpjz0dxihZq TSWznNBjD/wt7/VChhxmFrHbQJiZZ8010g27mg81gekzjX4uli1ZolDDXgc6uo3VVNMg oPjVRJu5yKGiJl+7Sf9bjhOAyuXTRUmbB8iZzj+bW7xVg6ipmuUX/p17sbm4VcxCLaM2 BNVEBsI0YMp4RnvBWNZ1uyz6eV+IaKnsffvO4AwzqvnjtVriCNVFn3qbSpCC1RlsuO5x +j5w== X-Gm-Message-State: AOAM531MCuz4Z/HXG7qNxG8pmVm0/P5kTl8DACKbMoPl/w//dhj+W5Zc DB0QleG4Hj9qYzMyQcGmzO4rDg== X-Received: by 2002:a62:3382:: with SMTP id z124mr6044820pfz.263.1591303224391; Thu, 04 Jun 2020 13:40:24 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id v186sm4246627pfv.54.2020.06.04.13.40.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2020 13:40:23 -0700 (PDT) Date: Thu, 04 Jun 2020 13:40:23 -0700 (PDT) X-Google-Original-Date: Thu, 04 Jun 2020 13:38:28 PDT (-0700) Subject: Re: [PATCH 5/5] dt-bindings: timer: Add CLINT bindings In-Reply-To: <20200521134544.816918-6-anup.patel@wdc.com> CC: Paul Walmsley , aou@eecs.berkeley.edu, robh+dt@kernel.org, daniel.lezcano@linaro.org, tglx@linutronix.de, Damien Le Moal , Atish Patra , Alistair Francis , anup@brainfault.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Anup Patel From: Palmer Dabbelt To: Anup Patel Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 May 2020 06:45:44 PDT (-0700), 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. > +- 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>; > + }; Reviewed-by: Palmer Dabbelt