All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Add Phytium vendor prefix and FTC310/FTC664 CPU/PMU support
@ 2026-12-02  8:30 Harry Bit
  2026-12-02  8:30 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: add phytium Harry Bit
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Harry Bit @ 2026-12-02  8:30 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Will Deacon,
	Mark Rutland
  Cc: Catalin Marinas, Lorenzo Pieralisi, devicetree, linux-arm-kernel,
	linux-perf-users, linux-kernel, Harry Bit

This series adds the Device Tree vendor prefix for Phytium Technology
Co., Ltd., documents the FTC310 (MIDR 0x700f3034) and FTC664 (MIDR
0x701f6643) ARMv8 CPU and PMU compatible strings used in Phytium PE220x
SoCs, and enables ARM PMUv3 driver matching for both cores.

Patch 1 adds the "phytium" vendor prefix.
Patch 2 documents the phytium,ftc310 and phytium,ftc664 CPU and PMU
compatible strings.
Patch 3 registers the FTC310 and FTC664 PMUv3 entries in arm_pmuv3.

Tested on Phytium Pi V2.1 (PE2204, 2x FTC664 + 2x FTC310), where both
armv8_phytium_ftc310 and armv8_phytium_ftc664 PMUs probe and count
standard PMUv3 events with perf stat.

This series is the first step in upstreaming Phytium PE2204 (E2000Q)
SoC and Phytium Pi board support. Follow-up series will introduce:
1. Core platform support (ARCH_PHYTIUM, cputype/errata, reset, pinctrl,
   mailbox, GPIO, and base PE2204 / Phytium Pi Device Trees).
2. Peripheral drivers per subsystem (I2C/SPI/QSPI, DW-MSHC MMC, Cadence
   GEM Ethernet, USB, CAN-FD, audio, and display).

Changes in v2:
- Add this cover letter.
- Fix DCO attribution: use submitter From/Signed-off-by only and credit
  the vendor reference in commit descriptions.
- Link to v1: https://lore.kernel.org/r/20261128035504.760778-1-idleassetsd@gmail.com

Harry Bit (3):
  dt-bindings: vendor-prefixes: add phytium
  dt-bindings: arm: cpus: add Phytium FTC310 and FTC664
  perf: arm_pmuv3: add Phytium FTC310 and FTC664 PMU support

 Documentation/devicetree/bindings/arm/cpus.yaml        | 2 ++
 Documentation/devicetree/bindings/arm/pmu.yaml         | 2 ++
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 drivers/perf/arm_pmuv3.c                               | 5 +++++
 4 files changed, 11 insertions(+)
-- 
2.54.0

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2 1/3] dt-bindings: vendor-prefixes: add phytium
  2026-12-02  8:30 [PATCH v2 0/3] Add Phytium vendor prefix and FTC310/FTC664 CPU/PMU support Harry Bit
@ 2026-12-02  8:30 ` Harry Bit
  2026-12-02  8:30 ` [PATCH v2 2/3] dt-bindings: arm: cpus: add Phytium FTC310 and FTC664 Harry Bit
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Harry Bit @ 2026-12-02  8:30 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Will Deacon,
	Mark Rutland
  Cc: Catalin Marinas, Lorenzo Pieralisi, devicetree, linux-arm-kernel,
	linux-perf-users, linux-kernel, Harry Bit

Add the vendor prefix for Phytium Technology Co., Ltd.

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

Signed-off-by: Harry Bit <idleassetsd@gmail.com>
---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index 5471a06f93..374568acb2 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -1331,6 +1331,8 @@ patternProperties:
     description: Phontech
   "^phytec,.*":
     description: PHYTEC Messtechnik GmbH
+  "^phytium,.*":
+    description: Phytium Technology Co., Ltd.
   "^picochip,.*":
     description: Picochip Ltd
   "^pine64,.*":
-- 
2.54.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 2/3] dt-bindings: arm: cpus: add Phytium FTC310 and FTC664
  2026-12-02  8:30 [PATCH v2 0/3] Add Phytium vendor prefix and FTC310/FTC664 CPU/PMU support Harry Bit
  2026-12-02  8:30 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: add phytium Harry Bit
@ 2026-12-02  8:30 ` Harry Bit
  2026-12-02  8:30 ` [PATCH v2 3/3] perf: arm_pmuv3: add Phytium FTC310 and FTC664 PMU support Harry Bit
  2026-12-02  8:33 ` [PATCH v2 0/3] Add Phytium vendor prefix and FTC310/FTC664 CPU/PMU support sashiko-bot
  3 siblings, 0 replies; 5+ messages in thread
From: Harry Bit @ 2026-12-02  8:30 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Will Deacon,
	Mark Rutland
  Cc: Catalin Marinas, Lorenzo Pieralisi, devicetree, linux-arm-kernel,
	linux-perf-users, linux-kernel, Harry Bit

Document the CPU and PMU compatible strings for Phytium FTC310 and
FTC664 ARMv8 cores integrated in PE220x SoCs.

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

Signed-off-by: Harry Bit <idleassetsd@gmail.com>
---
 Documentation/devicetree/bindings/arm/cpus.yaml | 2 ++
 Documentation/devicetree/bindings/arm/pmu.yaml  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentation/devicetree/bindings/arm/cpus.yaml
index 96136b70da..658da1fdc4 100644
--- a/Documentation/devicetree/bindings/arm/cpus.yaml
+++ b/Documentation/devicetree/bindings/arm/cpus.yaml
@@ -206,6 +206,8 @@ properties:
           - nvidia,tegra132-denver
           - nvidia,tegra186-denver
           - nvidia,tegra194-carmel
+          - phytium,ftc310
+          - phytium,ftc664
           - qcom,krait
           - qcom,kryo240
           - qcom,kryo250
diff --git a/Documentation/devicetree/bindings/arm/pmu.yaml b/Documentation/devicetree/bindings/arm/pmu.yaml
index f47baaefcd..49976c889f 100644
--- a/Documentation/devicetree/bindings/arm/pmu.yaml
+++ b/Documentation/devicetree/bindings/arm/pmu.yaml
@@ -79,6 +79,8 @@ properties:
           - cavium,thunder-pmu
           - nvidia,denver-pmu
           - nvidia,carmel-pmu
+          - phytium,ftc310-pmu
+          - phytium,ftc664-pmu
           - qcom,krait-pmu
           - qcom,scorpion-pmu
           - qcom,scorpion-mp-pmu
-- 
2.54.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 3/3] perf: arm_pmuv3: add Phytium FTC310 and FTC664 PMU support
  2026-12-02  8:30 [PATCH v2 0/3] Add Phytium vendor prefix and FTC310/FTC664 CPU/PMU support Harry Bit
  2026-12-02  8:30 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: add phytium Harry Bit
  2026-12-02  8:30 ` [PATCH v2 2/3] dt-bindings: arm: cpus: add Phytium FTC310 and FTC664 Harry Bit
@ 2026-12-02  8:30 ` Harry Bit
  2026-12-02  8:33 ` [PATCH v2 0/3] Add Phytium vendor prefix and FTC310/FTC664 CPU/PMU support sashiko-bot
  3 siblings, 0 replies; 5+ messages in thread
From: Harry Bit @ 2026-12-02  8:30 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Will Deacon,
	Mark Rutland
  Cc: Catalin Marinas, Lorenzo Pieralisi, devicetree, linux-arm-kernel,
	linux-perf-users, linux-kernel, Harry Bit

Add PMUv3 device table entries and event mapping initializers 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..42f043444c 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)
@@ -1613,6 +1616,8 @@ static const struct of_device_id armv8_pmu_of_device_ids[] = {
 	{.compatible = "cavium,thunder-pmu",	.data = armv8_cavium_thunder_pmu_init},
 	{.compatible = "brcm,vulcan-pmu",	.data = armv8_brcm_vulcan_pmu_init},
 	{.compatible = "nvidia,carmel-pmu",	.data = armv8_nvidia_carmel_pmu_init},
+	{.compatible = "phytium,ftc310-pmu",	.data = armv8_phytium_ftc310_pmu_init},
+	{.compatible = "phytium,ftc664-pmu",	.data = armv8_phytium_ftc664_pmu_init},
 	{.compatible = "nvidia,denver-pmu",	.data = armv8_nvidia_denver_pmu_init},
 	{.compatible = "samsung,mongoose-pmu",	.data = armv8_samsung_mongoose_pmu_init},
 	{},
-- 
2.54.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 0/3] Add Phytium vendor prefix and FTC310/FTC664 CPU/PMU support
  2026-12-02  8:30 [PATCH v2 0/3] Add Phytium vendor prefix and FTC310/FTC664 CPU/PMU support Harry Bit
                   ` (2 preceding siblings ...)
  2026-12-02  8:30 ` [PATCH v2 3/3] perf: arm_pmuv3: add Phytium FTC310 and FTC664 PMU support Harry Bit
@ 2026-12-02  8:33 ` sashiko-bot
  3 siblings, 0 replies; 5+ messages in thread
From: sashiko-bot @ 2026-12-02  8:33 UTC (permalink / raw)
  To: Harry Bit; +Cc: linux-perf-users

Sashiko has reviewed this 3-patch series and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261202083046.13304-1-idleassetsd@gmail.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-02  8:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02  8:30 [PATCH v2 0/3] Add Phytium vendor prefix and FTC310/FTC664 CPU/PMU support Harry Bit
2026-12-02  8:30 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: add phytium Harry Bit
2026-12-02  8:30 ` [PATCH v2 2/3] dt-bindings: arm: cpus: add Phytium FTC310 and FTC664 Harry Bit
2026-12-02  8:30 ` [PATCH v2 3/3] perf: arm_pmuv3: add Phytium FTC310 and FTC664 PMU support Harry Bit
2026-12-02  8:33 ` [PATCH v2 0/3] Add Phytium vendor prefix and FTC310/FTC664 CPU/PMU support sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.