From patchwork Sun Apr 21 05:57:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Opdenacker X-Patchwork-Id: 13637303 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 63180C04FF8 for ; Sun, 21 Apr 2024 05:57:37 +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=zB2aOIQqZF8Hr479w6dAGbUD6xg0jKKYF9crCQalX0E=; b=2SmnP10rjFcRTE Dd1IMPSsO3wCxOM9aYlvBTdgToW3lEN9BGVe+bNZ9j+jTfnBrGYFBbB8n8jyVzRXiKr+2Zy2ZBY1X ymCDxKq39Zxjik8HAF9t+kWjjnJNu9Pm12kzC06xs8iJBD8WfX15bLXYaE+8LA9z1Wl4nB0sH0vB2 l8U5fnqUEkGtUISR6LYkfsWp8y/wRJUa5h4/tkQgDpHvwHsSI7h14iBUR5CTuQEkjr++0XZ5+Y8C7 SeU/WP+v1MA7unxGY2yLpghYfxRkCo4aYvFroqGo4Up+Y0irA6MAbnDYxS5PKQ6RF6D63dGordWRP YTwQYp8r5HIQqSLXdiqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ryQCg-00000009vIr-11If; Sun, 21 Apr 2024 05:57:30 +0000 Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ryQCd-00000009vHA-48qY for linux-riscv@lists.infradead.org; Sun, 21 Apr 2024 05:57:29 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id B63E01BF203; Sun, 21 Apr 2024 05:57:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713679046; 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=/dDHo+ZHs/JUcsjGJGg/vbysKC5Mw590x28u5YYvIXg=; b=E7l3AT3FYz1yTsQXYEgHUxlwDcUxJppyNcyMUtqYOQmd0Ih/jufAbBe04TfkT9r8EXn4/D s2KHP3veqSG3ErTVL3PEO1yMYKWBlDTXp9L9+WBbJhCS2zP6gqESEh5zvpVg1hbDZ0wV11 6hDELEJ0L/ky9dpv6e0HKwCKRG6irshytE7Io7KM+SUDFwl2iPNRdIvCLjcl1Nej1jfTbz cvEfms5FFMZW3wBiXWPhTzif7FOHQIZui4h34Zs9q1fapM0sX2/bBmuZYh8Z2cTcJosDFH uLP6PcB8zxFpTnWqLGtCXF+xMfm+zTeqIiTTqj7HxA6QZFZWJYGB82V9Ct2zMA== From: michael.opdenacker@bootlin.com To: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou , Chao Wei Cc: Michael Opdenacker , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 1/2] dt-bindings: riscv: add Milk-V Duo S board compatibles Date: Sun, 21 Apr 2024 07:57:09 +0200 Message-Id: <20240421055710.143617-2-michael.opdenacker@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240421055710.143617-1-michael.opdenacker@bootlin.com> References: <20240421055710.143617-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-20240420_225728_184596_2CA959D0 X-CRM114-Status: UNSURE ( 6.96 ) 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 CV1812H SoC[2]. Link: https://milkv.io/duo-s [1] Link: https://en.sophgo.com/product/introduce/cv181xH.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..79546aa21021 100644 --- a/Documentation/devicetree/bindings/riscv/sophgo.yaml +++ b/Documentation/devicetree/bindings/riscv/sophgo.yaml @@ -24,6 +24,7 @@ properties: - const: sophgo,cv1800b - items: - enum: + - milkv,duo-s - sophgo,huashan-pi - const: sophgo,cv1812h - items: From patchwork Sun Apr 21 05:57:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Opdenacker X-Patchwork-Id: 13637304 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 2E645C07E8D for ; Sun, 21 Apr 2024 05:57:44 +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=GDDgodC/n9p5T7OgHOsUcjQNv77urHW7abOTuCiXXnM=; b=wVHkkZie3B+rEn aJbLjoAh/FNAXfYQULdWSXSVvWOg5NU/9e1Esa12rqC0B8z9ht6cQ98VM78iiKroGhGoWhlk0+mUL 3foui1kNpiGeZiWbMIgZZggWFDnwkSTV7czXUgvH9gN2J8J4Qxlqoz0FHBzNRWUumWGZ5d17CMcCL JIUFrsVqpsB91QdIrXHHxfG8WNUPlRYB19hzcCCMkpxx4cl8eMBWXwza81n186tI+P0KTGmG6tKKs ScGjcWU8v/hrkLSIlZDhZcX4tSar7OLMMcW7gt4gWuEksV71WR95iiwe4Z8WEWYcvbAV0Rz1Q2g4R nt+zvbmMTGN3uotyGAxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ryQCo-00000009vM6-1WTN; Sun, 21 Apr 2024 05:57:38 +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 1ryQCl-00000009vKi-1Sw3 for linux-riscv@lists.infradead.org; Sun, 21 Apr 2024 05:57:37 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id E5DF7E0002; Sun, 21 Apr 2024 05:57:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713679052; 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=ALRgEqg1EmSyQ1bclqTiV+s3lMvYL3j/L/5ogb0OnCU=; b=QFQZOs1/Fi8ooM3ZMCBTv6RAaFwxqBWsbcNZhKq2GmokE8kGOOlcFkhaXNksADpD6EFarB FOPa5CXuLVmPIRzX9jr6ZARfBBN0z42pENX8/pIh0fK+VOyNlb3bXgrNO2JYI5aTURA3bC dXCWyF6T51BELDdbXUmw7eq6rgtbQS1J8Jd4WSuiPuraGIqB5Ksj5yjag/0s+GZvadMdzi y68xJJLAh6esp2czwYkYOKZgVgQ0i9CSI9fvkoSJoPgGaT7fn7YF0LPStf+coW0S9twWfj S5xjhNPVxPLJX/cJpY1cDoZNsadn4OMv0Y1zqP+WNxADtx11fs7+DpVdgvhfAA== From: michael.opdenacker@bootlin.com To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Michael Opdenacker , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 2/2] riscv: dts: sophgo: add initial Milk-V Duo S board support Date: Sun, 21 Apr 2024 07:57:10 +0200 Message-Id: <20240421055710.143617-3-michael.opdenacker@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240421055710.143617-1-michael.opdenacker@bootlin.com> References: <20240421055710.143617-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-20240420_225735_555080_33D1200C X-CRM114-Status: GOOD ( 13.17 ) 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, making it possible 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/cv1812h-milkv-duo-s.dts | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 arch/riscv/boot/dts/sophgo/cv1812h-milkv-duo-s.dts diff --git a/arch/riscv/boot/dts/sophgo/Makefile b/arch/riscv/boot/dts/sophgo/Makefile index 57ad82a61ea6..a410f6af03fc 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) += cv1812h-milkv-duo-s.dtb dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb diff --git a/arch/riscv/boot/dts/sophgo/cv1812h-milkv-duo-s.dts b/arch/riscv/boot/dts/sophgo/cv1812h-milkv-duo-s.dts new file mode 100644 index 000000000000..0f2991d8c8f5 --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/cv1812h-milkv-duo-s.dts @@ -0,0 +1,33 @@ +// 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,duo-s", "sophgo,cv1812h"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@80000000 { + reg = <0x80000000 0x20000000>; + }; +}; + +&osc { + clock-frequency = <25000000>; +}; + +&uart0 { + status = "okay"; +};