From patchwork Wed Jun 12 08:02: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: 13694606 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 2EB12C27C77 for ; Wed, 12 Jun 2024 08:06:08 +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=HY3rjrsJzM7GID19MNmRWCq4Ti4Aj9g4Gky5XTserxI=; b=yH/XUnr21EO1fl oFgtb5HWvhEPolJVMoSUSYkVElllFF7NrJynB18r5z/3boXqlB4nxb4HTtZeQkX2KHtES+phdVxQC gnCb7cCp99djrbzH2Nc9qjMrCY3ksXveGDUuOBWIt5PCJkiP9DXqnU5KQwbCVJwe6hae5QevSXYKj IWWRWwpWOhqFpPFlNxFbDxqtZOoktZt3K8PMkyYM2nlpsg7+MI6glvh6YChQvvpuZUHUFU7Hn+sfR v+He+/NXNxDBZBM+QRx/yWY6fjufX5iS/HtU8afiSFcea5fB3zEn8U6ICc8hHtIVwor7eY3r/c2Mx 8vkxx5Xmv9K3yNzszvpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHIzc-0000000Bb1c-1ufL; Wed, 12 Jun 2024 08:06:04 +0000 Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHIzV-0000000Bauy-2xrF for linux-riscv@lists.infradead.org; Wed, 12 Jun 2024 08:06:01 +0000 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 MIME-Version: 1.0 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_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.13.0 X-GND-Sasl: thomas.bonnefille@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240612_010558_111636_0C562904 X-CRM114-Status: GOOD ( 10.92 ) 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 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 = "sophgo,cv1800-clk"; }; + +&sdhci0 { + compatible = "sophgo,cv1800b-dwcmshc"; +}; diff --git a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi b/arch/riscv/boot/dts/sophgo/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 { }; sdhci0: mmc@4310000 { - compatible = "sophgo,cv1800b-dwcmshc"; reg = <0x4310000 0x1000>; interrupts = <36 IRQ_TYPE_LEVEL_HIGH>; clocks = <&clk CLK_AXI4_SD0>, From patchwork Wed Jun 12 08:02:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Bonnefille X-Patchwork-Id: 13694609 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 73EDFC27C75 for ; Wed, 12 Jun 2024 08:06:08 +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=zV57p/dJYlZQoPpGeZzFv0bpAY1tuXuHg4SJejlFOsI=; b=Va+X/Y7h93NuWu aVF+2tByNFtWACvYHB7Qkp/mAaD6bC1W+RsHKN18v7zt4nANJ4iiXaMthM7IbZZ03pCvssLz4I62c ZGNefcLzg9/JUEQdzgmu83AGivWRIpm9CGbcOw9w8vz3GYVNmzFgoSvnguav9EUEK66S2efN/mMHw xB/bz9KDoEHmQ0g5fSHyp8RaftRTN4PRm35A6Ionuh7a8mxWhtz2FAkgGvXxdrbrxI0kz5Ft7H+Nr LH76pJ3ok6AE80FzvbTmjPOKU3i1cQRNUeYuPUxluKfpjB8Pm7wUQ8YyZkw9Oua3s2Lo2lrd3Tvcr YIKRjhQsXoqjO4y2ZfVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHIza-0000000Bb0T-2G28; Wed, 12 Jun 2024 08:06:02 +0000 Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHIzV-0000000Bav9-30UF for linux-riscv@lists.infradead.org; Wed, 12 Jun 2024 08:05:59 +0000 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 MIME-Version: 1.0 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_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.13.0 X-GND-Sasl: thomas.bonnefille@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240612_010558_077169_558D5990 X-CRM114-Status: UNSURE ( 6.71 ) 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 Wed Jun 12 08:02:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Bonnefille X-Patchwork-Id: 13694605 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 EB158C27C53 for ; Wed, 12 Jun 2024 08:06:07 +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=bjn44XtoPVmP+nx+yPo5MajZtek1YAdnDvqc4/mPiK0=; b=oAhukEKEb+HlFP iCxJfWT8IcGq3QjpXOZqQkvsk5XrQWhrdhMqDDyLYmBBotTVVTMGjiZxbCWp7b8jKXTEzOtqU1VXV FvrsS86V9ec/8rzo31ISaS0jmqdqI+wli91N2i2mWmfE1MzJ1GG8vKk3lwa47o4nr99u+mVITsdXa pYG6+FvOXg9DQsZF6sCbvwgiybUENrsLzKQgOu2G8UlgfZMvkgmUL8vw83IO9H7aY8tBn7ss9EaK9 T3Jqtliwx3wclTwXrYpVn3g/qW9g3+7pas+E8DnsGNP8XqOwJ21ha35e9fAzOLOgVAq94YDZ1OQ1x afh9SolotCT5FPD075RQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHIzb-0000000Bb15-2cD4; Wed, 12 Jun 2024 08:06:03 +0000 Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHIzV-0000000Bavi-2wrC for linux-riscv@lists.infradead.org; Wed, 12 Jun 2024 08:05:59 +0000 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 MIME-Version: 1.0 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_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.13.0 X-GND-Sasl: thomas.bonnefille@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240612_010558_077402_ED68F317 X-CRM114-Status: UNSURE ( 6.50 ) 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 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/Documentation/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: From patchwork Wed Jun 12 08:02:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Bonnefille X-Patchwork-Id: 13694607 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 04599C2BA15 for ; Wed, 12 Jun 2024 08:06:10 +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=i5E8bpZJb38ERZYEfTb21PieTyBWGUXZlhuBB9Q+sT8=; b=MicovcADlCqfMr yBiXN2lqJGOFSt8stfgEOzow8Q0DS+1x5DOwBwpj0q8BmVvBAFTozlZMoYrjmTMxiT7siMIgNLiiB firK3Aeeq5/pz8Y68jvsRyLG0XHQPhsawiuasjd1Rz13mFuLI9c+u7YyBiy2UsGwOFhJi8DO9tJQq vSNf0HAN1x6rP4LE3KTLPF+DsCQp0HrPnJUqcilVYv5Agp3Dtk2dwYZz/hqIxW6vZhVisJDlW5Z8p amMtnw4l+dR8IIMDH7JCl90p8Vff+8T1/uKNv6kx/5hvO96DgX7hQBJe+0KG2M1xH8bLYnYVvCW0e fH6QojLbFOSgwTG8q1dw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHIze-0000000Bb39-3O7K; Wed, 12 Jun 2024 08:06:06 +0000 Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHIzW-0000000BawD-1djV for linux-riscv@lists.infradead.org; Wed, 12 Jun 2024 08:06:02 +0000 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 MIME-Version: 1.0 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_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.13.0 X-GND-Sasl: thomas.bonnefille@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240612_010558_596450_4F9817E0 X-CRM114-Status: UNSURE ( 7.50 ) 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 Wed Jun 12 08:02:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Bonnefille X-Patchwork-Id: 13694608 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 AA636C2BA12 for ; Wed, 12 Jun 2024 08:06:08 +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=EI7D2Xz0NOtO1356HsCidjoVj4z5v1PceB2vYbaOsMY=; b=L677aGLKdVyPaw 9nfo2RLWHDQylmLo4pOHzqL16PXtElOsFnRwqCIWjzxMisccDxC9xWr41CRmJxVqyxxPfk1/yKneo /NV/MJrU0HaTyUh2Az/nAGTmDfIKE7hArB40VJaH3NVUw7Pgt9hAImn/OecHV/5n801YBwcqo45bZ FnW6nVafwTwbTWhgd1DvHWFVFGFKzWD8QyaFjHU/5UHMCoKlZd6Z/Ya3U266ikp5CGHDf3PBPq6yc 8Fug7klleQbLp5epnT4y6yCCzzhZJ8GxpNF5TmPk4sG1BnREfJvf4MbNBJ08qZkTFV2Kq1vUEhL1G aPnU9Sv5IIfVC3nvhDlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHIzd-0000000Bb22-10ly; Wed, 12 Jun 2024 08:06:05 +0000 Received: from relay5-d.mail.gandi.net ([2001:4b98:dc4:8::225]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHIzV-0000000Bawq-3pCg for linux-riscv@lists.infradead.org; Wed, 12 Jun 2024 08:06:01 +0000 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 MIME-Version: 1.0 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_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.13.0 X-GND-Sasl: thomas.bonnefille@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240612_010558_203604_A2A11686 X-CRM114-Status: UNSURE ( 9.18 ) 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 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"; +}; From patchwork Wed Jun 12 08:02:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Bonnefille X-Patchwork-Id: 13694611 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 8520AC41513 for ; Wed, 12 Jun 2024 08:06:10 +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=cavR6gLGVjHV9oIiCBYSVY4Qpn6jOulzdL2LeDGnr2A=; b=STxnnd3xVbpK2f Zm3HjKjoCyNqlr6Xtz/yP9tjOvTNjX7m+IOw6jDxShRZ94HqRqFLpa17+EZKYkte139Ox3NlD0y1+ uh3USc+tzrSNRUukIWvJBvvpTc7tpsG/prCdrx3t4NVSeLL3BlQfby3ODIyBOcldbjdfGDzG/mR84 Ht6JeLLsenbbDXM9BegcAJNlOeDhLP+NrZPObL99DmQ3y9KBSMwxxz179G32eSTkjI1vC9piueyXS QLIGiJwU4VXYTx5mebwlZddRwiXI7lzbZlws3Zj6WTy8V4XV+tL4vDvVnh8aDkKxSC32EbiStGufo 3Hc73aoXAHSCF0ZZEzqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHIzf-0000000Bb3W-1von; Wed, 12 Jun 2024 08:06:07 +0000 Received: from relay5-d.mail.gandi.net ([2001:4b98:dc4:8::225]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHIzW-0000000BaxC-3fOd for linux-riscv@lists.infradead.org; Wed, 12 Jun 2024 08:06:02 +0000 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 MIME-Version: 1.0 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_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.13.0 X-GND-Sasl: thomas.bonnefille@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240612_010559_232972_7E1C8930 X-CRM114-Status: GOOD ( 11.56 ) 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 | 53 ++++++++++++++++++++++ 2 files changed, 54 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..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 = "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; +}; + +&uart0 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&i2c0 { + status = "okay"; +};