Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp129957pxa; Tue, 4 Aug 2020 18:51:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKpooL763vYPnbjcJZ9vVfPepMo0SSe36ikC98LKgOD7IRu2vPC8aS4mspC/cgKldPfH95 X-Received: by 2002:a17:906:f8d5:: with SMTP id lh21mr1011542ejb.360.1596592286047; Tue, 04 Aug 2020 18:51:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596592286; cv=none; d=google.com; s=arc-20160816; b=jYYlvnpwuAni2SIeKxr48AdOg1SJeqMHvVK0EiyZijAKtEvznqAuW0dgDOBc5wOKw9 3T+RKWS03QKwCiIdlqRqM4QJA7Jffx5vhJk0lpNKvvYkjr3bWVEDtlNU+MPVnYfeOI3h ABZBVf0BnTCmHSLPRsdis9ZT8n9HAoka8m8mot1Dlh81xojGIHOFEd3gErKtRw4+rJ1e N6C8LE686014EyH2CAEHFKKGOtRInU6P43hDLWuDrW4lADp5x87wOsg1yFLOHiXhSSxl elJLAuRLpy7SLWc9sQcZovne471zD0tXVh8/ckRg2ChpOyxl3gO6/hih4DgVX3f39Q6+ PXjw== 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=j65hl2pUPWvRBCvP5UfBYwkdWCQ+opfh83SIaOomumk=; b=cSsK5t9JPgp2Wl1xj5ngJibXcp9KZsWw/hLZch8BPhJ49BMV1V0Fn/uesrNSgP/D3h th7S0VGbNO9PDo91bR8yAxnts4+yETTnAdvaTp48thSQ9vDE8EKLh7I9SH+Sx+sKQlZa AyOv93wMRrMGFyckFC/5GAg8eYhQPv+B0clSlCThRcIMzIP4VSz8OK9FcWxh6uLK67V0 NwIPrXwaYw+3Vm9GYv7cbyuJTP1xlchq74DHlWdnsRKLxdZdGOzW5lkMnTNB4pXY1S+w 5Sb+PSOkNLwoy/bxYIdMuiPhFhpEk2QCnDvrx01AaO8wDKfiCAPPUaXjhV5WpZMveEI1 lkZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=0nWPc3Jn; 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 m4si322054edr.500.2020.08.04.18.51.03; Tue, 04 Aug 2020 18:51: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=0nWPc3Jn; 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 S1726862AbgHEBsN (ORCPT + 99 others); Tue, 4 Aug 2020 21:48:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbgHEBr5 (ORCPT ); Tue, 4 Aug 2020 21:47:57 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C2E6C06174A for ; Tue, 4 Aug 2020 18:47:57 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id g33so6108405pgb.4 for ; Tue, 04 Aug 2020 18:47:57 -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=j65hl2pUPWvRBCvP5UfBYwkdWCQ+opfh83SIaOomumk=; b=0nWPc3Jnrmdjj1thXDdb0nsxHlWBaEFrdPjvEzy/NF6FCrxahLF/igaj3kwTwA3KDM a+ViGXMXxuTKcSk/8V90anyNwoN4Alwong3RO4+M3sYDhtEUZIv09RG9YtnbAW3ld88F t8Lq6FMqiI1Xw5FRkiSxFqG/ogw3KrCk5FFp6yva4tthwmljV8m1C1LnJ32SItbaStpq Ov6ixSDnHO70+4gLDzoGx7kynFSkhz3RVH2VPd1lB06bdiGwvlhWaCWPj6Vp8e9wrCGr cEWRq8yDkqPHxk+XMs3B+kMvEZ392ZnOf69zcGnSBjf5cqzZPu2UhmxnCT2Ur4UgAum5 3aAQ== 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=j65hl2pUPWvRBCvP5UfBYwkdWCQ+opfh83SIaOomumk=; b=ocueVJrU9bSrbBpL+PTIlzqFhKuHfECBOPP6GMB9J2szJrdLZtC5K6xKbiSGWo7inh 6X8AZ6SpmfBsURO536UvEMCiFsKjwET6vgu+Us+DIKe124Ly6F4gPvC67X7Kfu59e62B +Q1//euq5nrhxPwDx+4QoP3X9EtAv8CsGxYzHXaQP2KPue4xZ91eUFBRB6HEnImWFU4t cTvBc4rAtXBFj9yBOsEOm1jhI18hn6VzR4IdgA8d1jtb2uywhojsrO6TbW6bEXZYtw76 5ECJfS0m71LcTHK+2RkF1cGUvhiNq4b/V/+iuAX1Mqs2M2ICFdGgPBfzQD/cn0b3i1p7 A57Q== X-Gm-Message-State: AOAM531HMYs9w9WVQV55pEX2DDY5Hp0VgJxRd3+G90ttzoorkgajbjQY o0sUt2MKfnvE6spSpiUSP/OcfA== X-Received: by 2002:a62:c103:: with SMTP id i3mr1086842pfg.180.1596592076555; Tue, 04 Aug 2020 18:47:56 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id 207sm543411pfz.203.2020.08.04.18.47.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Aug 2020 18:47:55 -0700 (PDT) Date: Tue, 04 Aug 2020 18:47:55 -0700 (PDT) X-Google-Original-Date: Tue, 04 Aug 2020 18:41:10 PDT (-0700) Subject: Re: [PATCH v6 4/4] dt-bindings: timer: Add CLINT bindings In-Reply-To: <20200724071822.126758-5-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 , kernel@esmil.dk 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 Fri, 24 Jul 2020 00:18:22 PDT (-0700), 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 Perfect! I was going to mention that we forgot to define the "sifive,${name}${version}" scheme but I guess I just forgot that we did define it ;) > + > + 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>; > + }; > +... Reviewed-by: Palmer Dabbelt