From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C8395C67861 for ; Tue, 9 Apr 2024 06:47:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=nrs+nitQgpIaJ3r1ghhwnsYeKiASpsAoNO3i3Xp5Wg8=; b=lQizhO2utnHBGJ riUGrkdWaDaj5eRTOKyoMhXg4AUaIi9ljvi1oyEJbsEMcCxA7PPUUNWMDxToh7JuLw/8VlcNwcRc2 3eJMcP3ya9f2AgL8eAjA3ixUXmjThVkhRkKLfMrj844VyEr5Y4HnODirUO16nBS16390JwYLx8a08 /ud0R4Mn2dRM5tD8QTCwgT/jjDCTzBXtceGGvvhhx7+14MwdvHA2yUFaAEIc1YXmLCFBJhZ51hY5n cdKlInYPUOIuUD8eAE5yQZuuUBIzfoE6pdn2f9zjrNfngTFJWDdF2Qm0yfpF61g4cRJg6b+XE/y9n sMBYGuNZpq/yEjjh2YRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru5G1-00000000eNH-1Pja; Tue, 09 Apr 2024 06:47:01 +0000 Received: from relay9-d.mail.gandi.net ([217.70.183.199]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru5Fy-00000000eMA-2HEr for linux-riscv@lists.infradead.org; Tue, 09 Apr 2024 06:47:00 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 04B2AFF807; Tue, 9 Apr 2024 06:46:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712645214; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=6ryoNB5XpSfloz/6q8pX2eMqwyZYr/QlxtN0Gg+K+v4=; b=E5uSnUx7BqUopQsp6ozzcgkCtcsjKkTgQQQyQ+wBwuE+uj9lHySZO1iUQ9b2o7+P0u89PH 2LAX5RZvUhgIPKEeIC2EvxuLYCV3/90NsUohDmxPZvqhkn7nxzg0awuHEH9kegMILNnSyO +t2xm2w4BKEqiCH1CRYK20/rxyLsdySXXt+GwZ9g6b3ARfxAe1KNlG0U8mdY0hT3ufcVeu AuyLZ9uHy5IRCOwNL9hB7kkYIeELzK1ASZ5CLUwjH6VJtY6bDqgJbPT9RHJHDQD6tqRdRP G+2jGiHTCyDKiINh/P7U+q7ibBdpbCbO/eLKygVyjYM8b7XnON+2NGJEqn8e4w== From: michael.opdenacker@bootlin.com To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Michael Opdenacker , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] riscv: dts: sophgo: add initial Milk-V Duo S board device tree Date: Tue, 9 Apr 2024 08:45:04 +0200 Message-Id: <20240409064504.4010353-1-michael.opdenacker@bootlin.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-GND-Sasl: michael.opdenacker@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240408_234658_741264_76A792EA X-CRM114-Status: GOOD ( 13.08 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Michael Opdenacker This adds initial support for the Milk-V Duo S board (https://milkv.io/duo-s), enabling the serial port and read-only SD card support, allowing to boot Linux to the command line. Signed-off-by: Michael Opdenacker --- Tested with linux-next as of Apr 9, 2024, using the risc-v "defconfig" configuration. --- arch/riscv/boot/dts/sophgo/Makefile | 1 + .../boot/dts/sophgo/sg2000-milkv-duos.dts | 38 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts diff --git a/arch/riscv/boot/dts/sophgo/Makefile b/arch/riscv/boot/dts/sophgo/Makefile index 57ad82a61ea6..e008acb5240f 100644 --- a/arch/riscv/boot/dts/sophgo/Makefile +++ b/arch/riscv/boot/dts/sophgo/Makefile @@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_ARCH_SOPHGO) += cv1800b-milkv-duo.dtb dtb-$(CONFIG_ARCH_SOPHGO) += cv1812h-huashan-pi.dtb +dtb-$(CONFIG_ARCH_SOPHGO) += sg2000-milkv-duos.dtb dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb diff --git a/arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts b/arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts new file mode 100644 index 000000000000..cf2cec3cc369 --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts @@ -0,0 +1,38 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2024 Michael Opdenacker + */ + +/dts-v1/; + +#include "cv1800b.dtsi" + +/ { + model = "Milk-V Duo S"; + compatible = "milkv,duos", "sophgo,sg2000"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x20000000>; + }; +}; + +&osc { + clock-frequency = <25000000>; +}; + +&sdhci0 { + status = "okay"; +}; + +&uart0 { + status = "okay"; +}; -- 2.34.1 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C39679CC; Tue, 9 Apr 2024 06:46:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712645219; cv=none; b=NHoUhM0g077DiNHvPTpopyxiq3G65vwaPCLPitLX8dSlGuDCjzrfZe7lJIeWR7kGh/f9suder2+VUHbLyFYq6k44Zs9Fm/DZJDBpGmKurXUzRGpEnGqZ5M/NGpCjLb8c6OV3uEiBB6Dnojtr3mF7ocDOZ09wR56cEbmYKcR00VU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712645219; c=relaxed/simple; bh=6B0Ymq5uRpwiiFS6gQ99BSAtE8O9TZ3H8I3TtZjcVoo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=jpQj9pD7347FQNVJyAO2M4Cy8o96kl7Gd9NzWxsN//YHaHT5A466VRjbhA0af4Lfllc2qv/CU1Qp5Mt68mxQ9+pkym6bhQVUOf62dSJLVbcJpYQ4IcpW+Mzdyj8jBQQlgu8RYHkaDRJoDbIc0xgohYePYJWdLbT0fZLHLROL8Os= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=E5uSnUx7; arc=none smtp.client-ip=217.70.183.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="E5uSnUx7" Received: by mail.gandi.net (Postfix) with ESMTPSA id 04B2AFF807; Tue, 9 Apr 2024 06:46:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712645214; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=6ryoNB5XpSfloz/6q8pX2eMqwyZYr/QlxtN0Gg+K+v4=; b=E5uSnUx7BqUopQsp6ozzcgkCtcsjKkTgQQQyQ+wBwuE+uj9lHySZO1iUQ9b2o7+P0u89PH 2LAX5RZvUhgIPKEeIC2EvxuLYCV3/90NsUohDmxPZvqhkn7nxzg0awuHEH9kegMILNnSyO +t2xm2w4BKEqiCH1CRYK20/rxyLsdySXXt+GwZ9g6b3ARfxAe1KNlG0U8mdY0hT3ufcVeu AuyLZ9uHy5IRCOwNL9hB7kkYIeELzK1ASZ5CLUwjH6VJtY6bDqgJbPT9RHJHDQD6tqRdRP G+2jGiHTCyDKiINh/P7U+q7ibBdpbCbO/eLKygVyjYM8b7XnON+2NGJEqn8e4w== From: michael.opdenacker@bootlin.com To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Michael Opdenacker , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] riscv: dts: sophgo: add initial Milk-V Duo S board device tree Date: Tue, 9 Apr 2024 08:45:04 +0200 Message-Id: <20240409064504.4010353-1-michael.opdenacker@bootlin.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: michael.opdenacker@bootlin.com From: Michael Opdenacker This adds initial support for the Milk-V Duo S board (https://milkv.io/duo-s), enabling the serial port and read-only SD card support, allowing to boot Linux to the command line. Signed-off-by: Michael Opdenacker --- Tested with linux-next as of Apr 9, 2024, using the risc-v "defconfig" configuration. --- arch/riscv/boot/dts/sophgo/Makefile | 1 + .../boot/dts/sophgo/sg2000-milkv-duos.dts | 38 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts diff --git a/arch/riscv/boot/dts/sophgo/Makefile b/arch/riscv/boot/dts/sophgo/Makefile index 57ad82a61ea6..e008acb5240f 100644 --- a/arch/riscv/boot/dts/sophgo/Makefile +++ b/arch/riscv/boot/dts/sophgo/Makefile @@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_ARCH_SOPHGO) += cv1800b-milkv-duo.dtb dtb-$(CONFIG_ARCH_SOPHGO) += cv1812h-huashan-pi.dtb +dtb-$(CONFIG_ARCH_SOPHGO) += sg2000-milkv-duos.dtb dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb diff --git a/arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts b/arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts new file mode 100644 index 000000000000..cf2cec3cc369 --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts @@ -0,0 +1,38 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2024 Michael Opdenacker + */ + +/dts-v1/; + +#include "cv1800b.dtsi" + +/ { + model = "Milk-V Duo S"; + compatible = "milkv,duos", "sophgo,sg2000"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x20000000>; + }; +}; + +&osc { + clock-frequency = <25000000>; +}; + +&sdhci0 { + status = "okay"; +}; + +&uart0 { + status = "okay"; +}; -- 2.34.1