Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2419768rdb; Tue, 3 Oct 2023 23:50:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZUCNAMkXhOgeMPEUYp2VmPa2s7ksND8Uyb7xG8h2/WLnO4xQ8iAbya0crM3Gjd5SEeBb6 X-Received: by 2002:a17:903:22cb:b0:1c4:5e9e:7865 with SMTP id y11-20020a17090322cb00b001c45e9e7865mr2013757plg.0.1696402232574; Tue, 03 Oct 2023 23:50:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696402232; cv=pass; d=google.com; s=arc-20160816; b=YkirRVeopDymP6oizTszxj0q7jRwjFLD1uMfNfLC2LfrTuZgPxEKPk/R7gVe0ARRhZ iqcHkk1jpC0JJKbkuJ62fgWSUH5R2rNa5SpHoCmvmrqC16nRffvjCuPs/FCNB4Tk2hzG 5dzVjFgMUg8JuVMy1S08ldDgI8bkggNH1j6BB5yHUJDkVt+bafTeMeSEmnUPX0zYMtgv rn3j3fsJ0bPs9okfnCiql26434oJv70OxXjiNsbaDolVsLkKLqLcPfDowCmtfNtkVKBL yWU40ffooMMl4j1MQ4jTbw0aCIAmXad8f/7KlSiBy833dPLe05QJARZyGXUeXa2/aXY2 O6oA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:subject:user-agent:date :message-id:dkim-signature; bh=xEAmoCkEb3uv9hE7547pV45Hn0IwRQxY2PmeftrPutE=; fh=Kjerr4VjXMjzABHdZ49ZQY2KGSXA143Mta4Z2pn7Ag8=; b=Te5o/5pTP7x3YkRN/FDqAH/xaQtWR43H4EkOYI7RBL8uAY0FPRxrBMND2Hj0SzZn21 Qtjp2aBVUIjFtrTXReyttP/NgOr09bVPbIL2z062zYsfB1ML0dD3MpYdGuDAVBRr06W+ 7nnat3RAS0X149ElkuUFc9M3K/qqM1OQjPhCq3kjDGpbxPlhO5LTOfVbhtJvq95ycfQk q4Ktn5iRyC4RgbgJVYTErquTOVPs9/kz7Q2Yjx5cINs2995RloJSeVX+7IdVt6MXjaXp cXXAef2RfOAL8zpDmPzMsCYuSXB2Kko0u6KDqdqhwg210tRC65ewcRaGJABQCL57Htqp 0mzA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=WvpuEVxt; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id kk7-20020a170903070700b001bde9e8a29fsi2818687plb.183.2023.10.03.23.50.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 23:50:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=WvpuEVxt; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7B3F081CEB0A; Tue, 3 Oct 2023 23:50:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232770AbjJDGub (ORCPT + 99 others); Wed, 4 Oct 2023 02:50:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbjJDGua (ORCPT ); Wed, 4 Oct 2023 02:50:30 -0400 Received: from IND01-BMX-obe.outbound.protection.outlook.com (mail-bmxind01olkn2053.outbound.protection.outlook.com [40.92.103.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C30D3AC; Tue, 3 Oct 2023 23:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HhkodXDwy87hFD5VZ4Xc6Jnb0pXTrsCaCW5PXw8Ls3FVOgiVs3bWXKeFcRTEyd/+o9wA9j0vwl5tbAUlGvdrvYgswH/RKWmSiqRmQIQMjdKXx/m/xj0ONFnIooQpv6VBQpkMxgRBfKmm0SEWPC/xI2vl+l2pFrcqC6QyDH1KGJxsGWnkbg5OYjtMnb2xo6Gj659wAtszGHXlUhlE0+oQHdPh6nWPSTfwxaU5sKT2G5LbT0gYIRmoOGnQfMZ16eZsMjDezCP9LP9ezXi2lUWgNPlyXGgpcnzkmbCWBE9LniTi9Bmaogdl7QLukemMwAcrWvGF/Mt4phSPpM4tX5mjkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xEAmoCkEb3uv9hE7547pV45Hn0IwRQxY2PmeftrPutE=; b=FKHPL7OPPBJOu5oI17ZV6nlGH7je6PdJ8EYnlG+u9EdX1fD9zEa3J5rHJChTmjq1Frr5ZfQjLzhqia/EQ3xmnwqdHIzPkDycD7vpl8OSKPwdBQ69Qp0E7ey8277wGp+So9rQ+caDA26F6s4zpjF5FH0iU+HlbPZriVeDihsGybwNd+dLPuvXuoiq8sosPcqqCsmMF4SClpshja3ibutlEB8lKVNNboLyjUoTTIzyhQwQE/cGSAU402jXdRShjsk+nP8k6eJluP9RNyw4Ysy4TaxEmxnfclgZWSY1JN0WExjH1GpN0eRA698kHMvLRo/D2h7whRvbAh9auB+UNunfrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xEAmoCkEb3uv9hE7547pV45Hn0IwRQxY2PmeftrPutE=; b=WvpuEVxtRLPZY/INlMavWN+7DNW0+9eVa7MvnBeq92IBG7xd0FBtOfzCeR14WPEiQAZnr1l5xGMgntG/sM5QVQ90drPLGiNlzaQMfDGbVG4RvY9NNV/lAgSrlV4eRtBSnFna2DUfrZ9UvWRwkXZqqjEDrsK3P4uhqqCAYh49dXl5mPm3DSJzEzfB+5cqXTN/hPmIX86YpE7MMnLjwYO6kckaFgycuFdJrdxwFEQjSQeg0TamLNoU+ziURo+e8gT4I3nX3sYXZ8uk+xGfTrNRWibZ1Xlxwxi3ORGVSOjVE6ktEsBfq28DsnZp0Mw093QgyPlvQpQfWu8gt3IJBDC+xg== Received: from MA0P287MB0332.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:ab::5) by PN2P287MB1529.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:1b6::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.35; Wed, 4 Oct 2023 06:50:16 +0000 Received: from MA0P287MB0332.INDP287.PROD.OUTLOOK.COM ([fe80::efe9:8d54:281b:23f7]) by MA0P287MB0332.INDP287.PROD.OUTLOOK.COM ([fe80::efe9:8d54:281b:23f7%3]) with mapi id 15.20.6838.028; Wed, 4 Oct 2023 06:50:16 +0000 Message-ID: Date: Wed, 4 Oct 2023 14:50:12 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 5/5] riscv: dts: sophgo: add Milk-V Duo board device tree To: Jisheng Zhang , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Albert Ou , Daniel Lezcano , Anup Patel Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Inochi Amaoto , chao.wei@sophgo.com, xiaoguang.xing@sophgo.com References: <20230930123937.1551-1-jszhang@kernel.org> <20230930123937.1551-6-jszhang@kernel.org> From: Chen Wang In-Reply-To: <20230930123937.1551-6-jszhang@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TMN: [dx3Ypcn0iAHjKS7PQFzamStSi/E20KCb] X-ClientProxiedBy: SI2PR01CA0018.apcprd01.prod.exchangelabs.com (2603:1096:4:191::7) To MA0P287MB0332.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:ab::5) X-Microsoft-Original-Message-ID: <87effa78-7d9a-48e3-982d-e30b057f6ead@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MA0P287MB0332:EE_|PN2P287MB1529:EE_ X-MS-Office365-Filtering-Correlation-Id: 5c27e667-4e23-42e7-ac83-08dbc4a62a66 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 40t5Deb3GZQZt4K2tIqM4zzMeN3Hmbx3b9ZiZMl1+41KK/eg6mXVVN09QyK81kazVs+/X9IqklrJ9PvtxEAE4uQGL1XDE7BpnbSUgKt/QyuXH4FNEOS/H2JBSfFGOKNs1gsiEwuMQwBHX10P9hEpYxpo3khcICFRR3UvBE6r388wP8ITpKuH0KwYoA0IL4mVeSexveMyxkk+8Ad2Cz88zqEik1my0ssBKItkc8V+N/RRcPRHnWEw3CAtmlnbH1CH3sfG6uVHBTujZhjJ/toNT5+EoWpC66kCMWq8jcek8oh1xqobPHhqTrGuj0skZK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MEVvQTJNT3pDd3J1a0UvcE90?= =?utf-8?B?Mkt6RWVtUXlLQ0d5ZSsvcmlDZ3VZT3Y2TUdpeGlacnVuTFZnd2puZjFZZ3Nh?= =?utf-8?B?OFh2V0dyeDVvbEJrU1kvWGJjV0U2amo4NjFhcnFld3gzdzVISUpWSzRsTjVy?= =?utf-8?Q?05jwrgq+JISHlYdOT47up0DVajlFwR4nESDjdt/urkug=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c27e667-4e23-42e7-ac83-08dbc4a62a66 X-MS-Exchange-CrossTenant-AuthSource: MA0P287MB0332.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2023 06:50:16.2247 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN2P287MB1529 X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_MUA_MOZILLA, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED autolearn=no 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 (snail.vger.email [0.0.0.0]); Tue, 03 Oct 2023 23:50:31 -0700 (PDT) 在 2023/9/30 20:39, Jisheng Zhang 写道: > Milk-V Duo[1] board is an embedded development platform based on the > CV1800B chip. Add minimal device tree files for the development board. > > Support basic uart drivers, so supports booting to a basic shell. > > Link: https://milkv.io/duo [1] > Signed-off-by: Jisheng Zhang > --- > arch/riscv/boot/dts/sophgo/Makefile | 2 +- > .../boot/dts/sophgo/cv1800b-milkv-duo.dts | 38 +++++++++++++++++++ > 2 files changed, 39 insertions(+), 1 deletion(-) > create mode 100644 arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts > > diff --git a/arch/riscv/boot/dts/sophgo/Makefile b/arch/riscv/boot/dts/sophgo/Makefile > index 5a471b19df22..5ea9ce398ff6 100644 > --- a/arch/riscv/boot/dts/sophgo/Makefile > +++ b/arch/riscv/boot/dts/sophgo/Makefile > @@ -1,3 +1,3 @@ > # SPDX-License-Identifier: GPL-2.0 > dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb > - > +dtb-$(CONFIG_ARCH_SOPHGO) += cv1800b-milkv-duo.dtb Please adjust it in alphabetical order. > diff --git a/arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts b/arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts > new file mode 100644 > index 000000000000..3af9e34b3bc7 > --- /dev/null > +++ b/arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts > @@ -0,0 +1,38 @@ > +// SPDX-License-Identifier: (GPL-2.0 OR MIT) > +/* > + * Copyright (C) 2023 Jisheng Zhang > + */ > + > +/dts-v1/; > + > +#include "cv1800b.dtsi" > + > +/ { > + model = "Milk-V Duo"; > + compatible = "milkv,duo", "sophgo,cv1800b"; > + > + aliases { > + serial0 = &uart0; > + serial1 = &uart1; > + serial2 = &uart2; > + serial3 = &uart3; > + serial4 = &uart4; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + memory@80000000 { > + device_type = "memory"; > + reg = <0x80000000 0x3f40000>; > + }; > +}; > + > +&osc { > + clock-frequency = <25000000>; > +}; > + > +&uart0 { > + status = "okay"; > +};