Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp285256lqp; Wed, 12 Jun 2024 01:09:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/1FZHR/3Lz/9749cimU2r8/xSHrspzqWFdamaDEIELN6Czr20ndjRCfpx64qOfrOq0tR6HqanX8xPf4VfYnSeiEHYiALLLCjin4VdCQ== X-Google-Smtp-Source: AGHT+IH3hyb2TLkbV4t2lXBeG20EOE6MrycBMA/cag+ozZ0tUFjHTjIBj+0xvNTB7tj0VG7pasRz X-Received: by 2002:a05:6a21:998b:b0:1b8:498e:4e18 with SMTP id adf61e73a8af0-1b8a9c45fe7mr1308597637.31.1718179796896; Wed, 12 Jun 2024 01:09:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718179796; cv=pass; d=google.com; s=arc-20160816; b=G0H9VMpI6mpIRzyvYiw0nhY9zPMi//203TQe5Yk3v61MVxPwXLD22HlQ0KrW3apZj8 tXSBWnrYiP0RhL9zeJy3GKRoC2I2weeSPPjuEViQKWikS6QZhnUIOmWLt6Hsmjzq2t5A pfW4BJz7dNdouM0TfaxPWO7rzA3C6SvvBw4375+Gig1Z9zkDDc3rkXrdovhP1LNEMQJL K4fAJEAUySkUB/ebMQH9XWkftckePjVHfE38mGfhmscRcOH4WTm+y945COUV4d1B2xNF WzsKLhm6il4fDYahS9LOTuEUE0a2KTXZ/L2mQA70wJ9eqWFjmfgChzwZXZSdwCObLKy6 bpTA== 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=8cLMXjvfEqyMBXrMbdMH+tIHzjtRz2d2ko71kBeiLcI=; fh=psHYYQFavcqbGMqQnx7j2E1QJCSpvsV4kE8rG+vHt3k=; b=iOkNROC9n26pEf3NDXHQtMQRytTTaH7k1xg5/CUmnBimfLj9uDzIHhrOZ28XZB98c/ 38whyYQC9NLf0mGREkcfuSkK4XIyJGb1B560Ak9qtp0RCFNokDapnmDG+bRB5OyBfirC pJ4i6spjwJXq/0lvAmSNat9dJSUsr2Eh54Zd9z1j+E74RkL/yDpNOsWTgny74OMLt2Mx SvwKfZKOE7omZ/qiVLdQLnwFaf+zkUBd+jRCv55/Oc+CQhZSm1RekO9gQZlBw+KLjsVd 4BHdcMnVmKnqpEi1XNsZE7cGwS6xD3uNb937m6DCzOneX21hGGFGAxfcWH3tAAalT9+l YQ/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=iIm6xzSt; 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-211140-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211140-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 d9443c01a7336-1f7167841f9si50266585ad.213.2024.06.12.01.09.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 01:09:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211140-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=iIm6xzSt; 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-211140-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211140-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 837562880B7 for ; Wed, 12 Jun 2024 08:08:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC2F316E87B; Wed, 12 Jun 2024 08:06:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="iIm6xzSt" Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 09AC216D9BC; Wed, 12 Jun 2024 08:05:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718179561; cv=none; b=JxFCo4wYtMDlCrCMGmKM3HpCejbtUblO+R3rv9hTPHXDiYywgfAPx24PVcNTteSbVTdj1nLt26eSL4/q26Mp1POPNgqQaWuuviWNwZ6NO+pmlxS8gv7Vc7xMN7hNPxHQmllGDT4KHjykegtw1awpzCwaPjPZYGGnNF3KEDE7P5E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718179561; c=relaxed/simple; bh=lnKF6PYvQD791HWTIlUfMAXz094/q4L96KMyXWEaDjY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EfTjlYrNZIpdCBbvUJ/w/mlNLHeVy8P9fLTmwdBO0fUBr3Nt8drw9x9k2RlNgxxYycXnDtg/PaWMtuhuAzd+bkWpn276nlqMDt+mkXDCcvt13z1P34/Pqvo6q4QmZd7my4TlPx3xfi+QXrTmcUFTUdqrHTHg9JV11Ar39J7Osgs= 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=iIm6xzSt; arc=none smtp.client-ip=217.70.183.197 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 929BD1C0002; Wed, 12 Jun 2024 08:05:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1718179557; 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=8cLMXjvfEqyMBXrMbdMH+tIHzjtRz2d2ko71kBeiLcI=; b=iIm6xzSt5Gxk05vhA3vKbOj/Flg8tbzPp3QN/cKBogYJuvcs37ugqloTIENU+/oT3ZpNc4 HWZHCpzucQtoxxdCoqIFz5pGwI7vySAfiprEHOLDixuuNo+9axTqW/OVPeZiyhJWa5GMA0 gQyoWAuE4m5CEuCA7j/IiEnYNsTix7n7eELU9kotTX6pP23kq2aZ5aYGBKdbQe21uAs90U kVFSHIhvJLSE+0XgQEic9+saaH+oyhVgTZP+49wE875jsA2yNjr+1rGlPynliNV9yGMap3 hnbV1Qv05b/PW68ggH7C1rxpImn/SNThR6Y5waYvlal4R8LMAEjMnFFeGBaPHg== From: Thomas Bonnefille Date: Wed, 12 Jun 2024 10:02:36 +0200 Subject: [PATCH v2 6/6] 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: <20240612-sg2002-v2-6-19a585af6846@bootlin.com> References: <20240612-sg2002-v2-0-19a585af6846@bootlin.com> In-Reply-To: <20240612-sg2002-v2-0-19a585af6846@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 B [1] is an embedded development platform based on the SOPHGO SG2002 chip, the B(ase) version is deprived of Wifi/Bluetooth and Ethernet. Add only support for UART and SDHCI. 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-licheerv-nano-b.dts | 53 ++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/arch/riscv/boot/dts/sophgo/Makefile b/arch/riscv/boot/dts/sophgo/Makefile index 57ad82a61ea6..47d4243a8f35 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-b.dtb dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb diff --git a/arch/riscv/boot/dts/sophgo/sg2002-licheerv-nano-b.dts b/arch/riscv/boot/dts/sophgo/sg2002-licheerv-nano-b.dts new file mode 100644 index 000000000000..d011fb15b097 --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/sg2002-licheerv-nano-b.dts @@ -0,0 +1,53 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2024 Thomas Bonnefille + */ + +/dts-v1/; + +#include "sg2002.dtsi" + +/ { + model = "LicheeRV Nano B"; + compatible = "sipeed,licheerv-nano-b", "sipeed,licheerv-nano", "sophgo,sg2002"; + + aliases { + gpio0 = &gpio0; + gpio1 = &gpio1; + gpio2 = &gpio2; + gpio3 = &gpio3; + serial0 = &uart0; + serial1 = &uart1; + serial2 = &uart2; + serial3 = &uart3; + serial4 = &uart4; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&osc { + clock-frequency = <25000000>; +}; + +&sdhci0 { + status = "okay"; + bus-width = <4>; + no-1-8-v; + no-mmc; + no-sdio; +}; + +&uart0 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&i2c0 { + status = "okay"; +}; -- 2.45.2