Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1428814ybh; Mon, 13 Jul 2020 19:38:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyP30ZnrL4CgG04HtRaWLZ7b1MR7uuEaSx3iI4jZdSnWES3CMEb4vyea7FF1/rmEsdvDwxm X-Received: by 2002:a17:907:212b:: with SMTP id qo11mr2454543ejb.452.1594694327825; Mon, 13 Jul 2020 19:38:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594694327; cv=none; d=google.com; s=arc-20160816; b=cklHmKnwApWVuSNStwWqxC9tWPLiiMIgV4uiWrTzhvsidZ8Y0VfPogy6IlXuicNQqP 5Ii5r0QC80NTFS7PmXA+2yI6H3aMixM9r9UH5lOVeLI1ILspdlYJ66Z5AiGxgLY71FpV kFaTVEKzkwDdI2UkgnnKSpV9bJQ4GyP/Keuj3tO+IwrqRgCGJv3wLzpNAcuNymONqSTl TXau2I8Ufr5l+E1BIz8Fpm2lA/r6YvhOM/lo3jkWcychJOYl9gLwlxA1eS6jadAw5UOo AXIcmpdkK3rY76KcKD7hNqw5ZQ3NdhJh0GcAY6/gXT83JiNciAbymrLSQRGV7WQkL45H Ed+A== 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=l9yRXPbAuKbatZZtOZ8lv0tgEHkyKNFIEmB9CuDKx1I=; b=XV2QdaZjue7tblyoEBellXfl64c8d0ejePrW+s8YJKtZtCoOTIzjIldJeyNHPZog/B RMRpEwLU9baadU+C8zo4UCRsOM4FMC3cphQcfLIHzfwB0C+vPdSII2wIvwYO13AOETL/ 9SIk28GFWeBdqZrCY4nFg7pEQ+OQ9dYBGgeQyX0zfpOfOZ+zaEj5ImdorG/+e7ez1bQc iJZNBTsKKRLBMqhxmK9Z/R+jsASDgmO+++g7C5BXaxPm0KIpgxFz1C0MzEhdT3gH8/l5 oxG2qdaMCLDOKznbDbj+as07pRsl/Du4NA3FZuyec1NoaRFevXEeIymGmJB5CQt0OXJ1 x2Jw== 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 dk6si10602086ejb.129.2020.07.13.19.38.24; Mon, 13 Jul 2020 19:38:47 -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 S1726456AbgGNChw (ORCPT + 99 others); Mon, 13 Jul 2020 22:37:52 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:35840 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726150AbgGNChv (ORCPT ); Mon, 13 Jul 2020 22:37:51 -0400 Received: by mail-io1-f65.google.com with SMTP id y2so15756358ioy.3; Mon, 13 Jul 2020 19:37:50 -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=l9yRXPbAuKbatZZtOZ8lv0tgEHkyKNFIEmB9CuDKx1I=; b=ppPi6zGuZcktUVBS3VkRxcwiRltB9NMrwCVkVcUbaFsydlYiuvrg5piMPVNhXlfFQi g5Bx3csedIUexIls+qAqI3KaNoh259DwDD2G4ZisWUUrapUYE0UufBnFTs2j9zwbxTTH wij9LZKu7vt7YrB4w8lfItF+XTq7Apq6zOW4fu2A5hUZK166QrIabkk2XVRFjf5lWE2T GTsjhUac4BuHi693o0nOrWdZWiLWxTHJ/jbUQsxCZiRweOpeV+fCiMcF5UuyZ8QStUUh z2zmgvwK3mCTgVD/s0odNtjg0J6gFF73llcHZT1FdO1yPImyvIXdBCZRiJdfWFBj1+yb nFRA== X-Gm-Message-State: AOAM5304dwXwxpW9/YTMcR0hQ2Tf9RSkKbBVRD+JQJLh6xE4WdWcsviX LkodEy35t0DL6V8bXNp6v+BaxCQROUbO X-Received: by 2002:a02:9182:: with SMTP id p2mr3548431jag.69.1594694270483; Mon, 13 Jul 2020 19:37:50 -0700 (PDT) Received: from xps15 ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id h5sm8923943ilq.22.2020.07.13.19.37.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 19:37:49 -0700 (PDT) Received: (nullmailer pid 1171324 invoked by uid 1000); Tue, 14 Jul 2020 02:37:48 -0000 Date: Mon, 13 Jul 2020 20:37:48 -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 Subject: Re: [PATCH v2 5/5] dt-bindings: timer: Add CLINT bindings Message-ID: <20200714023748.GA1164267@bogus> References: <20200627161957.134376-1-anup.patel@wdc.com> <20200627161957.134376-6-anup.patel@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200627161957.134376-6-anup.patel@wdc.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 27, 2020 at 09:49:57PM +0530, Anup Patel wrote: > We add DT bindings documentation for CLINT device. > > Signed-off-by: Anup Patel > Reviewed-by: Palmer Dabbelt > --- > .../bindings/timer/sifive,clint.txt | 34 +++++++++++++++++++ > 1 file changed, 34 insertions(+) > create mode 100644 Documentation/devicetree/bindings/timer/sifive,clint.txt Bindings should be in DT schema format now. > > diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.txt b/Documentation/devicetree/bindings/timer/sifive,clint.txt > new file mode 100644 > index 000000000000..45b75347a7d5 > --- /dev/null > +++ b/Documentation/devicetree/bindings/timer/sifive,clint.txt > @@ -0,0 +1,34 @@ > +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 : should be "riscv,clint0" or "sifive,clint-1.0.0". A specific A new versioning scheme from SiFive? To review, we don't do version numbers unless there's a well defined and documented scheme. IOW, one that's not s/w folks just making up v1, v2, v3, etc. > + string identifying the actual implementation can be added if implementation > + specific worked arounds are needed. > +- 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"; Doesn't match the binding. > + 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>; > + }; > -- > 2.25.1 >