Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp339969imu; Thu, 20 Dec 2018 23:32:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/V0so58wBzobVW498xx7HRDcgZyAEQPZpLPB0TOAECKRy3tqrqOEb4H4LY5uZS190aZ3aUr X-Received: by 2002:a62:4e83:: with SMTP id c125mr1429872pfb.101.1545377574983; Thu, 20 Dec 2018 23:32:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545377574; cv=none; d=google.com; s=arc-20160816; b=bZmZby+kShDDQu6Wyxk1V54S6h36Qf0dtDBOQFU/FQW6nThxCoGcD6iQsZkZI1GBHs slyW8JnVdtOYLyD+aFhj7vKXe2Syx4ct2wheoKFW7XecgKfak9GcyUAUdMj4yFaR4nOp Qfp2uGpMmy2+Mqell35cvOBW5QguqSBlDBHw1xy9FdNfkD8xdmrOC+IUeFYSeCh+zVzJ QnwouYMAPvvS+IRUz4ioeczgyxLLJA0MVp1ogy09D4RN/ilO7AHODadN8zBpbvmKB2xG +Se+2SkuTXW8Rf8LbqdxRVw7tYZLE+9mQl8laIUfClBhyUkHjPvfhZXbrZoLEZyO4J57 v25Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=gf+h2AhWr0ZeBTfaM0rmwldFKBNFrJgqCEN8pBT818o=; b=m+ztnY96x3j4SzFbhHeTmQi3rAlRg0qMP0Wvwrkkdk71wsJzWGibOd/ecumnbwfsso 3IQAhhp63QkbFIKjC6txqWke/dg8XBNz+knwh74V0XXaHDp1tHMOfE7phg3J9wKeCPzX ocCKmqTMWxgZLPo1xLsPgX2CeqVpfsidB4t3d4HEDmTT9EqOr4KATsV+EVdOMKgiJyG0 snVydwrnXss08d66dwpA9cJ1TKiayDbVd0KdWgmn3VzJxGZtT3UVGFdHAod6GoaYPIKE D/iAdxhcBa4x0lC4bpdc+o0o4Gc7GVhCoMQuqZJyQPs1SzQwRG9quuiWVBkVFxjrbWQJ K26Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 b24si19888059pgi.308.2018.12.20.23.32.39; Thu, 20 Dec 2018 23:32:54 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389947AbeLTVbZ (ORCPT + 99 others); Thu, 20 Dec 2018 16:31:25 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:44074 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728808AbeLTVbZ (ORCPT ); Thu, 20 Dec 2018 16:31:25 -0500 Received: by mail-oi1-f193.google.com with SMTP id m6so3106769oig.11; Thu, 20 Dec 2018 13:31:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=gf+h2AhWr0ZeBTfaM0rmwldFKBNFrJgqCEN8pBT818o=; b=S+ltHeI0IT0sEurmy0OhtB6iUczuNS2cFjY3pWz1+wheUmvT7lY8NhTbpdeg3ny9C7 r61IGXQiFSYrfw/XRXF8nE1JPiagXYbEH1u9+6u0Dceyrf09YoRzN22lN17FZwx8NxIN J3drsOKuKPI0cM/Yi2w2la4ZeQ3l1C8jU+s4NQpfqcN/DACb8XecUhtzsZOtdXhosGGO MsVAlCize57lJ9IJFV/73pu4RPsKJVPqpl45mOSASPVB6qth+kSunUYa3WWFsSU8l2QU WqgB45T5XWI9CUExRgqYSuSNYqLSxyb6P/bP1HbIWIyMkG3pJLE9IvQIYgFeXxnt/s+n f5Zw== X-Gm-Message-State: AA+aEWbTy0elW+Df9MTzBYnFPXHSJaR1bVxyePhGdv0Jfh0MNhQlmrfX etUSUbYN2brsNsUmKQEO/w== X-Received: by 2002:aca:ad53:: with SMTP id w80mr262988oie.148.1545341483984; Thu, 20 Dec 2018 13:31:23 -0800 (PST) Received: from localhost ([2607:fb90:1cd6:97bd:49af:e73e:5a36:3b50]) by smtp.gmail.com with ESMTPSA id c78sm16608450oig.30.2018.12.20.13.31.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Dec 2018 13:31:23 -0800 (PST) Date: Thu, 20 Dec 2018 15:31:20 -0600 From: Rob Herring To: Paul Walmsley Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Mark Rutland , Palmer Dabbelt , Albert Ou , devicetree@vger.kernel.org, Paul Walmsley Subject: Re: [PATCH 7/7] riscv: dts: add initial board data for the SiFive HiFive Unleashed Message-ID: <20181220212618.GA27359@bogus> References: <20181215052154.24347-1-paul.walmsley@sifive.com> <20181215052154.24347-8-paul.walmsley@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181215052154.24347-8-paul.walmsley@sifive.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 14, 2018 at 09:21:54PM -0800, 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. > > 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 > Signed-off-by: Paul Walmsley > Signed-off-by: Paul Walmsley > --- > arch/riscv/boot/dts/Makefile | 2 + > arch/riscv/boot/dts/sifive/Makefile | 4 ++ > .../dts/sifive/hifive-unleashed-a00-fu540.dts | 39 +++++++++++++++++++ > 3 files changed, 45 insertions(+) > create mode 100644 arch/riscv/boot/dts/Makefile > 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/Makefile b/arch/riscv/boot/dts/Makefile > new file mode 100644 > index 000000000000..dcc3ada78455 > --- /dev/null > +++ b/arch/riscv/boot/dts/Makefile > @@ -0,0 +1,2 @@ > +# SPDX-License-Identifier: GPL-2.0 > +subdir-y += sifive > diff --git a/arch/riscv/boot/dts/sifive/Makefile b/arch/riscv/boot/dts/sifive/Makefile > new file mode 100644 > index 000000000000..e120ccf5649c > --- /dev/null > +++ b/arch/riscv/boot/dts/sifive/Makefile > @@ -0,0 +1,4 @@ > +# 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..0c6afabe69e3 > --- /dev/null > +++ b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00-fu540.dts > @@ -0,0 +1,39 @@ > +// SPDX-License-Identifier: Apache-2.0 > +// SPDX-License-Identifier: GPL-2.0-or-later This should be a single line with: (Apache-2.0 OR GPL-2.0+) > +/* Copyright (c) 2018 SiFive, Inc */ > +/* See the file LICENSE for further information */ > + > +/dts-v1/; > + > +#include "fu540-c000.dtsi" > + > +/ { > + #address-cells = <2>; > + #size-cells = <2>; > + model = "SiFive HiFive Unleashed A00 (FU540-C000)" > + compatible = "sifive,hifive-unleashed-a00-fu540", > + "sifive,hifive-unleashed-fu540"; SoC compatible should be here too. > + > + chosen { > + }; > + > + memory@80000000 { > + device_type = "memory"; > + reg = <0x0 0x80000000 0x1f 0x80000000>; > + }; > + > + 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 = <1000000>; > + clock-output-names = "rtcclk"; > + }; Are these the clock inputs to the SoC or dummy clocks until you write a proper clock driver? If the former, they should be at the top level. Rob