* [PATCH v3 1/9] dt-bindings: vendor-prefixes: add phytium
2026-12-04 0:58 [PATCH v3 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support Harry Bit
@ 2026-12-04 0:58 ` Harry Bit
2026-12-04 0:58 ` [PATCH v3 2/9] dt-bindings: arm: cpus: add Phytium FTC310 and FTC664 Harry Bit
` (9 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: Harry Bit @ 2026-12-04 0:58 UTC (permalink / raw)
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, linux-arm-kernel,
linux-perf-users, soc, linux-kernel, Harry Bit,
Krzysztof Kozlowski
Add the vendor prefix for Phytium Technology Co., Ltd.
Based on original work by Chen Baozi <chenbaozi@phytium.com.cn>.
Signed-off-by: Harry Bit <idleassetsd@gmail.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
---
Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index 5471a06f93..374568acb2 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -1331,6 +1331,8 @@ patternProperties:
description: Phontech
"^phytec,.*":
description: PHYTEC Messtechnik GmbH
+ "^phytium,.*":
+ description: Phytium Technology Co., Ltd.
"^picochip,.*":
description: Picochip Ltd
"^pine64,.*":
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
--
2.47.3
^ permalink raw reply related [flat|nested] 14+ messages in thread* [PATCH v3 2/9] dt-bindings: arm: cpus: add Phytium FTC310 and FTC664
2026-12-04 0:58 [PATCH v3 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support Harry Bit
2026-12-04 0:58 ` [PATCH v3 1/9] dt-bindings: vendor-prefixes: add phytium Harry Bit
@ 2026-12-04 0:58 ` Harry Bit
2026-12-04 0:58 ` [PATCH v3 3/9] dt-bindings: arm: pmu: " Harry Bit
` (8 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: Harry Bit @ 2026-12-04 0:58 UTC (permalink / raw)
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, linux-arm-kernel,
linux-perf-users, soc, linux-kernel, Harry Bit
Document the CPU compatible strings for Phytium FTC310 and FTC664 ARMv8
cores integrated in PE220x SoCs.
Based on original work by Chen Baozi <chenbaozi@phytium.com.cn>.
Signed-off-by: Harry Bit <idleassetsd@gmail.com>
---
Documentation/devicetree/bindings/arm/cpus.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentation/devicetree/bindings/arm/cpus.yaml
index 96136b70da..658da1fdc4 100644
--- a/Documentation/devicetree/bindings/arm/cpus.yaml
+++ b/Documentation/devicetree/bindings/arm/cpus.yaml
@@ -206,6 +206,8 @@ properties:
- nvidia,tegra132-denver
- nvidia,tegra186-denver
- nvidia,tegra194-carmel
+ - phytium,ftc310
+ - phytium,ftc664
- qcom,krait
- qcom,kryo240
- qcom,kryo250
--
2.47.3
^ permalink raw reply related [flat|nested] 14+ messages in thread* [PATCH v3 3/9] dt-bindings: arm: pmu: add Phytium FTC310 and FTC664
2026-12-04 0:58 [PATCH v3 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support Harry Bit
2026-12-04 0:58 ` [PATCH v3 1/9] dt-bindings: vendor-prefixes: add phytium Harry Bit
2026-12-04 0:58 ` [PATCH v3 2/9] dt-bindings: arm: cpus: add Phytium FTC310 and FTC664 Harry Bit
@ 2026-12-04 0:58 ` Harry Bit
2026-12-04 0:59 ` [PATCH v3 4/9] dt-bindings: arm: add Phytium PE2204 platforms Harry Bit
` (7 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: Harry Bit @ 2026-12-04 0:58 UTC (permalink / raw)
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, linux-arm-kernel,
linux-perf-users, soc, linux-kernel, Harry Bit
Document the PMU compatible strings for Phytium FTC310 and FTC664 ARMv8
cores integrated in PE220x SoCs.
Based on original work by Chen Baozi <chenbaozi@phytium.com.cn>.
Signed-off-by: Harry Bit <idleassetsd@gmail.com>
---
Documentation/devicetree/bindings/arm/pmu.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/arm/pmu.yaml b/Documentation/devicetree/bindings/arm/pmu.yaml
index f47baaefcd..49976c889f 100644
--- a/Documentation/devicetree/bindings/arm/pmu.yaml
+++ b/Documentation/devicetree/bindings/arm/pmu.yaml
@@ -79,6 +79,8 @@ properties:
- cavium,thunder-pmu
- nvidia,denver-pmu
- nvidia,carmel-pmu
+ - phytium,ftc310-pmu
+ - phytium,ftc664-pmu
- qcom,krait-pmu
- qcom,scorpion-pmu
- qcom,scorpion-mp-pmu
--
2.47.3
^ permalink raw reply related [flat|nested] 14+ messages in thread* [PATCH v3 4/9] dt-bindings: arm: add Phytium PE2204 platforms
2026-12-04 0:58 [PATCH v3 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support Harry Bit
` (2 preceding siblings ...)
2026-12-04 0:58 ` [PATCH v3 3/9] dt-bindings: arm: pmu: " Harry Bit
@ 2026-12-04 0:59 ` Harry Bit
2026-12-04 0:59 ` [PATCH v3 5/9] arm64: Kconfig.platforms: add ARCH_PHYTIUM platform option Harry Bit
` (6 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: Harry Bit @ 2026-12-04 0:59 UTC (permalink / raw)
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, linux-arm-kernel,
linux-perf-users, soc, linux-kernel, Harry Bit
Document the top-level board and SoC compatible strings for Phytium
PE2204 platforms, starting with the Phytium Pi V2.1 (4 GiB) single-board
computer.
Signed-off-by: Harry Bit <idleassetsd@gmail.com>
---
.../devicetree/bindings/arm/phytium.yaml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
create mode 100644 Documentation/devicetree/bindings/arm/phytium.yaml
diff --git a/Documentation/devicetree/bindings/arm/phytium.yaml b/Documentation/devicetree/bindings/arm/phytium.yaml
new file mode 100644
index 0000000000..a66b9b52c5
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/phytium.yaml
@@ -0,0 +1,24 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/phytium.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Phytium Platforms
+
+maintainers:
+ - Harry Bit <idleassetsd@gmail.com>
+
+properties:
+ $nodename:
+ const: "/"
+ compatible:
+ oneOf:
+ - description: Phytium PE2204 based boards
+ items:
+ - enum:
+ - phytium,pe2204-phytiumpi-v2
+ - const: phytium,pe2204
+
+additionalProperties: true
+...
--
2.47.3
^ permalink raw reply related [flat|nested] 14+ messages in thread* [PATCH v3 5/9] arm64: Kconfig.platforms: add ARCH_PHYTIUM platform option
2026-12-04 0:58 [PATCH v3 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support Harry Bit
` (3 preceding siblings ...)
2026-12-04 0:59 ` [PATCH v3 4/9] dt-bindings: arm: add Phytium PE2204 platforms Harry Bit
@ 2026-12-04 0:59 ` Harry Bit
2026-12-04 0:59 ` [PATCH v3 6/9] perf: arm_pmuv3: add Phytium FTC310 and FTC664 PMU support Harry Bit
` (5 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: Harry Bit @ 2026-12-04 0:59 UTC (permalink / raw)
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, linux-arm-kernel,
linux-perf-users, soc, linux-kernel, Harry Bit
Add the ARCH_PHYTIUM platform configuration symbol for Phytium PE220x
ARMv8.0 SoCs.
Based on original work by Shaojun Yang <yangshaojun@phytium.com.cn>,
Chen Baozi <chenbaozi@phytium.com.cn>.
Signed-off-by: Harry Bit <idleassetsd@gmail.com>
---
arch/arm64/Kconfig.platforms | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index 49dcd7be82..bea5ebb5ac 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -331,6 +331,14 @@ config ARCH_PENSANDO
cores for a minimal latency/jitter datapath, and network
interfaces up to 200 Gb/s.
+config ARCH_PHYTIUM
+ bool "Phytium Platforms"
+ help
+ This enables support for Phytium PE220x ARMv8.0 SoCs,
+ including the Phytium Pi (PE2204) single-board computer
+ featuring heterogeneous FTC664 and FTC310 cores and
+ integrated platform peripherals.
+
config ARCH_QCOM
bool "Qualcomm Platforms"
select GPIOLIB
--
2.47.3
^ permalink raw reply related [flat|nested] 14+ messages in thread* [PATCH v3 6/9] perf: arm_pmuv3: add Phytium FTC310 and FTC664 PMU support
2026-12-04 0:58 [PATCH v3 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support Harry Bit
` (4 preceding siblings ...)
2026-12-04 0:59 ` [PATCH v3 5/9] arm64: Kconfig.platforms: add ARCH_PHYTIUM platform option Harry Bit
@ 2026-12-04 0:59 ` Harry Bit
2026-12-04 0:59 ` [PATCH v3 7/9] arm64: dts: phytium: add PE2204 SoC and Phytium Pi V2.1 board dts Harry Bit
` (4 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: Harry Bit @ 2026-12-04 0:59 UTC (permalink / raw)
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, linux-arm-kernel,
linux-perf-users, soc, linux-kernel, Harry Bit
Add PMUv3 device table entries and simple PMU init helpers for the
Phytium FTC310 and FTC664 ARMv8 cores.
Based on original work by Chen Baozi <chenbaozi@phytium.com.cn>.
Signed-off-by: Harry Bit <idleassetsd@gmail.com>
---
drivers/perf/arm_pmuv3.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/perf/arm_pmuv3.c b/drivers/perf/arm_pmuv3.c
index 03359e0783..b19dccb1a9 100644
--- a/drivers/perf/arm_pmuv3.c
+++ b/drivers/perf/arm_pmuv3.c
@@ -1559,6 +1559,9 @@ PMUV3_INIT_SIMPLE(armv8_rainier)
PMUV3_INIT_SIMPLE(armv8_nvidia_carmel)
PMUV3_INIT_SIMPLE(armv8_nvidia_denver)
+PMUV3_INIT_SIMPLE(armv8_phytium_ftc310)
+PMUV3_INIT_SIMPLE(armv8_phytium_ftc664)
+
PMUV3_INIT_SIMPLE(armv8_samsung_mongoose)
PMUV3_INIT_MAP_EVENT(armv8_cortex_a35, armv8_a53_map_event)
@@ -1614,6 +1617,8 @@ static const struct of_device_id armv8_pmu_of_device_ids[] = {
{.compatible = "brcm,vulcan-pmu", .data = armv8_brcm_vulcan_pmu_init},
{.compatible = "nvidia,carmel-pmu", .data = armv8_nvidia_carmel_pmu_init},
{.compatible = "nvidia,denver-pmu", .data = armv8_nvidia_denver_pmu_init},
+ {.compatible = "phytium,ftc310-pmu", .data = armv8_phytium_ftc310_pmu_init},
+ {.compatible = "phytium,ftc664-pmu", .data = armv8_phytium_ftc664_pmu_init},
{.compatible = "samsung,mongoose-pmu", .data = armv8_samsung_mongoose_pmu_init},
{},
};
--
2.47.3
^ permalink raw reply related [flat|nested] 14+ messages in thread* [PATCH v3 7/9] arm64: dts: phytium: add PE2204 SoC and Phytium Pi V2.1 board dts
2026-12-04 0:58 [PATCH v3 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support Harry Bit
` (5 preceding siblings ...)
2026-12-04 0:59 ` [PATCH v3 6/9] perf: arm_pmuv3: add Phytium FTC310 and FTC664 PMU support Harry Bit
@ 2026-12-04 0:59 ` Harry Bit
2026-12-04 0:59 ` [PATCH v3 8/9] arm64: defconfig: enable ARCH_PHYTIUM Harry Bit
` (3 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: Harry Bit @ 2026-12-04 0:59 UTC (permalink / raw)
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, linux-arm-kernel,
linux-perf-users, soc, linux-kernel, Harry Bit
Add minimal bootable Device Tree sources for the Phytium PE2204 (E2000Q)
SoC and Phytium Pi V2.1 (4 GiB) single-board computer, describing the
big.LITTLE FTC664/FTC310 CPU topology, PSCI, one PMU per CPU type using
GICv3 PPI partitions, GICv3/ITS, ARMv8 architected timer, memory layout,
firmware reserved regions, and PL011 UART console with its fixed 100 MHz
clock.
The low RAM bank ends at 0xfb000000 (omitting the top 80 MiB of the
2 GiB window, 0xfb000000-0xffffffff), which is permanently reserved for
resident SCP/TF-A/OP-TEE secure firmware. The two explicit
reserved-memory nodes protect additional resident TF-A/PBF firmware
regions that the vendor U-Boot does not inject dynamically at boot time.
Based on original work by Shaojun Yang <yangshaojun@phytium.com.cn>.
Signed-off-by: Harry Bit <idleassetsd@gmail.com>
---
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 ++++++++++++++++++
4 files changed, 292 insertions(+)
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
diff --git a/arch/arm64/boot/dts/Makefile b/arch/arm64/boot/dts/Makefile
index f2d7cd6eb5..4605ba7f0f 100644
--- a/arch/arm64/boot/dts/Makefile
+++ b/arch/arm64/boot/dts/Makefile
@@ -28,6 +28,7 @@ subdir-y += mediatek
subdir-y += microchip
subdir-y += nuvoton
subdir-y += nvidia
+subdir-y += phytium
subdir-y += qcom
subdir-y += realtek
subdir-y += renesas
diff --git a/arch/arm64/boot/dts/phytium/Makefile b/arch/arm64/boot/dts/phytium/Makefile
new file mode 100644
index 0000000000..a24bc7f0ff
--- /dev/null
+++ b/arch/arm64/boot/dts/phytium/Makefile
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0
+dtb-$(CONFIG_ARCH_PHYTIUM) += pe2204-phytiumpi-v2.dtb
diff --git a/arch/arm64/boot/dts/phytium/pe2204-phytiumpi-v2.dts b/arch/arm64/boot/dts/phytium/pe2204-phytiumpi-v2.dts
new file mode 100644
index 0000000000..ba4da6a0ad
--- /dev/null
+++ b/arch/arm64/boot/dts/phytium/pe2204-phytiumpi-v2.dts
@@ -0,0 +1,51 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Device Tree Source for Phytium Pi V2.1 (CEK8903-E2KQ, PE2204, 4 GiB DDR4)
+ *
+ * Copyright (c) 2023-2024 Phytium Technology Co., Ltd.
+ */
+
+/dts-v1/;
+
+#include "pe2204.dtsi"
+
+/ {
+ model = "Phytium Pi V2.1";
+ compatible = "phytium,pe2204-phytiumpi-v2", "phytium,pe2204";
+
+ aliases {
+ serial1 = &uart1;
+ };
+
+ chosen {
+ stdout-path = "serial1:115200n8";
+ };
+
+ memory@80000000 {
+ device_type = "memory";
+ reg = <0x0 0x80000000 0x0 0x7b000000>,
+ <0x20 0x00000000 0x0 0x80000000>;
+ };
+
+ reserved-memory {
+ ranges;
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ /* Resident TF-A / PBF secure boot parameter table */
+ firmware@80000000 {
+ reg = <0x0 0x80000000 0x0 0x10000>;
+ no-map;
+ };
+
+ /* Resident secure monitor / firmware high-memory carveout */
+ firmware@2000020000 {
+ reg = <0x20 0x00020000 0x0 0x1e0000>;
+ no-map;
+ };
+ };
+};
+
+&uart1 {
+ status = "okay";
+};
diff --git a/arch/arm64/boot/dts/phytium/pe2204.dtsi b/arch/arm64/boot/dts/phytium/pe2204.dtsi
new file mode 100644
index 0000000000..e4cfabc632
--- /dev/null
+++ b/arch/arm64/boot/dts/phytium/pe2204.dtsi
@@ -0,0 +1,238 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Device Tree Include for Phytium PE2204 SoC family
+ *
+ * Copyright (c) 2021-2024 Phytium Technology Co., Ltd.
+ */
+
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+
+/ {
+ interrupt-parent = <&gic>;
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ sysclk_100mhz: clock-100mhz {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <100000000>;
+ };
+
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ cpu-map {
+ cluster0 {
+ core0 {
+ cpu = <&cpu_b0>;
+ };
+ };
+
+ cluster1 {
+ core0 {
+ cpu = <&cpu_b1>;
+ };
+ };
+
+ cluster2 {
+ core0 {
+ cpu = <&cpu_l0>;
+ };
+
+ core1 {
+ cpu = <&cpu_l1>;
+ };
+ };
+ };
+
+ cpu_b0: cpu@0 {
+ device_type = "cpu";
+ compatible = "phytium,ftc664";
+ reg = <0x0>;
+ enable-method = "psci";
+ capacity-dmips-mhz = <1024>;
+ i-cache-size = <0xc000>;
+ i-cache-line-size = <64>;
+ i-cache-sets = <256>;
+ d-cache-size = <0x8000>;
+ d-cache-line-size = <64>;
+ d-cache-sets = <256>;
+ next-level-cache = <&l2_b0>;
+ };
+
+ cpu_b1: cpu@100 {
+ device_type = "cpu";
+ compatible = "phytium,ftc664";
+ reg = <0x100>;
+ enable-method = "psci";
+ capacity-dmips-mhz = <1024>;
+ i-cache-size = <0xc000>;
+ i-cache-line-size = <64>;
+ i-cache-sets = <256>;
+ d-cache-size = <0x8000>;
+ d-cache-line-size = <64>;
+ d-cache-sets = <256>;
+ next-level-cache = <&l2_b1>;
+ };
+
+ cpu_l0: cpu@200 {
+ device_type = "cpu";
+ compatible = "phytium,ftc310";
+ reg = <0x200>;
+ enable-method = "psci";
+ capacity-dmips-mhz = <516>;
+ i-cache-size = <0x8000>;
+ i-cache-line-size = <64>;
+ i-cache-sets = <256>;
+ d-cache-size = <0x8000>;
+ d-cache-line-size = <64>;
+ d-cache-sets = <128>;
+ next-level-cache = <&l2_little>;
+ };
+
+ cpu_l1: cpu@201 {
+ device_type = "cpu";
+ compatible = "phytium,ftc310";
+ reg = <0x201>;
+ enable-method = "psci";
+ capacity-dmips-mhz = <516>;
+ i-cache-size = <0x8000>;
+ i-cache-line-size = <64>;
+ i-cache-sets = <256>;
+ d-cache-size = <0x8000>;
+ d-cache-line-size = <64>;
+ d-cache-sets = <128>;
+ next-level-cache = <&l2_little>;
+ };
+
+ l2_b0: l2-cache0 {
+ compatible = "cache";
+ cache-level = <2>;
+ cache-unified;
+ cache-size = <0x100000>;
+ cache-line-size = <64>;
+ cache-sets = <1024>;
+ };
+
+ l2_b1: l2-cache1 {
+ compatible = "cache";
+ cache-level = <2>;
+ cache-unified;
+ cache-size = <0x100000>;
+ cache-line-size = <64>;
+ cache-sets = <1024>;
+ };
+
+ l2_little: l2-cache2 {
+ compatible = "cache";
+ cache-level = <2>;
+ cache-unified;
+ cache-size = <0x40000>;
+ cache-line-size = <64>;
+ cache-sets = <256>;
+ };
+ };
+
+ pmu-ftc310 {
+ compatible = "phytium,ftc310-pmu";
+ interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH &ppi_partition0>;
+ };
+
+ pmu-ftc664 {
+ compatible = "phytium,ftc664-pmu";
+ interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH &ppi_partition1>;
+ };
+
+ psci {
+ compatible = "arm,psci-1.0";
+ method = "smc";
+ };
+
+ soc {
+ compatible = "simple-bus";
+ ranges;
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ uart0: serial@2800c000 {
+ compatible = "arm,pl011", "arm,primecell";
+ reg = <0x0 0x2800c000 0x0 0x1000>;
+ interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH 0>;
+ clocks = <&sysclk_100mhz>, <&sysclk_100mhz>;
+ clock-names = "uartclk", "apb_pclk";
+
+ status = "disabled";
+ };
+
+ uart1: serial@2800d000 {
+ compatible = "arm,pl011", "arm,primecell";
+ reg = <0x0 0x2800d000 0x0 0x1000>;
+ interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH 0>;
+ clocks = <&sysclk_100mhz>, <&sysclk_100mhz>;
+ clock-names = "uartclk", "apb_pclk";
+
+ status = "disabled";
+ };
+
+ uart2: serial@2800e000 {
+ compatible = "arm,pl011", "arm,primecell";
+ reg = <0x0 0x2800e000 0x0 0x1000>;
+ interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH 0>;
+ clocks = <&sysclk_100mhz>, <&sysclk_100mhz>;
+ clock-names = "uartclk", "apb_pclk";
+
+ status = "disabled";
+ };
+
+ uart3: serial@2800f000 {
+ compatible = "arm,pl011", "arm,primecell";
+ reg = <0x0 0x2800f000 0x0 0x1000>;
+ interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH 0>;
+ clocks = <&sysclk_100mhz>, <&sysclk_100mhz>;
+ clock-names = "uartclk", "apb_pclk";
+
+ status = "disabled";
+ };
+
+ gic: interrupt-controller@30800000 {
+ compatible = "arm,gic-v3";
+ reg = <0x0 0x30800000 0x0 0x20000>,
+ <0x0 0x30880000 0x0 0x80000>,
+ <0x0 0x30840000 0x0 0x10000>,
+ <0x0 0x30850000 0x0 0x10000>,
+ <0x0 0x30860000 0x0 0x10000>;
+ ranges;
+ #address-cells = <2>;
+ #size-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <4>;
+ interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH 0>;
+
+ its: msi-controller@30820000 {
+ compatible = "arm,gic-v3-its";
+ reg = <0x0 0x30820000 0x0 0x20000>;
+ msi-controller;
+ #msi-cells = <1>;
+ };
+
+ ppi-partitions {
+ ppi_partition0: interrupt-partition-0 {
+ affinity = <&cpu_l0>, <&cpu_l1>;
+ };
+
+ ppi_partition1: interrupt-partition-1 {
+ affinity = <&cpu_b0>, <&cpu_b1>;
+ };
+ };
+ };
+ };
+
+ timer {
+ compatible = "arm,armv8-timer";
+ interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH 0>,
+ <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH 0>,
+ <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH 0>,
+ <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH 0>;
+ };
+};
--
2.47.3
^ permalink raw reply related [flat|nested] 14+ messages in thread* [PATCH v3 8/9] arm64: defconfig: enable ARCH_PHYTIUM
2026-12-04 0:58 [PATCH v3 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support Harry Bit
` (6 preceding siblings ...)
2026-12-04 0:59 ` [PATCH v3 7/9] arm64: dts: phytium: add PE2204 SoC and Phytium Pi V2.1 board dts Harry Bit
@ 2026-12-04 0:59 ` Harry Bit
2026-12-04 0:59 ` [PATCH v3 9/9] MAINTAINERS: add ARM/PHYTIUM ARCHITECTURE entry Harry Bit
` (2 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: Harry Bit @ 2026-12-04 0:59 UTC (permalink / raw)
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, linux-arm-kernel,
linux-perf-users, soc, linux-kernel, Harry Bit
Enable CONFIG_ARCH_PHYTIUM in arm64 defconfig so Phytium PE2204 Device
Trees are built by default.
Signed-off-by: Harry Bit <idleassetsd@gmail.com>
---
arch/arm64/configs/defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 7b4985b29b..704713ad96 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -67,6 +67,7 @@ CONFIG_ARCH_MXC=y
CONFIG_ARCH_S32=y
CONFIG_ARCH_MA35=y
CONFIG_ARCH_NPCM=y
+CONFIG_ARCH_PHYTIUM=y
CONFIG_ARCH_QCOM=y
CONFIG_ARCH_REALTEK=y
CONFIG_ARCH_RENESAS=y
--
2.47.3
^ permalink raw reply related [flat|nested] 14+ messages in thread* [PATCH v3 9/9] MAINTAINERS: add ARM/PHYTIUM ARCHITECTURE entry
2026-12-04 0:58 [PATCH v3 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support Harry Bit
` (7 preceding siblings ...)
2026-12-04 0:59 ` [PATCH v3 8/9] arm64: defconfig: enable ARCH_PHYTIUM Harry Bit
@ 2026-12-04 0:59 ` Harry Bit
2026-12-04 1:07 ` [PATCH v3 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support sashiko-bot
2026-12-04 13:09 ` Arnd Bergmann
10 siblings, 0 replies; 14+ messages in thread
From: Harry Bit @ 2026-12-04 0:59 UTC (permalink / raw)
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, linux-arm-kernel,
linux-perf-users, soc, linux-kernel, Harry Bit
Add MAINTAINERS entry for Phytium ARM64 platforms covering the platform
Device Tree binding and Device Tree sources.
Signed-off-by: Harry Bit <idleassetsd@gmail.com>
---
MAINTAINERS | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 84cb98ef4c..33765e001c 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3463,6 +3463,14 @@ S: Maintained
W: http://www.digriz.org.uk/ts78xx/kernel
F: arch/arm/mach-orion5x/ts78xx-*
+ARM/PHYTIUM ARCHITECTURE
+M: Harry Bit <idleassetsd@gmail.com>
+L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
+S: Maintained
+F: Documentation/devicetree/bindings/arm/phytium.yaml
+F: arch/arm64/boot/dts/phytium/
+N: phytium
+
ARM/QUALCOMM CHROMEBOOK SUPPORT
R: cros-qcom-dts-watchers@chromium.org
F: arch/arm64/boot/dts/qcom/sc7180*
--
2.47.3
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH v3 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support
2026-12-04 0:58 [PATCH v3 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support Harry Bit
` (8 preceding siblings ...)
2026-12-04 0:59 ` [PATCH v3 9/9] MAINTAINERS: add ARM/PHYTIUM ARCHITECTURE entry Harry Bit
@ 2026-12-04 1:07 ` sashiko-bot
2026-12-04 13:09 ` Arnd Bergmann
10 siblings, 0 replies; 14+ messages in thread
From: sashiko-bot @ 2026-12-04 1:07 UTC (permalink / raw)
To: Harry Bit; +Cc: linux-perf-users
Sashiko has finished reviewing this 9-patch series:
- Patches 1-8: no issues found.
- Patch 9: skipped (not reviewed).
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204005905.29740-1-idleassetsd@gmail.com
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH v3 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support
2026-12-04 0:58 [PATCH v3 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support Harry Bit
` (9 preceding siblings ...)
2026-12-04 1:07 ` [PATCH v3 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support sashiko-bot
@ 2026-12-04 13:09 ` Arnd Bergmann
2026-12-04 15:59 ` Harry Bit
10 siblings, 1 reply; 14+ messages in thread
From: Arnd Bergmann @ 2026-12-04 13:09 UTC (permalink / raw)
To: Harry Bit, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Will Deacon, Mark Rutland, Catalin Marinas, Alexandre Belloni,
Linus Walleij
Cc: Drew Fustini, Lorenzo Pieralisi, devicetree, linux-arm-kernel,
linux-perf-users, soc, linux-kernel
On Fri, Dec 4, 2026, at 01:58, Harry Bit wrote:
> 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.
Hi Harry,
I see nothing wrong with your patches, and I would certainly
welcome a port for this SoC, but I am worried about your ability
to maintain this longer term: Your name and email address do not
show up anywhere else on the internet before this submission, so
I suspect that you are either using a fake identity, or you
have no prior experience with the code base and are just sending
someone else's work under your name.
Can you tell us a bit about yourself, what your interest in this
platform is and what you plan to do for the remaining device
drivers? Do you have a git tree with a complete port that you
maintain somewhere? Are any distros using that kernel?
Are you coordinating this with the maintainers of the
https://gitee.com/phytium_embedded/phytium-linux-kernel tree?
Arnd
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH v3 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support
2026-12-04 13:09 ` Arnd Bergmann
@ 2026-12-04 15:59 ` Harry Bit
2026-12-04 16:45 ` Arnd Bergmann
0 siblings, 1 reply; 14+ messages in thread
From: Harry Bit @ 2026-12-04 15:59 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Will Deacon,
Mark Rutland, Catalin Marinas, Alexandre Belloni, Linus Walleij,
Drew Fustini, Lorenzo Pieralisi, devicetree, linux-arm-kernel,
linux-perf-users, soc, linux-kernel
Hi Arnd,
Thank you for reviewing the series and for raising these concerns
directly. I completely understand why you want to verify who is behind a
new SoC submission before accepting it.
On Fri, 04 Dec 2026 14:09:29 +0100, Arnd Bergmann wrote:
> Can you tell us a bit about yourself, what your interest in this
> platform is and what you plan to do for the remaining device drivers?
I am an independent developer working on hardware tools, embedded Linux,
and application software. My GitHub account is:
https://github.com/LHX369963
My email address was previously kept private on GitHub (and some older
repositories were committed under a different address), which is why my
name and email did not show up in web searches. My public repositories
include STM32 firmware and PCB design (custom-psu-firmware), Linux
USBTMC lab instrument CLIs (such as sds824-cli), PCB review tooling, and
application software (BIT101-dev/BIT101-iOS).
I am expanding into upstream Linux kernel development. I started working
with the Phytium Pi V2.1 (PE2204) for a performance-oriented embedded
development competition, forward-ported the vendor BSP to mainline Linux
(v7.4-rc5), and test directly on my own V2.1 board with serial console
and cold power-cycle boots. I also recently had my first upstream kernel
fix applied to broonie/sound.git for-7.5 (commit e09a197917f5, "ASoC:
es8316: fix MCLK_DIV clearing and 20dB mic boost routing").
I intend to keep maintaining this platform long-term and submit the
remaining device support incrementally by subsystem:
1. Minimal bootable SoC and board support (this v3 series)
2. Core platform infrastructure (pinctrl, GPIO, reset, I2C/MIO)
3. Storage and connectivity (MMC/SDIO, Ethernet/MACB, USB)
4. Audio, display, and multimedia drivers once cleaned up to upstream
standards
> Do you have a git tree with a complete port that you maintain
> somewhere?
Yes. I maintain my current full v7.4-rc5 out-of-tree BSP patch queue
(86 ordered patches with build/check tooling) here:
https://github.com/LHX369963/phytiumpi-kernel-bsp
It is a working development queue verified on my Phytium Pi V2.1 board,
from which I am cleaning up and extracting drivers piece by piece for
upstream submission.
> Are any distros using that kernel?
No. I run a standard Debian arm64 userspace on top of it on my
Phytium Pi V2.1 board for testing, while Phytium provides older
LTS-based Debian/Ubuntu vendor images.
> Are you coordinating this with the maintainers of the
> https://gitee.com/phytium_embedded/phytium-linux-kernel tree?
Not yet. This has been an independent community effort based on their
public GPL-2.0 tree (linux-6.6 branch). I would be glad to reach out to
the Phytium kernel maintainers and CC them on future series if that
helps coordinate upstreaming.
Best regards,
Harry Bit
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v3 0/9] arm64: phytium: add minimal PE2204 SoC and Phytium Pi V2.1 support
2026-12-04 15:59 ` Harry Bit
@ 2026-12-04 16:45 ` Arnd Bergmann
0 siblings, 0 replies; 14+ messages in thread
From: Arnd Bergmann @ 2026-12-04 16:45 UTC (permalink / raw)
To: Harry Bit
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Will Deacon,
Mark Rutland, Catalin Marinas, Alexandre Belloni, Linus Walleij,
Drew Fustini, Lorenzo Pieralisi, devicetree, linux-arm-kernel,
linux-perf-users, soc, linux-kernel, Tao Tang
On Fri, Dec 4, 2026, at 16:59, Harry Bit wrote:
>
> On Fri, 04 Dec 2026 14:09:29 +0100, Arnd Bergmann wrote:
>> Can you tell us a bit about yourself, what your interest in this
>> platform is and what you plan to do for the remaining device drivers?
>
> I am an independent developer working on hardware tools, embedded Linux,
> and application software. My GitHub account is:
> https://github.com/LHX369963
>
> My email address was previously kept private on GitHub (and some older
> repositories were committed under a different address), which is why my
> name and email did not show up in web searches. My public repositories
> include STM32 firmware and PCB design (custom-psu-firmware), Linux
> USBTMC lab instrument CLIs (such as sds824-cli), PCB review tooling, and
> application software (BIT101-dev/BIT101-iOS).
>
> I am expanding into upstream Linux kernel development. I started working
> with the Phytium Pi V2.1 (PE2204) for a performance-oriented embedded
> development competition, forward-ported the vendor BSP to mainline Linux
> (v7.4-rc5), and test directly on my own V2.1 board with serial console
> and cold power-cycle boots. I also recently had my first upstream kernel
> fix applied to broonie/sound.git for-7.5 (commit e09a197917f5, "ASoC:
> es8316: fix MCLK_DIV clearing and 20dB mic boost routing").
Ok, thanks for the background! I'm mainly checking since this does
have legal consequences if you use a 'Signed-off-by' on a significant
contribution but end up being untraceable in case there are legal
concerns about your work later. While we can take patches from
developers with established pseudonyms, the DCO doesn't work if
use an untraceable alias.
> I intend to keep maintaining this platform long-term and submit the
> remaining device support incrementally by subsystem:
> 1. Minimal bootable SoC and board support (this v3 series)
> 2. Core platform infrastructure (pinctrl, GPIO, reset, I2C/MIO)
> 3. Storage and connectivity (MMC/SDIO, Ethernet/MACB, USB)
> 4. Audio, display, and multimedia drivers once cleaned up to upstream
> standards
Good, I agree that this is the right order to do these in.
>> Are you coordinating this with the maintainers of the
>> https://gitee.com/phytium_embedded/phytium-linux-kernel tree?
>
> Not yet. This has been an independent community effort based on their
> public GPL-2.0 tree (linux-6.6 branch). I would be glad to reach out to
> the Phytium kernel maintainers and CC them on future series if that
> helps coordinate upstreaming.
Yes, that is probably a good idea. I see that they have been contributing
to the kernel in various places, but those patches seem to be mainly
for the server chips and I don't know what their plans are for embedded.
Arnd
^ permalink raw reply [flat|nested] 14+ messages in thread