Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1926224rwd; Thu, 18 May 2023 20:57:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5GzAjY4sUwT1+h4zS+3vY4N6O2yakKMdQRmkStDDkkLhrEA/rO0WItOMF825LS5o5zBfnv X-Received: by 2002:a05:6a20:914e:b0:100:efa1:eab0 with SMTP id x14-20020a056a20914e00b00100efa1eab0mr718378pzc.2.1684468649443; Thu, 18 May 2023 20:57:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684468649; cv=none; d=google.com; s=arc-20160816; b=Dy+7KxcOkV1B28DxEay5qO6/D1segtEciT0bahUsF7nglQW50DorIeXJfUsuwAivXp Y9cUp2FaPFA48x7yiO72dXYZN3+l4ykW/sqtHOmqyfvrTT915VwpKKrnR567GdvTHAzR JZsMjSDonTSKVDtBYy1aDboTSqf8tLyUofkBHY2STRftqd0HIx9X4cCCBlHDQbI5vE1c Kvt1u+a316GxQOU4gJo81jiIi6h7gyqinRYOf21dFwKKuerhzRh9dAea9GFr/u+xNRWS tobWF1us52xzws0tQ1OEAnafoO30h6HQsLlp3cr7La+c/BPQ2qBd3u7M1L8psP7Ou+Sv p0rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:feedback-id:dkim-signature:dkim-signature; bh=byztbFA48B3KxHPg1sNTP78K/kX6ebZPCxCFL17BNsI=; b=VnUUJQ8uqyhGb0fKIjVQNkSjobNSginOYecy5nDYhU4elykzn0iJEkw3miXf55Jo3G 4Kb9KeRFR5is6TDy2SAVmJ1a/9HSXWJQZBfva6eVqlwF1RwFPK4bwOaBnGAN4EK8TmXQ C42YbtbUKqzb/anj/rY8I0zkFALqzBFuME7IcARJY+ythIg6l3U2m7hR2GV4+OFAHPji 6s3bXpFd5WTTCVmT0HaBbDfU9EJHQ6lWJILyAqu874FIb5htdSXWC4zgY1gINkKt9f/K /hGQUlBLZrv2FepB8uCJ6WLn7ROjY87vz5scQAuzY394Ztc68Q8xLv1x9r1IfjTeEkqK sY1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=VeubOW9I; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=OsGunvFk; 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=sholland.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n22-20020a637216000000b0052c4fdffd46si2813020pgc.590.2023.05.18.20.57.16; Thu, 18 May 2023 20:57:29 -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=@sholland.org header.s=fm2 header.b=VeubOW9I; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=OsGunvFk; 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=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229611AbjESDz3 (ORCPT + 99 others); Thu, 18 May 2023 23:55:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjESDz0 (ORCPT ); Thu, 18 May 2023 23:55:26 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C5B0E75; Thu, 18 May 2023 20:55:25 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 89A183200939; Thu, 18 May 2023 23:55:23 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 18 May 2023 23:55:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1684468523; x=1684554923; bh=byztbFA48B3KxHPg1sNTP78K/kX6ebZPCxC FL17BNsI=; b=VeubOW9IoaUT+cfDj52XkwOHqR2mMFzs3B5FSpvVha0jhVxP975 Sc4ypiXOaoz2JlTDehwz3nWv7jfbNU2K6j2I98yAHzZs6S0AO4+eB9MSL8oWWahi IwQgDJRNcaspN5I2E15Psm0DBHK/pJeHMGQlhUk2Y5YFxbU1/rZuZuh8qSLXTE5A yEWLy2f7l50VOVWQt2/1Kwt36c34Z2lwgbMswOQlVo9sUoBdsfEym+YlYDr2nu+O /gi8z98ex0mVDbh30y3M47FU0F/uejT4G4VK/J/L9mHVzEH/SmjcxOplfi3HqvFu /uywWlqUB19P9TkkMwJDlU8qekPc6nIpW9w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1684468523; x=1684554923; bh=byztbFA48B3KxHPg1sNTP78K/kX6ebZPCxC FL17BNsI=; b=OsGunvFkz89A3yayg/F6UZXWa7cZffMH9zAs4O+3UB/cGhaVo6t f8y1uwFmWUdbgUDj06+P6EjYnHLOE51FSaL5wBrxBSkSrEoMX2k3EPfOVvMzZZzQ CEYA53qW8Y3lEPFupEZ/DgDsqmKcUpB2KsLqRwJxmOfNIQHYfpCA4/DpRbN1mN3G AbK8DKcfMqY7G+Cbg4g0UxNCk7A1YjOA8jzpyrsYPvhb85wKfQTDrNZHvmYJ0Blw kQaF8Z1cM2TmVDR4wMddlvvA+KIHjUuCceQ+YFsTvVWBqy5Iydna3pXEHLFCG69r 1SZ5GUOHblDe0Qc0QBhMpvwJ46Y9jz0RxoQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeigedgjeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc ggtffrrghtthgvrhhnpeekjeelleefiedthfdtgfekgeehudefudeugeffvdfhudekleel fedtteejhedutdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 18 May 2023 23:55:21 -0400 (EDT) Message-ID: Date: Thu, 18 May 2023 22:55:21 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux ppc64le; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH v4 08/10] riscv: dts: bouffalolab: add Sipeed M1s SoM and Dock devicetree Content-Language: en-US To: Jisheng Zhang , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, Palmer Dabbelt , Thomas Gleixner , Marc Zyngier , Palmer Dabbelt , Paul Walmsley , Albert Ou , Greg Kroah-Hartman , Jiri Slaby References: <20230518152244.2178-1-jszhang@kernel.org> <20230518152244.2178-9-jszhang@kernel.org> From: Samuel Holland In-Reply-To: <20230518152244.2178-9-jszhang@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi Jisheng, On 5/18/23 10:22, Jisheng Zhang wrote: > Sipeed manufactures a M1s system-on-module and dock board, add basic > support for them. > > Signed-off-by: Jisheng Zhang > Acked-by: Palmer Dabbelt > --- > arch/riscv/boot/dts/Makefile | 1 + > arch/riscv/boot/dts/bouffalolab/Makefile | 2 ++ > .../dts/bouffalolab/bl808-sipeed-m1s-dock.dts | 25 +++++++++++++++++++ > .../dts/bouffalolab/bl808-sipeed-m1s.dtsi | 21 ++++++++++++++++ > 4 files changed, 49 insertions(+) > create mode 100644 arch/riscv/boot/dts/bouffalolab/Makefile > create mode 100644 arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s-dock.dts > create mode 100644 arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s.dtsi > > diff --git a/arch/riscv/boot/dts/Makefile b/arch/riscv/boot/dts/Makefile > index f0d9f89054f8..133e6c38c9b0 100644 > --- a/arch/riscv/boot/dts/Makefile > +++ b/arch/riscv/boot/dts/Makefile > @@ -1,5 +1,6 @@ > # SPDX-License-Identifier: GPL-2.0 > subdir-y += allwinner > +subdir-y += bouffalolab > subdir-y += sifive > subdir-y += starfive > subdir-y += canaan > diff --git a/arch/riscv/boot/dts/bouffalolab/Makefile b/arch/riscv/boot/dts/bouffalolab/Makefile > new file mode 100644 > index 000000000000..5419964e892d > --- /dev/null > +++ b/arch/riscv/boot/dts/bouffalolab/Makefile > @@ -0,0 +1,2 @@ > +# SPDX-License-Identifier: GPL-2.0 > +dtb-$(CONFIG_SOC_BOUFFALOLAB) += bl808-sipeed-m1s-dock.dtb > diff --git a/arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s-dock.dts b/arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s-dock.dts > new file mode 100644 > index 000000000000..aa6cf909cd4d > --- /dev/null > +++ b/arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s-dock.dts > @@ -0,0 +1,25 @@ > +// SPDX-License-Identifier: (GPL-2.0+ or MIT) > +/* > + * Copyright (C) 2022 Jisheng Zhang > + */ > + > +/dts-v1/; > + > +#include "bl808-sipeed-m1s.dtsi" > + > +/ { > + model = "Sipeed M1s Dock"; > + compatible = "sipeed,m1s-dock", "sipeed,m1s", "bouffalolab,bl808"; > + > + aliases { > + serial3 = &uart3; > + }; > + > + chosen { > + stdout-path = "serial3:2000000n8"; > + }; > +}; > + > +&uart3 { > + status = "okay"; > +}; > diff --git a/arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s.dtsi b/arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s.dtsi > new file mode 100644 > index 000000000000..5026de768534 > --- /dev/null > +++ b/arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s.dtsi > @@ -0,0 +1,21 @@ > +// SPDX-License-Identifier: (GPL-2.0+ or MIT) > +/* > + * Copyright (C) 2022 Jisheng Zhang > + */ > + > +/dts-v1/; > + > +#include "bl808.dtsi" > + > +/ { > + compatible = "sipeed,m1s", "bouffalolab,bl808"; > + > + memory@50000000 { > + device_type = "memory"; > + reg = <0x50000000 0x04000000>; > + }; Especially since the SoC contains three heterogeneous CPUs, the firmware may want to divide the PSRAM among them, so I do not think it is a good idea to define this statically. (Or would all of the DTs contain this same node, and then use reserved-memory nodes to cover the other CPUs' allocations?) Regards, Samuel > +}; > + > +&xtal { > + clock-frequency = <40000000>; > +};