Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp879606lqs; Tue, 5 Mar 2024 22:13:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUL1q3nwNofJgUXKP6tbAguBR30kznqvYoa7h5TLlFxfi4sA9qrdnoqB9n8dU7pd1HKtuB6o/owXTO/K3369FBd/PwXzkuCj/ZiRiBwVQ== X-Google-Smtp-Source: AGHT+IEMnQcL3LIdZGoQQGVv/cPD57Vo4b3Za7Q7Qf2vtAnlOZgaA9nSg9C8pcjrriqmTqBxkDnf X-Received: by 2002:ad4:5305:0:b0:690:7255:90d3 with SMTP id y5-20020ad45305000000b00690725590d3mr4022321qvr.9.1709705632063; Tue, 05 Mar 2024 22:13:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709705632; cv=pass; d=google.com; s=arc-20160816; b=0gLUzHfkKhvEA7k6oIdBQa389Kno984aQyN8+dz9Bt5YMEzISWmd+q8Oc8Cuiq/llF YtXrYNZZzUS54hzdq+vFNBvP1QJY++8DrmsuPp+DN/bgVIen2gMVoVEyy0ch8ZmYGXFl eiMTTYtWIqIcxojN4OZQtaG4IMh2ZSeNR8soYnCq7J/4ATMlMFr1hhlq065lJm+v0X/4 NvG7B9nU72jD3QTKk/eVAHn0/ODKgavghKPb+3CfWPZPUHAWxMHwPHBwZK6a0twG0MTk N+4WVDxdwdFpga/yQIRmWyUMUgQ1PsmromDaWutyCDlnXGRSKJxJAGZ/MS0MBp2o6xQt XIpg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=dGfWkLMw7SOa0IP/lb7FKCcAO0+g+uhbI8V+isoCxYI=; fh=MXdngp/t4VwbopQozy4SOGDsvDSpx5zuEj+HxfHsFKI=; b=S4kLluF/q3lZj8SwuCMOIm56HIGlvOX1Z4U9wZ+53F39oJwuhIRQDRccL/H5DdXeEd rDQj/kVtmLJkyu9Ko5OxvKXINz+jdpO/iJlLd7ndB0qUD9ej1Efk4/q7uTPNjI20kOsL clJulRYtRcRJUjj0mWe1PIcGrF1g/Lpg+lmP11Q9Z/sq9lX82rZoLhE/Sl71A2cx9hk2 /k3UyKTECGvCdh3xMCWv6ek1Hdz3HoGVs6KAX0wxXHs+x0H+u4wUu4C35URHI7tOaIQQ hM+M+1TG+0jVfzSvhT7TVA7xa463sIZWL/pHOeWv3hflyX2F7ym4fRrKMNHbY29Ccvru OVwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-93371-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93371-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q14-20020ad45cae000000b0068c4ff7f5a0si14095804qvh.323.2024.03.05.22.13.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 22:13:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93371-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-93371-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93371-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B899F1C222E5 for ; Wed, 6 Mar 2024 06:13:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F412D1BDDF; Wed, 6 Mar 2024 06:13:44 +0000 (UTC) Received: from bg1.exmail.qq.com (bg1.exmail.qq.com [114.132.77.159]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62DC51B7E5; Wed, 6 Mar 2024 06:13:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.132.77.159 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709705624; cv=none; b=j8M2xolPMVs14h3XUm3mkGtRKGTy6QH7nU6pjtxetLeNU896qxjiXULCaBkzyTVkuGuQXfoaaP7ilnPXnat8OERSY6oo2P3zF4Ot2LcSurpWABzPBy7etFa81PjX+cOoWzPX+QRnAb5iNgc+oBQJYOc7l5AnsFNoR0ZFr7qAKr0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709705624; c=relaxed/simple; bh=tlq2g2nlfO8hH8i4zeibwVPijfkfMjcm2SA6C4dQypI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qn+J8DGWq251aRDj55nTmrkoB6nvD/0NDLSwLtYPBlITZ9RMQz/3ML5TunwcRvfDVy3/zEUMPI/lRv0CvkoVFncO+YDKHPX8DFmBgK0T9RxKVsFgne38u8dvBCzynZSgQwpETuVBAt3l3SjG6sECVBfiejeabG/zKlLSBePP2go= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn; spf=pass smtp.mailfrom=shingroup.cn; arc=none smtp.client-ip=114.132.77.159 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shingroup.cn X-QQ-mid: bizesmtp79t1709705539t7dq31o3 X-QQ-Originating-IP: NCw4+/Q9USsflDJBmpT7/46+g+hPwy5cB3WlwgYr7sI= Received: from HX01040022.powercore.com.cn ( [223.112.234.130]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 06 Mar 2024 14:12:17 +0800 (CST) X-QQ-SSF: 01400000000000B0B000000A0000000 X-QQ-FEAT: C46Rb8GPIEemHKu/k6HngzPWI4Sro/K2jOZ6+nhYm/itjZ15pS2MBSf9WT4e9 mlr6jVRajTCCaJrTk6mFFBVexQeSUTmNuQ83shY+cW57orGqDR+32Hh1BwVkjn4HdY0K89E SuLTWTX/IjLWee5mdFN+7QTiIob62s8kK8OqZjroC+ur2l6NBm7ghXlNVqWInUaI6qR4vNi wTukssOTPrW15glNQGzjr+E0CajIIS02BjBVFUmYOKA8v5zd5wpd7Uu5xDIUozRkn5jZNHP UxBZmdnp6fcRvvlqXJOtasV1zXpAk+zMMX0fbb5DqQMtUdw7rbtcW4pefka4sBC8FwtereT eG/EkLv0NyWx4M1PCxMzF4l0XlKhIAshlk541gwDrfwEuM2VBbPeLa0mNvGB9/HxZkkNv/v 5DSkc97eGqhT1WolQksgHhOW3/joQyhM X-QQ-GoodBg: 2 X-BIZMAIL-ID: 5249391986606984289 From: "JiaLong.Yang" To: Jialong Yang , Will Deacon , Mark Rutland , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: shenghui.qu@shingroup.cn, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] dt-bindings: perf: Support uncore NI-700 PMU Date: Wed, 6 Mar 2024 14:16:02 +0800 Message-Id: <7f2576291e51043b33296a2cd9e21263d16ca077.1709694173.git.jialong.yang@shingroup.cn> In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:shingroup.cn:qybglogicsvrgz:qybglogicsvrgz6a-1 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 v2 --> v3: 1. Change vendor from hx to hexin. 2. Submit driver and dt-bindings files together. 3. Delete pccs-id property. Use alias-id to do this. 4. There are at least one interrupt line for the hardware and driver for handling counter overflow. 5. Use 4 spaces for example indentation in yaml file. .../bindings/perf/hexin,c2000-arm-ni.yaml | 51 +++++++++++++++++++ MAINTAINERS | 6 +++ 2 files changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/perf/hexin,c2000-arm-ni.yaml diff --git a/Documentation/devicetree/bindings/perf/hexin,c2000-arm-ni.yaml b/Documentation/devicetree/bindings/perf/hexin,c2000-arm-ni.yaml new file mode 100644 index 000000000000..b2641ee84d60 --- /dev/null +++ b/Documentation/devicetree/bindings/perf/hexin,c2000-arm-ni.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/perf/hexin,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: + - hexin,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. + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + #include + + aliases { + ni-pmu0 = &nipmu0; + }; + + nipmu0: pmu@23ff0000 { + compatible = "hexin,c2000-arm-ni"; + reg = <0x2b420000 0x10000>; + interrupts = ; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 4f298c4187fb..4b664cec98a7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18890,6 +18890,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/hexin,c2000-arm-ni.yaml +F: drivers/perf/hx_arm_ni.c + RNBD BLOCK DRIVERS M: Md. Haris Iqbal M: Jack Wang -- 2.25.1