Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2786897ybi; Sun, 2 Jun 2019 01:06:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqx14XbKV6NPidtMTNo0NMWZ/KZWZ/7sqgTEOUAvI1xgrjfWRZOHdU4tesA0hjD1FHgWyeLJ X-Received: by 2002:a63:2224:: with SMTP id i36mr20899319pgi.70.1559462798283; Sun, 02 Jun 2019 01:06:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559462798; cv=none; d=google.com; s=arc-20160816; b=Juk7Fwtuy54qcp7ugisW6t0ty3KqDYy+6gGVMmwbtafiIGHsi8l+HciPb05fb3ONYa 29vXottNW8gXs1A1ef3nPi8telT2u9ji23QkZesFXnVP1BJ6Xl2KKWjb02XmwufJjZV8 eof6EZplgYBdiPVGichVCMIu+7MJb2Sf23DY6HjVNB6KjFRD5vdC5b6Q7vbSQBdi3w0i ChQWRogKtFn9uSNH5iCmD7tkm6oBbsEET5uKbraaSpPIhFFNSCRqaFVHrq6S2mKwVRtG WljRdAkyCGgypNoSVabGQ2MhLzmhB6eUERnpn4GSfr+LRu+6ygseSHljIr0s4p57tHgf SiPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QmaqjHAcXNQW/qmNDVGvURxfu0pBpsioEB7U9HBButg=; b=afPZbrG1TLI6CCDQpuzQ9O+/hSXNKfYYyCFsWLCv2pVE+jR7S287IX7i05GIcuFBAC hFAf+6UnxYgCBIdd+cSg4PWLpivAlPhZoOxrYVa5Debkt8049C7/TsjkCOULfbcM9KKD OPBm9dUCFEKJIAs+MOpbGTzke10FjCmvJhJ/hcHrd190qYnVMQ8aPPUYR4LFWdMT2gBK FNZMjMLnQbDL0URLVxhz37NjtYGSLKTvmcBkgXqeLwYMrx4VcMI6UFto4zuTwSnqNkB5 fstbYDHnL+ODSg62nm+EDBN/Xb0LG6Np47YUAeRGgADj2EIoZO4EgQqmbM4U6hQD9ApA X8Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=c5AyJHJQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3si14649089pff.279.2019.06.02.01.06.23; Sun, 02 Jun 2019 01:06:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=c5AyJHJQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726830AbfFBIFQ (ORCPT + 99 others); Sun, 2 Jun 2019 04:05:16 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:33116 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726803AbfFBIFO (ORCPT ); Sun, 2 Jun 2019 04:05:14 -0400 Received: by mail-wm1-f65.google.com with SMTP id v19so9309927wmh.0 for ; Sun, 02 Jun 2019 01:05:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QmaqjHAcXNQW/qmNDVGvURxfu0pBpsioEB7U9HBButg=; b=c5AyJHJQQn97Ig9xKz8VpCWMryghMHrJJ5H1EhXWar+zpiY77POV6FQ/f0W8sQe2JJ euGG9MOHa9sn+CCDz8+DTOz1jBhPKK6oIP1h37OLQAJYYppanEEku4MHBIYPwKx+qM9U XHTaoe1VYB8AUcH4I+aGlsAMTVjY5Yfu6x9QA0Z4dr76lV3znrqxsyQIoMxbu4q1XJ24 7UVQCB4ltN02xRMu0o6R40KsJwZlS7uAXHkh0fppA9y++QOt+q0dpcDASZH7MSqH9xlH iHb558RaW03WzD6ukiB54q+sd/SU4uARYNhCmqPcJFFYZiW43pFDmmIejBAttCUJY09y +5PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QmaqjHAcXNQW/qmNDVGvURxfu0pBpsioEB7U9HBButg=; b=WfDoHN4cdmeRr4OrFjPFXwmOobUVsEKLzhEQZ6rLma+efV5rpjxgBep1xe3BMTsHDb OGz2CkLE1Qw9c5rX9Cz9DgZK8CI8fwxOFjDoOyY3SZLdk2tREiPOqUEzDOIURVdJlBhu /WQRpvM+rCeMH4ZWla6Gz1gxmhO/AEpuEaovZmDNh1WFnATeB126OoN/XME+rN/sGfDW GzsPkCbxM3RhDrpW4OTcEX/CfxAOG9wO1igwlfaW1Ph74K7HxlgNOpvGYrOfHHsFIXu3 DB0iHNbLO1Duzg0G37fYQvgi3+Z0wUNJ3up7fU3vaTjKZVCPBLYnW81aWD+lW/YU5ml1 XUqw== X-Gm-Message-State: APjAAAWYUwrWj+2FMBk1R5J0naD3/5k07Uk08JBQ3mWh/PzelchWjqg7 t5vSeUYfo1WXiu6qlM36MM5H/LCh5Ms= X-Received: by 2002:a05:600c:2243:: with SMTP id a3mr10379885wmm.83.1559462711525; Sun, 02 Jun 2019 01:05:11 -0700 (PDT) Received: from viisi.fritz.box (217-76-161-89.static.highway.a1.net. [217.76.161.89]) by smtp.gmail.com with ESMTPSA id l190sm10186301wml.16.2019.06.02.01.05.09 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 02 Jun 2019 01:05:11 -0700 (PDT) From: Paul Walmsley To: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Cc: Paul Walmsley , Rob Herring , Mark Rutland , Palmer Dabbelt , Albert Ou , devicetree@vger.kernel.org Subject: [PATCH v3 5/5] riscv: dts: add initial board data for the SiFive HiFive Unleashed Date: Sun, 2 Jun 2019 01:05:00 -0700 Message-Id: <20190602080500.31700-6-paul.walmsley@sifive.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190602080500.31700-1-paul.walmsley@sifive.com> References: <20190602080500.31700-1-paul.walmsley@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add initial board data for the SiFive HiFive Unleashed A00. Currently the data populated in this DT file describes the board DRAM configuration and the external clock sources that supply the PRCI. This third version incorporates changes based on more comments from Rob Herring . Signed-off-by: Paul Walmsley Signed-off-by: Paul Walmsley Cc: Rob Herring Cc: Mark Rutland Cc: Palmer Dabbelt Cc: Albert Ou Cc: devicetree@vger.kernel.org Cc: linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/riscv/boot/dts/sifive/Makefile | 2 + .../boot/dts/sifive/hifive-unleashed-a00.dts | 67 +++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 arch/riscv/boot/dts/sifive/Makefile create mode 100644 arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts diff --git a/arch/riscv/boot/dts/sifive/Makefile b/arch/riscv/boot/dts/sifive/Makefile new file mode 100644 index 000000000000..baaeef9efdcb --- /dev/null +++ b/arch/riscv/boot/dts/sifive/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +dtb-y += hifive-unleashed-a00.dtb diff --git a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts new file mode 100644 index 000000000000..1de4ea1577d5 --- /dev/null +++ b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts @@ -0,0 +1,67 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* Copyright (c) 2018-2019 SiFive, Inc */ + +/dts-v1/; + +#include "fu540-c000.dtsi" + +/* Clock frequency (in Hz) of the PCB crystal for rtcclk */ +#define RTCCLK_FREQ 1000000 + +/ { + #address-cells = <2>; + #size-cells = <2>; + model = "SiFive HiFive Unleashed A00"; + compatible = "sifive,hifive-unleashed-a00", "sifive,fu540-c000"; + + chosen { + }; + + cpus { + timebase-frequency = ; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x0 0x80000000 0x2 0x00000000>; + }; + + soc { + }; + + hfclk: hfclk { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <33333333>; + clock-output-names = "hfclk"; + }; + + rtcclk: rtcclk { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = ; + clock-output-names = "rtcclk"; + }; +}; + +&qspi0 { + flash@0 { + compatible = "issi,is25wp256", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <50000000>; + m25p,fast-read; + spi-tx-bus-width = <4>; + spi-rx-bus-width = <4>; + }; +}; + +&qspi2 { + status = "okay"; + mmc@0 { + compatible = "mmc-spi-slot"; + reg = <0>; + spi-max-frequency = <20000000>; + voltage-ranges = <3300 3300>; + disable-wp; + }; +}; -- 2.20.1