mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-12-05 00:40:56 -06:00
Merge tag 'socfpga_dts_updates_for_v7.3' of https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux into soc/dt
SoCFPGA DTS updates for v7.3 - dt-bindings updates: - Document compatible for Agilex72 - Document additional interrupts for Agilex5 - Add the additional interrupts for the gmac on Agilex5 - Use decimal number for interrupts, not hexadecimal - Enable the SMMU on Agilex5 - Add dma-coherent on XGMAC nodes - Add initial support for the Agilex72 SoCDK - Correct indentation on Arria10 - Update QSPI boot partition label * tag 'socfpga_dts_updates_for_v7.3' of https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux: arm64: dts: socfpga: use consistent QSPI boot partition label ARM: dts: intel: arria10: Correct indentation arm64: dts: socfpga: agilex5: update channel interrupts for gmac1 and gmac2 dt-bindings: net: altr,socfpga-stmmac: add more interrupts for Agilex5 arm64: dts: socfpga: agilex72: Add initial device tree dt-bindings: arm: altera: Add Agilex72 SoCFPGA compatible strings arm64: dts: socfpga: agilex5: Add dma-coherent to XGMAC nodes arm64: dts: socfpga: agilex5: Enable the SMMU arm64: dts: intel: keembay: Always use decimal interrupts arm64: dts: socfpga: agilex5: Add per-channel interrupts to gmac0 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
@@ -116,6 +116,12 @@ properties:
|
||||
- intel,socfpga-agilex5-socdk-nand
|
||||
- const: intel,socfpga-agilex5
|
||||
|
||||
- description: Agilex72 boards
|
||||
items:
|
||||
- enum:
|
||||
- intel,socfpga-agilex72-socdk
|
||||
- const: intel,socfpga-agilex72
|
||||
|
||||
- description: Agilex7m boards
|
||||
items:
|
||||
- enum:
|
||||
|
||||
@@ -63,11 +63,29 @@ properties:
|
||||
- const: ptp_ref
|
||||
|
||||
interrupts:
|
||||
maxItems: 1
|
||||
minItems: 1
|
||||
maxItems: 17
|
||||
|
||||
interrupt-names:
|
||||
minItems: 1
|
||||
items:
|
||||
- const: macirq
|
||||
- const: tx-queue-0
|
||||
- const: tx-queue-1
|
||||
- const: tx-queue-2
|
||||
- const: tx-queue-3
|
||||
- const: tx-queue-4
|
||||
- const: tx-queue-5
|
||||
- const: tx-queue-6
|
||||
- const: tx-queue-7
|
||||
- const: rx-queue-0
|
||||
- const: rx-queue-1
|
||||
- const: rx-queue-2
|
||||
- const: rx-queue-3
|
||||
- const: rx-queue-4
|
||||
- const: rx-queue-5
|
||||
- const: rx-queue-6
|
||||
- const: rx-queue-7
|
||||
|
||||
iommus:
|
||||
minItems: 1
|
||||
@@ -149,10 +167,36 @@ required:
|
||||
- clocks
|
||||
- clock-names
|
||||
- altr,sysmgr-syscon
|
||||
- interrupts
|
||||
- interrupt-names
|
||||
|
||||
allOf:
|
||||
- $ref: snps,dwmac.yaml#
|
||||
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
const: altr,socfpga-stmmac-agilex5
|
||||
then:
|
||||
properties:
|
||||
interrupts:
|
||||
minItems: 17
|
||||
|
||||
interrupt-names:
|
||||
minItems: 17
|
||||
|
||||
dma-coherent: true
|
||||
else:
|
||||
properties:
|
||||
interrupts:
|
||||
maxItems: 1
|
||||
|
||||
interrupt-names:
|
||||
maxItems: 1
|
||||
|
||||
dma-coherent: false
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
examples:
|
||||
|
||||
@@ -447,7 +447,7 @@
|
||||
gmac1: ethernet@ff802000 {
|
||||
compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.72a", "snps,dwmac";
|
||||
altr,sysmgr-syscon = <&sysmgr 0x48 8>;
|
||||
reg = <0xff802000 0x2000>;
|
||||
reg = <0xff802000 0x2000>;
|
||||
interrupts = <0 93 IRQ_TYPE_LEVEL_HIGH>;
|
||||
interrupt-names = "macirq";
|
||||
/* Filled in by bootloader */
|
||||
|
||||
@@ -8,6 +8,7 @@ dtb-$(CONFIG_ARCH_INTEL_SOCFPGA) += socfpga_agilex_n6000.dtb \
|
||||
socfpga_agilex5_socdk_013b.dtb \
|
||||
socfpga_agilex5_socdk_modular.dtb \
|
||||
socfpga_agilex5_socdk_nand.dtb \
|
||||
socfpga_agilex72_socdk.dtb \
|
||||
socfpga_agilex7m_socdk.dtb \
|
||||
socfpga_n5x_socdk.dtb
|
||||
dtb-$(CONFIG_ARCH_KEEMBAY) += keembay-evm.dtb
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
|
||||
pmu {
|
||||
compatible = "arm,cortex-a53-pmu";
|
||||
interrupts = <GIC_PPI 0x7 IRQ_TYPE_LEVEL_HIGH>;
|
||||
interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
|
||||
};
|
||||
|
||||
soc {
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
qspi_boot: partition@0 {
|
||||
label = "u-boot";
|
||||
label = "Boot and fpga data";
|
||||
reg = <0x0 0x00c00000>;
|
||||
};
|
||||
|
||||
|
||||
@@ -385,7 +385,6 @@
|
||||
interrupt-names = "eventq", "gerror", "priq";
|
||||
dma-coherent;
|
||||
#iommu-cells = <1>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
spi0: spi@10da4000 {
|
||||
@@ -557,8 +556,40 @@
|
||||
compatible = "altr,socfpga-stmmac-agilex5",
|
||||
"snps,dwxgmac-2.10";
|
||||
reg = <0x10810000 0x3500>;
|
||||
interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
|
||||
interrupt-names = "macirq";
|
||||
interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 194 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 195 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>;
|
||||
interrupt-names = "macirq",
|
||||
"tx-queue-0",
|
||||
"tx-queue-1",
|
||||
"tx-queue-2",
|
||||
"tx-queue-3",
|
||||
"tx-queue-4",
|
||||
"tx-queue-5",
|
||||
"tx-queue-6",
|
||||
"tx-queue-7",
|
||||
"rx-queue-0",
|
||||
"rx-queue-1",
|
||||
"rx-queue-2",
|
||||
"rx-queue-3",
|
||||
"rx-queue-4",
|
||||
"rx-queue-5",
|
||||
"rx-queue-6",
|
||||
"rx-queue-7";
|
||||
resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>;
|
||||
reset-names = "stmmaceth", "ahb";
|
||||
clocks = <&clkmgr AGILEX5_EMAC0_CLK>,
|
||||
@@ -577,6 +608,7 @@
|
||||
altr,sysmgr-syscon = <&sysmgr 0x44 0>;
|
||||
snps,clk-csr = <0>;
|
||||
iommus = <&smmu 1>;
|
||||
dma-coherent;
|
||||
status = "disabled";
|
||||
|
||||
stmmac_axi_emac0_setup: stmmac-axi-config {
|
||||
@@ -670,8 +702,40 @@
|
||||
compatible = "altr,socfpga-stmmac-agilex5",
|
||||
"snps,dwxgmac-2.10";
|
||||
reg = <0x10820000 0x3500>;
|
||||
interrupts = <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>;
|
||||
interrupt-names = "macirq";
|
||||
interrupts = <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 210 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
|
||||
interrupt-names = "macirq",
|
||||
"tx-queue-0",
|
||||
"tx-queue-1",
|
||||
"tx-queue-2",
|
||||
"tx-queue-3",
|
||||
"tx-queue-4",
|
||||
"tx-queue-5",
|
||||
"tx-queue-6",
|
||||
"tx-queue-7",
|
||||
"rx-queue-0",
|
||||
"rx-queue-1",
|
||||
"rx-queue-2",
|
||||
"rx-queue-3",
|
||||
"rx-queue-4",
|
||||
"rx-queue-5",
|
||||
"rx-queue-6",
|
||||
"rx-queue-7";
|
||||
resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>;
|
||||
reset-names = "stmmaceth", "ahb";
|
||||
clocks = <&clkmgr AGILEX5_EMAC1_CLK>,
|
||||
@@ -690,6 +754,7 @@
|
||||
altr,sysmgr-syscon = <&sysmgr 0x48 0>;
|
||||
snps,clk-csr = <0>;
|
||||
iommus = <&smmu 2>;
|
||||
dma-coherent;
|
||||
status = "disabled";
|
||||
|
||||
stmmac_axi_emac1_setup: stmmac-axi-config {
|
||||
@@ -783,8 +848,40 @@
|
||||
compatible = "altr,socfpga-stmmac-agilex5",
|
||||
"snps,dwxgmac-2.10";
|
||||
reg = <0x10830000 0x3500>;
|
||||
interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>;
|
||||
interrupt-names = "macirq";
|
||||
interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 228 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 230 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 232 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 234 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 235 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 236 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 237 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 239 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 240 IRQ_TYPE_LEVEL_HIGH>;
|
||||
interrupt-names = "macirq",
|
||||
"tx-queue-0",
|
||||
"tx-queue-1",
|
||||
"tx-queue-2",
|
||||
"tx-queue-3",
|
||||
"tx-queue-4",
|
||||
"tx-queue-5",
|
||||
"tx-queue-6",
|
||||
"tx-queue-7",
|
||||
"rx-queue-0",
|
||||
"rx-queue-1",
|
||||
"rx-queue-2",
|
||||
"rx-queue-3",
|
||||
"rx-queue-4",
|
||||
"rx-queue-5",
|
||||
"rx-queue-6",
|
||||
"rx-queue-7";
|
||||
resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>;
|
||||
reset-names = "stmmaceth", "ahb";
|
||||
clocks = <&clkmgr AGILEX5_EMAC2_CLK>,
|
||||
@@ -803,6 +900,7 @@
|
||||
altr,sysmgr-syscon = <&sysmgr 0x4c 0>;
|
||||
snps,clk-csr = <0>;
|
||||
iommus = <&smmu 3>;
|
||||
dma-coherent;
|
||||
status = "disabled";
|
||||
|
||||
stmmac_axi_emac2_setup: stmmac-axi-config {
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
qspi_boot: partition@0 {
|
||||
label = "u-boot";
|
||||
label = "Boot and fpga data";
|
||||
reg = <0x0 0x04200000>;
|
||||
};
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
qspi_boot: partition@0 {
|
||||
label = "u-boot";
|
||||
label = "Boot and fpga data";
|
||||
reg = <0x0 0x00c00000>;
|
||||
};
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
qspi_boot: partition@0 {
|
||||
label = "u-boot";
|
||||
label = "Boot and fpga data";
|
||||
reg = <0x0 0x04200000>;
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,156 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (C) 2026, Altera Corporation
|
||||
*/
|
||||
/dts-v1/;
|
||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
|
||||
/ {
|
||||
compatible = "intel,socfpga-agilex72";
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
|
||||
reserved-memory {
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
ranges;
|
||||
|
||||
atf_reserved: atf@80000000 {
|
||||
compatible = "shared-dma-pool";
|
||||
reg = <0x0 0x80000000 0x0 0x100000>;
|
||||
alignment = <0x1000>;
|
||||
no-map;
|
||||
};
|
||||
|
||||
service_reserved: svcbuffer@80100000 {
|
||||
compatible = "shared-dma-pool";
|
||||
reg = <0x0 0x80100000 0x0 0xf00000>;
|
||||
alignment = <0x1000>;
|
||||
no-map;
|
||||
};
|
||||
};
|
||||
|
||||
cpus {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu0: cpu@0 {
|
||||
compatible = "arm,cortex-a520";
|
||||
device_type = "cpu";
|
||||
enable-method = "psci";
|
||||
reg = <0x0>;
|
||||
};
|
||||
|
||||
cpu1: cpu@100 {
|
||||
compatible = "arm,cortex-a520";
|
||||
device_type = "cpu";
|
||||
enable-method = "psci";
|
||||
reg = <0x100>;
|
||||
};
|
||||
|
||||
cpu2: cpu@200 {
|
||||
compatible = "arm,cortex-a720";
|
||||
device_type = "cpu";
|
||||
enable-method = "psci";
|
||||
reg = <0x200>;
|
||||
};
|
||||
|
||||
cpu3: cpu@300 {
|
||||
compatible = "arm,cortex-a720";
|
||||
device_type = "cpu";
|
||||
enable-method = "psci";
|
||||
reg = <0x300>;
|
||||
};
|
||||
};
|
||||
|
||||
clocks {
|
||||
uart_clk: uart-clk {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <125000000>;
|
||||
};
|
||||
};
|
||||
|
||||
psci {
|
||||
compatible = "arm,psci-0.2";
|
||||
method = "smc";
|
||||
};
|
||||
|
||||
timer {
|
||||
compatible = "arm,armv8-timer";
|
||||
interrupt-parent = <&intc>;
|
||||
interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
|
||||
<GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
|
||||
<GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
|
||||
<GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
|
||||
};
|
||||
|
||||
intc: interrupt-controller@7000000 {
|
||||
compatible = "arm,gic-v3";
|
||||
reg = <0x0 0x7000000 0x0 0x10000>,
|
||||
<0x0 0x7080000 0x0 0x100000>;
|
||||
ranges;
|
||||
#interrupt-cells = <3>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
interrupt-controller;
|
||||
#redistributor-regions = <1>;
|
||||
redistributor-stride = <0x0 0x40000>;
|
||||
|
||||
its: msi-controller@7040000 {
|
||||
compatible = "arm,gic-v3-its";
|
||||
reg = <0x0 0x7040000 0x0 0x20000>;
|
||||
msi-controller;
|
||||
#msi-cells = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
soc: soc@0 {
|
||||
compatible = "simple-bus";
|
||||
ranges = <0 0 0 0xffffffff>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
device_type = "soc";
|
||||
interrupt-parent = <&intc>;
|
||||
|
||||
smmu: iommu@c100000 {
|
||||
compatible = "arm,smmu-v3";
|
||||
reg = <0x0c100000 0x30000>;
|
||||
interrupts = <GIC_SPI 134 IRQ_TYPE_EDGE_RISING>,
|
||||
<GIC_SPI 129 IRQ_TYPE_EDGE_RISING>,
|
||||
<GIC_SPI 132 IRQ_TYPE_EDGE_RISING>;
|
||||
interrupt-names = "eventq", "gerror", "priq";
|
||||
dma-coherent;
|
||||
#iommu-cells = <1>;
|
||||
};
|
||||
|
||||
ocram: sram@0 {
|
||||
compatible = "mmio-sram";
|
||||
reg = <0x00000000 0x80000>;
|
||||
ranges = <0 0 0x80000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
};
|
||||
|
||||
uart0: serial@9038000 {
|
||||
compatible = "snps,dw-apb-uart";
|
||||
reg = <0x9038000 0x100>;
|
||||
interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
|
||||
reg-shift = <2>;
|
||||
reg-io-width = <4>;
|
||||
clocks = <&uart_clk>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
uart1: serial@9039000 {
|
||||
compatible = "snps,dw-apb-uart";
|
||||
reg = <0x9039000 0x100>;
|
||||
interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
|
||||
reg-shift = <2>;
|
||||
reg-io-width = <4>;
|
||||
clocks = <&uart_clk>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,27 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (C) 2026, Altera Corporation
|
||||
*/
|
||||
#include "socfpga_agilex72.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Altera SoCFPGA Agilex72 SoCDK";
|
||||
compatible = "intel,socfpga-agilex72-socdk", "intel,socfpga-agilex72";
|
||||
|
||||
aliases {
|
||||
serial0 = &uart0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
stdout-path = "serial0:115200n8";
|
||||
};
|
||||
|
||||
memory@80000000 {
|
||||
device_type = "memory";
|
||||
reg = <0x0 0x80000000 0x0 0x80000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
status = "okay";
|
||||
};
|
||||
Reference in New Issue
Block a user