* [PATCH v2 0/3] arm64: dts: socfpga: agilex5: add support for Terasic DE25-Nano
@ 2026-11-26 9:47 Alexandra Østermark via B4 Relay
2026-11-26 9:47 ` [PATCH v2 1/3] arm64: dts: socfpga: agilex5: add the service layer interrupt Alexandra Østermark via B4 Relay
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Alexandra Østermark via B4 Relay @ 2026-11-26 9:47 UTC (permalink / raw)
To: Dinh Nguyen, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, linux-kernel, linux-arm-kernel, Mahesh Rao,
Mohamad Asyraaf Azhar, James Clark, Alexandra Østermark,
Conor Dooley
The Terasic DE25-Nano is an Agilex 5 SoC FPGA board. This adds its
binding and device tree, plus the service layer interrupt that the
Agilex 5 dtsi is missing (Stratix 10 and Agilex 7 already have it).
Altera's vendor tree (altera-fpga/linux-socfpga) carries a DE25-Nano
device tree too; this one is written against upstream's dtsi, so it uses
the SD6HC sdmmc node, and it only enables what has been tested on the
board.
Tested on the board on v7.4-rc3 carrying the same device tree (its
decompiled DTB matches this series' build on next-20261117 apart from
nodes added to the dtsi since): boot from the microSD slot, gigabit
Ethernet, USB, the HPS LED, I2C1 with the onboard accelerometer, and FPGA
configuration through the stratix10-soc FPGA manager. dt_binding_check, dtbs_check and
dt-check-style --mode=strict are clean.
---
Changes in v2:
- dts: the HPS LED is active high; v1 copied the vendor trees' active low,
which inverted it (James Clark)
- dts: enable I2C1, which reaches the onboard LIS2DW12 accelerometer on
the HPS's own pins (James Clark)
- Collected Conor's Acked-by on the binding
- Link to v1: https://patch.msgid.link/20261118-de25-nano-v1-0-473d16131f7a@gmail.com
---
Alexandra Østermark (3):
arm64: dts: socfpga: agilex5: add the service layer interrupt
dt-bindings: arm: altera: add Terasic DE25-Nano
arm64: dts: socfpga: agilex5: add support for Terasic DE25-Nano
Documentation/devicetree/bindings/arm/altera.yaml | 1 +
arch/arm64/boot/dts/altera/Makefile | 1 +
arch/arm64/boot/dts/altera/socfpga_agilex5.dtsi | 2 +
.../boot/dts/altera/socfpga_agilex5_de25_nano.dts | 95 ++++++++++++++++++++++
4 files changed, 99 insertions(+)
---
base-commit: 7cfbf79c66c63e807ea452abf0546e6f6d6833a6
change-id: 20261118-de25-nano-04fa93b56e10
Best regards,
--
Alexandra Østermark <alex.cramt@gmail.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/3] arm64: dts: socfpga: agilex5: add the service layer interrupt
2026-11-26 9:47 [PATCH v2 0/3] arm64: dts: socfpga: agilex5: add support for Terasic DE25-Nano Alexandra Østermark via B4 Relay
@ 2026-11-26 9:47 ` Alexandra Østermark via B4 Relay
2026-11-26 9:47 ` [PATCH v2 2/3] dt-bindings: arm: altera: add Terasic DE25-Nano Alexandra Østermark via B4 Relay
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Alexandra Østermark via B4 Relay @ 2026-11-26 9:47 UTC (permalink / raw)
To: Dinh Nguyen, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, linux-kernel, linux-arm-kernel, Mahesh Rao,
Mohamad Asyraaf Azhar, James Clark, Alexandra Østermark
From: Alexandra Østermark <alex.cramt@gmail.com>
The SDM signals completion of asynchronous service layer requests on
GIC SPI 0, which the Stratix 10 and Agilex 7 device trees already wire
up, as does Altera's vendor tree for Agilex 5. Upstream's Agilex 5 svc
node lacks it, so stratix10-svc logs "Failed to get IRQ, falling back
to polling mode" and polls for every async reply.
Add the interrupt as the other SoCs do. Tested on a Terasic DE25-Nano:
the driver registers it for sip async operations, it fires
(/proc/interrupts counts it), and FPGA configuration through the FPGA
manager still works.
Signed-off-by: Alexandra Østermark <alex.cramt@gmail.com>
---
arch/arm64/boot/dts/altera/socfpga_agilex5.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/altera/socfpga_agilex5.dtsi b/arch/arm64/boot/dts/altera/socfpga_agilex5.dtsi
index 161f3d4bb..d272cc4fd 100644
--- a/arch/arm64/boot/dts/altera/socfpga_agilex5.dtsi
+++ b/arch/arm64/boot/dts/altera/socfpga_agilex5.dtsi
@@ -84,6 +84,8 @@ svc {
compatible = "intel,agilex5-svc";
method = "smc";
memory-region = <&service_reserved>;
+ interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-parent = <&intc>;
iommus = <&smmu 10>;
fpga_mgr: fpga-mgr {
--
2.56.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 2/3] dt-bindings: arm: altera: add Terasic DE25-Nano
2026-11-26 9:47 [PATCH v2 0/3] arm64: dts: socfpga: agilex5: add support for Terasic DE25-Nano Alexandra Østermark via B4 Relay
2026-11-26 9:47 ` [PATCH v2 1/3] arm64: dts: socfpga: agilex5: add the service layer interrupt Alexandra Østermark via B4 Relay
@ 2026-11-26 9:47 ` Alexandra Østermark via B4 Relay
2026-11-26 9:47 ` [PATCH v2 3/3] arm64: dts: socfpga: agilex5: add support for " Alexandra Østermark via B4 Relay
2026-11-26 11:22 ` [PATCH v2 0/3] " James Clark
3 siblings, 0 replies; 5+ messages in thread
From: Alexandra Østermark via B4 Relay @ 2026-11-26 9:47 UTC (permalink / raw)
To: Dinh Nguyen, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, linux-kernel, linux-arm-kernel, Mahesh Rao,
Mohamad Asyraaf Azhar, James Clark, Conor Dooley,
Alexandra Østermark
From: Alexandra Østermark <alex.cramt@gmail.com>
The Terasic DE25-Nano is a development board built around the Agilex 5
A5EB013BB23B SoC FPGA, with 1 GiB of HPS DDR4, a microSD slot, a gigabit
Ethernet port and USB.
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Alexandra Østermark <alex.cramt@gmail.com>
---
Documentation/devicetree/bindings/arm/altera.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/arm/altera.yaml b/Documentation/devicetree/bindings/arm/altera.yaml
index ae38ba0dc..75f874e8b 100644
--- a/Documentation/devicetree/bindings/arm/altera.yaml
+++ b/Documentation/devicetree/bindings/arm/altera.yaml
@@ -118,6 +118,7 @@ properties:
- intel,socfpga-agilex5-socdk-modular
- intel,socfpga-agilex5-socdk-nand
- intel,socfpga-agilex5-socdk-tsn-cfg2
+ - terasic,de25-nano
- const: intel,socfpga-agilex5
- description: Agilex72 boards
--
2.56.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 3/3] arm64: dts: socfpga: agilex5: add support for Terasic DE25-Nano
2026-11-26 9:47 [PATCH v2 0/3] arm64: dts: socfpga: agilex5: add support for Terasic DE25-Nano Alexandra Østermark via B4 Relay
2026-11-26 9:47 ` [PATCH v2 1/3] arm64: dts: socfpga: agilex5: add the service layer interrupt Alexandra Østermark via B4 Relay
2026-11-26 9:47 ` [PATCH v2 2/3] dt-bindings: arm: altera: add Terasic DE25-Nano Alexandra Østermark via B4 Relay
@ 2026-11-26 9:47 ` Alexandra Østermark via B4 Relay
2026-11-26 11:22 ` [PATCH v2 0/3] " James Clark
3 siblings, 0 replies; 5+ messages in thread
From: Alexandra Østermark via B4 Relay @ 2026-11-26 9:47 UTC (permalink / raw)
To: Dinh Nguyen, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, linux-kernel, linux-arm-kernel, Mahesh Rao,
Mohamad Asyraaf Azhar, James Clark, Alexandra Østermark
From: Alexandra Østermark <alex.cramt@gmail.com>
The DE25-Nano is an Agilex 5 SoC FPGA board with gigabit Ethernet, a
microSD slot wired for 3.3 V only, USB and one HPS LED.
Based on Terasic's and Altera's vendor device trees for the board, which
describe the SD slot on an SDHCI node that upstream doesn't have; this
uses the upstream SD6HC sdmmc node instead.
The HPS LED is active high: the vendor trees mark it active low, which
inverts it.
I2C1 is on the HPS's own pins and reaches the onboard LIS2DW12
accelerometer at 0x19, so unlike the other I2C controllers it doesn't
depend on the FPGA design.
Boot from microSD, gigabit Ethernet, USB, the LED, I2C1 and the watchdog
were tested on the board. The QSPI flash, the other I2C buses and the
SDM hardware monitor are left out until they have been tested.
Signed-off-by: Alexandra Østermark <alex.cramt@gmail.com>
---
arch/arm64/boot/dts/altera/Makefile | 1 +
.../boot/dts/altera/socfpga_agilex5_de25_nano.dts | 95 ++++++++++++++++++++++
2 files changed, 96 insertions(+)
diff --git a/arch/arm64/boot/dts/altera/Makefile b/arch/arm64/boot/dts/altera/Makefile
index d38fe88a1..29170f793 100644
--- a/arch/arm64/boot/dts/altera/Makefile
+++ b/arch/arm64/boot/dts/altera/Makefile
@@ -5,6 +5,7 @@ dtb-$(CONFIG_ARCH_INTEL_SOCFPGA) += socfpga_agilex_n6000.dtb \
socfpga_agilex_socdk_multiqspi.dtb \
socfpga_agilex_socdk_nand.dtb \
socfpga_agilex3_socdk.dtb \
+ socfpga_agilex5_de25_nano.dtb \
socfpga_agilex5_socdk.dtb \
socfpga_agilex5_socdk_013b.dtb \
socfpga_agilex5_socdk_modular.dtb \
diff --git a/arch/arm64/boot/dts/altera/socfpga_agilex5_de25_nano.dts b/arch/arm64/boot/dts/altera/socfpga_agilex5_de25_nano.dts
new file mode 100644
index 000000000..128095578
--- /dev/null
+++ b/arch/arm64/boot/dts/altera/socfpga_agilex5_de25_nano.dts
@@ -0,0 +1,95 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/*
+ * Copyright (C) 2023, Intel Corporation
+ * Copyright (C) 2026, Alexandra Østermark
+ */
+#include "socfpga_agilex5.dtsi"
+
+/ {
+ model = "Terasic DE25-Nano";
+ compatible = "terasic,de25-nano", "intel,socfpga-agilex5";
+
+ aliases {
+ serial0 = &uart1;
+ ethernet0 = &gmac0;
+ };
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led-0 {
+ label = "hps_led0";
+ gpios = <&portb 17 GPIO_ACTIVE_HIGH>;
+ };
+ };
+
+ memory@80000000 {
+ device_type = "memory";
+ /* We expect the bootloader to fill in the reg */
+ reg = <0x0 0x80000000 0x0 0x0>;
+ };
+};
+
+&gmac0 {
+ /* TX/RX delays are on the PCB */
+ phy-mode = "rgmii";
+ phy-handle = <&emac0_phy0>;
+ max-frame-size = <9000>;
+
+ status = "okay";
+
+ mdio0 {
+ compatible = "snps,dwmac-mdio";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ emac0_phy0: ethernet-phy@1 {
+ reg = <1>;
+ };
+ };
+};
+
+&gpio1 {
+ status = "okay";
+};
+
+&i2c1 {
+ status = "okay";
+};
+
+&osc1 {
+ clock-frequency = <25000000>;
+};
+
+&sdmmc {
+ bus-width = <4>;
+ cap-sd-highspeed;
+ disable-wp;
+ no-1-8-v;
+ no-mmc;
+ no-sdio;
+
+ status = "okay";
+};
+
+&smmu {
+ status = "okay";
+};
+
+&uart1 {
+ status = "okay";
+};
+
+&usb0 {
+ disable-over-current;
+
+ status = "okay";
+};
+
+&watchdog0 {
+ status = "okay";
+};
--
2.56.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 0/3] arm64: dts: socfpga: agilex5: add support for Terasic DE25-Nano
2026-11-26 9:47 [PATCH v2 0/3] arm64: dts: socfpga: agilex5: add support for Terasic DE25-Nano Alexandra Østermark via B4 Relay
` (2 preceding siblings ...)
2026-11-26 9:47 ` [PATCH v2 3/3] arm64: dts: socfpga: agilex5: add support for " Alexandra Østermark via B4 Relay
@ 2026-11-26 11:22 ` James Clark
3 siblings, 0 replies; 5+ messages in thread
From: James Clark @ 2026-11-26 11:22 UTC (permalink / raw)
To: alex.cramt
Cc: Dinh Nguyen, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
devicetree, linux-kernel, linux-arm-kernel, Mahesh Rao,
Mohamad Asyraaf Azhar
Tested on a DE25-Nano on v7.4-rc4 with socfpga for-next: boot from
microSD, Ethernet, the HPS LED, I2C1 with the LIS2DW12, and the service
layer interrupt (hwmon readings).
Tested-by: James Clark <jjc@jclark.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-26 11:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26 9:47 [PATCH v2 0/3] arm64: dts: socfpga: agilex5: add support for Terasic DE25-Nano Alexandra Østermark via B4 Relay
2026-11-26 9:47 ` [PATCH v2 1/3] arm64: dts: socfpga: agilex5: add the service layer interrupt Alexandra Østermark via B4 Relay
2026-11-26 9:47 ` [PATCH v2 2/3] dt-bindings: arm: altera: add Terasic DE25-Nano Alexandra Østermark via B4 Relay
2026-11-26 9:47 ` [PATCH v2 3/3] arm64: dts: socfpga: agilex5: add support for " Alexandra Østermark via B4 Relay
2026-11-26 11:22 ` [PATCH v2 0/3] " James Clark
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®