From patchwork Fri Sep 15 07:24:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Wang X-Patchwork-Id: 140387 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp992038vqi; Fri, 15 Sep 2023 05:06:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE8yB9umUKtQoghxJxh44jIM2xqWX+lFrm3wmW1M74Tf/izlwPwKIG8g3Ut+064Dol0JA2a X-Received: by 2002:a05:6a00:2da2:b0:68f:c9e0:1a68 with SMTP id fb34-20020a056a002da200b0068fc9e01a68mr1527343pfb.3.1694779612629; Fri, 15 Sep 2023 05:06:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694779612; cv=none; d=google.com; s=arc-20160816; b=Sf4ksAozJE3QhgQLRyPfH8t52n3gTUo5b/GCvL3yQJ4i2TTU6vjhIShS515yjJGwFg WGr0Cj052U4TFClOwYLuLeDZ3Qva0v5xE5lKUMFJYiQ8QLKpz+moa88ghMfOOXLxXIqH R+sqTlg8CJ/vJHTT+g3kN9Cnjs0/jG3O16QzNQgNeuYKhSMUbxuzg3jnMfpNyxC6FGRo J3wAtLKslexz7DFcjGzPJd0xw7I/LkqwgkcUODD279EJVmtbySv3xj78AyRHfXnQa40Y suM2FEoSXudbeUI9nAOZ9QhCRftMkFDv4CnIC9N9LLOybBofllLzm4f6ADJOfVDdddKo 50uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=iVUDT6l1ChAeIi0RC+WcBnGHyj8AAnCtHrqteS2EV7o=; fh=ur3NGvqJIQCp2wLdcdZ1UlXg2NpLl/Vo4KNgGMjIojQ=; b=NFD6bp3gQ4vTMF/EhiSpq1drRNMNSr0tEl0TULcOR8Ls7NeeGxaO2mO8BIlWTrlh4U 8H3kBeED0oLuGAqeHThf+/idSgWO+7GybBBYD2802e5BB67fjm1nU4Zb8VZlIqgIeMpH j5x0CGyrMtQE877p3YVjcKjg3+jM2wzFfzyilOZEYlF/m6xT6lsM8D8UFozPLAzXfae0 7vusZkcdKq3oT+/MWGE6nU4GICr1t3t6sgYF+8p7kiIvxatPfXoxtsgc5moD4Xd73Irp 9TR+3nnWYlQuSN65pIelEn3Ze6zvTVDwpvkkDzksIYSSsriYmQozw7RIYiN9atya5LUA cr4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=V3MY1Ywp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id l62-20020a633e41000000b0055fdd303745si3247019pga.421.2023.09.15.05.06.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 05:06:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=V3MY1Ywp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id B0622839233B; Fri, 15 Sep 2023 00:25:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232784AbjIOHZH (ORCPT + 33 others); Fri, 15 Sep 2023 03:25:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232782AbjIOHZG (ORCPT ); Fri, 15 Sep 2023 03:25:06 -0400 Received: from mail-oo1-xc29.google.com (mail-oo1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AB8BA1; Fri, 15 Sep 2023 00:25:01 -0700 (PDT) Received: by mail-oo1-xc29.google.com with SMTP id 006d021491bc7-57358a689d2so1089353eaf.2; Fri, 15 Sep 2023 00:25:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694762700; x=1695367500; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=iVUDT6l1ChAeIi0RC+WcBnGHyj8AAnCtHrqteS2EV7o=; b=V3MY1Ywpcabxzlg0aq6AwBESyDQjCHYHlzKYqG3IsobzCfFCGZpQtecpFH5VBo3psK ak3Fb1MVuDrnledXuFEk1oqAwKJeV4ak+o63gFpDdfanmTKOgdFLTgZF7dKMGSdWNbVe teDJHJO83/FBvTBxc8mevc+VBuRXCE2/S05k25GmTRi3VHe8PY4xrfANriLzd7vlQjqx a/kw6iZUfgf8UsvO6pnEUno+EVKPZc0G2rbDaRXHrYUN88eKA2QtoW7a/ndaUcyAPiZ3 klR6wclQLxeVtopM045djYGnfTgz+NsVVOjO+7ZHze9rG06EqpUsHSauQnVXtotxMNXF pUhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694762700; x=1695367500; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iVUDT6l1ChAeIi0RC+WcBnGHyj8AAnCtHrqteS2EV7o=; b=BJMwAUKA+bguTPWOZGLkNLJ52LlRnRPPUfX/EGbuKHvvGOLga5iwfFT9VFLTlLnSlB KLEvL22ZOuXFrx16u2dcfnE3aeNf3E0D4inLpBnFT6SNl64T13O3KwtUWBbT5jtS8KvA BeCDJBi3NOGIzLzcy/GSGPDhPX1LS6xOjwO9kB0Zs5g7Mgqvq3SPoyebe+nqdVsFG8vU nA1Md8+GXf4fr6eehBF0bbhJnAzuV3AsqMpMfqGLvtPySIz9QKhoQKACyFA+J0F7BeVb OaupfHfU5/1NCsf++1wP4sPeP+LlpDB+H0Bebu+MU1C9aVMVtNrkPmLHtmEHXceYnWCi dncw== X-Gm-Message-State: AOJu0YxMMXpxJk15E6twLTynUgsYgRdHBGCCDYzcEhLp1eJeLnPdW/mB kZ+WjCoi7Xlf61X4r0wd4nuO3pKM3NJN3A== X-Received: by 2002:a05:6870:5803:b0:1b3:8cfb:78c5 with SMTP id r3-20020a056870580300b001b38cfb78c5mr1029357oap.34.1694762700635; Fri, 15 Sep 2023 00:25:00 -0700 (PDT) Received: from localhost.localdomain ([222.95.63.58]) by smtp.gmail.com with ESMTPSA id c10-20020a63a40a000000b0056b6d1ac949sm2131946pgf.13.2023.09.15.00.24.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 00:25:00 -0700 (PDT) From: Wang Chen X-Google-Original-From: Wang Chen To: linux-riscv@lists.infradead.org, conor@kernel.org, aou@eecs.berkeley.edu, krzysztof.kozlowski+dt@linaro.org, palmer@dabbelt.com, paul.walmsley@sifive.com, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, jszhang@kernel.org, guoren@kernel.org, chao.wei@sophgo.com, xiaoguang.xing@sophgo.com, Wang Chen , Inochi Amaoto Subject: [PATCH 08/12] riscv: dts: sophgo: add Milk-V Pioneer board device tree Date: Fri, 15 Sep 2023 15:24:51 +0800 Message-Id: <20230915072451.118209-1-wangchen20@iscas.ac.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Fri, 15 Sep 2023 00:25:16 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777089146284362664 X-GMAIL-MSGID: 1777105226894667392 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 Signed-off-by: Xiaoguang Xing Signed-off-by: Inochi Amaoto Signed-off-by: Wang Chen --- arch/riscv/boot/dts/Makefile | 1 + arch/riscv/boot/dts/sophgo/Makefile | 3 +++ .../boot/dts/sophgo/sg2042-milkv-pioneer.dts | 16 ++++++++++++++++ 3 files changed, 20 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 += renesas subdir-y += sifive subdir-y += starfive subdir-y += thead +subdir-y += sophgo obj-$(CONFIG_BUILTIN_DTB) := $(addsuffix /, $(subdir-y)) diff --git a/arch/riscv/boot/dts/sophgo/Makefile b/arch/riscv/boot/dts/sophgo/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) += sg2042-milkv-pioneer.dtb + diff --git a/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts new file mode 100644 index 000000000000..4f480ff88fbd --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2022 Sophgo Technology Inc. All rights reserved. + */ + +#include "sg2042.dtsi" + +/ { + model = "Milk-V Pioneer"; + compatible = "milkv,pioneer", "sophgo,sg2042"; + + info { + file-name = "sg2042-milkv-pioneer.dts"; + }; +}; +