From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.178 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796345957; b=4whVxUNV4Rjl4/eSUjVgtJasVKwqNcEPbiwmX/MO8z7ZmM19Aq0sWS06dcPU95uhSkI/ JXNiDAOUp53EWfyKo8fiBpud+13K4K1nmaSOWZGxJbPxn6UaLi0tmzn/4uQ9fo4gjF02Y 6y8ADiGyGlVwrIsCg+49YdO1aJNDth3tW60TIQL6BFpIb0jDXJJ485J6VedQWT+eYlBgU YGCwjPe1A/hlJaw+37Tv+Gc+LQ2h9pUEG1PmFjnqki02Bytuk9unpENzIfaFhZeG19Fz2 XcmbVcRoO7bVjE7VB/8Df2cl2s3Wt1fPI1Nq4hQl7RDTPR/jRESsgcxQ3DBgDJRPPlA== 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=k2hyBeD8sL9yf1br6GHo/4kWez5xmlJeeqOECUFf8M7AWConpckXuavcU3EFnuntVTT1 dCK1cky5912pOpiglOepgVGFM1+dsA2ddJG1kNXHhCVdGDyVTbD3ws2SPzn0lXBKW6Qcx UhB9xBOhqXOtqxB6JKxVu/r0OgLvyRjIhATtcvEPK7bAn5NbYpHgymjJhrzdCJ8c/vrSY 1ajtATX6jvXt+MkYeo7SmjeBnWAeH3tMllc3SaEU9qiXn9XYK/+EqRlxrgVQ+qUMioqAm z8ebPKg6PLmNOBr2UtH23d3LEOIwATuI39Z8vWJ28p+mnQZ6E+qPO3UZJRu/2tHNL3A== 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.214.178 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 D02AF606A32D for ; Fri, 4 Dec 2026 00:59:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D02AF606A32D 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-pl1-f178.google.com with SMTP id d9443c01a7336-2f0481b35c9so3238495ad.0 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=HMJ59qHW3rirDpisK2twOXXAN5KEufSSQKERVJZZ3H2DlMU9QE4sDcG5GlUWbqapiu Drtwx3MmX6Tm3Wy4vSkSsNHvSlKzDZgL4yaUhNF6pc90bnBhS9IvFnNx6hP7ihPnvu6N 9Ih4O5o0pIXS2LJ++0BudlXpC9Bw7N8k/Mz7T/5qjzXc4Qz8hoDGlAhxTWuSqpsS3VxE 77xl21wDKqnn6UAuWrzV+bClsofw0oJGb+oAst9NdRL49nydn0cYBWHAF+PpiPU5tn+R r15wYMloA2ozpwOI4mO7ZxKXJanmi5QU3XlcZZo1/e9dpii/KHkQaLT5LcNzgwBi29DS dzKg== X-Forwarded-Encrypted: i=1; AL+hErGPiikFaTyksJm92Y/7AzcQoyA/LPyfh9mQL8//sksebvngEP7Ox5I4XJaBixJCAhTsqjFByQ9w3ZPBuhBOUBPP@vger.kernel.org X-Gm-Message-State: APuU4Z9OLmLfzdE6+Lh7MZjZb44DlOkOBiehZ1ZHn7Di/ME3x53y4TNe AlI0T/1nCdtOAy3NopQEiYkIQuEELFNzt7NYxl1lc73Kd8rUjJhsdei4 X-Gm-Gg: AZFdTZcxDtGqx4CkMpW2AtUD2C0aKTtNdrT9XZ8jnzNSbyW5G0KlsO2ia7s0zEQbieX tUr/2vvzTH2SC17Cn4exyG6ypPVM+V58ZUEaZZwwX2NopAUEDEq9/oN/VgHfk45SX9mb7ex3KKY v07BPa9QGX4g8fSOiA02sNFgy8jt3qajkddp2wgnUAYtRyV8plTt1Ojd/m8xrVQ3YUylzLNDizx L0rYcUz4ZZXDClzX5GYZLlUQdsnC9Syzf5KObOnDRdvC/WSvRdCB9LxIyackFrRi9BhYXSUJvVQ A1tnEuO2IVYrbS0JnYb4j+ah37ffH5QPu7YUZ1ata2OerXBXb5cwIoMXvdHg4tliZrwFXtQNXT4 Zmq34p/0jsr4Lt5wMVPrTZ+xcm8R8UJOqH0uHj2wIJJjozBy7ZVV/h9t8jZCvP33AJGmFnzE0qp Yifbvs7StkvBeIWfcQlqTbtqa/PzQIfKZkhEhDxqr71qcYGt0Y4/IVsDoWu0uB4oqtwvkaHNEmi YyTzx+kiNXc+FBR36nWZIiAAwfTNNUXrWNtS8NDdJUVtPK2UOZ844aU2WTwISF8jjn6wX5xNy69 J9ZCjah0atf1FNenGoUzRqINlm02Sfz0XzyEl+U= 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-perf-users@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