From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C75E4606A33D for ; Fri, 4 Dec 2026 00:59:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=G/8SKpX7; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=lAJYs/xA DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=Thw7KURmLweF0olDqv+wF6/+YswfQJxXvSzASj/7UzI=; b=G/8SKpX7ngXg/QgIJxV+79ba00 Qbr8cHfGH8oFhdXFPdt61cipBFuiuomma+V7hc6AIIRYLgx3CRKy+CzDhzj2ILSxLiN5WP1I0YtAg WRiKWU6zZmv9XPIjtjEZcOVJHIqiIWBu36gbOJ8s0iI+1nZ8Lx6WzR1wwZHKDekSJpuz06cF2TNVA XGi6bVmHgus/tV/Sy0VTMOUUemFngrK0ZGGKDGow1fMiO+THjHBUXQ0CAr3SnST9yCpeYtMCcQVwf BKCE6s27HzGlawMsLGnggEou4p8J+Df25xQrDVq5JbvxeK0HBKKgDjx255enboq4erYsZNQmoAuqt CSMJ/Odw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZHdw-0000000GHxW-3MX8; Fri, 04 Dec 2026 00:59:20 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZHdt-0000000GHwy-0znk for linux-arm-kernel@lists.infradead.org; Fri, 04 Dec 2026 00:59:18 +0000 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-2f03f3631b2so3057645ad.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.infradead.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=lAJYs/xAWBDjhiri0O/X+B5n6MhozGEm4F0z2nAWVLXusPSWhsx/7Bv4Api2P6SMKA m+ko0QnuvR64yi9Kz7eoO4A+5CniYrj2cwrmdBkPwf7BukkNUkr0QHCbzRuzMh3G1LoB XLn3aNN+aM15kCrYBIgNBSrxLzKp0yXEz7ahIhaVPwr6vXbogaExLTaoYn5+6gMaVJj3 y4sjdoRMRW9boaxbIkeP7hDDRNlFdhP4enhbvkiPI7sZ+QUQZ0CDc2ztTGN6Xz+ExCY4 XqeaGgQT/3c5/DBj5HnzrRiDd4BCn6q2ah+eSoNREa7kaORvJrI2Tmr59wxzbcZUxvfu 7lzw== 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=u+gm/BDd/CBR5W5oYfeyRpjnjrqhxNytpF0fZHLhkFXIKlSfTBukmlOnwGHmn2h4cA +eB5cT8kc2d9nonS39Gka9noexIk6UTdXLcc8K7cJqR5eGiYG18dZXay7IveBUJNCsrm ROpBNhe4/aKGs1qTV3Lvmz+AFzgkTmvfw7wTKZAiT9PwMDJNV4EkmEsT/FYs/ESlrcyX 79CZPupQvVh4Wj3ITmLe9w6H/2e0AcpGaV//SAihkty6a1i/uNoN8rXZBz5CDvKnC9SD zFobZrG+ChAty5vR36rfqvR6mqbe2bP3T9qeSeZ0OO6UJglcp5+yw/kuKuCNVp4R5dSH M1uQ== X-Forwarded-Encrypted: i=1; AL+hErGDW9pdeLo54955wKOaiJqRNzuEiC2hxTNu/RbeF06CTxwGCKgEp7ee8fipSh/kRhdoUvaiV+96XexS7LCj+5E4@lists.infradead.org X-Gm-Message-State: APuU4Z+idtI40NEFGp4xlMIGmtOlUui79bQ4vEVGGEQeirxGKVAqg1up 2eIQsxd/iUEb3YtgTaVAygn35p/i7QGoOUgOscjB4++8UsMom38eI+IC X-Gm-Gg: AZFdTZfr6It2zBK7MU3yiJ2tctXigV36WdnL3X8WF+jUPcZd2N9IS56e+Izh3rzOucn MzFS1GQZAY7E6UC/Y55KEemMWpD3b7RT6miO83RJKUQgi+adnA8vIiN7SpJ28R78XrjjASs5Rl6 2qZVwxvsedhlCHHJ/ZK48POpNpCSgQkfG+57HGMfn81jEvuF0fh/WWBgm7ksYsioNdiDmVGkOjH lX3aqlucu6J4UJ51g7UsWRm1shMJTtbK/6FD0FTxbwS9ug1//nPmZtTVHyIZWbyW6acNXnxw03E Wc1zavxdVb81nfz6pKLBcL3r4VFkk6yY+FL7I3zCO6vFNq944NfkzFZpPo3kmnILn3y2MURVfeL 4WeTK4oCovGJFeOFdsJYQ2eQTCJA5aBYirzYbGvUcFxzCM+0JEkK4rpibJNB29fAoJHubjotq/G nX3LPGZECab1OWcDSknhv42SNfojrxFNAhIQ0N5pxwyDdSl2Z0n+Ettb1/qeJwM5YvcygU/IX2g 6jrsAr4L54Ci6Id5TAZnrwKbjwOwAyCHqlxF4VHInWEN5lncjmtt+sxYAi0/6HY1/947JTFNgV7 kG8eEDpDLlTLru9PwKQUKxRLcZQ8GZDzJkcC4iA= 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-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_165917_302335_7D697578 X-CRM114-Status: GOOD ( 13.97 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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