Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp367401iob; Tue, 3 May 2022 20:26:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwS4gAsFGbFpN7InjA9NQpmsLab0CVJtPe07mHiNEhU76WUVw6gjPow4b8gJLSRM+Tu2oES X-Received: by 2002:a17:907:3f8b:b0:6e8:318d:1def with SMTP id hr11-20020a1709073f8b00b006e8318d1defmr18855109ejc.153.1651634803185; Tue, 03 May 2022 20:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651634803; cv=none; d=google.com; s=arc-20160816; b=IglZqp0dKmkDlMOkvCZDH4QWag4uO+8KD7QqoHs66tNgRirFXVSNuUl2mvbXk0jcBx LJuB70AD6Hm9S0M8WcA3b8vOz/qf158jU5l6tInCzWBD+0mtni6CyxSqNopeiXCyCMyo uxC9ItKGenUz8B6odT14h/ba8EoGUqXxYZRpjzjI6vwuE5CobNxKq/vV/tJ4TA0mJPg1 /bUeuXodnaHpq2XKUO0QOrNYev1eD9igE4e69SHTOz7dz5OAfE/h7s9dPrKqc9Q7znsa A8AlzGSws3tfjPIXogIZvqy7MZy8QSzBJB2VeVHtdwI7PHJtJvQKZlTFB+V9/LNowuZX 67gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qicYRfhrWuEuUSPRLcoUEGSVRXqyNG7ToceFM2NVMcA=; b=S4PRK8uROJOALu6STDAEcY5xV+8A8o/ywob9s79vXuCiV3ap09d3VkgPQa3XwVT5EO a3AdSu24mdGqG2JVW40s1ASYBzIHYPW38jxG0AERKq0lGq9852dnxU7tz20p9wE/oOaJ YMsbSxWIQ22H4FPMa/hAKHFXC+z6yRCjvcMfHBHFytj/7pPnEx/RwH7kHFai9aCkXKVY Nx6XlmkIJuO4EPe+IoRCrf1eTuGa03XIHZpbFtuguj/aDWPtr7grX6anbcczZMakg1xJ na1X1In5T+cPMKLag6YkqsDlE7JUNyKdbMesi2VXx/Ei2a3MxdF4ISIkVbziqwHJHMQG KKjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CLv7Df7e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a17-20020a170906685100b006f3941cda0bsi14449372ejs.129.2022.05.03.20.26.20; Tue, 03 May 2022 20:26:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CLv7Df7e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242164AbiECTtv (ORCPT + 99 others); Tue, 3 May 2022 15:49:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242106AbiECTtf (ORCPT ); Tue, 3 May 2022 15:49:35 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EEF41EC69; Tue, 3 May 2022 12:46:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651607162; x=1683143162; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=15VPEkkpNfoHEDQrDJC9rIeebWmswoBg5hQZL9hNclE=; b=CLv7Df7eErjcC4fll0pkV6Dh89yb565cCCltpnCxmRQjjeCcn3uf1Stk xgtMHKc+7S3E3dLJh5fJM0IuxBIzOBcKoM2RAzkEy4dKdGkScI2DxBH/O dsGy8CeFabI10L7PAJihpevqsgwW61e9d3OFmF2gXKg4/0VDACPrJ1Fxb LurIUh2K8vhL08NK5YOhGvEXcUAtvDuHPR1Fi3/aMNpHCB9JNOin3Nzr5 UEl5TVVbUmZ+uUXTKqdHHto57WK1/4wxLtGJQtErzRTTHzzSvQhHX+9WA OFy3WTxp5AzbhpAYuRFmewHXLQK1h5RoMgwZXLEkTw9y164KuAR++UWvn Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10336"; a="248114162" X-IronPort-AV: E=Sophos;i="5.91,196,1647327600"; d="scan'208";a="248114162" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2022 12:46:00 -0700 X-IronPort-AV: E=Sophos;i="5.91,196,1647327600"; d="scan'208";a="584345940" Received: from rhweight-wrk1.ra.intel.com ([137.102.106.43]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2022 12:45:59 -0700 From: matthew.gerlach@linux.intel.com To: dinguyen@kernel.org, robh+dt@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: Matthew Gerlach Subject: [PATCH v2 3/3] arm64: dts: intel: add device tree for n6000 Date: Tue, 3 May 2022 12:45:46 -0700 Message-Id: <20220503194546.1287679-4-matthew.gerlach@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220503194546.1287679-1-matthew.gerlach@linux.intel.com> References: <20220503194546.1287679-1-matthew.gerlach@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthew Gerlach Add a device tree for the n6000 instantiation of Agilex Hard Processor System (HPS). Signed-off-by: Matthew Gerlach --- v2: - fix copy engine node name - fix compatible field for copy engine - remove redundant status field - add compatibility field for the board - fix SPDX - fix how osc1 clock frequency is set --- arch/arm64/boot/dts/intel/Makefile | 3 +- .../boot/dts/intel/socfpga_agilex_n6000.dts | 76 +++++++++++++++++++ 2 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/intel/socfpga_agilex_n6000.dts diff --git a/arch/arm64/boot/dts/intel/Makefile b/arch/arm64/boot/dts/intel/Makefile index 0b5477442263..c2a723838344 100644 --- a/arch/arm64/boot/dts/intel/Makefile +++ b/arch/arm64/boot/dts/intel/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only -dtb-$(CONFIG_ARCH_INTEL_SOCFPGA) += socfpga_agilex_socdk.dtb \ +dtb-$(CONFIG_ARCH_INTEL_SOCFPGA) += socfpga_agilex_n6000.dtb \ + socfpga_agilex_socdk.dtb \ socfpga_agilex_socdk_nand.dtb \ socfpga_n5x_socdk.dtb dtb-$(CONFIG_ARCH_KEEMBAY) += keembay-evm.dtb diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex_n6000.dts b/arch/arm64/boot/dts/intel/socfpga_agilex_n6000.dts new file mode 100644 index 000000000000..6f8b7bf7a53f --- /dev/null +++ b/arch/arm64/boot/dts/intel/socfpga_agilex_n6000.dts @@ -0,0 +1,76 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2021-2022, Intel Corporation + */ +#include "socfpga_agilex.dtsi" + +/ { + model = "SoCFPGA Agilex n6000"; + compatible = "intel,socfpga-agilex-n6000", "intel,socfpga-agilex"; + + aliases { + serial0 = &uart1; + serial1 = &uart0; + ethernet0 = &gmac0; + ethernet1 = &gmac1; + ethernet2 = &gmac2; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory { + device_type = "memory"; + /* We expect the bootloader to fill in the reg */ + reg = <0 0 0 0>; + }; + + soc { + agilex_hps_bridges: bus@80000000 { + compatible = "simple-bus"; + reg = <0x80000000 0x60000000>, + <0xf9000000 0x00100000>; + reg-names = "axi_h2f", "axi_h2f_lw"; + #address-cells = <0x2>; + #size-cells = <0x1>; + ranges = <0x00000000 0x00000000 0xf9000000 0x00001000>; + + hps_cp_eng@0 { + compatible = "intel,hps-copy-engine"; + reg = <0x00000000 0x00000000 0x00001000>; + }; + }; + }; +}; + +&osc1 { + clock-frequency = <25000000>; +}; + +&uart0 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + spidev: spidev@0 { + status = "okay"; + compatible = "linux,spidev"; + spi-max-frequency = <25000000>; + reg = <0>; + }; +}; + +&watchdog0 { + status = "okay"; +}; + +&fpga_mgr { + status = "disabled"; +}; -- 2.25.1