Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1170899rdb; Wed, 20 Sep 2023 01:22:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEOy4p1Jhetfp243EqRwW6nx5KhQFL+GmsHKu3dU3VI3EZvxscoVos+deUsgHoln0YK42qc X-Received: by 2002:a17:902:7202:b0:1c4:588f:5971 with SMTP id ba2-20020a170902720200b001c4588f5971mr1193102plb.29.1695198136830; Wed, 20 Sep 2023 01:22:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695198136; cv=none; d=google.com; s=arc-20160816; b=KzPGcTBwfTxc5tDcKD2F2B5oZLu8Ehi+k5UOf0Aew6gCCMH30hQXVpFJ7P0cWcW5K5 xNc2fnbJvIh9zn+vQNo14AFOxUjILYJJoQtAoQd7d1l6Z9Rqt3tOaCGr8BSyZnXTNBt+ aeHx/9sKgkLSP+fq04+Zt73p91+qDf2pMs9yfiqNLa1EFPW7QHJPJ2Un+MYmDk6jmNfV 725/FV/+xJa+v/+p1XyACmNi6u4ZY32WrOCVm2SeAaLHnY6n5MowqqaqGmw5Atq60uad epFq/OhEziqYuf8em0gxtmysiZpfAG1dJOffJuX/zKUKkpUaWM4S85un4LykPZ5yRhKT 0J5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=oJnK3rFHRR2JbyaK1p+npM4ENxuKsG7FPfElaCC2bXs=; fh=Q+EESU9huSYD1Tg32ducik4ii8lO8vLQUXqahCvARSs=; b=SYNeSKv432hRzmJwmMCoZWscrNNlDsOxgJlbhN0XxAjrRhIKUTupkxbAKLQLgf3psZ WZi5NK0BIEkXq9RAnzB/Cv+i+r72Diww+ai2uKn+n/cCH3rz4ggCiU2kvPPqI2aOOdP3 jnqM5RMY2P86g9+bxtV5sLRoNjpfC4lkJb4rWn1eccM0U7NSjewWNwyNZuPlXjukW0sk y1Hc6Q1PtjykPV0UG7ZKzAzqOGf+Bwv+A8PgkqZFJHvi4js5JziGZzaSFGeW02LF/btC kTfX3BsF5dl0i1i0PwfhIxge8A85rPMSYKEXFOgSlonUORS650Ck9UzFOCjCPIimwVV5 ZVuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KSDwx1pp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u12-20020a170902e5cc00b001bbae3ae2bcsi11978211plf.413.2023.09.20.01.22.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 01:22:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KSDwx1pp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 1C1EA80A7302; Wed, 20 Sep 2023 01:05:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232575AbjITIFm (ORCPT + 99 others); Wed, 20 Sep 2023 04:05:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231347AbjITIFl (ORCPT ); Wed, 20 Sep 2023 04:05:41 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEAEC97 for ; Wed, 20 Sep 2023 01:05:35 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82F01C433C7; Wed, 20 Sep 2023 08:05:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695197135; bh=4z5ocVO20kmwYYtIcTCNJGr7rb3Lqyayq1Zc4dQto/0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KSDwx1ppRPVtSLYT8nXbEoPMBbj8Eege4himYGREzIF+3qgL2TR4tUcQcWso0RR/D ibCDHH9tFJgTa9gOrpnH0uiLftIyHfzQc6lPuYJohTys85YB/r2o9hv1UuCNoUp0Di 9e0rIZWLkfoen9LXSdwc4YUAKfpFchAZpyAgl8xecROwToPu2T7ekncSZAoMAqFQNt +T3LWeQUKvZuo9yKV5eQr8Qf752TWS4b1ofvSa+i5Vr2Y5mUVtGAM/olAvQul0KCo+ qjRI6cV+Tvgu6uFVDhRnVjS4NPUioY0frO/KboY4vAghbPsoL6LyjOSuDy+CNjypW9 qr/TIu/bzQQuw== Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2bffc55af02so53709001fa.2; Wed, 20 Sep 2023 01:05:35 -0700 (PDT) X-Gm-Message-State: AOJu0Yz4dyJNcm3hUH0sjm0KUyozehpiUmFL8dyxXnUtwaqj3QwYNola bUr+2idptJDhwbmWfHvX0DGfh1uPddQWc9oBcPA= X-Received: by 2002:a2e:9006:0:b0:2c0:21b6:e82e with SMTP id h6-20020a2e9006000000b002c021b6e82emr1472090ljg.4.1695197133713; Wed, 20 Sep 2023 01:05:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Guo Ren Date: Wed, 20 Sep 2023 16:05:21 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 10/11] riscv: dts: sophgo: add Milk-V Pioneer board device tree To: Chen Wang Cc: aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org, devicetree@vger.kernel.org, emil.renner.berthing@canonical.com, jszhang@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, palmer@dabbelt.com, paul.walmsley@sifive.com, robh+dt@kernel.org, xiaoguang.xing@sophgo.com, Chen Wang Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 20 Sep 2023 01:05:42 -0700 (PDT) On Wed, Sep 20, 2023 at 2:41=E2=80=AFPM Chen Wang wro= te: > > Milk-V Pioneer [1] is a developer motherboard based on SOPHON > SG2042 in a standard mATX form factor. It is a good > choice for RISC-V developers and hardware pioneers to > experience the cutting edge technology of RISC-V. > > Currently only support booting into console with only uart > enabled, other features will be added soon later. > > [1]: https://milkv.io/pioneer > > Acked-by: Xiaoguang Xing > Signed-off-by: Chen Wang > --- > arch/riscv/boot/dts/Makefile | 1 + > arch/riscv/boot/dts/sophgo/Makefile | 3 +++ > .../boot/dts/sophgo/sg2042-milkv-pioneer.dts | 19 +++++++++++++++++++ > 3 files changed, 23 insertions(+) > create mode 100644 arch/riscv/boot/dts/sophgo/Makefile > create mode 100644 arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts > > diff --git a/arch/riscv/boot/dts/Makefile b/arch/riscv/boot/dts/Makefile > index f60a280abb15..94788486f13e 100644 > --- a/arch/riscv/boot/dts/Makefile > +++ b/arch/riscv/boot/dts/Makefile > @@ -6,5 +6,6 @@ subdir-y +=3D renesas > subdir-y +=3D sifive > subdir-y +=3D starfive > subdir-y +=3D thead > +subdir-y +=3D sophgo > > obj-$(CONFIG_BUILTIN_DTB) :=3D $(addsuffix /, $(subdir-y)) > diff --git a/arch/riscv/boot/dts/sophgo/Makefile b/arch/riscv/boot/dts/so= phgo/Makefile > new file mode 100644 > index 000000000000..5a471b19df22 > --- /dev/null > +++ b/arch/riscv/boot/dts/sophgo/Makefile > @@ -0,0 +1,3 @@ > +# SPDX-License-Identifier: GPL-2.0 > +dtb-$(CONFIG_ARCH_SOPHGO) +=3D sg2042-milkv-pioneer.dtb > + > diff --git a/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts b/arch/r= iscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts > new file mode 100644 > index 000000000000..d6e8c0285d1e > --- /dev/null > +++ b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts > @@ -0,0 +1,19 @@ > +// SPDX-License-Identifier: GPL-2.0 OR MIT > +/* > + * Copyright (C) 2022 Sophgo Technology Inc. All rights reserved. > + */ > + > +#include "sg2042.dtsi" > + > +/ { > + model =3D "Milk-V Pioneer"; > + compatible =3D "milkv,pioneer", "sophgo,sg2042"; > + > + chosen: chosen { > + stdout-path =3D "serial0"; > + }; > +}; > + > +&uart0 { > + status =3D "okay"; > +}; > -- > 2.25.1 > LGTM Reviewed-by: Guo Ren --=20 Best Regards Guo Ren