From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796345957; b=SAWKHAxZX+Mz7of+Ozf9XgmDlUhXvpXEflTgEL/DJSnxRLQVh3Dx4nIYw63e3FPJEpqF 6Uyw3QHonF7Cg6zPy5uFuu4zfFrZ6RUfjxiCcAr/HLWbQQPWZKCp5rkJlO8b6+w6i+ZCZ ccsmNdR9pIIg5qECXHJC3hsakdcExd5eZKNRwTUhh4fAl84/K07ZclljHJwoS+4d1bkWM cxTZ0kfxiHihu/Fxk18k5M9QbazIlv66gZfdNtIKbFXUT/hMu04EZKKxayQ0icZ7eDn21 lsMoUUJ+Li7VrGhvDnBp3dIFwa2ChcxWgB4AZiw5grQ+1NfPTGcNDtIMvL63/4p6+0Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796345957; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=Thw7KURmLweF0olDqv+wF6/+YswfQJxXvSzASj/7UzI=; b=BmzJmuYhSJHmvo5Z2ODSrnDbGL9JKQS0h5AZT0cqHEumWTyl19HmUr+hZQm80NBcma3p n+JxcNuWtWjzjHEV/+U7bJ1uhNcBaHipgBklHZ5iqli+Ov7GXXNybog9GsLe3SOJhdLjS KvMwHFUL6BEdFsj0JrYBhk9ZuIYoplqj6ACJJr+3jC+9D0XQYHxN5umRuhTZtdWwX6eUX 2gFNq4pDwjGyCbQcZtLfk1alLUkv1TePOT4VN9w0QmyBWcn3CJA4fCG6kW5dKRTGsWS97 1DanWeOTfuQA4X8ToZWn4AC2PHWyyEJqyeUUw7eRuq62gCi6xjpmLHc5HA/Z3H+5fyw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=HAvKXi4b; arc=none smtp.remote-ip=209.85.214.172 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC542606A333 for ; Fri, 4 Dec 2026 00:59:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DC542606A333 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=HAvKXi4b Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-2f03f3631b2so3057655ad.2 for ; Thu, 03 Dec 2026 16:59:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796345956; x=1796950756; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=Thw7KURmLweF0olDqv+wF6/+YswfQJxXvSzASj/7UzI=; b=HAvKXi4bLbvGSSCIASRCzCQsIqsv8WTwe4jO4fcemdFsnqnnnA1e8WivBtO27wHcpJ vz058FrYhXfe6Ba1Zf2lq2G5+F/EJYw8Y0V6mzuMNeAvjUNFniZuA2h9mR0mlUud0BuU 7LmN3tdGtoyrTKVRMLH+PjenbjjuW5WnmG72yW2H4m2I/3bflWaoiEZi23gziFXXU3PG 4+DJ1Rr4gLjIQxzm0DuEf/Zv/xzNgpThMJm4r0hIAepedOgYHPRjcmC7qteRRATI6KrL GLG56ykPJ5fbnn0yzk0pAsq7c3Q1Bh4F3e2AxWlR6H3IO/idMPJWt5eOwuhtSO/uy99G llcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796345956; x=1796950756; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Thw7KURmLweF0olDqv+wF6/+YswfQJxXvSzASj/7UzI=; b=WW/+gv84fa59gz+YD82DowP3TBSsjAt4mom/bjVLlZoE7gjDscJI3qQ8b1Y/oeCfaS 0QzukFq3jRSnmoYON8ODXjpcJlicDIGUdXcR45pj3ZUDS7bT+ui/qncmQ0g3wWjceTKL 3TS+9oKEa+ht3m3sZsmI1y6Rpjmcqf5dgcFduSijweT6t4+goU+TRSXDo7VUCD9nZCBb OiS3VaLMpiSPSMXLtWde2GweqQVbR+myVrS92lHKmH18JT4akhtGIcBL76JH9yNyK1n0 ivMdSPePX+5A4tJGalp9LnYttAgecSBH+j2UYkgVlSGBwvCd/+l6cY1NIm+tOR4xKLfQ 2oLA== X-Forwarded-Encrypted: i=1; AL+hErFRPF+nfz8tN+lSA4OAFwAd/O62Ttnemv43jUAeh4uJdNRHpG51DyAPweZCxaNwgMRY4X0=@lists.linux.dev X-Gm-Message-State: APuU4Z8iOd0UCTjUEfY9d0AgxVg2kRlV4MSXnW/fSe/VEc0Mbo9c38oE AIMxsz/meM6RXRlTXDBO2ZPtF3gwkfhxMdpHasIO4JO4/KHEEZmmkngOTLTdRNDlRqL3KA== X-Gm-Gg: AZFdTZdz2dQ9haUei9ekctmMJFQbrmQAbyoVQG50fKmvVneZzGc72ytzxezbFNWHOCs wCtFkI5R9xhZt1YwiRSK7dQgNJs3FWMn4NopmcRKcj2ZpMfoiCLiy4lk0Q3n/izz5YmBO8AJOPp ScAiuQrqej5vylGV1l8sI1obJpcvh5GAJFE6f7WiQ5/DAom7iCamVRjMg4sOn3k8H32Lrcm40Aa DcjRXrY6UgUCM0Za1oFDWLaXYf9EFcaMvkt49eGFOvHXjIiEk9CnanQy2jo2o9WHF+ETpjzvrI4 6Dmnmdvo5RdiC3/tz8Py6OckpcEwl0aW2975CVehW44WPjiKLBPjC0T5oayhwPYhRW/Gp5H3O/1 qT85qxR/fKnkWfB+Ndx7uYRLcG94Yc1J+wo+HYxOtXyLgaALWKr7cuo/IP02+TaJ0GwvEbFfGGb FrGFoZFiGx/2iflHldM3S+qmZiJ5c66jva31/Sr2zdTQFhM1w2fTKyKgu6oFjwsV39WquaiqwuE waKUYst79B0GYmDB4qFONcmNs/lqKGEyPGXSDdWnPBCOgdvUKu/GO5FDnYpcvRmSexxInqh8aIn axpF6aDJGrhva23J4q2zE7VFSLuUYaHFJtHzjOw= X-Received: by 2002:a17:902:d510:b0:2e9:9a19:c54 with SMTP id d9443c01a7336-2f1ba159376mr2213255ad.50.1796345955794; Thu, 03 Dec 2026 16:59:15 -0800 (PST) Received: from m3pro ([36.110.14.169]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f1b7940772sm2148285ad.48.2026.12.03.16.59.08 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 03 Dec 2026 16:59:15 -0800 (PST) From: Harry Bit To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Will Deacon , Mark Rutland , Catalin Marinas , Arnd Bergmann , Alexandre Belloni , Linus Walleij Cc: Drew Fustini , Lorenzo Pieralisi , 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 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 Message-ID: <20261204005905.29740-1-idleassetsd@gmail.com> X-Mailer: git-send-email 2.54.0 X-Mailing-List: soc@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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