Devicetree
 help / color / mirror / Atom feed
From: Harry Bit <idleassetsd@gmail.com>
To: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>, Will Deacon <will@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Arnd Bergmann <arnd@arndb.de>,
	Alexandre Belloni <alexandre.belloni@bootlin.com>,
	Linus Walleij <linusw@kernel.org>
Cc: Drew Fustini <fustini@kernel.org>,
	Lorenzo Pieralisi <lpieralisi@kernel.org>,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-perf-users@vger.kernel.org, soc@lists.linux.dev,
	linux-kernel@vger.kernel.org, Harry Bit <idleassetsd@gmail.com>
Subject: [PATCH v3 6/9] perf: arm_pmuv3: add Phytium FTC310 and FTC664 PMU support
Date: Fri,  4 Dec 2026 08:59:02 +0800	[thread overview]
Message-ID: <20261204005905.29740-7-idleassetsd@gmail.com> (raw)
In-Reply-To: <20261204005905.29740-1-idleassetsd@gmail.com>

Add PMUv3 device table entries and simple PMU init helpers for the
Phytium FTC310 and FTC664 ARMv8 cores.

Based on original work by Chen Baozi <chenbaozi@phytium.com.cn>.

Signed-off-by: Harry Bit <idleassetsd@gmail.com>
---
 drivers/perf/arm_pmuv3.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/perf/arm_pmuv3.c b/drivers/perf/arm_pmuv3.c
index 03359e0783..b19dccb1a9 100644
--- a/drivers/perf/arm_pmuv3.c
+++ b/drivers/perf/arm_pmuv3.c
@@ -1559,6 +1559,9 @@ PMUV3_INIT_SIMPLE(armv8_rainier)
 PMUV3_INIT_SIMPLE(armv8_nvidia_carmel)
 PMUV3_INIT_SIMPLE(armv8_nvidia_denver)
 
+PMUV3_INIT_SIMPLE(armv8_phytium_ftc310)
+PMUV3_INIT_SIMPLE(armv8_phytium_ftc664)
+
 PMUV3_INIT_SIMPLE(armv8_samsung_mongoose)
 
 PMUV3_INIT_MAP_EVENT(armv8_cortex_a35, armv8_a53_map_event)
@@ -1614,6 +1617,8 @@ static const struct of_device_id armv8_pmu_of_device_ids[] = {
 	{.compatible = "brcm,vulcan-pmu",	.data = armv8_brcm_vulcan_pmu_init},
 	{.compatible = "nvidia,carmel-pmu",	.data = armv8_nvidia_carmel_pmu_init},
 	{.compatible = "nvidia,denver-pmu",	.data = armv8_nvidia_denver_pmu_init},
+	{.compatible = "phytium,ftc310-pmu",	.data = armv8_phytium_ftc310_pmu_init},
+	{.compatible = "phytium,ftc664-pmu",	.data = armv8_phytium_ftc664_pmu_init},
 	{.compatible = "samsung,mongoose-pmu",	.data = armv8_samsung_mongoose_pmu_init},
 	{},
 };
-- 
2.47.3


  parent reply	other threads:[~2026-12-04  1:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  0:58 [PATCH v3 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support Harry Bit
2026-12-04  0:58 ` [PATCH v3 1/9] dt-bindings: vendor-prefixes: add phytium Harry Bit
2026-12-04  0:58 ` [PATCH v3 2/9] dt-bindings: arm: cpus: add Phytium FTC310 and FTC664 Harry Bit
2026-12-04  0:58 ` [PATCH v3 3/9] dt-bindings: arm: pmu: " Harry Bit
2026-12-04  0:59 ` [PATCH v3 4/9] dt-bindings: arm: add Phytium PE2204 platforms Harry Bit
2026-12-04  0:59 ` [PATCH v3 5/9] arm64: Kconfig.platforms: add ARCH_PHYTIUM platform option Harry Bit
2026-12-04  0:59 ` Harry Bit [this message]
2026-12-04  0:59 ` [PATCH v3 7/9] arm64: dts: phytium: add PE2204 SoC and Phytium Pi V2.1 board dts Harry Bit
2026-12-04  0:59 ` [PATCH v3 8/9] arm64: defconfig: enable ARCH_PHYTIUM Harry Bit
2026-12-04  0:59 ` [PATCH v3 9/9] MAINTAINERS: add ARM/PHYTIUM ARCHITECTURE entry Harry Bit

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=20261204005905.29740-7-idleassetsd@gmail.com \
    --to=idleassetsd@gmail.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=arnd@arndb.de \
    --cc=catalin.marinas@arm.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=fustini@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=lpieralisi@kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh@kernel.org \
    --cc=soc@lists.linux.dev \
    --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