From: richard.gong@linux.intel.com
To: catalin.marinas@arm.com, will@kernel.org, dinguyen@kernel.org,
robh+dt@kernel.org
Cc: linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Richard Gong <richard.gong@intel.com>
Subject: [PATCHv2] arm64: dts: diamonmesa: add device tree for Intel Diamond Mesa
Date: Mon, 31 Aug 2020 13:55:24 -0500 [thread overview]
Message-ID: <1598900124-23299-1-git-send-email-richard.gong@linux.intel.com> (raw)
From: Richard Gong <richard.gong@intel.com>
Add the device tree files for Intel Diamond Mesa SoC
Signed-off-by: Richard Gong <richard.gong@intel.com>
---
v2: use socfpga_agilex.dtsi rather than socfpga_diamondmesa.dtsi
---
arch/arm64/Kconfig.platforms | 5 ++
arch/arm64/boot/dts/intel/Makefile | 1 +
arch/arm64/boot/dts/intel/socfpga_diamondmesa.dts | 62 +++++++++++++++++++++++
3 files changed, 68 insertions(+)
create mode 100644 arch/arm64/boot/dts/intel/socfpga_diamondmesa.dts
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index d235b27..ffae871 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -13,6 +13,11 @@ config ARCH_AGILEX
help
This enables support for Intel's Agilex SoCFPGA Family.
+config ARCH_DIAMONDMESA
+ bool "Intel's Diamond Mesa SoCFPGA Family"
+ help
+ This enables support for Intel's Diamond Mesa SoCFPGA Family.
+
config ARCH_SUNXI
bool "Allwinner sunxi 64-bit SoC Family"
select ARCH_HAS_RESET_CONTROLLER
diff --git a/arch/arm64/boot/dts/intel/Makefile b/arch/arm64/boot/dts/intel/Makefile
index 296ecee..f725c60 100644
--- a/arch/arm64/boot/dts/intel/Makefile
+++ b/arch/arm64/boot/dts/intel/Makefile
@@ -1,4 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-only
dtb-$(CONFIG_ARCH_AGILEX) += socfpga_agilex_socdk.dtb \
socfpga_agilex_socdk_nand.dtb
+dtb-$(CONFIG_ARCH_DIAMONDMESA) += socfpga_diamondmesa.dtb
dtb-$(CONFIG_ARCH_KEEMBAY) += keembay-evm.dtb
diff --git a/arch/arm64/boot/dts/intel/socfpga_diamondmesa.dts b/arch/arm64/boot/dts/intel/socfpga_diamondmesa.dts
new file mode 100644
index 00000000..eb1af5b
--- /dev/null
+++ b/arch/arm64/boot/dts/intel/socfpga_diamondmesa.dts
@@ -0,0 +1,62 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2020 Intel Corporation
+ */
+#include "socfpga_agilex.dtsi"
+
+/ {
+ model = "SoCFPGA Diamond Mesa Simics";
+
+ aliases {
+ serial0 = &uart0;
+ };
+
+ chosen {
+ bootargs = "earlycon";
+ stdout-path = "serial0:4800n8";
+ };
+
+ memory {
+ device_type = "memory";
+ /* We expect the bootloader to fill in the reg */
+ reg = <0 0 0 0x4000000>;
+ };
+
+ soc {
+ clocks {
+ osc1 {
+ clock-frequency = <100000000>;
+ };
+
+ uart_clk: uart_clk {
+ #clock-cells = <0>;
+ compatible = "fixed-clock";
+ clock-frequency = <76800>;
+ };
+
+ mmc_clk: mmc_clk {
+ #clock-cells = <0>;
+ compatible = "fixed-clock";
+ clock-frequency = <50000000>;
+ };
+ };
+ };
+};
+
+&uart0 {
+ clocks = <&uart_clk>;
+ status = "okay";
+};
+
+&mmc {
+ clocks = <&mmc_clk>, <&mmc_clk>;
+ cap-sd-highspeed;
+ broken-cd;
+ bus-width = <4>;
+ status = "okay";
+};
+
+&watchdog0 {
+ clocks = <&osc1>;
+ status = "okay";
+};
--
2.7.4
reply other threads:[~2020-08-31 18:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1598900124-23299-1-git-send-email-richard.gong@linux.intel.com \
--to=richard.gong@linux.intel.com \
--cc=catalin.marinas@arm.com \
--cc=dinguyen@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=richard.gong@intel.com \
--cc=robh+dt@kernel.org \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®