* [PATCH v3] arm64: dts: Add support for Stratix 10 Software Virtual Platform
@ 2022-06-09 2:55 wen.ping.teh
2022-06-14 23:25 ` Krzysztof Kozlowski
0 siblings, 1 reply; 3+ messages in thread
From: wen.ping.teh @ 2022-06-09 2:55 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon, Dinh Nguyen, Rob Herring,
Krzysztof Kozlowski
Cc: linux-arm-kernel, linux-kernel, devicetree, Teh Wen Ping
From: Teh Wen Ping <wen.ping.teh@intel.com>
Add Stratix 10 Software Virtual Platform device tree
Signed-off-by: Teh Wen Ping <wen.ping.teh@intel.com>
---
changes in v2:
-remove indentation before GPL
-change root compatible to "altr,socfpga-stratix10"
-remove bootargs
-move clock-frequency to label
-remove l2-cache
-remove no longer exist authors from commit message
changes in v3:
-change root compatible to "altr,socfpga-stratix10-swvp"
arch/arm64/Kconfig.platforms | 3 +-
arch/arm64/boot/dts/altera/Makefile | 3 +-
.../dts/altera/socfpga_stratix10_swvp.dts | 117 ++++++++++++++++++
3 files changed, 121 insertions(+), 2 deletions(-)
create mode 100644 arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index de9a18d3026f..48abe5dafaae 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -249,7 +249,8 @@ config ARCH_INTEL_SOCFPGA
bool "Intel's SoCFPGA ARMv8 Families"
help
This enables support for Intel's SoCFPGA ARMv8 families:
- Stratix 10 (ex. Altera), Agilex and eASIC N5X.
+ Stratix 10 (ex. Altera), Stratix10 Software Virtual Platform,
+ Agilex and eASIC N5X.
config ARCH_SYNQUACER
bool "Socionext SynQuacer SoC Family"
diff --git a/arch/arm64/boot/dts/altera/Makefile b/arch/arm64/boot/dts/altera/Makefile
index 4db83fbeb115..1bf0c472f6b4 100644
--- a/arch/arm64/boot/dts/altera/Makefile
+++ b/arch/arm64/boot/dts/altera/Makefile
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-only
dtb-$(CONFIG_ARCH_INTEL_SOCFPGA) += socfpga_stratix10_socdk.dtb \
- socfpga_stratix10_socdk_nand.dtb
+ socfpga_stratix10_socdk_nand.dtb \
+ socfpga_stratix10_swvp.dtb
diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts
new file mode 100644
index 000000000000..a8db58573954
--- /dev/null
+++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts
@@ -0,0 +1,117 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2022, Intel Corporation
+ */
+
+#include "socfpga_stratix10.dtsi"
+
+/ {
+ model = "SOCFPGA Stratix 10 SWVP";
+ compatible = "altr,socfpga-stratix10-swvp", "altr,socfpga-stratix10";
+
+ aliases {
+ serial0 = &uart0;
+ serial1 = &uart1;
+
+ timer0 = &timer0;
+ timer1 = &timer1;
+ timer2 = &timer2;
+ timer3 = &timer3;
+
+ ethernet0 = &gmac0;
+ ethernet1 = &gmac1;
+ ethernet2 = &gmac2;
+ };
+
+ chosen {
+ stdout-path = "serial1:115200n8";
+ linux,initrd-start = <0x10000000>;
+ linux,initrd-end = <0x125c8324>;
+ };
+
+ memory {
+ device_type = "memory";
+ reg = <0x0 0x0 0x0 0x80000000>;
+ };
+};
+
+&cpu0 {
+ enable-method = "spin-table";
+ cpu-release-addr = <0x0 0x0000fff8>;
+};
+
+&cpu1 {
+ enable-method = "spin-table";
+ cpu-release-addr = <0x0 0x0000fff8>;
+};
+
+&cpu2 {
+ enable-method = "spin-table";
+ cpu-release-addr = <0x0 0x0000fff8>;
+};
+
+&cpu3 {
+ enable-method = "spin-table";
+ cpu-release-addr = <0x0 0x0000fff8>;
+};
+
+&osc1 {
+ clock-frequency = <25000000>;
+};
+
+&gmac0 {
+ status = "okay";
+ phy-mode = "rgmii";
+ phy-addr = <0xffffffff>;
+ snps,max-mtu = <0x0>;
+};
+
+&gmac1 {
+ status = "okay";
+ phy-mode = "rgmii";
+ phy-addr = <0xffffffff>;
+};
+
+&gmac2 {
+ status = "okay";
+ phy-mode = "rgmii";
+ phy-addr = <0xffffffff>;
+};
+
+&mmc {
+ status = "okay";
+ altr,dw-mshc-ciu-div = <0x3>;
+ altr,dw-mshc-sdr-timing = <0x0 0x3>;
+ cap-sd-highspeed;
+ cap-mmc-highspeed;
+ broken-cd;
+ bus-width = <4>;
+};
+
+&uart0 {
+ status = "okay";
+};
+
+&uart1 {
+ status = "okay";
+};
+
+&usb0 {
+ clocks = <&clkmgr STRATIX10_L4_MP_CLK>;
+ status = "okay";
+};
+
+&usb1 {
+ clocks = <&clkmgr STRATIX10_L4_MP_CLK>;
+ status = "okay";
+};
+
+&rst {
+ altr,modrst-offset = <0x20>;
+};
+
+&sysmgr {
+ reg = <0xffd12000 0x1000>;
+ interrupts = <0x0 0x10 0x4>;
+ cpu1-start-addr = <0xffd06230>;
+};
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v3] arm64: dts: Add support for Stratix 10 Software Virtual Platform
2022-06-09 2:55 [PATCH v3] arm64: dts: Add support for Stratix 10 Software Virtual Platform wen.ping.teh
@ 2022-06-14 23:25 ` Krzysztof Kozlowski
2022-06-15 14:49 ` Dinh Nguyen
0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-14 23:25 UTC (permalink / raw)
To: wen.ping.teh, Catalin Marinas, Will Deacon, Dinh Nguyen,
Rob Herring, Krzysztof Kozlowski
Cc: linux-arm-kernel, linux-kernel, devicetree
On 08/06/2022 19:55, wen.ping.teh@intel.com wrote:
> From: Teh Wen Ping <wen.ping.teh@intel.com>
>
> Add Stratix 10 Software Virtual Platform device tree
>
> Signed-off-by: Teh Wen Ping <wen.ping.teh@intel.com>
> ---
>
> changes in v2:
> -remove indentation before GPL
> -change root compatible to "altr,socfpga-stratix10"
> -remove bootargs
> -move clock-frequency to label
> -remove l2-cache
> -remove no longer exist authors from commit message
>
> changes in v3:
> -change root compatible to "altr,socfpga-stratix10-swvp"
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3] arm64: dts: Add support for Stratix 10 Software Virtual Platform
2022-06-14 23:25 ` Krzysztof Kozlowski
@ 2022-06-15 14:49 ` Dinh Nguyen
0 siblings, 0 replies; 3+ messages in thread
From: Dinh Nguyen @ 2022-06-15 14:49 UTC (permalink / raw)
To: Krzysztof Kozlowski, wen.ping.teh, Catalin Marinas, Will Deacon,
Rob Herring, Krzysztof Kozlowski
Cc: linux-arm-kernel, linux-kernel, devicetree
On 6/14/22 18:25, Krzysztof Kozlowski wrote:
> On 08/06/2022 19:55, wen.ping.teh@intel.com wrote:
>> From: Teh Wen Ping <wen.ping.teh@intel.com>
>>
>> Add Stratix 10 Software Virtual Platform device tree
>>
>> Signed-off-by: Teh Wen Ping <wen.ping.teh@intel.com>
>> ---
>>
>> changes in v2:
>> -remove indentation before GPL
>> -change root compatible to "altr,socfpga-stratix10"
>> -remove bootargs
>> -move clock-frequency to label
>> -remove l2-cache
>> -remove no longer exist authors from commit message
>>
>> changes in v3:
>> -change root compatible to "altr,socfpga-stratix10-swvp"
>
>
> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
>
Applied!
Thanks,
Dinh
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-15 14:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-09 2:55 [PATCH v3] arm64: dts: Add support for Stratix 10 Software Virtual Platform wen.ping.teh
2022-06-14 23:25 ` Krzysztof Kozlowski
2022-06-15 14:49 ` Dinh Nguyen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).