Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1731766pxb; Fri, 10 Sep 2021 12:30:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiYcAeETRySW8kYP2Yf8phG/4cdqZA0hsU7sEjHA5Mgk7kxVDFc8eA/4kjDor8AuOXYGad X-Received: by 2002:a6b:8e87:: with SMTP id q129mr8253250iod.176.1631302208743; Fri, 10 Sep 2021 12:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631302208; cv=none; d=google.com; s=arc-20160816; b=aDmUYR3Fp6gGuVuMYMolqa5ahcFTlm5+hlE7f69TWKYZJIYAPNlq0Cp1WdVG4qhjdt XkLCffnpq8Zz/XZqgqAubR1L9sKFrYmTYGxHE4uT9YcIw3MbjuAfV7B/5zfr+a/bBg1m szv2nv2TF5LMH5XbIdzUS2rdccl/OYn/A+EP0ajSLF21Y9dYIPRfsUNnVBuTvczLwa7Z dSbNKrxXh+U4Vh1REr51WkEqII0zytERbBXLIqApaueAuz6KGlFNDLbAz/hNDo+D07Ut DImfMaeGmZQTH+dPPgGbWofANxyKsFIEOt5fqz0tAF3S74rBrXIZ/lbHPgLSTEPSRlIU ttAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :wdcironportexception:ironport-sdr:ironport-sdr:dkim-signature; bh=eOEm8Ap7j/JPiqW9bqr9cw3ICr8GeUKJSY1xvQ14LTo=; b=h1xWuvUd9fZLkEOtxhAECxCOIObiMRfYhqImHxgD1HotvTqrhM232K4F8soIWCFW6f Ed+z3vgrZhr2fAB4J920JSYgIFYlL0AszFKpPjHmtbQVw4qAbHGnl/s+9EtFgnA+e/tm BSJUfmJF4jeGMO+1yCP//GWO+qhZrjbcLrwLLsiZuu66NLqKfC8tpRZ8zfCybTgYGoBF fxvgmVHYmpw6wQuVpD1v2Z3dlVmCMdBUuAyX0ocCzd1VbiXXqwaQ7kAXzfYi0axACji/ tG08f1T07vYfodyzw+XPK4CuzpqljXSVxwfqPmX+10F1Bn1mzeMzc5qj7TNJosU4AsHy vPNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=OaTrLuOm; 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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j11si5281250ile.34.2021.09.10.12.29.57; Fri, 10 Sep 2021 12:30:08 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=OaTrLuOm; 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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234056AbhIJTaH (ORCPT + 99 others); Fri, 10 Sep 2021 15:30:07 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:29545 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232841AbhIJT3e (ORCPT ); Fri, 10 Sep 2021 15:29:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1631302102; x=1662838102; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=x9rut2p2cIJl+gOrMDwXO7QvojhOGcINHMZCJqud62c=; b=OaTrLuOmXWeqUB+fKO0ArbPAZsVT11x4D+r2EZP01kmKc92knB9oLaA1 kDFak5o5Tm/B+dZ5Y+h24tcExwPh0orHdc4XNjZeamNmZXOU0Se9iU7nL e3nUUS75e7iPRJiCYVoG5wEJMB+NtVGBwPhKU8gyY+8C+9F6QcidKlbKs CieBgCFFYMw5qsmDmIvwokfgFyqW9MC3R3PhbMnJKc5e60JzxP8fqKquZ Ul7n8GyNprM1sgYqGrBenYQPtJ8yrZFJ9rZwMkiVOjEzkrJMqy9lC7Wk8 PMo7ecjIZ26enKPWNRrttJYN0zIWyLiP8lO9UJKW23/l0aYh3o/+2thZw A==; X-IronPort-AV: E=Sophos;i="5.85,283,1624291200"; d="scan'208";a="179706175" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 11 Sep 2021 03:28:22 +0800 IronPort-SDR: UbumN/TvgdlCLxod/Mpmq66H5I3eogW8inHackzxqlbtMyvI2tSef8Un+k48T+bFhkHBUSGNLr ni1c+Y6I6Tt/fP0mO/B7eWBgzIvh/FtH/29MC0ia25w4+79oise60YJYzPueCgmyODtHikXiZw a4SpFQyJRUGDg+8sVMKJss6dFtYyOYCqv4JxcpNatnyXu159HkQwoyTRzmFuVM5av4Ls3T/UZ5 LLLiW7ne+9Ms1BifKG7vDqjhy6fXqCKMR8urodeOug8/mdc653dxquxwaZB7gu3r3fIZNC8msG RgTHzciAYU84BgPzaM4zTM8r Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2021 12:03:17 -0700 IronPort-SDR: SllFO2XYLXRp7dP6K2yczVZza3pYVg3Q1IWrDiHd2rH/A2Xe+SCVxsIrXeBwO0bIqBNWpyeXS+ j8ZDWXZ6eAmZBacGZxQHywh9FAwb0qkjCKIgUJMGMSJrZyGWDH7poiJ5YRxRy2ee7k5aXJuSJf c7RBmNx0CzIsq7fiM/SwUrTZlX6d26vN/FtosvVv03Rq8mE35vo3cu+ueZj4BQJ2V4QkL4w5AH +TQB5S2xN03lcLhUqo2uAbyQTEH0A+RPeWpSJI1TEAOUtYx1n0J92dIBvMcDfKM6wTN5Lv+zSc mOQ= WDCIronportException: Internal Received: from unknown (HELO hulk.wdc.com) ([10.225.167.73]) by uls-op-cesaip01.wdc.com with ESMTP; 10 Sep 2021 12:28:23 -0700 From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Alexander Shishkin , Anup Patel , Ard Biesheuvel , "Darrick J. Wong" , devicetree@vger.kernel.org, Guo Ren , Heinrich Schuchardt , Jiri Olsa , John Garry , Jonathan Corbet , linux-doc@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-riscv@lists.infradead.org, Nick Kossifidis , Palmer Dabbelt , Paul Walmsley , Rob Herring , Vincent Chen Subject: [v3 06/10] dt-binding: pmu: Add RISC-V PMU DT bindings Date: Fri, 10 Sep 2021 12:27:53 -0700 Message-Id: <20210910192757.2309100-7-atish.patra@wdc.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210910192757.2309100-1-atish.patra@wdc.com> References: <20210910192757.2309100-1-atish.patra@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds the DT bindings for RISC-V PMU driver. It also defines the interrupt related properties to allow counter overflow interrupt. Signed-off-by: Atish Patra --- .../devicetree/bindings/perf/riscv,pmu.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/perf/riscv,pmu.yaml diff --git a/Documentation/devicetree/bindings/perf/riscv,pmu.yaml b/Documentation/devicetree/bindings/perf/riscv,pmu.yaml new file mode 100644 index 000000000000..497caad63f16 --- /dev/null +++ b/Documentation/devicetree/bindings/perf/riscv,pmu.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pmu/riscv,pmu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RISC-V PMU + +maintainers: + - Atish Patra + +description: + The "Sscofpmf" extension allows the RISC-V PMU counters to overflow and + generate a local interrupt so that event sampling can be done from user-space. + The above said ISA extension is an optional extension to maintain backward + compatibility and will be included in privilege specification v1.12 . That's + why the interrupt property is marked as optional. The platforms with sscofpmf + extension should add this property to enable event sampling. + The device tree node with the compatible string is mandatory for any platform + that wants to use pmu counter start/stop methods using SBI PMU extension. + +properties: + compatible: + enum: + - riscv,pmu + + description: + Should be "riscv,pmu". + + interrupts-extended: + minItems: 1 + maxItems: 4095 + +additionalProperties: false + +required: + - None +optional: + - compatible + - interrupts-extended + +examples: + - | + pmu { + compatible = "riscv,pmu"; + interrupts-extended = <&cpu0intc 13>, + <&cpu1intc 13>, + <&cpu2intc 13>, + <&cpu3intc 13>; + }; +... -- 2.31.1