Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp316534rdb; Sat, 30 Sep 2023 05:52:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHdPopqkf9U3lzR1YYIPJONrNQlsnVa/w6UQoVn2C5tuXpTQxAXItj5fGeFrbkIuDsv5i26 X-Received: by 2002:a05:6871:408b:b0:1e1:300e:ee95 with SMTP id kz11-20020a056871408b00b001e1300eee95mr5139618oab.45.1696078375491; Sat, 30 Sep 2023 05:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696078375; cv=none; d=google.com; s=arc-20160816; b=SpeLwyhplNHwr4RxdqqwfYIt91t0X4CIPuZyRCf0sTbnWaqvJCIa3z1H27ORliNKhP dVDCcgEzDCD7/zDgEsbkKRhNWZ7k0KyKRrlxjN8QCMPd4yUb++lH7cgQ+WPiyYRNZBsn MMCtmOFnF6PFkR5RAjePdXF2i2wXuNCplgW02xDLslWwfAT0Lbk3NvLVSSjAzL6x/0Fz yZW19+W/tv9O4v+v7+/hCbLVtBlX6jZgcKplgMWvj0PQEGGA58k70vbjdbESQsbJR85B LoyRuvEFOjxUMq08nR5dKT8lA1d4xKv+Gx3UxYxCAb/UqZcid8tL6EY3DkKb/mjP1VUP KnQQ== 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=z0X5xKiEil0VygeeH/FhUfv0z1mGz6DVOU7e1/O1WnM=; fh=7ThHOJ31hpzqZLkZyOKZ4WgZv8ifKguzg0MefKgt2oQ=; b=C+DUCUcdouEl2k/eA9Q99xl0by1ZJO5CDAKWEgOQdXFuj6Ory2Cjh7HQEClHp4+qkG BRQhN1eQBUHajnDTeEzKlce6aKgDmhtxqtOZbtRJFvZnIWBUYrzQUjCCR7TECSAxZW6s DDE4XRVFw32blXV8XPDqYKsShfncfZUVNfDRdLtElRiw0R1mInvxMQzd5dgdhPUBf7+N GnDCaW//wN8gttRYTdZOwt1LzoWEA3RVCu/HCc/HVEjDC5C202bG5CHU71NY8+dlIIew itf1kSZaImXo4gQq1x1r5aXwxfiTzOzlmBT/cC1jx8kjq0aqWCuIL6Ti5B3bmAFkWXuM 33SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pf9D5YxB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id a21-20020a63e855000000b00578a7f5a0afsi23503780pgk.357.2023.09.30.05.52.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 05:52:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pf9D5YxB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 11B1582A41E0; Sat, 30 Sep 2023 05:52:36 -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 S234219AbjI3MwY (ORCPT + 99 others); Sat, 30 Sep 2023 08:52:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234195AbjI3MwP (ORCPT ); Sat, 30 Sep 2023 08:52:15 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F353CCE for ; Sat, 30 Sep 2023 05:52:12 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1781DC433C8; Sat, 30 Sep 2023 12:52:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696078331; bh=m/SQdPZRniU8V63PbNGJZepQgR0uVjC52GDULoPYhLA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pf9D5YxB+dW6I7uWNYpDr2vWwXsZm1pPALw4GYcxrH+LFwm9F5wXyYxQNxwy3ynzI 5nbINhGExdfhweHSgEgW6mJ3bcpoEjqLia2pNDTjPIzbCxI/G0m2ClbZb+4zD9W65H TzeY2J/OOhZV4SBFmh2p5Ce276sc6Q3f+R+LoPqt0rnqAgoNd4/7a7bqey3r1m6KlG vwPSCOyXja71/KsLWfS2dry6M7jig46j44vHDaLZqg/istRzl++TjDskaHuxXhIIkV oD/sChwBPsfBAdN40+MtqKQJ4ItnSw+Yi9QDDWJjJgqXtSEHiSZysUOfuO/9Zj3a9b djMEc8zmLsLcQ== From: Jisheng Zhang To: 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 Subject: [PATCH 5/5] riscv: dts: sophgo: add Milk-V Duo board device tree Date: Sat, 30 Sep 2023 20:39:37 +0800 Message-Id: <20230930123937.1551-6-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230930123937.1551-1-jszhang@kernel.org> References: <20230930123937.1551-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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]); Sat, 30 Sep 2023 05:52:36 -0700 (PDT) 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 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"; +}; -- 2.40.1