Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1960944lqb; Mon, 27 May 2024 03:29:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUL4nKq5RrwZwFLEnnRkFLp1oSkgiih9sdWse+aNlfirrnswTmzxujqoNkgmRn/kdT3HZFb2J99uRAIIZdbsG5fs6pyVujNlIA/plrQWA== X-Google-Smtp-Source: AGHT+IHjE9/cpXy8OQMTJIyIXSvfclACJdEaSNigYVCGejqCQ9d+RCvE3AYESBZFrMN5xnSX3I32 X-Received: by 2002:a50:c90d:0:b0:579:c145:4cdf with SMTP id 4fb4d7f45d1cf-579c1455780mr2705411a12.41.1716805782885; Mon, 27 May 2024 03:29:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716805782; cv=pass; d=google.com; s=arc-20160816; b=R4H0KZ7gPtnhDmuIy5IQIcsRaGSLIdpo48XcIzF2+8WSEMzkSn4j9CrGSGL60h7Qfy 0b51YYohyVkvuiZhEqgVrJBvRBk8UcR75DBB62ps4kMiHk+sxxr5y+xvke2brghfDYoG LdjP+F3FzNSuGlydAab30vLXzocx4uSRxgfdksBE6QJYpYDKZwPPZUMbojuPJECNGQGA Jps7iRD6pbJrv1K6HBpJMZVjxcJvnJZVozfxckEBYGYpkNHNG+TiIfUD+Up/n2B+LmZp D8sO81XgwAxC6LM3SU9Edfitok2YAG1AiQJ49Z1rCMcAS9Rc8oBLQMFZH0M8cqfW+BFJ fOjA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=VGTOM0pfiSCveUfaceYtAyHVg+Ep/GypPt5E5h7VYhY=; fh=psHYYQFavcqbGMqQnx7j2E1QJCSpvsV4kE8rG+vHt3k=; b=krNnAEW/Gby7AqAiIwmt4cpfCj4aDdzBEK+vqGbuSW/RIbjipXMlwhKWvAvQexND8b 71VJl4ErrYF+dsOFuaeAwex9a5vcxi0oSssec0h+pmVMVSNMOpfhFVVlMFq6XQtVHLiN t6nVVByEmGdHE6d1mbfAU05/1B9EDwMBU6n2gi4nvpAXWz/K1pZxB2CP4YfrMGpnTEK/ x7j7zz6t0H17vzCb3jrLyRIwlsTUIdg+Gmi77XGeAJjILrEjndsE0qoc0+4O9Lc49f3f PrSNqQDSuSG4noBmLQBs6mwOawbyrhsnRl6evfFUxkpH7ZfXlU8rA6JIGcQ4bvfwf2ip OYpg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=C8qDiWZ+; 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-190430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190430-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 4fb4d7f45d1cf-578524b04casi3744015a12.481.2024.05.27.03.29.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 03:29:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190430-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=C8qDiWZ+; 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-190430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190430-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 730641F23330 for ; Mon, 27 May 2024 10:29:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 342AF13C903; Mon, 27 May 2024 10:28:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="C8qDiWZ+" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 6667813B794; Mon, 27 May 2024 10:28:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716805717; cv=none; b=U80/2w+RMFrkcn+oW54tDyXJhhX5HPtmMPfL/wpmJRfmGiRd2z9cPWVW1CSK1KKRYDNb7BVAJdnENdEYSszApGtrSCLxpzDIWUascP0GBbiz7VvgW7hhXKBQqcKwQsSPi0uyYhnuEh72PT6Xe4LoB0GNIsWKsOh4QYpscEMD9xI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716805717; c=relaxed/simple; bh=wBDoPpS3HC83CyDFJS3wlrqWFRvwsmCF5f0hTI6RD1I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XR0gL5b+wFgPfgww1sVT8AH+o9n6Wlb95NoQ0PdZEkroj+1ffJIc0EvpJUMDgIM4DsN6kqgNtRD2V7a6hy4av1DTupudFvbZ1IROHfsmYggIv4eHRMaDbdb7r3nHETjc8IrFAHvVWJUgnCrUt3o3hyq6zl+ExlQGZFg3gX1wobQ= 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=C8qDiWZ+; arc=none smtp.client-ip=217.70.183.200 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 111DE20003; Mon, 27 May 2024 10:28:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1716805707; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VGTOM0pfiSCveUfaceYtAyHVg+Ep/GypPt5E5h7VYhY=; b=C8qDiWZ+ZcP7lbEetHICu5+RHu/QzNHwaRfaMT5c9rHwTyWtpVwralRDGgb1U7+M3Wyuy4 5sbuZxFxQvSPTqC6csIygrHHkP7k4ecR9LXvAtYK0ROIQp6eGGoZfEL8NM5d4+xRZNtuSd Qrt4Xm5XNwyjkIvPekmpmHgGahCO6ptOj9Oo686PV/U+8+4qvhbSVHtqJ2vYQ3JhAmtq3i eE20RGfMufo2L2E73dVS95n3M7lvT4pvIdRZ26QjdvMwp22dP0IvW6ha5fAeKDkn6Ssihr LF+9D6vOJ1Q+mC936oA9OB5E6uAmk2SpBMo0sQppKE3l33BrpOMCfgIpz63CuQ== From: Thomas Bonnefille Date: Mon, 27 May 2024 12:28:21 +0200 Subject: [PATCH 5/5] riscv: dts: sophgo: Add LicheeRV Nano board device tree Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240527-sg2002-v1-5-1b6cb38ce8f4@bootlin.com> References: <20240527-sg2002-v1-0-1b6cb38ce8f4@bootlin.com> In-Reply-To: <20240527-sg2002-v1-0-1b6cb38ce8f4@bootlin.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Chen Wang , Inochi Amaoto , Chao Wei Cc: Albert Ou , Palmer Dabbelt , Samuel Holland , Thomas Gleixner , Daniel Lezcano , Thomas Petazzoni , =?utf-8?q?Miqu=C3=A8l_Raynal?= , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Thomas Bonnefille X-Mailer: b4 0.13.0 X-GND-Sasl: thomas.bonnefille@bootlin.com LicheeRV Nano [1] is an embedded development platform base on the SOPHGO SG2002 chip. Add only support for UART. Link: https://wiki.sipeed.com/hardware/en/lichee/RV_Nano/1_intro.html [1] Signed-off-by: Thomas Bonnefille --- arch/riscv/boot/dts/sophgo/Makefile | 1 + .../boot/dts/sophgo/sg2002-lichee-rv-nano.dts | 25 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/arch/riscv/boot/dts/sophgo/Makefile b/arch/riscv/boot/dts/sophgo/Makefile index 57ad82a61ea6..5759b21805dc 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) += sg2002-licheerv-nano.dtb dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb diff --git a/arch/riscv/boot/dts/sophgo/sg2002-lichee-rv-nano.dts b/arch/riscv/boot/dts/sophgo/sg2002-lichee-rv-nano.dts new file mode 100644 index 000000000000..aaad2733801b --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/sg2002-lichee-rv-nano.dts @@ -0,0 +1,25 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2024 Thomas Bonnefille + */ + +/dts-v1/; + +#include "sg2002.dtsi" + +/ { + model = "LicheeRV Nano"; + compatible = "sipeed,licheerv-nano", "sophgo,sg2002"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&uart0 { + status = "okay"; +}; -- 2.45.1