From nobody Wed Dec 17 10:02:19 2025 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 3540C15748F; Thu, 11 Jul 2024 10:01:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720692103; cv=none; b=kX+Rl2gnb2Ad+q9MIVLFHXR37JJIy0c8JJi2lx8ppcnCKNiLNrf9VoAgF5vb/iTgPZhuVuedb0Dn87SmrqwReJwYs76nPsW0vs+tLkprWasq1NROLF1Saz3eFQroTZ4GwRsKCn5ElWqs8Z8l6lHxx1jIssMggr6HhgJHGYfsduY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720692103; c=relaxed/simple; bh=gNdzO19tkqtEXbL7/XaqfYl1O6LdfiExoOmgGOhmUEw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rJBTy+iao5d9B7BrdaFh6GRLKBPNE+hxNKcOfADCEALe9t0FyV/+FyqOVhNPGuxgWsU5LayWYCNak3WYZd6lGpQkSwFpNMpGoiYTP+H+cENXOBPrTnrIS/GfQCUwcIBbzR3Y+uGL/yYyCrAJTsJ40OHCN8HdErb/x1I6CnN796A= 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=aTQs+JZk; arc=none smtp.client-ip=217.70.183.193 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="aTQs+JZk" Received: by mail.gandi.net (Postfix) with ESMTPSA id 7C8F524000F; Thu, 11 Jul 2024 10:01:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1720692094; 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=dhYN2esY9mLXkTt3QVpkwWv6jX6N62gsaZnkqzr2dx0=; b=aTQs+JZkyeU+XxLOy6vWw1B+cx26EgYMqWyg/XhJR5qfjwiMQnxKZFCmkVsMzaaxOcN0Ng iAuyn10+KuSSv5uyUwti+CIldlmwuMWR6XZD3bgLjUpXhiv+GqGCbkEetN4lXH60pWav8p rjRz/UQP3QQ3PNlScStCjCqwUgPZjOnhDGmBV8OjjSPPkwfjQBoCpY0ThFOySauTUjdBJS nBSQ7ZK1tKysEOkW7hiCYvV5mR7CS8IMOSts4/DOoZrOPI9gK3Spx4MzwlJRnYYfOxCSeV bIf4S3P5yUBt0iwPk5aPZo39vc4zzV3nZClYcto0XRHCDyQczrkinzBBvK6Mqg== From: Thomas Bonnefille Date: Thu, 11 Jul 2024 12:01:28 +0200 Subject: [PATCH v4 1/4] 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: <20240711-sg2002-v4-1-d97ec2367095@bootlin.com> References: <20240711-sg2002-v4-0-d97ec2367095@bootlin.com> In-Reply-To: <20240711-sg2002-v4-0-d97ec2367095@bootlin.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Chen Wang , Inochi Amaoto , Chao Wei , Conor Dooley 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 , Conor Dooley X-Mailer: b4 0.14.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 Wed Dec 17 10:02:19 2025 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 6AEF3157A61; Thu, 11 Jul 2024 10:01:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720692104; cv=none; b=JJvw228SFWxXIzH1ro6UlIslLQbyuHZ70ACY36CPcFh1xYeXuheIT7OveQZGFTzZozl4fZgeXgJAcgXOPrcchaDc+lCFaLu3u0El2EmNNNqbu+A2Kx4tBPVw/a0NKNbjOJTUCxJPRFGkhbvfH05RW2T13or7PngJGDszH+mTKCk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720692104; c=relaxed/simple; bh=ICsuZZyph/qsEnfoSNGWrzYVLZXRVSY8ETWfLPWNqKQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BdmzeE12p7UJP5W9tQJwck0PsB62lQICKdM/pwzaSVt6brGlH/moNxJZjnK9LMwp7NpOPimhnW2VXVRHYZEM4gAbkgGHVsWX2iPs3Lih5tHmKUnDZiRPkDc4opZfZ6ZlWGlctQ9LHxIvo8hLHFXw6BORBDbdWn7Up0QOO2/08nU= 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=DhW5kMsQ; arc=none smtp.client-ip=217.70.183.193 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="DhW5kMsQ" Received: by mail.gandi.net (Postfix) with ESMTPSA id 6804B24000D; Thu, 11 Jul 2024 10:01:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1720692095; 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=lwHOPxVN4WzseMpm8k0NEmyddjr++H2IEYNI4aIOG2w=; b=DhW5kMsQ5gn2k2AdT2xXDh9au2QB3+duzTCPwG6MqjA+hdRdO2GwEYQxJJJuffrgmPotH0 L+Ya3FYdDCD8fiLFtj9JnR0uivlYMN7PPmJeJnEFWm4vpKFigWy7rDLYO6B8+gGNnozqN2 qM9uL3G4BqoPjUybNkS7SSDmpGBf9em/qWn4zGW11JdEYGt7liy0CA1nJenCb1KXI5EaMM +kS+8U6rDlFvyYqCPqlrZVheLXnOVEURlooNIaLSvSyLEdrbIHk4IQDYFZU/QtAstQkPxX NwZOPMvjQ78oUUfVteK2y0x1vTkkXS25qv4KhUFScd36Vgpi+11VUvSF+7dJMQ== From: Thomas Bonnefille Date: Thu, 11 Jul 2024 12:01:29 +0200 Subject: [PATCH v4 2/4] 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: <20240711-sg2002-v4-2-d97ec2367095@bootlin.com> References: <20240711-sg2002-v4-0-d97ec2367095@bootlin.com> In-Reply-To: <20240711-sg2002-v4-0-d97ec2367095@bootlin.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Chen Wang , Inochi Amaoto , Chao Wei , Conor Dooley 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 , Conor Dooley X-Mailer: b4 0.14.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 Wed Dec 17 10:02:19 2025 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 667091581EA; Thu, 11 Jul 2024 10:01:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720692105; cv=none; b=tCPBbunkvEUL9HfRx7zEmUDAUjYkC2c8nsLvMBY6qa4qzrqD1bciP6AA8jD9O4cerY1J5fhYl9dLPp0MoOg7DkTzdKNyAo8a9QjyIrQVQbMMF0AQ4S3qKPhVJRxgDG2nUmYkTDjtT+SVUA30wdgtZ6S6smE/PdTls8wtrX4+fMY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720692105; c=relaxed/simple; bh=gC84RJ8h2bYZEQbPbgRWN83u3kUOLEVOu1SVtb/IzV8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IhZs6YP5NsKLJxeAv5f7mVzYVcKvrfFWUHuIVnYWNxDm2Dq2znGKO3At0apKetoa1LucwpK/CcjvhVSi20/LlrblU2vyX/pNqouPUEscHBcEOP4HL+T10k6FHVuKVsmY+i4P/KUKoKWbXEGuA6sG7vPaiFvE4Q4lsuGH8ANUa/Q= 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=HnfizYzz; arc=none smtp.client-ip=217.70.183.193 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="HnfizYzz" Received: by mail.gandi.net (Postfix) with ESMTPSA id 574C7240007; Thu, 11 Jul 2024 10:01:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1720692096; 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=BPkEiyyZXaXaWAKf4yoZh+8s32yqaBI0vrIZ56akVFE=; b=HnfizYzzYdSlmjzV8cvPB598TUaOqyEyaPnDoVpZ/W9wwSXPE9IoBNuELZtaBgF3fUhJ8K 54cANzKBnZZUh/Eb74GZfRDNH1S+VyNM3Vu25YJJILZMWrjdTsO8b5pth58NrZwga0YMD4 2W2nVt05Wpng6eORsmbwkZGqBDcbq0G9PQ/catMcaDFKXVxrM9/mArCymKTxl247Zc4GVb mXnJh4QQvhjFawGjE/pzjndIlJiyJkE8P5HIKzZ2LzgBeMfy17AqlMwRzftwdU/vM1E0DV IWzgtnJtSY/7ZEzSZZ2/KMoxRld9l7Srl0zgTqA+/cCLqrSVBC8svkU/ZJasiw== From: Thomas Bonnefille Date: Thu, 11 Jul 2024 12:01:30 +0200 Subject: [PATCH v4 3/4] 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: <20240711-sg2002-v4-3-d97ec2367095@bootlin.com> References: <20240711-sg2002-v4-0-d97ec2367095@bootlin.com> In-Reply-To: <20240711-sg2002-v4-0-d97ec2367095@bootlin.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Chen Wang , Inochi Amaoto , Chao Wei , Conor Dooley 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.14.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 --- The commit adding the bindings for the compatible "sophgo,sg2002-clint" has been applied to Daniel Lezcano git tree. This commit may trigger the bots because of this missing binding. --- arch/riscv/boot/dts/sophgo/sg2002.dtsi | 32 ++++++++++++++++++++++++++++++= ++ 1 file changed, 32 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..22eb99d1abf7 --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/sg2002.dtsi @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2024 Thomas Bonnefille + */ + +#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 Wed Dec 17 10:02:19 2025 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 5B02F1586F5; Thu, 11 Jul 2024 10:01:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720692106; cv=none; b=jYiVXuC9n8B0arjHxz0qKNlJ5L2QLaazjvc0MD6AsLxemXxUDVJaUbU43obN2yyx/r7rApm0K3f5GhQDtz5qkRiCqgnBAzEmOnZcSq8+DFHxR8nYnDzthMPs+raN4SxP4fNKZAqq6AKPaobsUPjP0Whbj15L/pl/gypUDOZ41wk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720692106; c=relaxed/simple; bh=5KKw6M74A/DclraUTuoBJCsigKAUo94+LXOXkaaNZcc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sDTTw8MSitIfaIHQ7xPG/ndz2mGCDDPj5XvcpmmCG1GJt7XH2oGOpfTjwi/OEMgsyZj2XqDqm8Z14GpSTbvgnfSgYr1A/byl/VIAIPoTlWdISxR8skNU4tkYNn4ndjsnYa9LCYIJBBhip9Ufk3llrhL1Ily+KcQunZlOapF7SFw= 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=ZE5BXLR5; arc=none smtp.client-ip=217.70.183.193 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="ZE5BXLR5" Received: by mail.gandi.net (Postfix) with ESMTPSA id 4CE8F24000B; Thu, 11 Jul 2024 10:01:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1720692097; 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=ES8mi7d+KSw4EqedKB92e7v4sIMF0mwW3Ict+VP51AU=; b=ZE5BXLR57bsa5m7g8Ihks6LcaGQ8UnM1nMs8mFExm5NEkou3gUFQKZ5WJlV6Hi/mb3mBig VQ8y4xj4eCAKeWRL45ml+xuVcdRPNQO+QAqrvHBlQbxTMMyK3MHUDMsyoSyOEsL29K7QjM KaOnaur4TlpZ8lYTSQGGW/B0HSRH/GCzEPAWsnBxzKHhCBVqD4E3JMaAS5reQ7aMDUPX78 uG1cyGb/JsYfIPC9EP0anORiJlLY/RduY1LULOrZVOoXlXr8gjEVCM4i5WF5w/9tgvKQYW n5w0uZcDg/CWZjlcyFzBd2O/JPdBBBXTYkRRFZuoHAW53+dJ4qikKbQ45B2tXQ== From: Thomas Bonnefille Date: Thu, 11 Jul 2024 12:01:31 +0200 Subject: [PATCH v4 4/4] 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: <20240711-sg2002-v4-4-d97ec2367095@bootlin.com> References: <20240711-sg2002-v4-0-d97ec2367095@bootlin.com> In-Reply-To: <20240711-sg2002-v4-0-d97ec2367095@bootlin.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Chen Wang , Inochi Amaoto , Chao Wei , Conor Dooley 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.14.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 | 54 ++++++++++++++++++= ++++ 2 files changed, 55 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..fc98b6a0ddf7 --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/sg2002-licheerv-nano-b.dts @@ -0,0 +1,54 @@ +// 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; + disable-wp; +}; + +&uart0 { + status =3D "okay"; +}; + +&uart1 { + status =3D "okay"; +}; + +&i2c0 { + status =3D "okay"; +}; --=20 2.45.2