arm64: dts: Add support for Stratix 10 Software Virtual Platform
Subsystems (3)
PATCH v2 1/1 arm64: dts: Add support for Stratix 10 Software Virtual Platform
From: Teh Wen Ping <[email protected]>
Add Stratix 10 Software Virtual Platform device tree
---
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
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
arch/arm64/Kconfig.platforms +2 -1
@@ -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"
arch/arm64/boot/dts/altera/Makefile +2 -1
@@ -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
arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts new file +117 -0
117 lines not on this page · raw message
Signature · 1 line
2.25.1
Quoted 51 lines · On 02/06/2022 16:11, [email protected] wrote:
From: Teh Wen Ping <[email protected]>
Add Stratix 10 Software Virtual Platform device tree
Signed-off-by Teh Wen Ping <[email protected]>---
changes in v2:
(quoted diff) +0
-6-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 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.dtsarch/arm64/Kconfig.platforms +2
-1@@ -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"arch/arm64/boot/dts/altera/Makefile +2
-1@@ -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.dtbarch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts new file +0
-0
arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts line 10
Quoted 10 lines
arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts new file +10
-0@@ -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";
You cannot use someone else's compatible. You need your own and then also you need to document it. Check existing sources for examples.
Documentation/devicetree/bindings/arm/altera.yaml
Quoted 9 lines
arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts new file +9
-0+ + aliases { + serial0 = &uart0; + serial1 = &uart1; + + timer0 = &timer0; + timer1 = &timer1; + timer2 = &timer2; + timer3 = &timer3;
arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts line 29
Quoted 10 lines
arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts new file +10
-0+ + ethernet0 = &gmac0; + ethernet1 = &gmac1; + ethernet2 = &gmac2; + }; + + chosen { + stdout-path = "serial1:115200n8"; + linux,initrd-start = <0x10000000>; + linux,initrd-end = <0x125c8324>;
Best regards,
Krzysztof