From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B02E739733E for ; Sat, 15 Aug 2026 08:20:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786782056; cv=none; b=AK4cc5uLRTxLXrUfR7ei7vFc2xEmhtI/Wvre+zKMwRE+yGKzgWIeFSl14aEVnpqfcCahCg+jABHbma4hbq6be0eFB9QGFDmkOOsTehxga0rBkE2l1uE0iFCRIedLDVDkyVLE3lr16xQcH5ETM62zDwOPEGjdNHWh5oKEPV086Pw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786782056; c=relaxed/simple; bh=vrI40E/Ms/vPd/wWV7KFBBB0zzHgTqy9wJtZ/LzBk3w=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=mXOLHpHaGboS+KuylVO61Ocd+bZH86Gejw31TsfiM9aiWFoqS++CGl4FkJH6RDjdAP74tynsjRATOQ9bhaAwKlpSOTu2rS04wG0Q2dw8IxFb8Otqh8KrE3qN0Cj+7b6aFv0ihZmP4zH/G7cPD4lxWiEWFaWIwKFnj2LXh1RkhvA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=dMTfcKyK; arc=none smtp.client-ip=209.85.216.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="dMTfcKyK" Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-38dbe39ce62so1549350a91.0 for ; Sat, 15 Aug 2026 01:20:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1786782054; x=1787386854; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=q6KgjyY8PrTJFFkciS7ilG7nrDbtEQyBC0oLhg67UQQ=; b=dMTfcKyKV+JUOcaRr2TAboZ18Pj+R/01XrqsRc85/VX+k5gDT00YWyFgu1PpzQRe+e wfn6AfTAVQcgvjIqVrvz7vM2y8CbIebl5gJrjBCkDYanebn+hmOk3rfnN5ylpoHLN38S cd6ethK6dJjMl8lUHdMwHRWRoNqwnaUK9+tLl7+25kVf2eVoK4sSQ1OfRrCPaPbwcyRF Jx5DP3T/lBXwGiEobLrqNvSQ1kREdqfA1zLPkLPypuQMso57iDQNR6qKuyMZ6+yI65+N Ek5Ll3oBP3rpxzekIrgNilET8x2SJQG5QoLhzcXk/WeZ4qJ8miiXtE4pPYj2k5RQtAL4 gZIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786782054; x=1787386854; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=q6KgjyY8PrTJFFkciS7ilG7nrDbtEQyBC0oLhg67UQQ=; b=lLe/NRHAC0mcYw0KhBYrXBvWaq2maGsCwxhHIefZ1sCLMCmi90rQhkEvQj6RGnwusD oV6O4skGAD2ivilxAKWgzCExbSSIZfOXWM5SJaLs4MBRt3IzHokOGMXfrXxKT0y5O8jx l0c4Ysip8QTU/6G8uDQL8HeBObBcoSgru/U9ytL3W4Wx0GNX9F6yv19IguZYVHH504WQ yW3llgCcMfLFxhZF7ZACWUmPTrA1zsIcNo18WeeiEX0THNCduSOAUzVUDzxjXRrU5365 QiMSoHRYDZAtzcuN98GCXE+ucRj0Ay2abEh0GGYkG9DCaBufhRJPM4/UdrTElId594jq S/Zg== X-Forwarded-Encrypted: i=1; AHgh+Rop2+c3Jdj6A2l9qf6CdkzpGbxVRXC/kDJzFgRPDndpSLUv3DFJTd2Wc4GEiyLl5iE8q72PF3gtfoKeyUk=@vger.kernel.org X-Gm-Message-State: AOJu0YxWH7uf4QJmMda4YCBmB+VMVXOcvy8SgSZI86JRYfurR49VC4LS ysKuViR/iGCXS9hnzSKBX0tSiANlXCQn11IjSKHCKbXoBGBM9BZEwv34udQMxN8LlLq5NP1UL77 XmaI8QkcE2A== X-Received: from dlj31.prod.google.com ([2002:a05:7022:51f:b0:13b:848c:abaf]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:54c3:b0:387:d9cc:7dc3 with SMTP id 98e67ed59e1d1-3931f61cca5mr15778918a91.21.1786782053769; Sat, 15 Aug 2026 01:20:53 -0700 (PDT) Date: Sat, 15 Aug 2026 01:20:46 -0700 In-Reply-To: <20260815082048.4043217-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260815082048.4043217-1-irogers@google.com> X-Mailer: git-send-email 2.55.0.691.gc56d675ccc-goog Message-ID: <20260815082048.4043217-2-irogers@google.com> Subject: [PATCH v12 1/3] dt-bindings: perf: Add Broadcom Raspberry Pi AXI PMU definition From: Ian Rogers To: irogers@google.com, linux-perf-users@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, Florian Fainelli , Peter Robinson Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Add Device Tree bindings for the Broadcom AXI PMU hardware blocks present in the Raspberry Pi SoC line (BCM2835, BCM2711, BCM2712). Depending on the SoC and security configuration, these PMUs support either direct MMIO access or routing via the Raspberry Pi firmware Mailbox IPC. The bindings support defining 1 or 2 backing MMIO regions natively map the system and VPU control surfaces. Signed-off-by: Ian Rogers --- .../bindings/perf/brcm,bcm2835-axiperf.yaml | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/perf/brcm,bcm2835-axiperf.yaml diff --git a/Documentation/devicetree/bindings/perf/brcm,bcm2835-axiperf.yaml b/Documentation/devicetree/bindings/perf/brcm,bcm2835-axiperf.yaml new file mode 100644 index 000000000000..8f8686f67337 --- /dev/null +++ b/Documentation/devicetree/bindings/perf/brcm,bcm2835-axiperf.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/perf/brcm,bcm2835-axiperf.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM2835/2711/2712 AXI Performance Monitor + +maintainers: + - Ian Rogers + +description: | + The Broadcom BCM2835 series (including BCM2711 and BCM2712) features hardware + performance monitors on the AXI bus for evaluating memory bandwidth and + system traffic. Depending on the SoC architecture, multiple monitors exist. + The primary + monitor evaluates the System fabric, while the secondary monitor evaluates the + VideoCore VPU hardware. + + Older silicon generally restricts direct MMIO access to the VPU endpoints, + requiring them to be accessed over the Raspberry Pi firmware mailbox + interface. If the VPU endpoints are memory-mapped, they are supplied as + secondary resources. + +properties: + compatible: + enum: + - brcm,bcm2835-axiperf + - brcm,bcm2711-axiperf + - brcm,bcm2712-axiperf + + reg: + minItems: 1 + maxItems: 2 + description: | + Memory-mapped I/O resource regions for the AXI PMU endpoints. + Typically ordered as System monitor, followed by VPU monitor if directly + mapped. + + firmware: + $ref: /schemas/types.yaml#/definitions/phandle + description: | + Phandle to the Raspberry Pi firmware node. Required on older silicon + (BCM2835-BCM2711) where VideoCore VPU endpoints are exclusively accessed + via firmware mailbox IPC. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + pmu@7e00a000 { + compatible = "brcm,bcm2835-axiperf"; + reg = <0x7e00a000 0x100>; + }; + - | + pmu@7d620000 { + compatible = "brcm,bcm2712-axiperf"; + reg = <0x7d620000 0x100>, + <0x7d630000 0x100>; + }; -- 2.55.0.691.gc56d675ccc-goog