Linux-ARM-Kernel Archive on lore.kernel.org
 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 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support
Date: Fri,  4 Dec 2026 08:58:56 +0800	[thread overview]
Message-ID: <20261204005905.29740-1-idleassetsd@gmail.com> (raw)

This series introduces initial minimal bootable support for the Phytium
PE2204 (E2000Q) ARMv8 SoC and the Phytium Pi V2.1 single-board computer,
following the SoC subsystem upstreaming guidelines
(Documentation/process/maintainer-soc.rst):

  1. Add the 'phytium' vendor prefix binding (Acked-by Krzysztof Kozlowski).
  2. Document the Phytium FTC310 and FTC664 CPU compatibles.
  3. Document the Phytium FTC310 and FTC664 PMU compatibles.
  4. Document the Phytium PE2204 SoC and Phytium Pi V2.1 board bindings.
  5. Add the ARCH_PHYTIUM arm64 platform Kconfig option.
  6. Add FTC310 and FTC664 PMUv3 support to drivers/perf/arm_pmuv3.
  7. Add minimal bootable PE2204 SoC dtsi and Phytium Pi V2.1 board dts
     (CPUs, PSCI, one PMU per CPU type with GICv3 PPI partitions,
     GICv3/ITS, architected timer, memory, firmware reserved-memory,
     and PL011 UART console).
  8. Enable CONFIG_ARCH_PHYTIUM in arm64 defconfig.
  9. Add the ARM/PHYTIUM ARCHITECTURE MAINTAINERS entry.

The series is intended for community review first and subsequent merge
through the SoC tree once reviewed and acked by the arm-perf maintainers
for patches 3 and 6.

Validation:
  - checkpatch.pl --strict: 0 errors/warnings (aside from expected
    FILE_PATH_CHANGES notices on patches 4 and 7, resolved by patch 9).
  - make dt_binding_check: 0 warnings.
  - make dtbs_check W=1: 0 warnings.
  - scripts/dtc/dt-check-style --mode strict: 0 warnings.
  - Boot-tested directly via U-Boot booti on Phytium Pi V2.1 (4 GiB,
    U-Boot 2022.01 / PBF E2000-v1.08 / OP-TEE 4.0) with pure mainline
    v7.4-rc5 + this series: 4 CPUs online at EL2, GICv3/ITS with both
    PPI partitions parsed (interrupt-partition-0 for FTC310 cpu@200/201,
    interrupt-partition-1 for FTC664 cpu@0/100), one PMU per CPU type
    (7 counters each), PL011 UART1 console (irq 14). Memory reports
    4112384K (4016 MiB), confirming U-Boot preserves the 0x7b000000
    low-RAM limit (top 80 MiB 0xfb000000-0xffffffff remains unmapped)
    alongside both no-map firmware reserved-memory regions. Mixed
    FTC310/FTC664 silicon sets TAINT_CPU_OUT_OF_SPEC due to differing
    feature registers (SYS_ID_AA64ISAR0_EL1: 0x00011100012120 on FTC310
    vs 0x00000100012120 on FTC664 [SM3/SM4]; SYS_MVFR0_EL1:
    0x00000010110222 vs 0x00000010111222), which will be addressed
    separately with the arm64 maintainers.

Changes in v3:
  - Link to v2: https://lore.kernel.org/lkml/20261202083046.13304-1-idleassetsd@gmail.com/
  - Pick up Acked-by from Krzysztof Kozlowski on patch 1.
  - Split pmu.yaml out of the cpus.yaml patch into a separate patch.
  - Expand the series to a full minimal bootable SoC submission per
    Krzysztof's review (platform bindings, ARCH_PHYTIUM, minimal
    PE2204/Phytium Pi V2.1 DTS with GICv3 PPI partitions, arm64
    defconfig, and MAINTAINERS).

base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244

Harry Bit (9):
  dt-bindings: vendor-prefixes: add phytium
  dt-bindings: arm: cpus: add Phytium FTC310 and FTC664
  dt-bindings: arm: pmu: add Phytium FTC310 and FTC664
  dt-bindings: arm: add Phytium PE2204 platforms
  arm64: Kconfig.platforms: add ARCH_PHYTIUM platform option
  perf: arm_pmuv3: add Phytium FTC310 and FTC664 PMU support
  arm64: dts: phytium: add PE2204 SoC and Phytium Pi V2.1 board dts
  arm64: defconfig: enable ARCH_PHYTIUM
  MAINTAINERS: add ARM/PHYTIUM ARCHITECTURE entry

 .../devicetree/bindings/arm/cpus.yaml         |   2 +
 .../devicetree/bindings/arm/phytium.yaml      |  24 ++
 .../devicetree/bindings/arm/pmu.yaml          |   2 +
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 MAINTAINERS                                   |   8 +
 arch/arm64/Kconfig.platforms                  |   8 +
 arch/arm64/boot/dts/Makefile                  |   1 +
 arch/arm64/boot/dts/phytium/Makefile          |   2 +
 .../boot/dts/phytium/pe2204-phytiumpi-v2.dts  |  51 ++++
 arch/arm64/boot/dts/phytium/pe2204.dtsi       | 238 ++++++++++++++++++
 arch/arm64/configs/defconfig                  |   1 +
 drivers/perf/arm_pmuv3.c                      |   5 +
 12 files changed, 344 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/phytium.yaml
 create mode 100644 arch/arm64/boot/dts/phytium/Makefile
 create mode 100644 arch/arm64/boot/dts/phytium/pe2204-phytiumpi-v2.dts
 create mode 100644 arch/arm64/boot/dts/phytium/pe2204.dtsi

-- 
2.47.3



             reply	other threads:[~2026-12-04  0:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  0:58 Harry Bit [this message]
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 ` [PATCH v3 6/9] perf: arm_pmuv3: add Phytium FTC310 and FTC664 PMU support Harry Bit
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-1-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