From nobody Sat Feb 14 02:07:49 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26855CE79AC for ; Wed, 20 Sep 2023 06:41:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233397AbjITGlN (ORCPT ); Wed, 20 Sep 2023 02:41:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233393AbjITGlI (ORCPT ); Wed, 20 Sep 2023 02:41:08 -0400 Received: from mail-oo1-xc2c.google.com (mail-oo1-xc2c.google.com [IPv6:2607:f8b0:4864:20::c2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9159EF0; Tue, 19 Sep 2023 23:41:01 -0700 (PDT) Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-572a7141434so3823807eaf.2; Tue, 19 Sep 2023 23:41:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695192060; x=1695796860; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yveMbLv2+NblyHjS4ZDFugIb595kXowdDQelFhwmBqc=; b=Ah5fFIR5P2pHsNomUNvBKQVb00xh5K0/wfCh2NBg8ly77mp6r1EeD0vswYnSRQhkos 3TX7v5UaNnq+M+F5NzVzHnOqTi6/NuzECrlzbYkjBzPxaXLVyHLxfPf3A/1TZ0z+O0o/ re7kUr6wPc1ZdE4J9im+TskMCOoWUS4t6HCb8ZMqKbqjFDq8eN51ElQSn0PJPiINBsTE sFcKPnMPdkVz+FDxALnjhgf8nD8whAAffH5Hsw1PoLFh4KgJmhVHxxMOgdZddp6QLKZR 8t8kNKKZyb0/SY8pM8Hrzuv5CmFCHYTTVAdlfLgxMenEnJurq4+i1pQho3+qNr1p+Imp pHBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695192060; x=1695796860; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yveMbLv2+NblyHjS4ZDFugIb595kXowdDQelFhwmBqc=; b=xMaNgYbk144Cuofq9fgw4stw7M0LRg6ayNSAYIN9GL6NruUqkMxEUFEiOPGQuVO4gS 8VcvH+x5LlGFBafScTlS95TkUnHig7qNm8mKSON3MAc7Zvw6bFeDkmSSv1bU76y5Trri meDYI1bsbCyRObYoeiXOAOaIELnvaQTdk8y5MbnAi7sB1SXeheF1nblzaeSkWsZXZrSu M4sQskPKCyogY9qt5uXBE+3uE3M1hbO9stEyhQYSrsgvsIJNbxvdtjgZGoC1gNcZWdto VKBjdzIqpYMGRvcXCVeX732HEB4amDbCkzJl45m9do8bxZJbpIGge8lSmJwjqMHrRh6C DUvw== X-Gm-Message-State: AOJu0Yznw6X4k1pWVQlYvu5n+4L6DTR8mTIBi/PKPFahb6gZlZeL89AW n5ixrmqKY9JTU7sQkWDZTKo= X-Google-Smtp-Source: AGHT+IHpXiDlyuVx7CkluNKS075+3yRXcB1SfrU4WSQUnbNKNNVlL7D1VCjygFqYQjVrgIRXIbOxeQ== X-Received: by 2002:a05:6870:658b:b0:1d6:b404:a50a with SMTP id fp11-20020a056870658b00b001d6b404a50amr1671312oab.31.1695192060592; Tue, 19 Sep 2023 23:41:00 -0700 (PDT) Received: from localhost.localdomain ([122.8.183.87]) by smtp.gmail.com with ESMTPSA id eg50-20020a05687098b200b001db36673d92sm2220744oab.41.2023.09.19.23.40.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 23:41:00 -0700 (PDT) From: Chen Wang X-Google-Original-From: Chen Wang To: aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org, devicetree@vger.kernel.org, emil.renner.berthing@canonical.com, guoren@kernel.org, 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 Cc: Chen Wang Subject: [PATCH v2 10/11] riscv: dts: sophgo: add Milk-V Pioneer board device tree Date: Wed, 20 Sep 2023 14:40:53 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Guo Ren --- 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 =20 obj-$(CONFIG_BUILTIN_DTB) :=3D $(addsuffix /, $(subdir-y)) diff --git a/arch/riscv/boot/dts/sophgo/Makefile b/arch/riscv/boot/dts/soph= go/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/ris= cv/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"; +}; --=20 2.25.1