From patchwork Thu Jul 11 10:01:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Bonnefille X-Patchwork-Id: 13730290 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 68AC0C3DA47 for ; Thu, 11 Jul 2024 10:01:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hHUCtQLcqZipOesnThlUjuX83e2wN4KUPYtf3y3CUxw=; b=GdtH0U7Y49kW77 b2w7qwVDbc46wxXJ1U1HP3pPjGp/6WMP2Fea6AB0SspWyUS9NePtL+Vyd64S07W4HxPR47D6VcJgI WGHWC67JMficSAs08JijT4CRSxXMX/mI7vihu2uj3w/dZ2TIQs44MquGPwIgn8uhe0ijxjqKA5FrX ApZdkkdDaZObEERClQ1XVmZ44xQw5zr5tx1p7sd0DK95Ob7Uu4kyzRtpXkw2zGlL+v80xcdwLPXNS 8bkkAVM8/fljdnjLkKLk1LlYKmqNlFmc0HSLkjt2C5WZbZTCm3GuGsDWC9lkEIcC6cdOUBIaO/Tk5 9vTf/q+F+6/6HfmddJow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRqcQ-0000000DRCK-2W4z; Thu, 11 Jul 2024 10:01:42 +0000 Received: from relay1-d.mail.gandi.net ([2001:4b98:dc4:8::221]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRqcM-0000000DR9Y-214q for linux-riscv@lists.infradead.org; Thu, 11 Jul 2024 10:01:40 +0000 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 MIME-Version: 1.0 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_Ray?= =?utf-8?q?nal?= , 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240711_030138_695224_51E67589 X-CRM114-Status: UNSURE ( 6.90 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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/sifive,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 From patchwork Thu Jul 11 10:01:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Bonnefille X-Patchwork-Id: 13730293 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C1AAAC3DA47 for ; Thu, 11 Jul 2024 10:01:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+DqGRMrv/kq6S1hsrRrVfYiYi/ZAWWWiROCvtRD56OE=; b=jtl05f5tFfIm3N fqKCpkAyU2dyKuyL1y3VZPx3PDwqd9SefoBcX7O31qV5qfLOWc7va3LzneQvTtJ27i5YjyVguC4Ac bS8NHOgMYWszHtJo4ESojTvPR3fVHYKcNmhoeh5TGJeO7scuPyMNRvMFCGo/iqaA0eV+y/KbRPOB6 1sbXgku4VHpYdM99GvPex0kILRm1os2muQzJ9vmXI8KNfud+iS0VTnWmqLk0wcMFeLBHtRC8WxpAj d+9P6Dm/GHWnPPgL2rntQeiwTR4rHFwOg9gq42vmUsiMf93kUKOGRQ/oNPS88dT/58wwB8bPy/154 REeiZQ21GkQrxGI7waqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRqcP-0000000DRCE-3jfM; Thu, 11 Jul 2024 10:01:41 +0000 Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRqcM-0000000DR9k-0c7k for linux-riscv@lists.infradead.org; Thu, 11 Jul 2024 10:01:40 +0000 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 MIME-Version: 1.0 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_Ray?= =?utf-8?q?nal?= , 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240711_030138_503569_5DD90BC1 X-CRM114-Status: UNSURE ( 7.59 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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/Documentation/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 From patchwork Thu Jul 11 10:01:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Bonnefille X-Patchwork-Id: 13730289 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 746C0C41513 for ; Thu, 11 Jul 2024 10:01:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aN+rhhmjYHDYp6vx8NcCM2CQM7jfEicuTTKuIZqcP94=; b=HecRpIgKj9Mygv EEtGSx8tslZe9N/SN1ixjitsZ6V2osGSBroMWpyKic+Po699Ls5YM+F51BscHsGuOwWnJZaiJ3mXW 4aE8xRSYS2O01Wwy1oEBW9gPX4fq2tMT70QqG1m4hx9nSZY04nqwBUgy5nzjqpbxACcqaOOxqxkh0 GzcfI0SEWgMoYO5XfbFF0wZZvrBAfYkQ9foqPru7BgOdiWtiv33szbDx/Kl7KBdj1ACRKQRvPbKHI OYFV+oHQpBCPeQRJMxvP+o7ZgQfuBf3yZ8F0TJHDOQImx8TQ1ddM5R1kpZYUPY/ERc1doIQeOjtEv s4yQlmD4yCPDJofIFwHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRqcT-0000000DRCv-0yLB; Thu, 11 Jul 2024 10:01:45 +0000 Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRqcN-0000000DR9s-0QhO for linux-riscv@lists.infradead.org; Thu, 11 Jul 2024 10:01:41 +0000 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 MIME-Version: 1.0 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_Ray?= =?utf-8?q?nal?= , 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240711_030139_306782_DDD757F1 X-CRM114-Status: GOOD ( 10.36 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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/sophgo/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 = "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"; +}; From patchwork Thu Jul 11 10:01:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Bonnefille X-Patchwork-Id: 13730292 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 11A6DC3DA47 for ; Thu, 11 Jul 2024 10:01:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RTZTYNPS1uvUM9yrHTT5YjBoNRkd0Iky1jOZXQuHA3A=; b=Fr3riJxWvOsFDp oO0/7XU88NNMvPHYiCAzhI3C5lc2KxBv7xzJxtdIBjCUbPeCyF3PbsRV6T/vkXtrcnpveloHkZcjV K6SltkxSUe2nJUm98DxX55Txp2peDGHeTQWC9Pgi7EsbQDtMC+OKK5OZN9pSKVt+8ZJ76dY24jQ3r P9GKxRy03RONeblV4c3b3/q6tyi9w5+6FWeGmZ+Td25bYZ2vAE9O5rXvGjR3Uecm1xgrWVjqXWcRY wNUiE0K2170iglIKL8BCTkPXUg7iACoZFmnbvKcgwgXS9wcL0TqoiSHSbj2nF6td7iXb/2dO+KJKH AUmb2TwtExJTXzEkcjfA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRqcT-0000000DRDE-3UF4; Thu, 11 Jul 2024 10:01:45 +0000 Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRqcM-0000000DRA1-1ylo for linux-riscv@lists.infradead.org; Thu, 11 Jul 2024 10:01:41 +0000 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 MIME-Version: 1.0 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_Ray?= =?utf-8?q?nal?= , 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240711_030138_785453_6901C7D2 X-CRM114-Status: GOOD ( 12.02 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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/sophgo/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) += cv1800b-milkv-duo.dtb dtb-$(CONFIG_ARCH_SOPHGO) += cv1812h-huashan-pi.dtb +dtb-$(CONFIG_ARCH_SOPHGO) += sg2002-licheerv-nano-b.dtb dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb diff --git a/arch/riscv/boot/dts/sophgo/sg2002-licheerv-nano-b.dts b/arch/riscv/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 = "LicheeRV Nano B"; + compatible = "sipeed,licheerv-nano-b", "sipeed,licheerv-nano", "sophgo,sg2002"; + + aliases { + gpio0 = &gpio0; + gpio1 = &gpio1; + gpio2 = &gpio2; + gpio3 = &gpio3; + serial0 = &uart0; + serial1 = &uart1; + serial2 = &uart2; + serial3 = &uart3; + serial4 = &uart4; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&osc { + clock-frequency = <25000000>; +}; + +&sdhci0 { + status = "okay"; + bus-width = <4>; + no-1-8-v; + no-mmc; + no-sdio; + disable-wp; +}; + +&uart0 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&i2c0 { + status = "okay"; +};