Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1960858lqb; Mon, 27 May 2024 03:29:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX19yk0PLk+BbxD99CvOvZKURf0lM3qDREHBJOkdDJC8FtzTEWG+1MtwpqPhrYP4sATj9e+vVak2cyPUbqCtBo++8nAN+28SOTuITY4Tw== X-Google-Smtp-Source: AGHT+IH1NyO+u63PKlaYXgzbMD12qXFj9QOnHIHI85YXLIumA3v+LT21gYAwvbM0IQmtptiB5KQc X-Received: by 2002:a17:90a:ce07:b0:2bd:6891:7e2d with SMTP id 98e67ed59e1d1-2bf5f407646mr7712530a91.44.1716805764883; Mon, 27 May 2024 03:29:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716805764; cv=pass; d=google.com; s=arc-20160816; b=Y1cAP7VUWUp8UGqz+lnPmPQHucG6sEuBzn0Rd4bH56wGjDTWbUSKVSkgRfO1G5z/W9 K5tafq/n5ojt2p7i4bfMgwbz1Z5QIt0RPrilGh1BKkga1dEeKBG2Gs7ZPYMe4m/BUDc1 Yubg0hUnyzag7M/CVwpCvjv1iqhW23plB9PuWGkhTMY1v8hH5O4VJcWDBuAcTjZTucJg UPLC0CU9p+q7ZLR0asBPnvjBjTqP7KzQxBxhYWg5P1ZdmoKezdtif66HqNoa7Kja9kX5 NrqruIHgxdOZoFD2NWqe4WsBO8WUue80NsfLaGzIf4m1XE5tJIvk7kgAnUfYuCmBAcCL yUQQ== 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=XIHJ16TpFhGX2nBTRkvQtZEXnsd8hn00b1moPZXR/vQ=; fh=psHYYQFavcqbGMqQnx7j2E1QJCSpvsV4kE8rG+vHt3k=; b=XMg5LaxqkvIF7pjFLNcZNVP2Xku9H6d7Mt4PKOn0r9Ui1tdmmAyXhuk5a5TOhc6pgt iLKXUNbersBhuvFfGm6Bfci75fKzmUBUZGtGPjterDeBwlxzw6fWIdZcO+7rMTqtjIjs APEdrXJxs9ABvQ/YMxpVgEkEgZjy7BEfLOaAFAwIYbTNniwSV3rn818ZSOQt1Jb8qWNz 5Vu4AzX1qHStIVwNL+1Tj6Xg3FfEvqywUIsmKYAhplR3WfOUSN/dy+Y3c8xHlS6D3KK4 Amo93xOidxkE7hzpzUvf400rlk7aK/ZhqXLhQF7nxb38Wr6evambgQkVkIPPPFh2ODV5 +txQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=A1UE6trw; 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-190429-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190429-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 98e67ed59e1d1-2bf99089563si3528518a91.56.2024.05.27.03.29.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 03:29:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190429-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=A1UE6trw; 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-190429-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190429-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 87B9228370E for ; Mon, 27 May 2024 10:29:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67C1213C80E; Mon, 27 May 2024 10:28:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="A1UE6trw" 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 DC65013AD38; Mon, 27 May 2024 10:28:34 +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=1716805716; cv=none; b=OXn8wwarP+xFkS3o7luYXTLyHqDUVzysTmL2JDWw6ZDBsxNkX9ksqgDX/SWa0iY4paaXctVvKemFtkrTRYm0Ed6UjD1dQxQMSf6Zwg+ystS62qqm4M4/C+ggvvZeCyY0D+XKKiJB9y7FM4Le1Lw++mG4E5YmzTYIVVKf1C2zZ8o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716805716; c=relaxed/simple; bh=g5ME190UHe0rdFmBYPi8bSxBPlhUpTZrzCFw0rrfYIs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MoBSpxODowPL1yivdlkKBHLvKFwkBMogS/CsnZIILYZOFTavW1D0P/o+88E//j9ONdsVJUcV3ageStPCUvxv3yuwfyGMW+ORrF8aT3mq0vIiGHJ/u9NQVTGuXstAgE4A4ELk1PeecnlVdhB/MEAccIKCH8jKtyG/hfuPyvvhFP8= 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=A1UE6trw; 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 12EEF20010; Mon, 27 May 2024 10:28:26 +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=XIHJ16TpFhGX2nBTRkvQtZEXnsd8hn00b1moPZXR/vQ=; b=A1UE6trwEah+phoNBe5TXXFAu9Bzx7qqwkPJ8nGmgwkm+2IrD/3Qc72jDNuzD+r6pERDXa CC/CYpGk7Vr6d8d8jtSX2odQufsKV8zHXCIlyFA+/D2bTDsp+L97SBLgfqVscXW2hJmZL1 Pg5ID+WJ1HCyxcEKYFpLP8SM1hRELYVWRkMh9J6wzcNflPuAYesXUMbyDAMbIdFmZQmUiU 1ik9lSKwR6Tk9JOqdqxh3kKUkXXeiqGSv3xTJssP+crts4tyyNqb9T7sxSe9/ff1y3Mvf7 MvmXxzljkac2unu3KKPuiMvEb2iBt1H95pyA4kuhjqKMk0k4/wqlaWo8rw2T8A== From: Thomas Bonnefille Date: Mon, 27 May 2024 12:28:20 +0200 Subject: [PATCH 4/5] riscv: dts: sophgo: Add initial SG2002 SoC 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-4-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 Add initial device tree for the SG2002 RISC-V SoC by SOPHGO. Signed-off-by: Thomas Bonnefille --- arch/riscv/boot/dts/sophgo/sg2002.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..b266357cb5c0 --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/sg2002.dtsi @@ -0,0 +1,30 @@ +// 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"; +}; -- 2.45.1