Skip to content

Commit 6935cce

Browse files
committed
Merge tag 'socfpga_updates_for_v7.1_v2' of git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux into soc/dt
SoCFPGA DTS updates for v7.1 - dt-bindings updates: - Document fallback compatible for Stratix10 SoCDK eMMC board - Document compatible for the Agilex5 SoCFPGA modular board - Add emmc support for the Stratix10 - Drop CPU masks from the GICv3 PPI interrupts for Agilex5 * tag 'socfpga_updates_for_v7.1_v2' of git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux: arm64: dts: intel: agilex5: Drop CPU masks from GICv3 PPI interrupts dt-bindings: intel: Add Agilex5 SoCFPGA modular board arm64: dts: socfpga: stratix10: Add emmc support dt-bindings: altera: Add fallback compatible for Stratix 10 SoCDK eMMC variant Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 9988201 + 625af11 commit 6935cce

6 files changed

Lines changed: 166 additions & 69 deletions

File tree

Documentation/devicetree/bindings/arm/altera.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ properties:
8484
- altr,socfpga-stratix10-swvp
8585
- const: altr,socfpga-stratix10
8686

87+
- description: Stratix 10 SoCDK eMMC variant
88+
items:
89+
- const: altr,socfpga-stratix10-socdk-emmc
90+
- const: altr,socfpga-stratix10-socdk
91+
- const: altr,socfpga-stratix10
92+
8793
- description: AgileX boards
8894
items:
8995
- enum:
@@ -105,6 +111,7 @@ properties:
105111
- enum:
106112
- intel,socfpga-agilex5-socdk
107113
- intel,socfpga-agilex5-socdk-013b
114+
- intel,socfpga-agilex5-socdk-modular
108115
- intel,socfpga-agilex5-socdk-nand
109116
- const: intel,socfpga-agilex5
110117

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
dtb-$(CONFIG_ARCH_INTEL_SOCFPGA) += socfpga_stratix10_socdk.dtb \
3+
socfpga_stratix10_socdk_emmc.dtb \
34
socfpga_stratix10_socdk_nand.dtb \
45
socfpga_stratix10_swvp.dtb

arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts

Lines changed: 2 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,11 @@
33
* Copyright Altera Corporation (C) 2015. All rights reserved.
44
*/
55

6-
#include "socfpga_stratix10.dtsi"
6+
#include "socfpga_stratix10_socdk.dtsi"
77

88
/ {
99
model = "SoCFPGA Stratix 10 SoCDK";
1010
compatible = "altr,socfpga-stratix10-socdk", "altr,socfpga-stratix10";
11-
12-
aliases {
13-
serial0 = &uart0;
14-
ethernet0 = &gmac0;
15-
ethernet1 = &gmac1;
16-
ethernet2 = &gmac2;
17-
};
18-
19-
chosen {
20-
stdout-path = "serial0:115200n8";
21-
};
22-
23-
leds {
24-
compatible = "gpio-leds";
25-
led-hps0 {
26-
label = "hps_led0";
27-
gpios = <&portb 20 GPIO_ACTIVE_HIGH>;
28-
};
29-
30-
led-hps1 {
31-
label = "hps_led1";
32-
gpios = <&portb 19 GPIO_ACTIVE_HIGH>;
33-
};
34-
35-
led-hps2 {
36-
label = "hps_led2";
37-
gpios = <&portb 21 GPIO_ACTIVE_HIGH>;
38-
};
39-
};
40-
41-
memory@80000000 {
42-
device_type = "memory";
43-
/* We expect the bootloader to fill in the reg */
44-
reg = <0 0x80000000 0 0>;
45-
};
46-
47-
ref_033v: regulator-v-ref {
48-
compatible = "regulator-fixed";
49-
regulator-name = "0.33V";
50-
regulator-min-microvolt = <330000>;
51-
regulator-max-microvolt = <330000>;
52-
};
5311
};
5412

5513
&pinctrl0 {
@@ -68,10 +26,6 @@
6826
};
6927
};
7028

71-
&gpio1 {
72-
status = "okay";
73-
};
74-
7529
&gmac0 {
7630
status = "okay";
7731
phy-mode = "rgmii";
@@ -83,7 +37,7 @@
8337
#address-cells = <1>;
8438
#size-cells = <0>;
8539
compatible = "snps,dwmac-mdio";
86-
phy0: ethernet-phy@0 {
40+
phy0: ethernet-phy@4 {
8741
reg = <4>;
8842

8943
txd0-skew-ps = <0>; /* -420ps */
@@ -111,23 +65,6 @@
11165
clk-phase-sd-hs = <0>, <135>;
11266
};
11367

114-
&osc1 {
115-
clock-frequency = <25000000>;
116-
};
117-
118-
&uart0 {
119-
status = "okay";
120-
};
121-
122-
&usb0 {
123-
status = "okay";
124-
disable-over-current;
125-
};
126-
127-
&watchdog0 {
128-
status = "okay";
129-
};
130-
13168
&i2c1 {
13269
status = "okay";
13370
clock-frequency = <100000>;
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
// SPDX-License-Identifier: GPL-2.0-only
2+
/*
3+
* Copyright Altera Corporation (C) 2026. All rights reserved.
4+
*/
5+
6+
#include "socfpga_stratix10.dtsi"
7+
8+
/ {
9+
aliases {
10+
serial0 = &uart0;
11+
ethernet0 = &gmac0;
12+
ethernet1 = &gmac1;
13+
ethernet2 = &gmac2;
14+
};
15+
16+
chosen {
17+
stdout-path = "serial0:115200n8";
18+
};
19+
20+
leds {
21+
compatible = "gpio-leds";
22+
led-hps0 {
23+
label = "hps_led0";
24+
gpios = <&portb 20 GPIO_ACTIVE_HIGH>;
25+
};
26+
27+
led-hps1 {
28+
label = "hps_led1";
29+
gpios = <&portb 19 GPIO_ACTIVE_HIGH>;
30+
};
31+
32+
led-hps2 {
33+
label = "hps_led2";
34+
gpios = <&portb 21 GPIO_ACTIVE_HIGH>;
35+
};
36+
};
37+
38+
memory@80000000 {
39+
device_type = "memory";
40+
/* We expect the bootloader to fill in the reg */
41+
reg = <0 0x80000000 0 0>;
42+
};
43+
44+
ref_033v: regulator-0v33-ref {
45+
compatible = "regulator-fixed";
46+
regulator-name = "0.33V";
47+
regulator-min-microvolt = <330000>;
48+
regulator-max-microvolt = <330000>;
49+
};
50+
};
51+
52+
&gpio1 {
53+
status = "okay";
54+
};
55+
56+
&osc1 {
57+
clock-frequency = <25000000>;
58+
};
59+
60+
&uart0 {
61+
status = "okay";
62+
};
63+
64+
&usb0 {
65+
status = "okay";
66+
disable-over-current;
67+
};
68+
69+
&watchdog0 {
70+
status = "okay";
71+
};
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
// SPDX-License-Identifier: GPL-2.0-only
2+
/*
3+
* Copyright Altera Corporation (C) 2026. All rights reserved.
4+
*/
5+
6+
#include "socfpga_stratix10_socdk.dtsi"
7+
8+
/ {
9+
model = "SoCFPGA Stratix 10 SoCDK eMMC daughter board";
10+
compatible = "altr,socfpga-stratix10-socdk-emmc",
11+
"altr,socfpga-stratix10-socdk",
12+
"altr,socfpga-stratix10";
13+
};
14+
15+
&gmac2 {
16+
status = "okay";
17+
/* PHY delays is configured via skew properties */
18+
phy-mode = "rgmii";
19+
phy-handle = <&phy0>;
20+
21+
max-frame-size = <9000>;
22+
23+
mdio0 {
24+
#address-cells = <1>;
25+
#size-cells = <0>;
26+
compatible = "snps,dwmac-mdio";
27+
phy0: ethernet-phy@4 {
28+
reg = <4>;
29+
30+
txd0-skew-ps = <0>; /* -420ps */
31+
txd1-skew-ps = <0>; /* -420ps */
32+
txd2-skew-ps = <0>; /* -420ps */
33+
txd3-skew-ps = <0>; /* -420ps */
34+
rxd0-skew-ps = <420>; /* 0ps */
35+
rxd1-skew-ps = <420>; /* 0ps */
36+
rxd2-skew-ps = <420>; /* 0ps */
37+
rxd3-skew-ps = <420>; /* 0ps */
38+
txen-skew-ps = <0>; /* -420ps */
39+
txc-skew-ps = <900>; /* 0ps */
40+
rxdv-skew-ps = <420>; /* 0ps */
41+
rxc-skew-ps = <1680>; /* 780ps */
42+
};
43+
};
44+
};
45+
46+
&mmc {
47+
status = "okay";
48+
cap-mmc-highspeed;
49+
broken-cd;
50+
bus-width = <4>;
51+
clk-phase-sd-hs = <0>, <135>;
52+
};
53+
54+
&i2c2 {
55+
status = "okay";
56+
clock-frequency = <100000>;
57+
i2c-sda-falling-time-ns = <890>; /* hcnt */
58+
i2c-scl-falling-time-ns = <890>; /* lcnt */
59+
60+
adc@14 {
61+
compatible = "lltc,ltc2497";
62+
reg = <0x14>;
63+
vref-supply = <&ref_033v>;
64+
};
65+
66+
temp@4c {
67+
compatible = "maxim,max1619";
68+
reg = <0x4c>;
69+
};
70+
71+
eeprom@51 {
72+
compatible = "atmel,24c32";
73+
reg = <0x51>;
74+
pagesize = <32>;
75+
};
76+
77+
rtc@68 {
78+
compatible = "dallas,ds1339";
79+
reg = <0x68>;
80+
};
81+
};

arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@
152152
timer {
153153
compatible = "arm,armv8-timer";
154154
interrupt-parent = <&intc>;
155-
interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
156-
<GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
157-
<GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
158-
<GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
155+
interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
156+
<GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
157+
<GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
158+
<GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
159159
};
160160

161161
usbphy0: usbphy {

0 commit comments

Comments
 (0)