Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp213685lqe; Tue, 9 Apr 2024 22:26:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYS6Xy5dG8fwtOfT4Y27OYxttfgJg4klhCc6n+zjISkSdpmMhgM83pqehrmU6u/7cyEuscMCnTgwfF4LIibNG7CAN5nq5fOMf6LEslzQ== X-Google-Smtp-Source: AGHT+IGHAbM8vYHdygUv4i8vD+sPWLWmH+dlDx38b6gVpNg5q2saj10XfBH7YZYUF3Wsq+ZB7sa6 X-Received: by 2002:a17:90a:f187:b0:2a4:6c87:7c81 with SMTP id bv7-20020a17090af18700b002a46c877c81mr1644940pjb.22.1712726784723; Tue, 09 Apr 2024 22:26:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712726784; cv=pass; d=google.com; s=arc-20160816; b=rWky3AyTwl0pruZYQ5Rre0K8cJKrf8aalKzTHu6cFO3O/q0MNS4n4Sotq+bidk8Avu r97wpGAf7SPx8WsATfGU0UkE1hrtBMU8myBkypnnpfeC4hx1sPYo228YT6kVoRd2vgGd NJR9vnprnRB0ltMMB0bflv6pX0h5WPypEzQZsO2tuvSJ735jWFcKrrcZI9JetR5FeR1G BeNcCWy0poxVwUHd9f5Fwzq0Pi7R5u0c0Hl/CvE7tybcvoM6h/fARx3ebDlXEcTC7frd X8JBsK+Vv2U3mDvKC5ix2V78+lHuemqTBQWrAWPVVFBKJ297mix+O1PtbKDLLXR8MGUu CWAg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Um4WIpNb1+UQMrQR3QwYZbAFwR55RaRCf7rvIeJqRyQ=; fh=ThwBMSTEBelf+zoMF2FcPjaYGh47Aq9zOLVNDVnZQc4=; b=ruYnadSCLb4AB4kc7bQ3E0xdd8moZH0LdQRlMDpjhr68jIbgNxA5nXUy6TCmk8BsSK KPMdT/xy03Z0ORkmlEHR/kXWB0jlZH9WTnmDx5DY1bYm1PQ1VPHFTZLbHP44ykrxTBsl 2k7sgauUdV7STzoP/JXa8BoBKArsypYg08DbUGQmjGb5h47qiGACdHNZEQi81xMsZlpf h5skKlpoMx5GOIeN8Nw0zys+/VcJp156fwinOrDwAgQaKr3ISiO7R/vayGJ1ER55LSm8 317Ipu7igz74Xqa5Ejku8Mtt9s6Hx5U9HgSmcaaLEWtmE6w1mlDH1aDgHurLRejZxSbZ KCdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DKJGJ4TU; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-137929-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137929-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n62-20020a17090a5ac400b002a095d3ecd9si825788pji.38.2024.04.09.22.26.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 22:26:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137929-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DKJGJ4TU; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-137929-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137929-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 680D5285906 for ; Wed, 10 Apr 2024 05:26:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E301117745; Wed, 10 Apr 2024 05:26:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="DKJGJ4TU" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 9431614AA3; Wed, 10 Apr 2024 05:26:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712726775; cv=none; b=lFjrNdtGNziwCw/CiHnA8g1oW7E8arwApWuUYAdYunMoIa+Ic7sTfQoVjKT341bbUmmcbZ+fTWzltWUMw9fqpevrUFSNaWttUKv0S7ir3GZdv+i+k0wHbXGON1QRFLY9iQ3IugP4V6/ocnkjilDjDxJL51V2IFlOwhj8WqbJOKI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712726775; c=relaxed/simple; bh=Bmrmn+Z1e0QZcIQKtRBnRnegyNa+yT2pHcOA0yj1fKI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VaBlfnmPDh9ZJSP+yEuj84uyTIKQe/MAEIbMBWdsxxeQNigoT09aXqeyQgVe7o2A8X7bEzdSAXhS06VGS2pcvA4aiux0QZFWMuF0oAOvtG/FkX0CQCCmhtvrlovvqSo5fGfxkn43G41hai2Ms79269gg47DhaialUsFmWEjqPPM= 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=DKJGJ4TU; arc=none smtp.client-ip=217.70.183.194 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 Received: by mail.gandi.net (Postfix) with ESMTPSA id 1D39F40004; Wed, 10 Apr 2024 05:26:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712726765; 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=DKJGJ4TUpnK07O1tTxfbOo9Jn8xpVTX6kkZmlkw00Sk6w32AukkU75a+BZNFF3UIb4lUCn xio1pN0aJjZhkrosFz8LwK1uxNOIIc4KfIeJJUKEmu2XZWVnwJ5/JVD57couggLOZ5uKvv yA+X/UBKjnSwBajOr/NDc45wqbg1LZIR/oYW58Jel8PHi1wz4CYYHtkgg6m8C299V8uBeg 8vCRjeLn8JKgi6SQ0hQiSavczaBeG/8O+zh4PfXkAY1uKjjmtnTzJNR8TDbccGzWRVW2vx foF/5dSDWVn2cuswImvQ/z7sHzbfSmzmT7QHfApy4C76BU04asG/iPyBuXygMw== 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 v2 2/2] riscv: dts: sophgo: add initial Milk-V Duo S board support Date: Wed, 10 Apr 2024 07:25:18 +0200 Message-Id: <20240410052518.2945789-3-michael.opdenacker@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240410052518.2945789-1-michael.opdenacker@bootlin.com> References: <20240410052518.2945789-1-michael.opdenacker@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@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