From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.179 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796345957; b=4aryGe6+Zlrtr400oakf4WtAv14nwcfL8SNlliKYTfr4G7F6NCRkNcVuI/nzpZb8ljra O56wGWOwgY3bi8/0tSyAUKNeuLDK8UArTn6sz1CLmXFSxdKDsNWoueIcuTN01erMgxoxd OLMarZtHlqMd2AxBxu6Cn41WnKt9/bpLW/LUJSLXgaZtFQqzFeHXO/LPvto0fhLGDj44T bmArZBb1jDaXpAOGKPlt7cwnHFsJfCwCD+pgL1bCDD9zyIW9ZYCHyO/PTRISL6BFtyhmV 3kKaxRYRh64qf82i32ktsJHiInP7HwqI4wq02cJbVCHpOgrLFFhQjbPNBqZiNpQ5kWA== 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=nS4Zz0Htt6pLQewI/y6FYp3yeDEC3yVYMDkqb6+tHr3MT/2XhLQZbVBB1MA3gVR27/kn b7GArX4YBkrJCnm8AF7YnIt4PN7eNjhGoqoksTXJHFgLT1EWKjzYtdn227rtWNs/o67UV QT/i/Y92C/B7zZ1URL/5C2sPCkXzxPRkTgvzIU1EGrT+C6gDtC204iyg8dq+cAdisTZRE NCttrpKi+tdRYWEknbXdcCAbi88++96SyVqm8iMwF6vAPHzlZ+0WLCnpDHExWHmB1IQkj bFz06o/FvpALZuk+WxCe/N2snHLIzP71uCIn5pbWKkwSL3VljawcPlqVe9PbkmPTW6Q== 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="O3J6/u6M"; arc=none smtp.remote-ip=209.85.215.179 Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (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 DFD24606A334 for ; Fri, 4 Dec 2026 00:59:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DFD24606A334 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=O3J6/u6M Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-cde0daf3a2aso192217a12.3 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=vger.kernel.org; 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=O3J6/u6MjK3MTzN9G1LOL2A2tymbcAW2vEhVz2/DP+sCA0J5ZSl78zjPbGGWxnYw+Z RsPpdJ5Oc44dzJ/wmSiIuv6kjcMwSJIFypjQZFZMy130O0dRniNfcE3x1Sh4cDREdEYE uAUGK//toafy9qRR4E67zR1KgJvWDplOQWOO5P4jU8fJNL8m1Y2Jv+gnmIzjSqzydvR5 vm7Pufk/8wtiYl8zy7WLhsRjkpb3e9qQrCu5b3zPL7Cbw+AuE6cPsTLtlJLHdrhZOi9+ n7AATfsKxbDxc9sqd8Zln836f8bLoAlDzf08PoATXfV0MEFaI6rBCGpeMnmCEJzA8e84 cvAA== 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=idAj0wn1ywudkHYt6QrZsiKMGwkqsflIkClmjmpuA+4+RX7ZhbpxqU3/sRABS3bQXM mA22eo6SP1g6tiNTPkfWXLKIp19vcGYW5kxWg0ET1aaT+HPfD9b1BWTPYs9Q+j/LgoC3 q8eriBP9+/N8NeORNSW+5L6zcqQ7n0JhAHdS2GGfCYM3Q6y56HTqGgar70J5PVV3QB3g bzrXaBNZhF2gO4zOaZ2GYW55UgmsGlyzhEs82PWSn1SOxNOv/RIqw7Vx4gsD7FFYhX7k 6Aw9xhOuanCMm3KUOJBzjM4Ugldv+zirRyWdl3103WupxbtCkB5UYT7bSwhE0ik4anC/ tJ5g== X-Forwarded-Encrypted: i=1; AL+hErFOfUN4Kk1EQ01t0bOu+I8O6dGA5uLjqxX0UORfq241G4vMO4Pp64NLj7q7Q1YVuATeyxP9c/OqKrvbnjM=@vger.kernel.org X-Gm-Message-State: APuU4Z+u7e+JarVJPACgnj+Qb8PWNVdaCcsXhVqgCfUJhGZZUDTV71JP 9eF7cWSCwCJ6ErSInOIxkmGUgyRsqxocoAt1iB7+KC9bJ5S+hCymabqH X-Gm-Gg: AZFdTZdFwRrYrvvEYqPPKe/Rwp8OAS0RoSjPEcf6VwjoD/WsDaik4XXvt4tm7XI9JlN tskgXZmNPK4JtPNaakZV/d/FNv4BHCdrg55/bN8uMdtQOqPL3fMqPrzRsvpejwgx/TVD4+rsR1c gC5WlpKJHp7rIDYxru9n66+Bj8blZ/YknlQA2ARgxTG69Tui1xTB+BMtS9/cwdcxoWGnwaIT9LN nvpPvwUhiEqThmHuP7uD1nsJfGHcoCmUPac1krGnXAieWoHEgiRupQaIUZHqRLylAFlpTVgVyXI jMpoztbCEn/aH2KaCjbWsCTMmmItU91fiXX3qGfMBwDexo6o+Z1ln5l0UVfV+5uPA7mx6fPzEl0 wbUvklIPG2yCJRHavTJ/6gUrTslfte81hsxFmChLqwsW3A3SKBn9k1h5jDyc98WTb9TsTMt15EC LLZojZV02GrVOjF6GOXFH3amW57FGBja8gM2yDbSauQgj5LQo/+YRfN9v0MiZYfR30iF0Ium6J6 ra1d0MVhSDcHcDf0RDL8iXEt16GFaW2HW999IMq8QbcC9ugNL5EpMU51eIakuFjgfvUZ5OUVw/r Faxu9JIhMVQAhwPsLM2Ua8A0XePcvXSHRxDKCEI= 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: linux-kernel@vger.kernel.org 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