From patchwork Wed Sep 27 09:02:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Wang X-Patchwork-Id: 145411 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp2686330vqu; Wed, 27 Sep 2023 07:57:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE1t6+d+QImVRcEZ4XCVMvw0R11wXwPz8d5YYeRhLNM/bswoJ4kpt2urd2jytaYn6Z+M5Yn X-Received: by 2002:a17:90a:fe88:b0:274:8ed5:6b4d with SMTP id co8-20020a17090afe8800b002748ed56b4dmr1704495pjb.11.1695826653592; Wed, 27 Sep 2023 07:57:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695826653; cv=none; d=google.com; s=arc-20160816; b=MyG3kkku6oD2SC5buiRBXEC6/C3lGBv9vdEbb3dD9zjkl86BRGqhcInW+A3OW8QI2H dnPdGJOxGBTJHq7sYkhb2Rjktj97Tk+p1LBkX3pIAcTTC2h6PqahAzZ/JVcgtNd5L3wj jjhAn7STmAh9SLm1FVNDJLiNAPKpPtwMlMhVB2RFR3yT8UyyyUW0CceBis/zc6icIMZW In9U8VD6xx2f7mDnFeNPkIvwNpimqylipM8xWClsk60Rd+JyEIv+jhnu2/3Z8eoQBPFO ZMGTfedeA/C65tcvqV3XuPOyXQ26uahB/tSRXBS94LzMZcfqfk8a9fFhxe4WT4i1s0S2 fA8Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IDfODZTn111ZZ8DX98LZ4K1E0ZmX3dAdVwjheRuwzs8=; fh=ych3hzBz9zmLlGuDzF2WmRSS+CNVfdweUxl0La5NGZk=; b=qjMU0Ukh0wnTlfOERuW4MJ5uJUR0I/VyxGoUaXP2VKgZ0e+Pbw3Zs/8KhfsNszBGY5 POdF9r5u7hF6wZ0caC8QPy0F20M8JUisOJ7cYxhJSfrUWYMcrrZF3i13JSfcyTko5YGh cMVHI9L+Ool1ZiMQauvlVpyKrRro2/HXMHG5uA3w9rH1cl8DD/raiddJTOIJ+bHb9rZ3 gY3ZcFzZbSdjOJU/RT4P729llxe8dZF7kJPGFCJqn4D+MXDZZEO4ME3ID/DYWvMlD1zz N05rbxdrEYKrmwnrf66feUY9mVzm4nXz6zl7od+sImr/H6gR+wQTbgenLWnIUZu4WHbb whgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ofj0I42w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id z10-20020a17090abd8a00b002773a93aa5asi9953333pjr.38.2023.09.27.07.57.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 07:57:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ofj0I42w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 341C38108BF6; Wed, 27 Sep 2023 02:03:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230374AbjI0JC5 (ORCPT + 24 others); Wed, 27 Sep 2023 05:02:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230344AbjI0JCx (ORCPT ); Wed, 27 Sep 2023 05:02:53 -0400 Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A8FEEB; Wed, 27 Sep 2023 02:02:52 -0700 (PDT) Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-6c0a3a2cc20so6185802a34.0; Wed, 27 Sep 2023 02:02:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695805371; x=1696410171; 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=IDfODZTn111ZZ8DX98LZ4K1E0ZmX3dAdVwjheRuwzs8=; b=Ofj0I42w3YFoRbRWbh7rvm7u8lfuzvAjQCiAdZzjQTgH32SpiUhUBTFWXbqbCmb3Hl fnTlfQu02KBBKSZXLXccsBicCNfxfsILGr5TQZ54YBA0j8+Sr3GaNRpswmykN0hHHJ9b uPLss03uRSmcjE8VNgmod7DvaNsJMxnUezk5Z8SNwfOmNol8rKct+2kpaULcakWrIoxX aG0T9cbnzgUwUzC24y/4kdWwTldjcaF97/sodIIPL4VFH0ErXT/LxHyEk4SZTDtKIcnE 8IeUEj1Bz1pZh9tPIRdxWKZbmI9efrCCbsw8yfy8kq24IjzbcEoQHsaRajoLJs59YggE 0T/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695805371; x=1696410171; 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=IDfODZTn111ZZ8DX98LZ4K1E0ZmX3dAdVwjheRuwzs8=; b=Blk8Y78WV6e4HxNuSBiZuRW0LAyo00o5H7CKfh1md82/HS9UQr8RVZNPGOVk6mwXFG Z5VEy22F/XctVlPQnNMwooghcRKmFouZnMAqX1V4FQxL/Z2PjHfJ6HlOlCGtTccfA/5t +TwBuPh6iF1inpEFrdwjvDQLGeDHxVC8AsvGflvNbWyl3tBlcmp0KBDM+oZTAKwRYBw5 37VeRVM6RY6m40A74HfJdlxOHqLMvJ53FKFnzheGYByP6Aeg25oCWS62PqIdJ1KZ+B5o 4T3rYucGYMZmzftMHZmhjyCh+TZ52sSLR8R2dcMz0HngSZrXtPu/qo1Lxl0nCQCrrKsH VlFw== X-Gm-Message-State: AOJu0YwS/xUH6FBJZTOboc9iTR7hM+ZwBcirCOcq64rDjmZOgxPYclVV +QCfgyLKvh+zrfYXSug7KIM= X-Received: by 2002:a05:6870:a693:b0:1d0:f5bd:6fe with SMTP id i19-20020a056870a69300b001d0f5bd06femr1726827oam.50.1695805371567; Wed, 27 Sep 2023 02:02:51 -0700 (PDT) Received: from localhost.localdomain ([122.8.183.87]) by smtp.gmail.com with ESMTPSA id eg46-20020a05687098ae00b001dd17c5356dsm1369946oab.11.2023.09.27.02.02.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 02:02:51 -0700 (PDT) From: Chen Wang To: aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org, devicetree@vger.kernel.org, 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, apatel@ventanamicro.com Cc: Chen Wang , Chen Wang Subject: [PATCH v3 10/11] riscv: dts: sophgo: add Milk-V Pioneer board device tree Date: Wed, 27 Sep 2023 17:02:44 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: 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 groat.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 (groat.vger.email [0.0.0.0]); Wed, 27 Sep 2023 02:03:44 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778203129132478671 X-GMAIL-MSGID: 1778203129132478671 Milk-V Pioneer [1] is a developer motherboard based on SG2042 in a standard mATX form factor. Currently only support booting into console with only uart enabled, other features will be added soon later. Link: https://milkv.io/pioneer [1] Reviewed-by: Guo Ren Acked-by: Chao Wei Signed-off-by: Chen Wang 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..72030fd727af 100644 --- a/arch/riscv/boot/dts/Makefile +++ b/arch/riscv/boot/dts/Makefile @@ -4,6 +4,7 @@ subdir-y += canaan subdir-y += microchip subdir-y += renesas subdir-y += sifive +subdir-y += sophgo subdir-y += starfive subdir-y += thead 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..49b4b9c2c101 --- /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 = "Milk-V Pioneer"; + compatible = "milkv,pioneer", "sophgo,sg2042"; + + chosen { + stdout-path = "serial0"; + }; +}; + +&uart0 { + status = "okay"; +};