Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1484142rdb; Tue, 30 Jan 2024 23:01:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IH0JyWZlYXyDZsCfBNQnGaBxf1fycYWKcjvyby7i6PeoJeWqg8xi2OpDSlZX4M8bT1pPgh5 X-Received: by 2002:a9d:66d2:0:b0:6dd:dc68:d543 with SMTP id t18-20020a9d66d2000000b006dddc68d543mr619693otm.7.1706684471708; Tue, 30 Jan 2024 23:01:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706684471; cv=pass; d=google.com; s=arc-20160816; b=dMAZdR22rW4GgZAJ3o0H12MXT3m9CLPJSCm510fWcZejVnhnXgpoi+JKi69J+2zaVG ojwluUZ6uErJkE16Y64qSNZjPV23ZpuBFsZBTSChJoYN+akM8aITT2lgKpZIDYOlptQ3 vaHNuHGHXcD8JRClrUSi46HLh6md7DIPeGEVx/X9yda1GSBo8aV56CnyRxDW83FA1bFB gKXPflwW9p/hANDa2uSFkInbySEN4nfFNn2+FKdJ8hVql00MKapSu+XN5Fo461nz9Q+e mQeD5VGnd7vYb2qJQvXof3obtbt1Hv9bHLNYn+4KmG9eph5Jl5kxc8X9cQ0b8qhKAXre TIeQ== 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:message-id:date:subject:cc:to :from; bh=p0H8NErKDd585eQM3+eIq1nRj3NjS5GoME3MF33Rsmw=; fh=ZpblTfJRC4mefCqYxJZzotDYdG5krmpvdrMz2tzXEvY=; b=xLIxsX9XBGaDMl4X2GQegI71b4g36IHOAWPTzqEw0p7jtS+s7V7ZtYpSQhANJWSu6D UBVcA6kp+IKlDdwIfRTur2oEhINVCIGFL9kI0ahP4cjdjWot6uqVBlQwZkQBKei4ynQi 9Kz49lxXmE0zcjLp8VvF2Yv+0GsnCyavv2zfEFjvGxkrx4kYxeto60NIUlYIWIJfY3D+ Uy7tUpJTealDFrLtxRu2+IyJ9ZksdRMkRCEw8Ul1SQWENd09ddd6R5LmfRN3H+5qIDt1 vNqjxzr/kphUV3iIFYDQxSOXfUs+lHKGsK73SqOJnCQVI17Q+eTNQQgePRo/EgIfthAe y1dQ==; 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-45852-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45852-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn X-Forwarded-Encrypted: i=1; AJvYcCWhkvlsODrLCRVsGI31jzfaruxiuf74fgAdWNwIA1DBzat7OlsQF9cGWcbRREuslbCY7tQJ7ZlCL2FggZ/GCcSQkEKtr4aAhxFwAJ6llw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j70-20020a638b49000000b005c689021580si9016584pge.543.2024.01.30.23.01.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 23:01:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45852-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-45852-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45852-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4BE5E283CE9 for ; Wed, 31 Jan 2024 07:01:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 908463F8F5; Wed, 31 Jan 2024 07:00:58 +0000 (UTC) Received: from smtpbg154.qq.com (smtpbg154.qq.com [15.184.224.54]) (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 3C4994F608; Wed, 31 Jan 2024 07:00:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=15.184.224.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706684458; cv=none; b=K1y0n9nFT46aOBNITcBZRhmrMF6w+p9esp8PiWkxOwlzd0m4UcpN+RqVWJb/JI/KsfJRaRBfWu66h3j1nJCMc02Mx4fjAZDU0e8HFCLH5K9rmDtn19/6ieFwfdTitASRwSu2Xn1BvhZsX8xXl9o7/Vh/XxvQA5ZZ1dZ1ZwEfI7Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706684458; c=relaxed/simple; bh=B/ElHGjxCkLeMBY823z+y/Hl28wrPRCDlTkzZXoSwIo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=LipaPYPdeptHoG7L/3mI7EL+QTdYgZlcHTFFRW4BgG9MM3sAWL4hrpRyQGui4yMjaPLw8tUa1OYvpkHYAAPL4k4ezXpabxyMCD7jBl9AsoIeLeaZh4d9aeQF4R0GbDcg6/9OTaKSdwHLcodJKzporTqLnAZzxgHiKmbUq71MCGw= 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=15.184.224.54 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: 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> 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 .../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 -- 2.25.1