From nobody Thu Feb 12 12:34:59 2026 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 624FB45948; Wed, 12 Jun 2024 08:05:54 +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=1718179556; cv=none; b=dqH60cebZKbjJ9sfwkt8BOCx7rwl/69bK1A3NeU0mYt7EOrUZZZy6954A8oesXvYV3Ipl5epLm84UELMMwGiOQJpHaPtA3Ia2gQzhZO63RrYw938ThGsx9apdViiC3bHifQSTmeQemPvLK/SbpObjNdeU2SXj+rHWWH1lDoZX1g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718179556; c=relaxed/simple; bh=+yD8zK9+XjLMtfwamhcjq/5dyPTnT6qCI6yk+j6NyTc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UxfqyE9C3NYRRK/R3FvWv7hHQe4OMdoVMSvJzEIa/ENtaCyp6WxLnx1WOmOe4e2knqSyBlK2hkcQsJKb30Y88wzfni3JiuzDTildU4LR/RuPwWoO2i5POUp8GqcejwL5FCnqfiMlA1COO/xtwLSFDMvpZ29rWrzMFap60OST+PE= 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=TsSjxCoL; 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="TsSjxCoL" Received: by mail.gandi.net (Postfix) with ESMTPSA id D48471C0003; Wed, 12 Jun 2024 08:05:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1718179552; 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=i1K8B2o5VvOLQkzF58aU6k+CVJVSICxBTxdSF8PhKqU=; b=TsSjxCoLHStaX8mNGaMC7L1mRtC5V5APx+wWoSTsGJ+zithm6AdRY/MoGi0QB1eFPRNWio ai4YJEfnAiv7JMw7oDYbXWWpYu4ph8oD2DPzaF8Cfo5k2QfrZ+nFYRtykEH8t97N5Bk2g+ E9E3mCQpOR8UqNvfO0LcRg/8y1doJTeEI3vXu46icE0sywj59TDy+TMu8zBfTdKPW97ay+ KVJh9NR1BpiTowh8qsz88yjjgq06z0vLTeAYQ2BRJffG1m4MBx2bwZGVl7G+CVjuNwJXNs tylrk35vnIwlknmqGM43is03m4iecRR5AOaSG/eNocrm7ufbmf3/YyfuB0V0Sw== From: Thomas Bonnefille Date: Wed, 12 Jun 2024 10:02:31 +0200 Subject: [PATCH v2 1/6] riscv: dts: sophgo: Put sdhci compatible in dt of specific SoC 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: <20240612-sg2002-v2-1-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 Remove SDHCI compatible for CV1800b from common dtsi file to put it in the specific dtsi file of the CV1800b. This commits aims at following the same guidelines as in the other nodes of the CV18XX family. Signed-off-by: Thomas Bonnefille --- arch/riscv/boot/dts/sophgo/cv1800b.dtsi | 4 ++++ arch/riscv/boot/dts/sophgo/cv18xx.dtsi | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/sophgo/cv1800b.dtsi b/arch/riscv/boot/dts/= sophgo/cv1800b.dtsi index ec9530972ae2..b9cd51457b4c 100644 --- a/arch/riscv/boot/dts/sophgo/cv1800b.dtsi +++ b/arch/riscv/boot/dts/sophgo/cv1800b.dtsi @@ -25,3 +25,7 @@ &clint { &clk { compatible =3D "sophgo,cv1800-clk"; }; + +&sdhci0 { + compatible =3D "sophgo,cv1800b-dwcmshc"; +}; diff --git a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi b/arch/riscv/boot/dts/s= ophgo/cv18xx.dtsi index 891932ae470f..7247c7c3013c 100644 --- a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi +++ b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi @@ -288,7 +288,6 @@ uart4: serial@41c0000 { }; =20 sdhci0: mmc@4310000 { - compatible =3D "sophgo,cv1800b-dwcmshc"; reg =3D <0x4310000 0x1000>; interrupts =3D <36 IRQ_TYPE_LEVEL_HIGH>; clocks =3D <&clk CLK_AXI4_SD0>, --=20 2.45.2 From nobody Thu Feb 12 12:34:59 2026 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 6CB6316C6B7; Wed, 12 Jun 2024 08:05:55 +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=1718179557; cv=none; b=PI1pBjAIUz/haO4GbQBwrX/G8WfPMnGg+qvNdzNC6drf/QF8NLSYwuppMuBO5TOS75A0sprYDzck6DNBKnimiqAHkECZZgfSb3IEzd7F3qt+EJtk5BdrEexBDcmgX73Po2tuwl9pT248qrn+Ra4nhZp5mDsVlt/z/22EMOvz6eE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718179557; c=relaxed/simple; bh=Im8ghuseOTJoJEaNxYsrQz2yqU/F6Hgaz6qtpvWf0NY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=emtXxXRyHLXKyjHyBviC1GEefGhvjRlMhPjzmQ14R1n9pSIdpTxbmutFp3JDPyolJRyAe02ID5nDJuSA7cl6x+/Ktu2MllXt64Jh1fa3sD1mPRV+/FAg9cPaQsdtY+kTWFKNK6bDV4J0Zv4aZG0ibGK/qqNIirudXeBtg/ZUoxY= 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=fX4zOSoH; 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="fX4zOSoH" Received: by mail.gandi.net (Postfix) with ESMTPSA id C31C71C000A; Wed, 12 Jun 2024 08:05:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1718179553; 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=Fie/5opLxx7Vo9z7CQ4tW6ySP0dMVwgo4tZMrJ7+8Hw=; b=fX4zOSoHT01iVPcv6evonc/as95kPfsOfRzlDVCaxx5RQ+HFYFX8CYPDBG7hxYb53Hv7n1 RPyiJmRSxTLj0IaDSA4S0SQDS0PPoaxaoUeMC12voacrcVhqx1RmQbO3vD+4wJ8Oz74tnr vmaMm2Szini4O5OaCwndVB3GvXGR2pPxitsDZ+ReSuOJaIPwzkbshuaIjo1tgFK2J0CHSW NhdBDI1pYjJ/3N5mmbrytqT/LGFcvJwNUEV3v4RKjEIQlOAlIHzQOU6A0VVYuS1vwe2B/V yUwgmermU1rs6dtaEd+Zh5Dsja24u+G/tpKRvQKUmerUkh4aXutSkMBvIbPidQ== From: Thomas Bonnefille Date: Wed, 12 Jun 2024 10:02:32 +0200 Subject: [PATCH v2 2/6] 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: <20240612-sg2002-v2-2-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 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.2 From nobody Thu Feb 12 12:34:59 2026 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 1BB3516C84F; Wed, 12 Jun 2024 08:05:55 +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=1718179558; cv=none; b=bAkRS8cd796SqMImlD17FImShJUskkvZH+lmDVARBrGmxiOVnGxuWEhEPYDNlxx/f3haVou3MMPLcAZquyxYAYppaU9fPoVopI6lEzzhDpbe7P9eKIb2oLJ28jR+zOX/q4VIowuT1cwPEm5PCvWwWrTPv5saZashxKo6K0qO6A4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718179558; c=relaxed/simple; bh=Ib8yrrpZcdCi5oRjJW82Q1iR02DaQSWqK2iMiPwVqKs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=m1po3yJQdY2g0k6Sw1gOMVdikd3zO1BsiEwB9/J86n9P9jWSVnyJaFI1bgnDyzZidRplYg0/oAa9G8XjTcTfm4SGzMxanaEzb66HXEF7jQjHZCtSFPR4ktSMbPg3pGfHcshsQ4u7hskbVIWgzL3dfzs4gq1c/AkeRc5Tbl2rrcw= 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=Ajld8+/0; 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="Ajld8+/0" Received: by mail.gandi.net (Postfix) with ESMTPSA id B1FCC1C000E; Wed, 12 Jun 2024 08:05:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1718179554; 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=fkbM2qJwtk/9imxw60f78bunUUFiPrMqYiZwAAmIrOQ=; b=Ajld8+/0xw22W9o5R6Um42fCrfmJGbqWJPwkPKXIUtS8RfagN0ox9dpD4KKj20F+Ttbuha 3uBqKjfA2eQK58WwHy3+YgRHR4yJoPM2NTDszS+3hr5CI8bRHjGs1jBH58wbhuyz6GaHAl Ki1sW8HTGTOcqIfEWPOxhPj/3BMBw1iLXHH6axCZDKO1nXzvDV9KZ3U8yug4G92fTQy4v2 t6XZ1YIWZmP7E1tp2OxhnYr+d8sKz60cHKFPjaeRjsE3td3AYL8yFKFXlV9coiXBURLP2y hdpURJvM4wTGcMCl6OLg7mwkFEivxNaIUOwntwtroIooKsfrjSIm9RWg1IebGQ== From: Thomas Bonnefille Date: Wed, 12 Jun 2024 10:02:33 +0200 Subject: [PATCH v2 3/6] 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: <20240612-sg2002-v2-3-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 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.2 From nobody Thu Feb 12 12:34:59 2026 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 5DE9D16D4E0; Wed, 12 Jun 2024 08:05:56 +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=1718179559; cv=none; b=tde1LvOq1oGn5tsewJ0CcOIGm8BAFlzi6Qirqa904OeAToOiCrHLyL9dnnTdv/ei2KU42KzqkgIitLuWEs8NZW59ES2A0vlZunsPW085PGMpe8xNU/sxXCHtwv8wz3H32KvX/qSAW8EkL7MGVtY8pa2VcAM8SikT0NsVmkQCwi4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718179559; c=relaxed/simple; bh=YBCJCug0PqpqgehXQQ8lDMJr5QCEyM6dQDI5d07jY+w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Kymt6ijbT/3nn8Fkg2wvO31DiBX4rebg/oIgtP+IAU2bJG348DQP8KNx+gGqWB2h0qO0hLxhDwkyAyE3PSmpi7gbFch/7r7/pohj9XASSNK5m5RIs8xCmzreGda/lITZmAwc6K/xZPmJt63HvQ9vZYOnYa5p/FyJwJrK4yUDY+4= 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=P9tFBfnz; 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="P9tFBfnz" Received: by mail.gandi.net (Postfix) with ESMTPSA id B01AE1C0012; Wed, 12 Jun 2024 08:05:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1718179555; 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=qogXr6ddO0luZy08/pVi3ZqQWm4G2tT89hV2cFdiuz4=; b=P9tFBfnzjcd/yUAnh1Kg7TmT7TfTQJHL2DGw+MGqNWOxQHk5QVf6p3aG9Fhdtj2cUBdXsg GzO27Vbsg7QCxsFzx9YhkEUzyWXdNzYANE6hxlaGS8Fs+qTOlbwcek8YbB5vqSjJFKkFOh jp+yhpRjUfwt6hS0+Qiiynl99wqEAetVIPLFw96NnOq7XwQROx+Mu0jReqkPRKz5pPULqm 2OKBBHQ0F9qwhholJnCuZDusdmwARq+liSmJfNYmHF91C68jbASSAp/fLNTSIrSt66p/P2 qmpbrfm4A61evlbZxj789Sp0JRQfXohfGZEz1gIAQzul8N1k6DPKnFo0CfVFIQ== From: Thomas Bonnefille Date: Wed, 12 Jun 2024 10:02:34 +0200 Subject: [PATCH v2 4/6] 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: <20240612-sg2002-v2-4-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 Document the compatible strings for the Sipeed LicheeRV Nano B board which uses the SOPHGO SG2002 SoC. Signed-off-by: Thomas Bonnefille Acked-by: Conor Dooley --- Documentation/devicetree/bindings/riscv/sophgo.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/sophgo.yaml b/Document= ation/devicetree/bindings/riscv/sophgo.yaml index 9bc813dad098..a14cb10ff3f0 100644 --- a/Documentation/devicetree/bindings/riscv/sophgo.yaml +++ b/Documentation/devicetree/bindings/riscv/sophgo.yaml @@ -26,6 +26,11 @@ properties: - enum: - sophgo,huashan-pi - const: sophgo,cv1812h + - items: + - enum: + - sipeed,licheerv-nano-b + - const: sipeed,licheerv-nano + - const: sophgo,sg2002 - items: - enum: - milkv,pioneer --=20 2.45.2 From nobody Thu Feb 12 12:34:59 2026 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: 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: <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/s= ophgo/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 =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"; +}; + +&sdhci0 { + compatible =3D "sophgo,sg2002-dwcmshc"; +}; --=20 2.45.2 From nobody Thu Feb 12 12:34:59 2026 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="iIm6xzSt" 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: quoted-printable 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/soph= go/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) +=3D cv1800b-milkv-duo.dtb dtb-$(CONFIG_ARCH_SOPHGO) +=3D cv1812h-huashan-pi.dtb +dtb-$(CONFIG_ARCH_SOPHGO) +=3D sg2002-licheerv-nano-b.dtb dtb-$(CONFIG_ARCH_SOPHGO) +=3D sg2042-milkv-pioneer.dtb diff --git a/arch/riscv/boot/dts/sophgo/sg2002-licheerv-nano-b.dts b/arch/r= iscv/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 =3D "LicheeRV Nano B"; + compatible =3D "sipeed,licheerv-nano-b", "sipeed,licheerv-nano", "sophgo,= sg2002"; + + aliases { + gpio0 =3D &gpio0; + gpio1 =3D &gpio1; + gpio2 =3D &gpio2; + gpio3 =3D &gpio3; + serial0 =3D &uart0; + serial1 =3D &uart1; + serial2 =3D &uart2; + serial3 =3D &uart3; + serial4 =3D &uart4; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; +}; + +&osc { + clock-frequency =3D <25000000>; +}; + +&sdhci0 { + status =3D "okay"; + bus-width =3D <4>; + no-1-8-v; + no-mmc; + no-sdio; +}; + +&uart0 { + status =3D "okay"; +}; + +&uart1 { + status =3D "okay"; +}; + +&i2c0 { + status =3D "okay"; +}; --=20 2.45.2