Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5794803yba; Thu, 11 Apr 2019 06:04:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFSdyqZzXovXyz5UNgJ963FCoTSEczHX401Mz08PmfdxjDSa8L21pe5mzN6MXoLSLEiwDh X-Received: by 2002:a17:902:be18:: with SMTP id r24mr32643881pls.69.1554987871951; Thu, 11 Apr 2019 06:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554987871; cv=none; d=google.com; s=arc-20160816; b=zfTtFGRl+m/uhUP0MAcCGaRCSV5crEDNZsg3bnrTXgXrhARS4UaK5U6UTjHEc0fSci XXNedf4+QLLPBTO2ZLErlOfBvVYzq+tNOZc9pjF14uwj9mgkLd/O4AKZr/Ok8Gq35lho UwzYxuwr9q0PGF7RGZSgtKYIwAuCP5mE9XTc+KjZKt1guqv4ZOSqPAEQMq8uqPTU0cPb SmACMGuq4TK7cn8F/oIO6qt/GJ2jmeOtoO2zXiPa8H5JhpuOPF9OBaGDXqFc+xaNOkre 7yL87lpHrANV9YazT1pNuhCm5TL4f+Sdzl1Fc7GqB1JO4AFkaCoNiev2J9clebucnew0 FnqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XwZBf8nCINf9Uo/xmXXrSFcPjjqza9H07IufIW0b/YA=; b=o0HYfvm4PaMEpapFN/QrZ5u9m0n44rbg46YNhBBDCUmVEWnZf4F+x4UzAi63TZobin ezUhkZmsSznLpMTukoR2hJw6Z+72Ewat6e5uBsALrWrhm8NvJGa78V8pMWAzFJwf0sAg +9maWM4f4TicWIjrG5dJzWM2yvM4JMXTEvqtGeabHkSePpArz0svCGg2MmWRqE8zqd2R G7H5C+b/bnnqkUwGbTq30NbedwptHV68uEULciCwMuvYRvcW8wpVZ5sGOc8DUMAsdqBZ IckuqJGr55JCARZ7zArqLT+lZnq/+HSAwbV+a2v/TcqwkFp54/EwvzMTC4CEdNo81nTt 2x+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cofgem3n; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a22si34576356plm.263.2019.04.11.06.04.15; Thu, 11 Apr 2019 06:04:31 -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=@kernel.org header.s=default header.b=cofgem3n; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726595AbfDKNDa (ORCPT + 99 others); Thu, 11 Apr 2019 09:03:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:55116 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726014AbfDKNDa (ORCPT ); Thu, 11 Apr 2019 09:03:30 -0400 Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CDE2A21850; Thu, 11 Apr 2019 13:03:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554987808; bh=9XTYCCyJm+fbwpelfocSJVzlq8fNSgae63WzueN6KF0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=cofgem3ndsI06Xs8x9qplIdwBEHqQGWHYEGTrm4Pb1L+0DKpYnn5YRtBA4z/o0IX0 DYb44pquD02iUawKhlqwAVd5Iy5UhSkRcMC0d5tEZIfBJJFg7wkXzgoYJQz7Y1FUXb 1aV3HYbm+AS+4rkS45nVbCIx7x72o62GdzY5abzU= Received: by mail-qt1-f170.google.com with SMTP id k14so6970200qtb.0; Thu, 11 Apr 2019 06:03:28 -0700 (PDT) X-Gm-Message-State: APjAAAVEFQYJxWBxCxJX0tTre9R6r3RD2GyCFc7qlBGaEZEIXBAzdbEI wWuN3ITOL9RRniaWGFyjxxu4M/qBNKil3dLfzQ== X-Received: by 2002:ac8:3f6f:: with SMTP id w44mr39624776qtk.59.1554987807959; Thu, 11 Apr 2019 06:03:27 -0700 (PDT) MIME-Version: 1.0 References: <20190411084304.5072-2-paul.walmsley@sifive.com> <20190411084304.5072-6-paul.walmsley@sifive.com> In-Reply-To: <20190411084304.5072-6-paul.walmsley@sifive.com> From: Rob Herring Date: Thu, 11 Apr 2019 08:03:04 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 5/6] riscv: dts: add initial board data for the SiFive HiFive Unleashed To: Paul Walmsley Cc: "linux-kernel@vger.kernel.org" , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, Paul Walmsley , Rob Herring , Mark Rutland , Palmer Dabbelt , Albert Ou Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 11, 2019 at 3:43 AM Paul Walmsley wrote: > > 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 second version adds onboard SPI device data, fixes the board's > memory size, and adds changes based on 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 + > .../dts/sifive/hifive-unleashed-a00-fu540.dts | 69 +++++++++++++++++++ > 2 files changed, 71 insertions(+) > create mode 100644 arch/riscv/boot/dts/sifive/Makefile > create mode 100644 arch/riscv/boot/dts/sifive/hifive-unleashed-a00-fu540.dts > > diff --git a/arch/riscv/boot/dts/sifive/Makefile b/arch/riscv/boot/dts/sifive/Makefile > new file mode 100644 > index 000000000000..fb825db888df > --- /dev/null > +++ b/arch/riscv/boot/dts/sifive/Makefile > @@ -0,0 +1,2 @@ > +# SPDX-License-Identifier: GPL-2.0 > +dtb-$(CONFIG_ARCH_SIFIVE) += hifive-unleashed-a00-fu540.dtb > diff --git a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00-fu540.dts b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00-fu540.dts > new file mode 100644 > index 000000000000..9d35e811a3aa > --- /dev/null > +++ b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00-fu540.dts > @@ -0,0 +1,69 @@ > +// SPDX-License-Identifier: (Apache-2.0 OR GPL-2.0+) > +/* 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 (FU540-C000)"; > + compatible = "sifive,hifive-unleashed-a00-fu540", > + "sifive,hifive-unleashed-fu540", > + "sifive,fu540-c000", "sifive-fu540"; This doesn't match your schema which has 3 entries. Really, 4 entries is kind of pointless typically. Usually, just a board and SoC compatible are enough. > + > + 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,is25wp256d", "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 >