From patchwork Wed Jun 12 08:02:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Bonnefille X-Patchwork-Id: 13694608 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AA636C2BA12 for ; Wed, 12 Jun 2024 08:06:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EI7D2Xz0NOtO1356HsCidjoVj4z5v1PceB2vYbaOsMY=; b=L677aGLKdVyPaw 9nfo2RLWHDQylmLo4pOHzqL16PXtElOsFnRwqCIWjzxMisccDxC9xWr41CRmJxVqyxxPfk1/yKneo /NV/MJrU0HaTyUh2Az/nAGTmDfIKE7hArB40VJaH3NVUw7Pgt9hAImn/OecHV/5n801YBwcqo45bZ FnW6nVafwTwbTWhgd1DvHWFVFGFKzWD8QyaFjHU/5UHMCoKlZd6Z/Ya3U266ikp5CGHDf3PBPq6yc 8Fug7klleQbLp5epnT4y6yCCzzhZJ8GxpNF5TmPk4sG1BnREfJvf4MbNBJ08qZkTFV2Kq1vUEhL1G aPnU9Sv5IIfVC3nvhDlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHIzd-0000000Bb22-10ly; Wed, 12 Jun 2024 08:06:05 +0000 Received: from relay5-d.mail.gandi.net ([2001:4b98:dc4:8::225]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHIzV-0000000Bawq-3pCg for linux-riscv@lists.infradead.org; Wed, 12 Jun 2024 08:06:01 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id AB2461C0010; Wed, 12 Jun 2024 08:05:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1718179556; 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=WaAvV1wJincbCKSMrmm+w0xnwLCUs8vvJbqQOOgleXc=; b=degHM0slN8IfaWphgo5PXCR6xOJk+dleFilIUQ+Nt3MeR4ShjILsj4k3CN3WGOstiVZp72 jrVHbR5qQUcQEnp2tQcqBXrh+y6uQtb29LbTg6/wZGQguQx9eCQ/tUmJWzZnXg+qO6JMAI 8Mstutu2/seKUYW23VHdDQyrSwKeUYk9YFNUxEYBpQbY5AKuyd0Pva4BttBMpgohL0j+DM azuCfbpINObhqNkEvIQpZZL/GrCDLDqosalV262qMZvdbRkT4yXDJP7psSVp9V76iP7oFL qJbKz7By5/QW1dhBL19jU5pLu3+WNQR9utqJVc2sQS6sWKrTgF4Xw8OKh8lfgA== From: Thomas Bonnefille Date: Wed, 12 Jun 2024 10:02:35 +0200 Subject: [PATCH v2 5/6] riscv: dts: sophgo: Add initial SG2002 SoC device tree MIME-Version: 1.0 Message-Id: <20240612-sg2002-v2-5-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_Ray?= =?utf-8?q?nal?= , 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240612_010558_203604_A2A11686 X-CRM114-Status: UNSURE ( 9.18 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add initial device tree for the SG2002 RISC-V SoC by SOPHGO. Signed-off-by: Thomas Bonnefille --- arch/riscv/boot/dts/sophgo/sg2002.dtsi | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/riscv/boot/dts/sophgo/sg2002.dtsi b/arch/riscv/boot/dts/sophgo/sg2002.dtsi new file mode 100644 index 000000000000..0fc80da7c139 --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/sg2002.dtsi @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2024 Thomas Bonnefille + */ + +/dts-v1/; + +#include +#include "cv18xx.dtsi" + +/ { + compatible = "sophgo,sg2002"; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x10000000>; + }; +}; + +&plic { + compatible = "sophgo,sg2002-plic", "thead,c900-plic"; +}; + +&clint { + compatible = "sophgo,sg2002-clint", "thead,c900-clint"; +}; + +&clk { + compatible = "sophgo,sg2000-clk"; +}; + +&sdhci0 { + compatible = "sophgo,sg2002-dwcmshc"; +};