Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp183702pxb; Tue, 31 Aug 2021 18:34:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfzldVPE782IM4Dgv6ZE+DKF+ZmbeXfLaPIATSUIIv3B3wS5F/Hu5jyx4PljlDXq+OP+lN X-Received: by 2002:a50:ff19:: with SMTP id a25mr31381837edu.311.1630460072313; Tue, 31 Aug 2021 18:34:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630460072; cv=none; d=google.com; s=arc-20160816; b=HVS/jsoEEh7HdT75LsUrrEEn0REHQoPrhxU6evlvNaMR9FiTxPax22pLnFCpbtpikM MD4m8HxjZdQ0ybO6nXfKnxX3M2Y4d2GU6VqiXW+d9MUM2iT7ChnuUlr0AvWhhUDdzZws n9Ruhk9ZLXHfOpxUp1ceOaBcHyXtrd/QxPAdpj2OZHrWOO96btmCof4kWyFnPks49Y/Q iX1w0Uua2IO5zxLYKh61XkWBZmtPoxTftEseBux84TOLDNXjE1qPDnZgx7V09cwAZ3B5 Tq6Y/vjWmmJf9JQOsHXbvtjC08nG4hIpPbLKSOphJw2tzeKheWPzyqm+r5CKAJ5FhNSb JlRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=8Lw5wEyGLhFKN1QsSuNkTilRQwhSnI+fgJb5cuuXVMA=; b=MGP1M+q06p0azS5wta7Nk3QTqdCnM/tziShtTcTfL072njYlL+PGYCc/6naeHrNhCo rJElVB4S+vQ/AZYXoDQqzVQb5l3KQwYVrDTWQmEgo/ej9/HzV/yKu8/yLiRKcGWJZQ26 u91BDgwvuq/k/ymadcnJGXJW+b7ogVU3NYioU/390KJvsEr98/NcNA9x9nE/A5Kb9JVD eDMS+kxffjhcQNfNU+f9ciV1VhsZFNWRKaQz+AJxLQwwNjVuOXvYvq2FA2ZAl1qPLkdR l1744lB6AVselKF+9Mfl/B+yZ96JGc6M2om05oK2Ry84RaGnsrCXd5uUWZE92POcOgYN ieNQ== 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 g17si23823384ejm.145.2021.08.31.18.34.06; Tue, 31 Aug 2021 18:34:32 -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 S241623AbhIABcv (ORCPT + 99 others); Tue, 31 Aug 2021 21:32:51 -0400 Received: from mail-ot1-f47.google.com ([209.85.210.47]:40932 "EHLO mail-ot1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234036AbhIABcu (ORCPT ); Tue, 31 Aug 2021 21:32:50 -0400 Received: by mail-ot1-f47.google.com with SMTP id 107-20020a9d0bf4000000b0051b8be1192fso1585042oth.7; Tue, 31 Aug 2021 18:31:54 -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=8Lw5wEyGLhFKN1QsSuNkTilRQwhSnI+fgJb5cuuXVMA=; b=qzlR88AvwZWM3mke2etOVCfK61avXAxOUKQyVS043B3CpOEP9FBWotwiPR/CvfD4kb 5jH+HfOR5Ygrxe+9+2/srUaYGijXjF5A04F301mpkKI6onAw0MBrhK0XzsMDegLICKBy JxG3YcLA2F2AiAYv75CETBM6ksZy38EaadBZZK8MBgThKywjSoQhvptIxWnEvAYEUGSW bV+mEP9EjpAPclR02FSMSkusiNq4+XQeN23PWRKbAHOmzuZ03Bk6QEWw61PKSjAojG4V g1c051g/wXcaLoOHiMYz9FNARFt3Is6NvxsC+BJH8DNWP93bW2No7Vx7gXedfgdF7JW8 qg5g== X-Gm-Message-State: AOAM5300QTwVvi1Vx9XcgisqTlpKhlHiiM0UqNYh6OjmCuBCUB2SjaWc Xekc7uiOoiFJ7TiKYr8a8Q== X-Received: by 2002:a05:6830:1355:: with SMTP id r21mr26477741otq.11.1630459914307; Tue, 31 Aug 2021 18:31:54 -0700 (PDT) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id f5sm4039042oij.6.2021.08.31.18.31.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Aug 2021 18:31:53 -0700 (PDT) Received: (nullmailer pid 1000001 invoked by uid 1000); Wed, 01 Sep 2021 01:31:52 -0000 Date: Tue, 31 Aug 2021 20:31:52 -0500 From: Rob Herring To: Anup Patel Cc: Palmer Dabbelt , Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Marc Zyngier , Daniel Lezcano , Atish Patra , Alistair Francis , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bin Meng Subject: Re: [RFC PATCH v3 09/11] dt-bindings: timer: Add ACLINT MTIMER bindings Message-ID: References: <20210830041729.237252-1-anup.patel@wdc.com> <20210830041729.237252-10-anup.patel@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210830041729.237252-10-anup.patel@wdc.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 30, 2021 at 09:47:27AM +0530, Anup Patel wrote: > We add DT bindings documentation for the ACLINT MTIMER device > found on RISC-V SOCs. > > Signed-off-by: Anup Patel > Reviewed-by: Bin Meng > --- > .../bindings/timer/riscv,aclint-mtimer.yaml | 70 +++++++++++++++++++ > 1 file changed, 70 insertions(+) > create mode 100644 Documentation/devicetree/bindings/timer/riscv,aclint-mtimer.yaml > > diff --git a/Documentation/devicetree/bindings/timer/riscv,aclint-mtimer.yaml b/Documentation/devicetree/bindings/timer/riscv,aclint-mtimer.yaml > new file mode 100644 > index 000000000000..b0b2ee6c761c > --- /dev/null > +++ b/Documentation/devicetree/bindings/timer/riscv,aclint-mtimer.yaml > @@ -0,0 +1,70 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/timer/riscv,aclint-mtimer.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: RISC-V ACLINT M-level Timer > + > +maintainers: > + - Anup Patel > + > +description: > + RISC-V SOCs include an implementation of the M-level timer (MTIMER) defined > + in the RISC-V Advanced Core Local Interruptor (ACLINT) specification. The > + ACLINT MTIMER device is documented in the RISC-V ACLINT specification found > + at https://github.com/riscv/riscv-aclint/blob/main/riscv-aclint.adoc. > + > + The ACLINT MTIMER device directly connects to the M-level timer interrupt > + lines of various HARTs (or CPUs) so the RISC-V per-HART (or per-CPU) local > + interrupt controller is the parent interrupt controller for the ACLINT > + MTIMER device. > + > + The clock frequency of ACLINT 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: > + enum: > + - riscv,aclint-mtimer > + > + description: > + Should be "riscv,aclint-mtimer" or ",-aclint-mtimer". Again, should be AND. > + > + reg: > + description: | > + Specifies base physical address(s) of the MTIME register and MTIMECMPx > + registers. The 1st region is the MTIME register base and size. The 2nd > + region is the MTIMECMPx registers base and size. > + minItems: 2 > + maxItems: 2 > + > + interrupts-extended: > + minItems: 1 > + maxItems: 4095 > + > + mtimer,no-64bit-mmio: > + type: boolean > + description: If present, the timer does not support 64-bit MMIO accesses > + for both MTIME and MTIMECMP registers. This should be implied by the compatible. > + > +additionalProperties: false > + > +required: > + - compatible > + - reg > + - interrupts-extended > + > +examples: > + - | > + timer@2000000 { > + compatible = "riscv,aclint-mtimer"; > + reg = <0x2000000 0x8>, > + <0x2004000 0x7ff8>; > + interrupts-extended = <&cpu1intc 7>, > + <&cpu2intc 7>, > + <&cpu3intc 7>, > + <&cpu4intc 7>; > + }; > +... > -- > 2.25.1 > >