Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3394637rdb; Thu, 16 Nov 2023 08:24:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IF7Pr4SRYFJXXokFvXUkseO++FyFLp6NA2GjnKTPuVB/ERgc6fnaOa0mwFuQyDfUbKSdbft X-Received: by 2002:a05:6808:11ca:b0:3b5:7044:37f with SMTP id p10-20020a05680811ca00b003b57044037fmr22344915oiv.17.1700151877029; Thu, 16 Nov 2023 08:24:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700151876; cv=none; d=google.com; s=arc-20160816; b=TusppJv0STe930j1k28wQO11aI2D/eIxR1MkMLFZLJlRnqtZkrs69PeibBDMCVrVMO C3v/OqQC0OFWJTSR9Cid0sY3jerYBZIlGv85TkOJEN+wyV4+b5NcILOzn9dacyK4+M7D aylEPeibRlF3i3PyEhdYD/tYLX257u4nsoLvtEAuyqgCmFdLpK3kaOnRJxelkil4JXcV r27Z61M4e912y/SOuZNbSu0h9c9f5cP8tGFjTS3+NJ3V2eX1De1q2OhJEOPiBCUvmcLa WZ7gIrNZFLS8YBptIwg3+6lKsSr3+hW/56T8EyLwmjP1/+JHqrPV8rk1Oj2UN5xBpLG6 BmLg== 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; bh=l6lcg7PZNAhIInIRnKba4s9aazQ0UGTvVoYOH403Zs4=; fh=a1bPo2tcbvKF45zrTCtiiG8dvdKbK9OFOyZwKKjcBKk=; b=XbHYMjmj/3IZXflSz1tQR/wThGguGaPtehzdGBJeruR+FT4/F3CUKx1QbCX4M74t5D iaY1nPPWTzAeRJI3pNU7ytbY7ejoPKdi8DqWClf98tpgm7oef7N9S0KvcIU67wZd8K7N vh/W5M7d5YLpN/17MihnpPPz6l4lW6LFPUiwjJIOVOT7bJd5j2it7ExU38jwuj/zGuxZ TAqXSNNM+BnYkEdpp5KmX8xBwBc2VzfgyJjUARrvFGOEiGjQyHJ48QLaN/ljU+ry9R1z imRM9qyqu9lm6mYoJMnjkh2iAdt5tZLMfWFbI46BynHjD/vxuR/lwewRalfjEMb1XIAL QpNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id e21-20020a656895000000b005b909e68ebcsi12202728pgt.510.2023.11.16.08.24.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 08:24:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 679C081D80B9; Thu, 16 Nov 2023 08:24:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231287AbjKPQY0 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 16 Nov 2023 11:24:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230340AbjKPQYV (ORCPT ); Thu, 16 Nov 2023 11:24:21 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3F3C192; Thu, 16 Nov 2023 08:24:17 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 3122024E083; Fri, 17 Nov 2023 00:24:16 +0800 (CST) Received: from EXMBX172.cuchost.com (172.16.6.92) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 17 Nov 2023 00:24:16 +0800 Received: from localhost.localdomain (202.188.176.82) by EXMBX172.cuchost.com (172.16.6.92) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 17 Nov 2023 00:24:11 +0800 From: Ji Sheng Teoh To: Will Deacon , Mark Rutland , "Rob Herring" , Krzysztof Kozlowski , Conor Dooley , Thomas Gleixner , Peter Zijlstra CC: Ji Sheng Teoh , Ley Foon Tan , , , Subject: [PATCH v4 2/2] dt-bindings: perf: starfive: Add JH8100 StarLink PMU Date: Fri, 17 Nov 2023 00:23:30 +0800 Message-ID: <20231116162330.1144983-3-jisheng.teoh@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231116162330.1144983-1-jisheng.teoh@starfivetech.com> References: <20231116162330.1144983-1-jisheng.teoh@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [202.188.176.82] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX172.cuchost.com (172.16.6.92) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 16 Nov 2023 08:24:27 -0800 (PST) Add device tree binding for StarFive's JH8100 StarLink PMU (Performance Monitor Unit). Signed-off-by: Ji Sheng Teoh --- .../perf/starfive,jh8100-starlink-pmu.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/perf/starfive,jh8100-starlink-pmu.yaml diff --git a/Documentation/devicetree/bindings/perf/starfive,jh8100-starlink-pmu.yaml b/Documentation/devicetree/bindings/perf/starfive,jh8100-starlink-pmu.yaml new file mode 100644 index 000000000000..915c6b814026 --- /dev/null +++ b/Documentation/devicetree/bindings/perf/starfive,jh8100-starlink-pmu.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/perf/starfive,jh8100-starlink-pmu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH8100 StarLink PMU + +maintainers: + - Ji Sheng Teoh + +description: + StarFive's JH8100 StarLink PMU integrates one or more CPU cores with a + shared L3 memory system. The PMU support overflow interrupt, up to + 16 programmable 64bit event counters, and an independent 64bit cycle + counter. StarFive's JH8100 StarLink PMU is accessed via MMIO. + +properties: + compatible: + const: starfive,jh8100-starlink-pmu + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + pmu@12900000 { + compatible = "starfive,jh8100-starlink-pmu"; + reg = <0x0 0x12900000 0x0 0x10000>; + interrupts = <34>; + }; + }; -- 2.25.1