Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1296008pxk; Mon, 31 Aug 2020 15:34:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymCVYB+olebido9VZD3y5OgIrbSKH4D43V2CBQzFBui/PObz4S2gJsy+uRm6GeVZd4clbL X-Received: by 2002:a50:fc83:: with SMTP id f3mr2966824edq.256.1598913272191; Mon, 31 Aug 2020 15:34:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598913272; cv=none; d=google.com; s=arc-20160816; b=WrJyMbHaEaf6y70GwlK7zGoi1v+cpiYr5B5TI6y8kiU+jwDtqSLBG3TNTGhHNi70hb +a0zRtK7BODZ5NAm7Je0wEsBn4Q7/5P3z9aizs415ZhU7LSYiDffPh2JEbDGAUmTJZFk 9ETeLrzjNVTf8Hx4uEF6xfwbabJefzNFpuSQsE2YqPP5vlywoKElwftbpZyT7lOY4bLk bJkZmcLOVNOcF5hs8WPbOimF06BERyECrPUafHq9HZQzuN7VclSPUGPm3T+Mc4qWu9sU eHh5cjNQlIJYCU6bcIG7IV5uqFhrtC55I9vkUL4v4m4UJFmdEyTxtm/FufvKDKYawmYs DLew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=Skmi/LCxTnVdzeCiCMz27OiJ5agGoc8d9RGWEgjVlQs=; b=F4SooBwoTO8LwPKOW2iujsSYnp7gQPQqjZxk9WAnc/rRJ1PFe2b6Sv9+QlgT49muLb Y1QGUtHPPCUSuvbw4+aJ0OCrsD8MJoLTTISkK+Tdat5BEZVH9GXUjQFAqqMpvG9tH8fm yIESnHxmyufxDWV6oSonVJJS2wtq61qBVuyK5HkcUMY1KlByFL5toNF/JYb8q6yr3yXm vRSOw8C09n5Eo7o0A9U7FcLB6tvGaQKDaBNQFIbPjGTpXYdUmWFT8wWAdY0v+CoGCvIX qgnLy0FpJs/ACVn17WYISPPcbE4smOkn7gaFTvhcF/yIDrh5eKatSsFTXX83G4TW37UE 0hlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c3si6465740edl.567.2020.08.31.15.34.09; Mon, 31 Aug 2020 15:34:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728974AbgHaSgd (ORCPT + 99 others); Mon, 31 Aug 2020 14:36:33 -0400 Received: from mga05.intel.com ([192.55.52.43]:53041 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726174AbgHaSgc (ORCPT ); Mon, 31 Aug 2020 14:36:32 -0400 IronPort-SDR: I2uRY27F7kLopoqYt62Ifp9xBW5JOhQgyHy4YzCOsXqSFUN4vr6VYSDPVrWrQdbz6N3z+IkOqb qlN/QyhXS0Zw== X-IronPort-AV: E=McAfee;i="6000,8403,9730"; a="241853056" X-IronPort-AV: E=Sophos;i="5.76,376,1592895600"; d="scan'208";a="241853056" 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 Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Richard Gong 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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"; +}; -- 2.7.4