Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp431571lqb; Tue, 16 Apr 2024 23:53:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVOAK3FHu0BKzm20lqD/+YXG3F1ta3ouo8mRdSrm+hgEIZMbKlRM+cltBz2qR91nVkYL6VWsmtrWYf6g2T7Pk/UGV1mHZC/8V2zU5gNaQ== X-Google-Smtp-Source: AGHT+IFRBnPtiqgT+Yjh5nz3UUSvskGgdT/rZmRUwkS+u8zk6QvogHO7z+McYqc1p1G6WGYdbugq X-Received: by 2002:a17:906:a14e:b0:a52:4da8:3600 with SMTP id bu14-20020a170906a14e00b00a524da83600mr6114490ejb.15.1713336824092; Tue, 16 Apr 2024 23:53:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713336824; cv=pass; d=google.com; s=arc-20160816; b=BT/HLwH/I4pnB80qi4FEzcjsIcJFWUwcQcaGs6ZuXxKkVgaV+8cVJmLNU4rGM0es8V u/64SyoGTq5rUSzQ6twAiOv5K5O2ehGvbbmxzy/QvPyY6mDcVZ2/GSctLjgRlOMLv7A8 l3NMgU65wTgA1ZJ8WpHVxtg/cybCDRymTl3wfilUKFMOUBs8Ls9Pm61QGSGnuZCP95Vp 69mdFrIAf7qXH4+j4EXswoyb9KMX5LRrmhlxt2xVUcGXi9HT2neMmLM+zCQ2nH0eFmF/ uXM6gVXU7kN5W0OKhjd5UR47mWk1QuCOPeOnivMruL84HZ+ona/CmRkQuloDdw2YLb/8 K/Xw== 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=/b/Bao1n++Z1U5an6jjhD+dXCmOsGr+liOlM7nOxZvM=; fh=trfmNiYiqyv2JAvFOOhONefRwb5CB5Flf26tKLhE2+A=; b=GDOQWyTNNzMtUHPmcOvnoEfzB5g5lXY6+sYz2N1hZw+5V0YtMbYT9pCm1650NVmqZQ ID7t/TLPqR7VzZpo+9uuIKY9sF0tlBkfiueYrZ0oPFsvTHowLA0dUYiToQkCEfRg+Ykw sARZD9yxobznwzwI6Ou+TxMt54cT6FaKcbJH3zFedhmNUUv97c3WHbIKAbwmEXhahPyb +hhjZDwuzc1ysTn34TLOzYjTCjN67/xPjPmGWdhEv4sOghlLd47o+IB7F5jyDkUjTdbl eDYEftlm9PTVQ3+dAjZWZIDnKa/dxqb41urZ2dscc9Rm2YWz9dx2wR3hUOSjEFLe7izX nzBA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=KobxSWXE; 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-148013-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148013-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ga38-20020a1709070c2600b00a51dc7f6d40si6584747ejc.1026.2024.04.16.23.53.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 23:53:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148013-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=KobxSWXE; 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-148013-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148013-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 am.mirrors.kernel.org (Postfix) with ESMTPS id CEA881F21BAD for ; Wed, 17 Apr 2024 06:53:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 18FC26A00C; Wed, 17 Apr 2024 06:53:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="KobxSWXE" Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 73B24657DE; Wed, 17 Apr 2024 06:53:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713336812; cv=none; b=giQEcOLaFI/CKXvaI34x7ezJw35HbTv1GLfxAatHLg/l+MsbiFHf4bFPWQJ76doQlrrPHH3Ig7QV3l3gAUOZrtpJkBX0PonrGqLfTha64x0lEJFF9CBcreSKhS0MmYaXcreFdeBkohuO4B3kCL8RUJgN3+iWb9B4QHXoEosvnYQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713336812; c=relaxed/simple; bh=6ii3AfRuA3sPBb951dxEXqbfa4ijMl3yiXbKuoGNAsw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=R55iR02ZdK3Zz1LkDlvPLlVK8EtuEf7yA4Gxp7idlfVbmX3i6M57tbHuUhgvRK8HqfG16cQcxMm9kV2PwiUMWQnbNaOF7kpxHZct/89/cJxgEpS2UWC7xGmB5tghAkgcB7cnpyYIGEq1/4Av0blcAyGxZtZf5g12Ehxr4iTZxmM= 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=KobxSWXE; arc=none smtp.client-ip=217.70.183.193 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 B3039240008; Wed, 17 Apr 2024 06:53:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713336803; 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=/b/Bao1n++Z1U5an6jjhD+dXCmOsGr+liOlM7nOxZvM=; b=KobxSWXEW6BiPs+AYecBL9IdtQJL8BhOcLZAYA+zlTOlDBkErRWan0EAHw5n2vLWvTFZSC QTWMGSCAH8Jq6tNsRss/Au19gEeDJ69/QxnLj1P2opvUpK88aHT4ZRIpU0q6pdzDf6Nfdp t9ryniF5JK8Xb7BsdVKg+noEAnVb1MjCByLmcY4p3u3OLIdThH5RQmHbHbGIalYTqYXzZQ dr62GOd3LOzu/853nw5422qaQr0LMi/oVbGaUoX59Id1knA1T+bp02R3akYMT1XIIw2RKX zOUu42gWcTI2c2Tajik951NU/GsMT8gLgTiD4mtmqygCtyDsr4dgsqZFOZAszA== 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 v5 2/2] riscv: dts: sophgo: add initial Milk-V Duo S board support Date: Wed, 17 Apr 2024 08:53:11 +0200 Message-Id: <20240417065311.3881023-3-michael.opdenacker@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240417065311.3881023-1-michael.opdenacker@bootlin.com> References: <20240417065311.3881023-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, making it possible 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 | 34 +++++++++++++++++++ 2 files changed, 35 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..c1ecf97d5e93 --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2024 Michael Opdenacker + */ + +/dts-v1/; + +#include "cv1812h.dtsi" + +/ { + model = "Milk-V Duo S"; + compatible = "milkv,duos", "sophgo,cv1812h"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x20000000>; + }; +}; + +&osc { + clock-frequency = <25000000>; +}; + +&uart0 { + status = "okay"; +}; -- 2.34.1