From nobody Fri Jul 10 12:56:25 2026 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 958C013AD34; Mon, 27 May 2024 10:28:31 +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=1716805713; cv=none; b=quRiy5PXKrJqXwmqvvhQrLB6AKBqcJ5nuZxTwZN/d3lM7mNpNNEsyx61yK0xQxEadwvdmpFNjYjET84iGtY0TcLOofposWkf9voOyJY2y3g2F+/ENMpFQFl1Y08C73MfL2hR0PP5AaAPQx6b4q59wkvBnQobkV2pyklfdumUKto= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716805713; c=relaxed/simple; bh=2P6D9YJKAp19eW39CzCjCrRS6ZRy7MT6CTnvK1alaas=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=i0YgUvAo0dp4/hkpTQw9hdm+s6/laiNkkrY5zq7Ay9dh7kfMBdLa72uYdrQm7wvutzwOmXPz6fmFpWOvj4w3yjSE0OuMHS+HhpVDahJA28MiXGme3lzZbLSNT4f2D5/anyDd4DTC2CxcOLQUv/kqyIhqoSO4rkOnZMIUtrSKoS4= 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=QYStvYcQ; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="QYStvYcQ" Received: by mail.gandi.net (Postfix) with ESMTPSA id 407AB20004; Mon, 27 May 2024 10:28:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1716805704; 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=qIEgzuBJdhqAhnahZNc6Fk08hJUNP1Ejk2wU9brIDN8=; b=QYStvYcQNL+T1zB85n3Xv9hH8cegl1i2DojpgCQBqmgfu9LcRMRz0VDgCyp1AlIpmNhfhR GVoTkbnDkAV6lGRPKW/PtqPxOaR7+YNyOJUN2l4pMAqZhIjTswu6Jx4+fRAN0QWOR8z65V QcmlTKKBLIorkln4wbj/9bFS0TaocvQgl2jrQ2wamyw0+yrjSe4Pd8YFTpgct6Um9h1H12 IBrEjCzu3LFCjO56fjhHbANTcw9J/1+7GCeB10UjPsrZbTVXMwqbCt6fW8xCVMx9r438Ee tsMF6YMF00WLljNQlUb40Gb0XIce3oij7fPG+TahMR1L/1UyqwOHFmA6SJnx9g== From: Thomas Bonnefille Date: Mon, 27 May 2024 12:28:17 +0200 Subject: [PATCH 1/5] dt-bindings: interrupt-controller: Add SOPHGO SG2002 plic 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: quoted-printable Message-Id: <20240527-sg2002-v1-1-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 compatible string for SOPHGO SG2002 Platform-Level Interruter Controller. Signed-off-by: Thomas Bonnefille Acked-by: Conor Dooley --- .../devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml |= 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/sifive,= plic-1.0.0.yaml b/Documentation/devicetree/bindings/interrupt-controller/si= five,plic-1.0.0.yaml index 709b2211276b..7e1451f9786a 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.= 0.0.yaml +++ b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.= 0.0.yaml @@ -67,6 +67,7 @@ properties: - allwinner,sun20i-d1-plic - sophgo,cv1800b-plic - sophgo,cv1812h-plic + - sophgo,sg2002-plic - sophgo,sg2042-plic - thead,th1520-plic - const: thead,c900-plic --=20 2.45.1 From nobody Fri Jul 10 12:56:25 2026 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 5E4581327E5; Mon, 27 May 2024 10:28:32 +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=1716805715; cv=none; b=tacgtBVZI2tyH1kpabMf5l5b2heJqzp+IaWgRqGLwxiX4Qe/nNSJ36kx5Br/uqzV8GD6Z2lK0BwOV0S4sS1IRTU34jSTmptLQr9qSLD7oOuiSbM5CHAI9ORK8g9VvUVsgnQjveBpI6BN/lDuF2JdoUQKMvZFFYzoJGFPs29qp2Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716805715; c=relaxed/simple; bh=vvw3fEFm/MIzHbbIvboYwwd/M6wZeRTLrFARmDAtiho=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TxCPTC6hUU1SKYMwpbn1HxX0GIsv/cL0qqMDDHIUVJB6nIMrLuqx3RmPPXbHQIFjkbkgigrbokKYEw83vLnIs+xPgMs3f19EAN3g3hssVxKfgfv+62jsECpsNCLoR/Q4aIvrQ36TVZs+OW13mFQwsQOyxipG/SXZq92aEkdBUdk= 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=QbO9iXsj; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="QbO9iXsj" Received: by mail.gandi.net (Postfix) with ESMTPSA id 2C71A2000A; Mon, 27 May 2024 10:28:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1716805705; 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=kkDr/uTE+SSoGhb8+yyec0XwQuw7fpgZQvCgauJl+yw=; b=QbO9iXsjbbJFFYLKpoNqnQNi4vhO+TOVHjmxpIt7pyL4x8fhpsc8DbvpAfBP2vDcGJ8dIX 9f9kUD+elT1qUytp8yzoI+Y7UgoExX9E9nHneyiG8RliuNra1qOtI/oFyWv3HNSUrFZV8h wVUdUwymxt45ndDI79hl7pxDhiaDYe3j8QCbjnaF4c3B3JmYSYepfw+lbMUFfR3s4APlfI pG5DYzDrNJJvo/DKkuNIpOzaazoVgH90ClAk6fC1+n3AQU/tUVSYC70Ttu1fWFDYEQ0EsC WlKdegmGmtj+TzeT6qzTg0mu1PG4PHeudaQyMJ4Mc4cXzzneT78KGXIGKOrcCA== From: Thomas Bonnefille Date: Mon, 27 May 2024 12:28:18 +0200 Subject: [PATCH 2/5] dt-bindings: timer: Add SOPHGO SG2002 clint 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: quoted-printable Message-Id: <20240527-sg2002-v1-2-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 compatible string for SOPHGO SG2002 Core-Local Interrupt Controller. Signed-off-by: Thomas Bonnefille Acked-by: Conor Dooley --- Documentation/devicetree/bindings/timer/sifive,clint.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Do= cumentation/devicetree/bindings/timer/sifive,clint.yaml index fced6f2d8ecb..b42d43d2de48 100644 --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml @@ -40,6 +40,7 @@ properties: - allwinner,sun20i-d1-clint - sophgo,cv1800b-clint - sophgo,cv1812h-clint + - sophgo,sg2002-clint - thead,th1520-clint - const: thead,c900-clint - items: --=20 2.45.1 From nobody Fri Jul 10 12:56:25 2026 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 7A5ED13AD37; Mon, 27 May 2024 10:28:33 +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=1716805715; cv=none; b=pvaA6IFQdZR8+ek13eolA56HfxdehT3eOR095YJOre7X/pMq9q91ybJA+JDsrB9t54ckWAh/5wWXfA7hP5U6Nct/3flX3v42cJtLIQ3PEBbBnY2EQAdA8gICTUsKMZeGBLyT4FtnpPywrETgYgWSEtxe8fJTHPiegsUiLZ116hI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716805715; c=relaxed/simple; bh=1iPpkAIQn8DQyrgrLx0c9R89NeNWUCfgNP3sMPgc7aI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eQzb+bqxjph+HEbUTauQV+pGVbi25ZxebNzXr8yvTH3JgLsLM7Nr5IopfAiYCdBMwDzSxcq16PZ0R6ZZLSBbC5iwr5d/TR2KSDcqya1BRHGuf/jVUW770xKxnopoAj6xJIfHJl/kOK4ddsNh3vebJYSlRdoeziabIyKnUK3u9Lc= 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=pgAZ74ca; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="pgAZ74ca" Received: by mail.gandi.net (Postfix) with ESMTPSA id 1D87E2000C; Mon, 27 May 2024 10:28:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1716805705; 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=xeGVOYKR3B2fHIUo+L7Zn5YK5ufzUrUi6zvLOQlL7kQ=; b=pgAZ74caKsdxSNh2FVx5q8JyuBkxrrLVF6NLXqPCAtSNdm2k38zpLTB+F+5amj3elVcyqm DUzkM/5WIVWfqJGcIBU7RyYxT4GJ2w3oGdFN+UJw09ZJxOPqe6f1e+a9M/bXLVJacRNI5H IZxrjrPJhfhXDjlTHOb8rtGayyonJwdSZCEu1tjXxWAcWyUBQciOPcQTP2rErzv1L011Tt rZhftlSlcs9U8z3F46RXTBd8O+SuykEw49yFLPZC+a0nqLdGd3zqaO3qwD5wxeAVxd8bCD 9uJmxqYpzKARIa3iSBQrKEfT9XoONNJg5js1YderQTmm2rMTUUpiKOM9jHmmVg== From: Thomas Bonnefille Date: Mon, 27 May 2024 12:28:19 +0200 Subject: [PATCH 3/5] dt-bindings: riscv: Add Sipeed LicheeRV Nano board compatibles 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: quoted-printable Message-Id: <20240527-sg2002-v1-3-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 Document the compatible strings for the Sipeed LicheeRV Nano board which uses the SOPHGO SG2002 SoC. Signed-off-by: Thomas Bonnefille Acked-by: Conor Dooley --- Documentation/devicetree/bindings/riscv/sophgo.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/sophgo.yaml b/Document= ation/devicetree/bindings/riscv/sophgo.yaml index 9bc813dad098..b770ead6c723 100644 --- a/Documentation/devicetree/bindings/riscv/sophgo.yaml +++ b/Documentation/devicetree/bindings/riscv/sophgo.yaml @@ -26,6 +26,10 @@ properties: - enum: - sophgo,huashan-pi - const: sophgo,cv1812h + - items: + - enum: + - sipeed,licheerv-nano + - const: sophgo,sg2002 - items: - enum: - milkv,pioneer --=20 2.45.1 From nobody Fri Jul 10 12:56:25 2026 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="A1UE6trw" 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: quoted-printable 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/s= ophgo/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 =3D "sophgo,sg2002"; + + memory@80000000 { + device_type =3D "memory"; + reg =3D <0x80000000 0x10000000>; + }; +}; + +&plic { + compatible =3D "sophgo,sg2002-plic", "thead,c900-plic"; +}; + +&clint { + compatible =3D "sophgo,sg2002-clint", "thead,c900-clint"; +}; + +&clk { + compatible =3D "sophgo,sg2000-clk"; +}; --=20 2.45.1 From nobody Fri Jul 10 12:56:25 2026 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="C8qDiWZ+" 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: quoted-printable 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/soph= go/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) +=3D cv1800b-milkv-duo.dtb dtb-$(CONFIG_ARCH_SOPHGO) +=3D cv1812h-huashan-pi.dtb +dtb-$(CONFIG_ARCH_SOPHGO) +=3D sg2002-licheerv-nano.dtb dtb-$(CONFIG_ARCH_SOPHGO) +=3D sg2042-milkv-pioneer.dtb diff --git a/arch/riscv/boot/dts/sophgo/sg2002-lichee-rv-nano.dts b/arch/ri= scv/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 =3D "LicheeRV Nano"; + compatible =3D "sipeed,licheerv-nano", "sophgo,sg2002"; + + aliases { + serial0 =3D &uart0; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; +}; + +&uart0 { + status =3D "okay"; +}; --=20 2.45.1