From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.170 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796345957; b=nBbMn/5HaVqMpsBA7QJpgO80O6vRarT3pkisCgYskBKJVDpYwpR8HYaUQqycD+mf3k+Q fMnC4jh/vnqVCZJKt3jfKdDzTioYJfs8uqJ9EDIDDDiznfykNzEivvadBGNPIjfgOERpQ cbsnRQDufnAJXTuIUyTmb0ZOxrg0f3+0uxhekKiIPaRScxVujTZMoVh0BNgrY55+AzuMD oZcW0wtHLcUYNtrNvsv61DXC5o1pTBFCQaoN/979wQuoRyPRwF3/hE47+Ui1lO1b3tCqm mwspWBOTFYENITvvb2e2PUAEYqO1inBPNYGUN5mPedNgWhtRa//1mucVaxty8wmXdvA== 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=u8U4grND//qKgyVF4kg+EPsh8myT7wPN4wipi4rn/jTHPnw34bt6FBCfn/U8SAct7kUg IYl0LwCp7WHWacI3AVT3TarxR83LrsH5dL1f3HgUb5moUNf/03raGH5CIavYGGdIoGmKQ YXo7Pi829ykS5KxkDXa5Os9uuNiTnKDR/fg0DBD0mZCiJ7vpq1wpLVi60khdmKDfFmjlE gY/Wr2xqKQZfqpedsCUzFP54UohSsVUPbTiC8kqASG1d0gZRRk/Y3lBKMV/jlgyR97oWX w7yCshdo5t6/0kk+3zGdFZ3LWe/cre4WXYQWvoaLgTWEpHIbRabhF8Jg4vqDn98u/PA== 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.170 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 D2F2A606A332 for ; Fri, 4 Dec 2026 00:59:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D2F2A606A332 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-f170.google.com with SMTP id d9443c01a7336-2f0918f9e6cso1911045ad.1 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=efCDqzcKSo2NzojN/DZ1hSV6fD5yo4X+yW5MlAwtlMZbOhmzaz8+KjQ+Fvbj/eRXm1 ngA7LGD3MPUuoQNuNoW28emesAnnGCdijqnuFHa6Tymn2pJn3S4Bc+4WuQShgMFgdw/3 lOVCF6i/gT8hxx/sBZg4mDBeqtwiXTWcbnLyKhTzBDcvrHxsNdTEt4pLy9WF4cESo6Yy NQYkMnWf6uaIdwXN46aI1j6h4P5K0sc9ePoIj0pJDUJnzKRhmDAuZU4sTmqQgpP9x8bU eTyUQK8dXRxLT93fL+1S+cA7qbtAiewBrddgcNMir+MQHxZ9lRZlir+91y1fR9J+BLsy W78A== X-Forwarded-Encrypted: i=1; AL+hErEClHfLWPVjXqdo526CXphF5loBTpG+5a4CDhmNelhsvdfp6j5ejhaKQGxslxZpIvlthIhiog8V/PKq@vger.kernel.org X-Gm-Message-State: APuU4Z8jgRvinqXIoGU4tqOQWUYZBdhAj8q+n7xPO8lFJtZdR/D6EoyT GIHWeKJbZm1Z5vM+SAAf6lblVOoguBhhSynk69mcL9sj2aGt72Af4TmO X-Gm-Gg: AZFdTZcFTZRX/V44AvTrR+JwgAezMuFtAZwAYd3vk25od0gms6JJhwP3zQNpmjLB++o msxxmnKwcBC1hktwMmchpmlix2FJbC1PPkmdNBlMxqvTDJz6H9IbMCRYMeycerRv0C9K5X5pRp/ e1IpgmOdTY56t5SmjYSAaT7QBxWtLfVOcMFOg2mKYFBkRIjcQCXZoXZymr5xTUWFduiwxEQb7Nf HZZozkCOwY9M2ZoVNgSo2/kfi4Z0fSE4r+GZkv6LzWu1ofA1MOYN6Arg+O6TcW8UWSXYNd5jIFe 6BokZvylDg3Q+UqJttKoOKl13pT3zIwKuyj6uGd85tUFN9Adny3vY8rVRHO7tBpFPyzNd8WFz5L i0WYxvJFx4uA15xkaAaC2onA5psfFyOWVKZCjAFRNFWEFJR6ooSHE/SqoKiDSicRsEFuIaRyHFA r54ikEZHI8ADa2msqoaEzVv4eXviYZpDFd3wy2KFRQCnBxpg46CYKi2e63y5+ZAPBjbR74zH9G/ stH8zyvGfZwrTo1THFhF9SI0IsInn+X/Zi9GqK5CEp/5HkxDSnC4jCJAT8YHZw92btwR/iy71NH 4+0tkJZsJr4w7XdZAYAo4ojZmzFnIh1mfiZMq6o= 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: devicetree@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