mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vladimir Kondratiev <vladimir.kondratiev@mobileye.com>
To: "Will Deacon" <will@kernel.org>,
	"Mark Rutland" <mark.rutland@arm.com>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Jonathan Corbet" <corbet@lwn.net>,
	"Shuah Khan" <skhan@linuxfoundation.org>,
	"Randy Dunlap" <rdunlap@infradead.org>,
	"Benoît Monin" <benoit.monin@bootlin.com>,
	"Gregory CLEMENT" <gregory.clement@bootlin.com>,
	"Théo Lebrun" <theo.lebrun@bootlin.com>,
	"Thomas Bogendoerfer" <tsbogend@alpha.franken.de>
Cc: linux-arm-kernel@lists.infradead.org,
	linux-perf-users@vger.kernel.org,  devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,  linux-doc@vger.kernel.org,
	linux-mips@vger.kernel.org,
	 Vladimir Kondratiev <vladimir.kondratiev@mobileye.com>
Subject: [PATCH 2/6] dt-bindings: perf: Add Arteris FlexNoC interconnect
Date: Mon, 30 Nov 2026 14:51:10 +0200	[thread overview]
Message-ID: <20261130-flexnoc-pmu-v1-2-76c1ecf6f188@mobileye.com> (raw)
In-Reply-To: <20261130-flexnoc-pmu-v1-0-76c1ecf6f188@mobileye.com>

Add a Device Tree binding for the Arteris FlexNoC interconnect used by
the performance monitoring driver. Each node describes a single service-
network register range where hardware units (including packet probes) are
discovered at runtime.

Document the optional "arteris,counter-bits" property for counter widths
that cannot be read back from hardware, and the optional "label"
property used to name the resulting PMUs.

Signed-off-by: Vladimir Kondratiev <vladimir.kondratiev@mobileye.com>
---
 .../devicetree/bindings/perf/arteris,flexnoc.yaml  | 74 ++++++++++++++++++++++
 1 file changed, 74 insertions(+)

diff --git a/Documentation/devicetree/bindings/perf/arteris,flexnoc.yaml b/Documentation/devicetree/bindings/perf/arteris,flexnoc.yaml
new file mode 100644
index 000000000000..ed8f68da7062
--- /dev/null
+++ b/Documentation/devicetree/bindings/perf/arteris,flexnoc.yaml
@@ -0,0 +1,74 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/perf/arteris,flexnoc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Arteris FlexNoC interconnect
+
+maintainers:
+  - Vladimir Kondratiev <vladimir.kondratiev@mobileye.com>
+
+description:
+  An Arteris FlexNoC interconnect gives run-time access to the registers of
+  its hardware units, such as observation probes, sideband managers and error
+  loggers, through a service network. The units are mapped one after the
+  other in a single register range, in blocks of 128 to 1024 bytes, each
+  starting with the same identification registers. Units are discovered by
+  reading those registers; a SoC usually has several FlexNoC instances, each
+  with its own set of units. Packet probes with statistics counters are
+  exposed as performance monitoring units.
+
+properties:
+  compatible:
+    oneOf:
+      - items:
+          - enum:
+              - mobileye,eyeq6h-flexnoc
+          - const: arteris,flexnoc
+      - const: arteris,flexnoc
+
+  reg:
+    maxItems: 1
+    description:
+      The range of unit registers of the interconnect. It must not extend
+      past the last unit; registers in gaps between units answer with a bus
+      error, but the range must be backed by the service network.
+
+  arteris,counter-bits:
+    description:
+      Width in bits of the statistics counters of the packet probes of this
+      interconnect, which is a build option of the NoC that cannot be read
+      back from the hardware.
+    minimum: 8
+    maximum: 32
+    default: 32
+
+  label:
+    description:
+      human-readable name for the interconnect node
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    soc {
+        #address-cells = <2>;
+        #size-cells = <2>;
+
+        noc_ncore_ccti: interconnect@d1d00000 {
+            compatible = "mobileye,eyeq6h-flexnoc", "arteris,flexnoc";
+            reg = <0 0xd1d00000 0 0x1000>;
+            label = "flexnoc_ccti";
+        };
+
+        interconnect@48419000 {
+            compatible = "arteris,flexnoc";
+            reg = <0x0 0x48419000 0x0 0x1000>;
+            arteris,counter-bits = <24>;
+        };
+    };

-- 
2.43.0


  parent reply	other threads:[~2026-11-30 12:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 12:51 [PATCH 0/6] perf: PMU for Arteris FlexNoC Vladimir Kondratiev
2026-11-30 12:51 ` [PATCH 1/6] dt-bindings: vendor-prefixes: Add arteris Vladimir Kondratiev
2026-11-30 12:51 ` Vladimir Kondratiev [this message]
2026-11-30 12:51 ` [PATCH 3/6] perf: Add Arteris FlexNoC packet probe PMU driver Vladimir Kondratiev
2026-11-30 12:51 ` [PATCH 4/6] MAINTAINERS: Add entry for Arteris FlexNoC PMU Vladimir Kondratiev
2026-11-30 12:51 ` [PATCH 5/6] mips: dts: eyeq6h: Add FlexNoC interconnects Vladimir Kondratiev
2026-11-30 12:51 ` [PATCH 6/6] MIPS: eyeq6_defconfig: Enable Arteris FlexNoC PMU Vladimir Kondratiev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130-flexnoc-pmu-v1-2-76c1ecf6f188@mobileye.com \
    --to=vladimir.kondratiev@mobileye.com \
    --cc=benoit.monin@bootlin.com \
    --cc=conor+dt@kernel.org \
    --cc=corbet@lwn.net \
    --cc=devicetree@vger.kernel.org \
    --cc=gregory.clement@bootlin.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=rdunlap@infradead.org \
    --cc=robh@kernel.org \
    --cc=skhan@linuxfoundation.org \
    --cc=theo.lebrun@bootlin.com \
    --cc=tsbogend@alpha.franken.de \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®