From mboxrd@z Thu Jan 1 00:00:00 1970 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 2C8DC16D4FC; Wed, 12 Jun 2024 08:05:57 +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=1718179560; cv=none; b=H24vxSx2UN5W+RZt2KFgt9072f0CBkewvWZpnykADI1wj1hNwxSMc75+GqGcs4JWXVuFj5UE/ljl2X2Vqsotqyc2TUOJmJqSsso0WodTCD2xRMZhUmd3dY2/aW+Sr37MQdj4cjMJkJVPXa8++EuhuhSH3W/RHvpogZnRuzYeJus= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718179560; c=relaxed/simple; bh=kmVm/2+Cc13z4CozYjPrpJBMYmQGUCRB5EcfiMCTexE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dedzjuxBdjLzrA1IoJ9CeNHscTnRo1XxVroz+8n2R3ASjDO9H7+2zPANOklNoKPpYrSGaYryopmyw38HtMgYiGvYNeZccBBcAf0Q80KM9yEMPiZXv6snN800mjLVrlHaXe4PuwkQwh+QpaLLltgOcURkC4rGB5ICsgVQvBvRbuA= 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=degHM0sl; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="degHM0sl" 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 Precedence: bulk X-Mailing-List: devicetree@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-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_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 | 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"; +}; -- 2.45.2