From patchwork Wed Apr 17 06:46:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Opdenacker X-Patchwork-Id: 13632914 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 3D1AFC001CC for ; Wed, 17 Apr 2024 06:47:00 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Q2m/++OZ/j8aclA36Q+hjxK0+qF8ZBQzU1dVMhtK9F8=; b=Z2w6FYUFwNckJe 4FhRX8/6Zrr+SMpyGlpxVsA358GSwob3W/26h/kHgN5nDe/L+A3GLE6ie6dqy+cO5trop+XxEumob TTo7ZBODn9V/xT3Dj34do4VXGxuy9hKCZra942DOl1rsbyWqbjd8KDZVasTHw/H/d1qaY09mDotj3 Cb+aTa/9lOTvLJBHR3hVMKgmNBKtSNnOEp4vEzcfnQaMGAxh2aMKxHare/Bhs6nmbD35vLaZNZ+PJ maQ9YnnaHquYVVHxjTNrlFRmSrC5w8kZ69wN1w2PUGwR4n/c1cE97tl0PbluCvzj2CRYOB/Fj49lx MrS0kJ1oU48BqA1yxJ5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwz4A-0000000EteM-0UAr; Wed, 17 Apr 2024 06:46:46 +0000 Received: from relay4-d.mail.gandi.net ([2001:4b98:dc4:8::224]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwz47-0000000EtdB-0R7d for linux-riscv@lists.infradead.org; Wed, 17 Apr 2024 06:46:44 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id DAC25E0003; Wed, 17 Apr 2024 06:46:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713336400; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=C56Ut6AwxxgRCtKAR2dRDxFR3VgYxqC56KrmxNaKKpk=; b=ZS6Aln7oXzQupDbo2b976Q2CiO6il/RJFNWEAeRsH35wn/fu2TfQUaaQqvqb57jZCH6VS+ gT8GEQ9vhQF/jHesphzZZ2VEOoha/0PMfCh+HjbJx8E7psZfLOb1rbNd+pgHiteCzmx89d Ym9KuzS4FMqGHeiqpLiSxYLY2WpuQiw84iziwa6WCwHcBKX9zPKWYBp4CZc/a1PDcDgx+q AB/8uNVjEuAJ+UQWN1jM2ET6aVrgOfg4JIRiboDdnacE2Osw7fKRpok+uPoTHjiLOTtvBP +o4TojoMHG/Tp5l43O3jxK/0l7VXfc7P0R6N8hMZyXCDFwGiPrHfy8cy4SxtOw== From: michael.opdenacker@bootlin.com To: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Chen Wang , Inochi Amaoto , Chao Wei Cc: Michael Opdenacker , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/2] dt-bindings: riscv: add Milk-V Duo S board compatibles Date: Wed, 17 Apr 2024 08:46:25 +0200 Message-Id: <20240417064626.3880187-2-michael.opdenacker@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240417064626.3880187-1-michael.opdenacker@bootlin.com> References: <20240417064626.3880187-1-michael.opdenacker@bootlin.com> MIME-Version: 1.0 X-GND-Sasl: michael.opdenacker@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240416_234643_309211_01542F85 X-CRM114-Status: UNSURE ( 7.11 ) 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 From: Michael Opdenacker Document the compatible strings for the Milk-V Duo S board[1] which uses the SOPHGO SG2000 SoC, compatible with the SOPHGO CV1800B SoC[2]. Link: https://milkv.io/duo-s [1] Link: https://en.sophgo.com/product/introduce/cv180xB.html [2] Signed-off-by: Michael Opdenacker --- Documentation/devicetree/bindings/riscv/sophgo.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/riscv/sophgo.yaml b/Documentation/devicetree/bindings/riscv/sophgo.yaml index 9bc813dad098..1837bc550056 100644 --- a/Documentation/devicetree/bindings/riscv/sophgo.yaml +++ b/Documentation/devicetree/bindings/riscv/sophgo.yaml @@ -21,6 +21,7 @@ properties: - items: - enum: - milkv,duo + - milkv,duos - const: sophgo,cv1800b - items: - enum: From patchwork Wed Apr 17 06:46:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Opdenacker X-Patchwork-Id: 13632913 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 DD696C4345F for ; Wed, 17 Apr 2024 06:46:55 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Nd2zu48BfQcieJTBRS6mc8S6aASE7FDA0qEMAZ8RYgg=; b=YfXCnJbq4cJNze cCTf6+qoa7Rw1c7wOYEeVIO26A/PlAsAtu2japW5RFcpW3+RCA4z+G2UaF9DYCHJ9HgABPiu1uO7w UnLMd6SHvmeILQo9k3axtcY3KzPvk3P3DVr13V9P+6il6udweqxvcNZkE9t8i90omp1yiYcsqNzSf 4VoUT6i9vcB/Xg1ovlNrm6MuVTggOrD4+k9AIq0sxJLKO4YHsFYq20PqTJjzVou4koPVCqK+l6LzR QWCA7yg7vu1dgEFLQU2mG4jQ0AkTwt8wuFMtvv97RBJvOjRuH6i1F0iz2SNb9bzaSpmeaS+zhm5XD jXelUW7SmriCeH1It8Tw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwz4D-0000000EtfI-3aCd; Wed, 17 Apr 2024 06:46:49 +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 1rwz4A-0000000Ete7-16r8 for linux-riscv@lists.infradead.org; Wed, 17 Apr 2024 06:46:48 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id B226A1C0002; Wed, 17 Apr 2024 06:46:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713336403; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EqkgWIyDKkih5KvWmO3x4/Hkqstn+AwghBylqA8sGnQ=; b=ngZuXvb3cBj769QbU85Vtuk8TrMbj390Ed0WAYxItWdtUB1MUy037aBQRO6qrAz8LVqe6f Ecngh4xGeCRrT2dkbEkDilibPrU544nSQUWipJGw0XxAltaqNqDOtNXgEBNQzcFvvQQHuz XAvXRaQc1U4sfElmcYIXHjlGtE0ZJ+zs+SP2zQ91zP2QebTBJU1U2oLoHCOiqpJC0uq6F+ WecBx6RTFAfCX1Ilv1+oxf+fOnnkHuu7XKQlFaUDdmybH7Wcse+/dZO3hUUYaRxjIq9J/J DrI0dscHXV+YC/9vqJ9qzlAv9zkyYrNBoWPzVdUJHA2YjKg9xnPN+wN0TvT0Fg== From: michael.opdenacker@bootlin.com To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Chen Wang , Inochi Amaoto Cc: Michael Opdenacker , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 2/2] riscv: dts: sophgo: add initial Milk-V Duo S board support Date: Wed, 17 Apr 2024 08:46:26 +0200 Message-Id: <20240417064626.3880187-3-michael.opdenacker@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240417064626.3880187-1-michael.opdenacker@bootlin.com> References: <20240417064626.3880187-1-michael.opdenacker@bootlin.com> MIME-Version: 1.0 X-GND-Sasl: michael.opdenacker@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240416_234646_504925_D46BE11D X-CRM114-Status: GOOD ( 13.48 ) 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 From: Michael Opdenacker This adds initial support for the Milk-V Duo S board (https://milkv.io/duo-s), enabling the serial port and SD card support, allowing to boot Linux to the command line. Link: https://lore.kernel.org/linux-riscv/171266958507.1032617.9460749136730849811.robh@kernel.org/T/#t Signed-off-by: Michael Opdenacker --- arch/riscv/boot/dts/sophgo/Makefile | 1 + .../boot/dts/sophgo/sg2000-milkv-duos.dts | 34 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts diff --git a/arch/riscv/boot/dts/sophgo/Makefile b/arch/riscv/boot/dts/sophgo/Makefile index 57ad82a61ea6..e008acb5240f 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) += sg2000-milkv-duos.dtb dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb diff --git a/arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts b/arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts new file mode 100644 index 000000000000..c1ecf97d5e93 --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2024 Michael Opdenacker + */ + +/dts-v1/; + +#include "cv1812h.dtsi" + +/ { + model = "Milk-V Duo S"; + compatible = "milkv,duos", "sophgo,cv1812h"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x20000000>; + }; +}; + +&osc { + clock-frequency = <25000000>; +}; + +&uart0 { + status = "okay"; +};