From patchwork Wed Jan 31 06:59:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?WWFuZyBKaWFsb25nIOadqOS9s+m+mQ==?= X-Patchwork-Id: 13538788 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5696CC47258 for ; Wed, 31 Jan 2024 07:01:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=FQaJUzfmzzioUHZbZ87QSVDo8j5gcQAMm8yOFvVjYV8=; b=4k1i/FuXb/0AtF V4BuJCjXkwagzVph4ZzLmGZ00duIWOq3ZHIK9sCVVSzW7wX+ZBybzk44ykUiRk5T3PHIwAoF3WeL+ c8KnNgxEbU0HgAYoonLh+QAdy9LAMS6OusGpHKWapQcKGlxxL5+JCSFhjq2Koly2nhdafrQjG+lQG gXrJBryQSdCuN0uO5+XBslBK66YDL82IFR83wDXZtJtWdOGmhjF48gRAyoBuBpLEepwJkKgvm7TNk 1OdIV4RxLoFaeF4Q/HWef7cM99WZqp9Xx0ov+CafHqzsElgDMwfkoU/FyIlk6yxN4+SvItjGDydF1 Y/vE36MDNGOYP63HG/2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rV4b4-00000001id5-0jka; Wed, 31 Jan 2024 07:01:22 +0000 Received: from smtpbgeu2.qq.com ([18.194.254.142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rV4aw-00000001iXE-3xdC for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2024 07:01:20 +0000 X-QQ-mid: bizesmtp89t1706684405tzxcwwhw X-QQ-Originating-IP: 7tQsAHQX4BoX3xLqOMeHuWcg7OvaXJdXcdN0YcqngNY= Received: from HX01040022.powercore.com.cn ( [223.112.234.130]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 31 Jan 2024 15:00:03 +0800 (CST) X-QQ-SSF: 01400000000000B0B000000A0000000 X-QQ-FEAT: RqEkWZU95OHUMMbnP5O7pi75yccQvoLOKSaRKuHaOOzptfT2R6XrK9l9iFErh G3/j+PxM/liXJH0nqhRZ7VhsiFeY22Ba8lOlwB22/kko4VeFXGWGgppbHYNavC7ZDPLH6hH 1max6ZXzbeON1oXvsTysh3W2jihhIBq2T6bSLK+DBcNfT4lsu1OVXInznr4kH9pU5SoGQ5x UZpXpTVQdSSm/5yUjPwNLblojd9HpX1PRaMXy9GT4tcOvoidoXks3UEJDKoq4QbQ3c0ya68 5VzbOCx03O/g7udQePvBN4fg2cx3RucyiydnkNR6givjCyc/uL+IwMhfhlIU97FWpKSkfUF iQ7QkzuUvnsiqDFejouCciTzwOpN0+SQl2ZX9cGoSioEfaRmGDo5pcLoTdORLcV5E5CSNZQ CgkloBQaORjMcX66yVMiCA== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 16691829228007298276 From: "JiaLong.Yang" To: Jialong Yang , Will Deacon , Mark Rutland , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: shenghui.qu@shingroup.cn, ke.zhao@shingroup.cn, zhijie.ren@shingroup.cn, Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] dt-bingdings: perf: Support uncore ARM NI-700 PMU Date: Wed, 31 Jan 2024 14:59:53 +0800 Message-Id: <20240131065953.9634-1-jialong.yang@shingroup.cn> MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:shingroup.cn:qybglogicsvrgz:qybglogicsvrgz6a-1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240130_230115_461307_2B6A5D6F X-CRM114-Status: GOOD ( 13.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add file corresponding to hx_arm_ni.c introducing ARM NI-700 PMU driver for HX. Signed-off-by: JiaLong.Yang --- v1 --> v2: 1. Submit dt-bindings file Seperately. 2. Do some check: ~ #: make dt_binding_check DT_SCHEMA_FILES=perf LINT Documentation/devicetree/bindings CHKDT Documentation/devicetree/bindings/processed-schema.json SCHEMA Documentation/devicetree/bindings/processed-schema.json DTEX Documentation/devicetree/bindings/perf/hx,c2000-arm-ni.example.dts DTC_CHK Documentation/devicetree/bindings/perf/hx,c2000-arm-ni.example.dtb .../bindings/perf/hx,c2000-arm-ni.yaml | 53 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 6 +++ 3 files changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/perf/hx,c2000-arm-ni.yaml diff --git a/Documentation/devicetree/bindings/perf/hx,c2000-arm-ni.yaml b/Documentation/devicetree/bindings/perf/hx,c2000-arm-ni.yaml new file mode 100644 index 000000000000..de50c79a5f23 --- /dev/null +++ b/Documentation/devicetree/bindings/perf/hx,c2000-arm-ni.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/perf/hx,c2000-arm-ni.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HX-C2000 NI (Network-on-chip Interconnect) Performance Monitors + +maintainers: + - Jialong Yang + +properties: + compatible: + enum: + - hx,c2000-arm-ni + + reg: + items: + - description: Physical address of the base (PERIPHBASE) and + size of the whole NI configuration address space. + + interrupts: + minItems: 1 + items: + - description: Overflow interrupt for clock domain 0 + - description: Overflow interrupt for clock domain 1 + - description: Overflow interrupt for clock domain 2 + - description: Generally, one interrupt line for one PMU. But this also + support one interrupt line for a NI if merged. + + pccs-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Used to identify NIs in system which has more than + one NI. + +required: + - compatible + - reg + - interrupts + +additionalProperties: true + +examples: + - | + #include + #include + + pmu@23ff0000 { + compatible = "hx,c2000-arm-ni"; + reg = <0x2b420000 0x10000>; + pccs-id = <0>; + interrupts = ; + }; diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 1a0dc04f1db4..f6b4103ef436 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -617,6 +617,8 @@ patternProperties: description: Shenzhen Hugsun Technology Co. Ltd. "^hwacom,.*": description: HwaCom Systems Inc. + "^hx,.*": + description: HEXIN Technologies Co., Ltd. "^hxt,.*": description: HXT Semiconductor "^hycon,.*": diff --git a/MAINTAINERS b/MAINTAINERS index 8999497011a2..101974780710 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18866,6 +18866,12 @@ L: linux-riscv@lists.infradead.org S: Maintained F: arch/riscv/boot/dts/thead/ +HX ARM-NI-700 PMU DRIVERS +M: Jialong Yang +S: Supported +F: Documentation/devicetree/bindings/perf/hx,c2000-arm-ni.yaml +F: drivers/perf/hx_arm_ni.c + RNBD BLOCK DRIVERS M: Md. Haris Iqbal M: Jack Wang