From patchwork Mon Aug 31 18:55:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Gong X-Patchwork-Id: 11746859 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A84221667 for ; Mon, 31 Aug 2020 18:38:24 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 811F52071B for ; Mon, 31 Aug 2020 18:38:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dymJAXrU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 811F52071B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=FJzAyszzF///9VU627530YxsY8puwNocqyzZHVOYUnY=; b=dymJAXrUIWFcmigDz4Ablcbd6w gbSpn68xyulDz+pObBtFWU1Y7JgdAq+2W50/cgnD04S1RRDU9la+byUT4zGda1rIrXUsU/80eVzxf 4/Vk47fuNA/9q7TWV5Fv7/e/4YW5w/sOdnhVlWQMIfbvAn8BPwZ1QRsTiTB3OlHLZ9DexZ7V4BOfp cC5uXWnQT1wX5y45TXCmc1dnb7X+OhYhjrx0ZVGzM8f7W8N4n5LaxYfcGbcTqqiPvwxqeHsRt+pM5 w1mouZrIOWE9dOiBzZoYOhr8Zr2lrFwyCPXRIPiS13veiqQzUgMi+Cdx7OGPeyuImhL6VK6J1B7ts vyPFJ8Aw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCofr-0002g4-4D; Mon, 31 Aug 2020 18:36:59 +0000 Received: from mga05.intel.com ([192.55.52.43]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCofo-0002Yo-1Q for linux-arm-kernel@lists.infradead.org; Mon, 31 Aug 2020 18:36:57 +0000 IronPort-SDR: ew+iWNSXGEvELon6YSNy/Sci4Qt8DnY644ojNjGZgCFQ4HJDx7mIcouJpBV0PfPz1M3iDYbFMt Uj+YYRPdPQcg== X-IronPort-AV: E=McAfee;i="6000,8403,9730"; a="241853057" X-IronPort-AV: E=Sophos;i="5.76,376,1592895600"; d="scan'208";a="241853057" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2020 11:36:31 -0700 IronPort-SDR: 3Wbt34h2nl2+kUVhQX55Mbp6iMJfWQ68DYFndGnnetJCOomncp30+9Ft3X4pb7uJ56ZTyBgXdP UWUBJualG1/A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,376,1592895600"; d="scan'208";a="501938138" Received: from marshy.an.intel.com ([10.122.105.159]) by fmsmga005.fm.intel.com with ESMTP; 31 Aug 2020 11:36:30 -0700 From: richard.gong@linux.intel.com To: catalin.marinas@arm.com, will@kernel.org, dinguyen@kernel.org, robh+dt@kernel.org Subject: [PATCHv2] arm64: dts: diamonmesa: add device tree for Intel Diamond Mesa Date: Mon, 31 Aug 2020 13:55:24 -0500 Message-Id: <1598900124-23299-1-git-send-email-richard.gong@linux.intel.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200831_143656_271184_817D0F71 X-CRM114-Status: GOOD ( 17.49 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [192.55.52.43 listed in list.dnswl.org] 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Gong , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Richard Gong Add the device tree files for Intel Diamond Mesa SoC Signed-off-by: Richard Gong --- 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"; +};