From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (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 CEA6229CEE; Wed, 10 Apr 2024 06:23:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712730201; cv=none; b=VeDvtj1SjKAI116/O1GwvGEjT1/PM8t7vaVvjYfMQ7abpK5HSIgJLbrw0e6h7SDVLVhEyUjIVIxs0ggtBDfIKvemLa43E2uZ33yZoOayoIRWf9nANrW+SmRB3v7fuewImWp1gXe+V5dntXk2OFNd75hYzT6DULJAx3vsK7d45is= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712730201; c=relaxed/simple; bh=Bmrmn+Z1e0QZcIQKtRBnRnegyNa+yT2pHcOA0yj1fKI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=kcvQhmxDvGM7faxP4Fj2tGCsMCT/4NIxUCkD8DUWcTnVx7GbRyMa+RdanJdE1DZMftpwx4reSctfAM1ggzoJMTNlbnrsyfRd6+fJt3FJJSwoMVvcizoYXLDSuqbK6slNZEbM2rXbdQSCLYgGVQz5020/JrMOVLuuw+BZn+GJclg= 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=TPxc4+eK; arc=none smtp.client-ip=217.70.183.196 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="TPxc4+eK" Received: by mail.gandi.net (Postfix) with ESMTPSA id 3A814E0004; Wed, 10 Apr 2024 06:23:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712730195; 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: in-reply-to:in-reply-to:references:references; bh=Um4WIpNb1+UQMrQR3QwYZbAFwR55RaRCf7rvIeJqRyQ=; b=TPxc4+eKqi+AV6uzZYWUQYpnwoJio+l6dU6E854mlKGG+9sE35DhMtkPriId4cnfG68K9L wgEHa/W97bfATdrwho8sPixSq80yEQtsEVboUtMhfltac0OosUdppHJKpez+YH91QU3fGE fR2fHLac6Br95MgVnBRuOcwU3e3YFqqf3O6I7A3DfYRNqdXUeu437QRYHGM4woI/5w0W+c C0vsxwV8ZAVjfUuAih8WJm44BfRv6FvLFFCD3Hzl8tb95KVIUk+BSmfPSt6EDR/L/c8Idi 52IPBY9XTsEgewsxOchA8WWZps/pWLCdbuMpZSdfNGvm6Lj6/vjW9pWXEkyBgg== From: michael.opdenacker@bootlin.com To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Chen Wang , Inochi Amaoto Cc: Michael Opdenacker , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/2] riscv: dts: sophgo: add initial Milk-V Duo S board support Date: Wed, 10 Apr 2024 08:22:54 +0200 Message-Id: <20240410062254.2955647-3-michael.opdenacker@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240410062254.2955647-1-michael.opdenacker@bootlin.com> References: <20240410062254.2955647-1-michael.opdenacker@bootlin.com> 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 SD card support, allowing to boot Linux to the command line. Link: https://lore.kernel.org/linux-riscv/171266958507.1032617.9460749136730849811.robh@kernel.org/T/#t Signed-off-by: Michael Opdenacker --- arch/riscv/boot/dts/sophgo/Makefile | 1 + .../boot/dts/sophgo/sg2000-milkv-duos.dts | 39 +++++++++++++++++++ 2 files changed, 40 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..679d2854938a --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts @@ -0,0 +1,39 @@ +// 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,cv1800b"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x20000000>; + }; +}; + +&osc { + clock-frequency = <25000000>; +}; + +&sdhci0 { + status = "okay"; + disable-wp; +}; + +&uart0 { + status = "okay"; +}; -- 2.34.1