From nobody Mon Apr 6 13:57:20 2026 Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0A35371053 for ; Fri, 3 Apr 2026 11:16:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775214962; cv=none; b=lwjTy3USuZQtElZx6T70vjFpgaz8u6vMp1EOA2bxUnv1naAMPLjRwCxoy2Q7dqDQFHcfj2Q7uEb6IeGJPDGbJpoIRUKdokARhHWkausUkhDc4iNevbFej+BTfgVq1MRdscN4bhTUmehyorjfsbtQGI/GK5OeltRrZC1SvOr1RXU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775214962; c=relaxed/simple; bh=/iKoxf3LOftVvnFst+ry8upkECO2m/4sz8OzKStj6vY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BR1tpn+qoyE9ySXMlMONHIqaAis6K7gDnlqJjUusBTFAsjrJTBZs/uBodymXP8v8netd1CFFRJ08WMLk3KF1kbEbJNXPQqfNO/JYPpcEb4p48jmsN2rfJ4MPhmCNYqDLEQTm1I5EnMRAPUAGo648vAiQCRIEw+fmbMHswjQpgeI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FHDz1weA; arc=none smtp.client-ip=209.85.219.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FHDz1weA" Received: by mail-qv1-f45.google.com with SMTP id 6a1803df08f44-8a23f802e0cso30024596d6.1 for ; Fri, 03 Apr 2026 04:16:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775214960; x=1775819760; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UFgcVH5XOq5/mrXaXDYrCpNPEGJCtaK+pfMk8iob1+k=; b=FHDz1weAJn/pm0mBqM0VYGL2uEU8tPc9/S4Q+VP0+iaqzS1cnTEHZa5iii1/TbG2P4 Y8bnmEdwcbEPVsoxslbf7H49sKnVx6RpbrKjiHrjPnsxhO9r6r4+wSGxaO5hWXUy77Qi iCU4O6BS8kwgQf46s0jQ9RczXQq6uPlHhcWMeSPoocCsDtsLdV+NO4iUApG4RmfvV9QP V1J0PuQX9HmgZG3QJ2o5G+JxE8ELod/QrX1+oPNXtWB/FWMsCVwms85nlSK4Q/LOPBAb 2S4/+Q1/yrbyLH+P4+rIMVtlAyRbB4H1HJmGXGySwjz7nTFVl5SyvfaID3BY0G8BsWai 0wNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775214960; x=1775819760; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=UFgcVH5XOq5/mrXaXDYrCpNPEGJCtaK+pfMk8iob1+k=; b=sF5g61kcp+gvDSfVlCUQC2RppSuKrwI2QhXZUQhxoPr5Hj0++IsvU5UtCBm9AWwq+c L53fekTxvu8E/8pFKUL7rPJ+Vgfh9AkPGTgLZi351qaf+/xMJ34IDZruY2kMIo0gMDNr U/z3xePOOcT9r2qDlqT3cv1tDPhRAXEnNNsPlZ2ZngzeC7bFh94yPUjEL3Utok86c7VG xTD0ArIv/U4xx905MrgnvY6LctC75zVEB/VvfQzu5EKa3AOIqT1qnttbdPl1DLv3MuA0 X7L3W+fqFvwlALMdfRjyuVv+8xPpYnwJNvPre+vXdBfVJ2TcTye5Kc5ujlSxBNmJp1W6 8HAw== X-Forwarded-Encrypted: i=1; AJvYcCUmDrh56NjRPV7KTIvRdqsASgyou9p+9+Kp1XQV+khf3+Zx7qTElPojOoyQ9RGqmj+sBUq3dsXy5bYEsXQ=@vger.kernel.org X-Gm-Message-State: AOJu0Ywxs96bPloYZH0KB+tGUjslTuH67oqp3lW1THtMlOQtpdFD+D77 C8RaEqaSDX248iCeKWdgTRT+V9xHJsnmN0ko7G7+/RtuoZmJAzGlTSDB X-Gm-Gg: AeBDietXKZvfIDPuLsBgB1dDSLOEnohWe5aWiowkLh1v3Y33+AooGp7pTel+L2ZJbtS 3GLSmNootyfAOjv9qQCEIQjFUc5QxTtWXLgEKJaT0BnlRjrMmZH9OYfY1VnZ+2BMjE23MB7c9zY J6I9Wo1ADaQFng+2DT9JGQxL8fsnvnKb1MbDQ7r+d2AJj9gILbu9/P9sID/jCYrQd8rHkTI28bc EYzx6eFaaDuApNNA9D3iJOx7DtcOmO1MA9zMqQ4GTIkZrr1Je35sAQC8FS9D1RR6h1/6LIhGH6X EgUIaTxL01SbpUTvKAahjce8Jx4sMlOeSvxshoxv+eyARL2SzrvKQ3wjn0FYnDZFggcUO1mXa+6 BMsp3aHrStcLKnPLgPjO3YtzoOVCY7cQMiKVlcDpRitczOrBbua5ontMJmgQOX+pHis5zrIagOq UkJP0gcdGxNn5QDMCDErH6SK7mDuzA X-Received: by 2002:a05:6214:5b03:b0:89c:cacd:244a with SMTP id 6a1803df08f44-8a7020c0f64mr41263286d6.5.1775214959993; Fri, 03 Apr 2026 04:15:59 -0700 (PDT) Received: from sleek.hsd1.nh.comcast.net ([2603:3005:1473:4000::71a3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8a5974e8e8esm45319836d6.43.2026.04.03.04.15.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2026 04:15:59 -0700 (PDT) From: Joshua Milas To: tglx@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, pjw@kernel.org, samuel.holland@sifive.com, unicorn_wang@outlook.com, inochiama@gmail.com, daniel.lezcano@linaro.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, liujingqi@lanxincomputing.com, alexander.sverdlin@gmail.com, rabenda.cn@gmail.com, dlan@kernel.org, chao.wei@sophgo.com, anup@brainfault.org Cc: josh.milas@gmail.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, sophgo@lists.linux.dev, hanguidong02@gmail.com, michael.opdenacker@rootcommit.com Subject: [PATCH v5 1/5] dt-bindings: soc: sophgo: add Milk-V Duo S board compatibles Date: Fri, 3 Apr 2026 07:15:12 -0400 Message-ID: <20260403111516.379795-2-josh.milas@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260403111516.379795-1-josh.milas@gmail.com> References: <20260403111516.379795-1-josh.milas@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Document the compatible strings for the Milk-V Duo S board [1] which uses the SOPHGO SG2000 SoC. Link: https://milkv.io/duo-s [1] Signed-off-by: Joshua Milas Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/soc/sophgo/sophgo.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/sophgo/sophgo.yaml b/Doc= umentation/devicetree/bindings/soc/sophgo/sophgo.yaml index 1c502618de51f..0b6fbab48b743 100644 --- a/Documentation/devicetree/bindings/soc/sophgo/sophgo.yaml +++ b/Documentation/devicetree/bindings/soc/sophgo/sophgo.yaml @@ -31,6 +31,10 @@ properties: - milkv,duo-module-01-evb - const: milkv,duo-module-01 - const: sophgo,sg2000 + - items: + - enum: + - milkv,duo-s + - const: sophgo,sg2000 - items: - enum: - sipeed,licheerv-nano-b --=20 2.53.0 From nobody Mon Apr 6 13:57:20 2026 Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE13D36B071 for ; Fri, 3 Apr 2026 11:16:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775214964; cv=none; b=GmD+uuyj7bz5wK23lZeMJUJcBjYMRQ2hTu00uI1XEzMt74SV8Lu75kZ6ULByO8R4geoLTu/NQoAF6z/PROGPWs5oRN1tptbc/QCVWIYWMSjimC08yC+gbyMoP5lRchcIDcfb2MYDu7IXvuIV9Nh+pCI/0u7kf2J2M913PijUiZs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775214964; c=relaxed/simple; bh=VJhjDbD9k93v4xWoMfUMeJOvaM+SAKtvPHI+Ks7kzIE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JYQG9st58eYzKmF+lk5QZLph5JZRefS8J7LYS05kKeumzi6xeKPVPSpl191yVYWciK0Igtw/Uqu8xotBk7ek660fyNsBN9kgFsLp/zJtCSw0YxzvEFqhTRFKMlaGGOnE3m+esOHsYD095/SNjyk/FanJfsHjyYzaeGG7NEvwGIE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=owtr+P9M; arc=none smtp.client-ip=209.85.160.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="owtr+P9M" Received: by mail-qt1-f182.google.com with SMTP id d75a77b69052e-50b4001af28so20613881cf.1 for ; Fri, 03 Apr 2026 04:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775214962; x=1775819762; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=e1iXfEJhkoJc89mTL/JJu7oRdlYA/T+hX/oQJz+ARaI=; b=owtr+P9My57Fm1ejv7MYf+EUmrhAADDUqrEZb0TjI54yldCYM8Z3TbzGQy5O8568/7 VtDmjXaW/rMwQh/8hZbVwGQ7DTzSdSQ1bd8dypTxzWHFSS51XZaWPsEUcMWlpzusVvxa VlxFUw2OpkTM2GtvWmQwYc2jev1HwYAoc/ynrLllxyCOWLRmegtPqya/T41Na3khUggj WTll0Kxjd/3sM4bolwGQeU16bqqHDcDKxoiVfgChJcXavbGFQNcKJpxv/bIeXMQdQdQ9 mWbG15BuG1OEntGN5KyPkftQzKFhzv4XwNivvkeYlILLs01uomFBwVaz9fN4zQZjTSbo UH9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775214962; x=1775819762; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=e1iXfEJhkoJc89mTL/JJu7oRdlYA/T+hX/oQJz+ARaI=; b=AUGDN9kgNfnhM8Ace6s2oA4zrWy2f6U9oEaNdFaA7BqsES0togYzV06huEj/uLDhzy tzc+LLzfSnpI2Xdvxc6SeZRf4kj22U6ogL8TdPo8A4sf6RJFOmYXhLx5Ii1CeLyddyIY Fx6QLWZyvRW89Uk6PP0VIbDUfEuUqRF7zNtEj0Y/JsJpg8VbakqW28kM9DR2HHU1nHgv Owebf5XAV9BzbG70qP8yj7o15hzovcp1h9f0BbCdDnxvCUYrudz2A3I43TkzdrCJiHh5 QivWWJQx60Np9SQzLwo8sViku/CaxE92x4dPjEU0ZMaf9oJYcts3MweNv6wu5lgH9koK tQLQ== X-Forwarded-Encrypted: i=1; AJvYcCU0KUcsog55GVRlD0UIhlOjf0eaZo9S4S4Q2yLL5z1HpY0VgrQWHWEmu9mJ8jEzJKvS5ace8laq9769O4A=@vger.kernel.org X-Gm-Message-State: AOJu0YygcfUKhEmxnaETrjKr8OPC0XUputgKmVl/XkJyQnsHaHKAYBf+ CG3djbrqdvoEadMxB0i8/ZmkyPfLp0CCi/0t/hWgxjGyXs7dZEgqZbLE X-Gm-Gg: ATEYQzzRzZ1S1HT4MH8tLgAUzInlP0p8E3Xd4No/ehvA+MSUOFyMdGCXzJNl2gidt65 PSBES6uTpDk0HGcrnaF6x7A9bu70QQUcJ0SBkCmILss/FlSM7VELn74JvrodlYcGfJgFUHvcFQo L8Ka1ECI/aZ3Cii9PtAetot84pBjO1R80yIbfnyjzsZF82DgBvNXqeSmhlv/89WcDOmGGchj8Zu CkywqtuHwq3qroB+Qicch2I/BYJE4fuZPldyM0/hQiEPJhn/rlKfKkRqgLx/2BClHEjkVvU2nvA hacSZA4D7zTFp9LXIiW4kA20W0Pe9VsOBFREgD6OKnV7jP/BW7X8vCF5kkUYM1xLqa0qOHg2W4D PmnD3W03BqqJ7yNLBcB52TfK2UGNqmyl2f13TqmsmZajWqkKVzzDkmt1hVewxHEo6qmaP+ruzpi SS3YiK/6Q9lme5JcTX2P1u/tYFaRIv X-Received: by 2002:a05:622a:244a:b0:509:4342:9980 with SMTP id d75a77b69052e-50d62a3e46amr38156841cf.33.1775214961635; Fri, 03 Apr 2026 04:16:01 -0700 (PDT) Received: from sleek.hsd1.nh.comcast.net ([2603:3005:1473:4000::71a3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8a5974e8e8esm45319836d6.43.2026.04.03.04.16.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2026 04:16:01 -0700 (PDT) From: Joshua Milas To: tglx@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, pjw@kernel.org, samuel.holland@sifive.com, unicorn_wang@outlook.com, inochiama@gmail.com, daniel.lezcano@linaro.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, liujingqi@lanxincomputing.com, alexander.sverdlin@gmail.com, rabenda.cn@gmail.com, dlan@kernel.org, chao.wei@sophgo.com, anup@brainfault.org Cc: josh.milas@gmail.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, sophgo@lists.linux.dev, hanguidong02@gmail.com, michael.opdenacker@rootcommit.com Subject: [PATCH v5 2/5] arm64: dts: sophgo: add initial Milk-V Duo S board support Date: Fri, 3 Apr 2026 07:15:13 -0400 Message-ID: <20260403111516.379795-3-josh.milas@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260403111516.379795-1-josh.milas@gmail.com> References: <20260403111516.379795-1-josh.milas@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Adds initial arm64 support for the Milk-V Duo S board [1] making it possible to boot Linux to the command line. Link: https://milkv.io/duo-s [1] Signed-off-by: Joshua Milas --- arch/arm64/boot/dts/sophgo/Makefile | 1 + .../boot/dts/sophgo/sg2000-milkv-duo-s.dts | 85 +++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 arch/arm64/boot/dts/sophgo/sg2000-milkv-duo-s.dts diff --git a/arch/arm64/boot/dts/sophgo/Makefile b/arch/arm64/boot/dts/soph= go/Makefile index 94f52cd7d994b..68aace728223a 100644 --- a/arch/arm64/boot/dts/sophgo/Makefile +++ b/arch/arm64/boot/dts/sophgo/Makefile @@ -1,2 +1,3 @@ # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_ARCH_SOPHGO) +=3D sg2000-milkv-duo-module-01-evb.dtb +dtb-$(CONFIG_ARCH_SOPHGO) +=3D sg2000-milkv-duo-s.dtb diff --git a/arch/arm64/boot/dts/sophgo/sg2000-milkv-duo-s.dts b/arch/arm64= /boot/dts/sophgo/sg2000-milkv-duo-s.dts new file mode 100644 index 0000000000000..8632470f43ab0 --- /dev/null +++ b/arch/arm64/boot/dts/sophgo/sg2000-milkv-duo-s.dts @@ -0,0 +1,85 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) + +/dts-v1/; + +#include "sg2000.dtsi" + +/ { + model =3D "Milk-V Duo S"; + compatible =3D "milkv,duo-s", "sophgo,sg2000"; + + aliases { + i2c4 =3D &i2c4; + mmc0 =3D &sdhci0; + serial0 =3D &uart0; + spi3 =3D &spi3; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; +}; + +&osc { + clock-frequency =3D <25000000>; +}; + +&dmac { + status =3D "okay"; +}; + +&emmc { + bus-width =3D <4>; + no-1-8-v; + cap-mmc-hw-reset; + no-sd; + no-sdio; + non-removable; + status =3D "okay"; +}; + +&gmac0 { + status =3D "okay"; +}; + +&i2c4 { + status =3D "okay"; +}; + +&mdio { + status =3D "okay"; +}; + +&saradc { + status =3D "okay"; +}; + +&sdhci0 { + bus-width =3D <4>; + no-1-8-v; + disable-wp; + status =3D "okay"; +}; + +&sdhci1 { + bus-width =3D <4>; + cap-sdio-irq; + no-mmc; + no-sd; + non-removable; + status =3D "okay"; +}; + +&spi3 { + status =3D "okay"; +}; + +&uart0 { + status =3D "okay"; +}; + +&usb { + dr_mode =3D "host"; + status =3D "okay"; +}; + --=20 2.53.0 From nobody Mon Apr 6 13:57:20 2026 Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43039391E77 for ; Fri, 3 Apr 2026 11:16:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775214966; cv=none; b=PrwHCj1hIx8aIasbJpMdU2vJGkjdRZcnHx67v7m/qqCApMWIQdCiSZvXi7F1F5osJlClLrfrGLnqhg+mAlvGvp9aOQ97asEl80pwvRuDGJdZrnkgYVwR9/isaUJu18PaC57LHOBDjfNnoaonC+TMC8YH7gj7kLIs1ORpHoPkhcQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775214966; c=relaxed/simple; bh=cmszwX0Ji3XjQt7Fpy6t/qmhlzCiNP9RsFnOxecQxzo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OMeIRkxjnwk8B6eKnKYTdiRoVoOFuPHwB9Y0s5ZQSlNeSj+BRnK2vhog6cjV0neAEysY/X567/apAjd29QnKl5jw8eNpVEFBQng5OkvxWHVssyavHc5IlQ4pVEJFrxyf/EJCaEUgdPppJ9az7EnjF1lbVWGeOcxpyhgLvW57hWA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=sspcHdxf; arc=none smtp.client-ip=209.85.219.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="sspcHdxf" Received: by mail-qv1-f49.google.com with SMTP id 6a1803df08f44-8a032383008so24345046d6.1 for ; Fri, 03 Apr 2026 04:16:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775214963; x=1775819763; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NICNW7Co3viLg/bgtUjVDeGjmH93cilbK6h9R5fkil0=; b=sspcHdxf7w6J9dSFJBvSPg+kggTAQzGU9RyleO23w9BAOWp9vVa5VOl5U59kgn2Ur4 eGZJRT0NeioAxcf+VukOtB82SYicW2ybWR1BoAwZRGYrekWtugsVNmbdhCUuYgNV3LH3 JO6M+KcQaAIkqHeLr/2yauSvCYp+MhUXaAkQIAFPtAg7C1rPxHc2AOafpZQKaXrXselh V6kON61EtBcWaycwSlQW1sLPazhUu1X48aGA+5/A0Udg518nz0FtuLHzWSaZwzM+E4Ud DTCxwlTahUCi4VaRGMpKpVF1ypdzeLpdtg9CUJAZPaXbnhI0TzHtS2CDkqb0wqHFfT+5 FuPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775214963; x=1775819763; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=NICNW7Co3viLg/bgtUjVDeGjmH93cilbK6h9R5fkil0=; b=ET8gsX0xeE8Sf6BE8UgwNKCtSgcPa/AE6DoxuM4fuW/rMn+TmupaeOVT6DmYrU7+Te zHri9xydO1gLx8VcByUFAETxFyrf3OYidfVM+1xGZGB13MnRh2GpBHuiBC+lAVuQq9Fh ILqY/oDxktwxO4T/7mrCmcILUMLWLnv68wmZBr0h8PBn4ki4lxs0lM6O4QwRBxlkYjTv 9Z1r+P2ms1kFGmj0pwFc23WRpyhhrNjbo2mG43FG1edrO+lUDJLnugFnAqNWBMVY8UOK M7u6jMJvZJqhQHMa2G3ULSxfr/1ad2+rm950wcQ48Ozx04L4ZC7zk7yod/JGPTIL7QkL 9hIQ== X-Forwarded-Encrypted: i=1; AJvYcCWhVwZzokSKeDgIaOR4h9qxeeuKwZvYzF1bLWkVugCMumlzXo1TZUnisb2qw64QUynEdF81NpeMwZbxii0=@vger.kernel.org X-Gm-Message-State: AOJu0YxPJnSy1mV+udt4Q/vh1aSqHKD4VehVuQpvBZwxX1kF6AtfeSeK dRrdWZ1Lc8b+DDMi7Dcv2D81weETEVaqbGuBLaJ9fN2iheYqrWIXwNPb X-Gm-Gg: AeBDietO9tcy6RcZgrblXA3Yfa9Pfr7aUXg1IgoFM4Rdq3RECcYgwih1NnrV0o2uQyL 6rbd1KWRwR66TYC46Exa3KctebwkGj+UxFNDTCiZZReBOHuI31GlkJuNoYk0BxE7ibKMuKLg70O mUPxUyX6Vd9Fh8UDKtrGlv2lPETyB9kRlv5ou3VjV7GH/kYUP3dDojgvnWqdbK/aKlvy9ruxAIr kprbKWrdFmRsl21eWgeAz1HkJVqgmC4rwxd/rsGmNeY5rPLY388z2nvR4i5JxpikMjOxYJAeaRc 7iQUtNhqn71kHyjDnJPN/NbEZn+0foW8Oj2ufjMvRvRXaG8mLSPqLNm8umcOwem4UdGJIjW5MSS De6lshrFqldR2LI1VfkXChBvjWjfG/qZ5XT83T/EUQlZBuRb7EEuNlnuef940MXGlOmDP2yNkDp k5WS0FDH369ClWVd4ggjXOqUgBVDLg X-Received: by 2002:a05:6214:4186:b0:899:f6bb:331f with SMTP id 6a1803df08f44-8a704bb884fmr39763376d6.41.1775214963119; Fri, 03 Apr 2026 04:16:03 -0700 (PDT) Received: from sleek.hsd1.nh.comcast.net ([2603:3005:1473:4000::71a3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8a5974e8e8esm45319836d6.43.2026.04.03.04.16.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2026 04:16:02 -0700 (PDT) From: Joshua Milas To: tglx@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, pjw@kernel.org, samuel.holland@sifive.com, unicorn_wang@outlook.com, inochiama@gmail.com, daniel.lezcano@linaro.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, liujingqi@lanxincomputing.com, alexander.sverdlin@gmail.com, rabenda.cn@gmail.com, dlan@kernel.org, chao.wei@sophgo.com, anup@brainfault.org Cc: josh.milas@gmail.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, sophgo@lists.linux.dev, hanguidong02@gmail.com, michael.opdenacker@rootcommit.com Subject: [PATCH v5 3/5] dt-bindings: soc: sophgo: add sg2000 plic and clint documentation Date: Fri, 3 Apr 2026 07:15:14 -0400 Message-ID: <20260403111516.379795-4-josh.milas@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260403111516.379795-1-josh.milas@gmail.com> References: <20260403111516.379795-1-josh.milas@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Document the compatible strings for the sg2000 interrupt controller and timer. Signed-off-by: Joshua Milas Acked-by: Krzysztof Kozlowski --- .../bindings/interrupt-controller/sifive,plic-1.0.0.yaml | 1 + Documentation/devicetree/bindings/timer/sifive,clint.yaml | 1 + 2 files changed, 2 insertions(+) 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 e0267223887ec..decc43df3c839 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 @@ -73,6 +73,7 @@ properties: - allwinner,sun20i-d1-plic - sophgo,cv1800b-plic - sophgo,cv1812h-plic + - sophgo,sg2000-plic - sophgo,sg2002-plic - sophgo,sg2042-plic - sophgo,sg2044-plic diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Do= cumentation/devicetree/bindings/timer/sifive,clint.yaml index 3bab40500df9b..54266b3c2a185 100644 --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml @@ -50,6 +50,7 @@ properties: - allwinner,sun20i-d1-clint - sophgo,cv1800b-clint - sophgo,cv1812h-clint + - sophgo,sg2000-clint - sophgo,sg2002-clint - thead,th1520-clint - const: thead,c900-clint --=20 2.53.0 From nobody Mon Apr 6 13:57:20 2026 Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 982983AB27A for ; Fri, 3 Apr 2026 11:16:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775214967; cv=none; b=Ly/UlG33L2yABZCzVAboT8DB7quA8HYh0molzjqo+WqsV9UvClidcEVTJodT1zIcZFg2K4IE08EN/i5ciS42JJBg6nEn9SJkmCPqD40MQ3IY0RkpQGjG7vJoF7Qd9ejGTOHMtFbdN+Ee7KV5Lk4R2TfDd2cO9xRNj+xi+ugmp60= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775214967; c=relaxed/simple; bh=tFW3YISywSwOMjdHnG6FZDjw1jg1AF8WKQoGy8w1cNI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ItSvpg2YIA6vAZkzPqGXYppZL2WY37qBufIHSIT2GWkShprTw8+4di4PIZnroq80iU0VUyILe2OFkmvp8nTeZ1BfCCk30KlgE1Nm/OcV4GknfqLBb1zYIoAnIMYXi+/2qDeZNkj40ZUWE0Qa5rSGUryhHunWPYPE1j2YDVe9WtU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=PDZdPaHF; arc=none smtp.client-ip=209.85.219.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PDZdPaHF" Received: by mail-qv1-f49.google.com with SMTP id 6a1803df08f44-8a0323830beso18252476d6.0 for ; Fri, 03 Apr 2026 04:16:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775214965; x=1775819765; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fJAPLXH+JSPAdQeklsWr8qGoeKpyEbUrtjYWuQxTQmo=; b=PDZdPaHFEyCEi4fkRukfiryyz4bv8rF5rljg1Y68ATYTEUdHF01OKD7+Uy0S3Ad76p 9iXWXfwX/kmWinRLlrDdijVYqGKig2KZ4+OTVIGIcJyjQOv8tuYTPjip61nLPsvxQwdJ igi5d6f90mYRpfNyts2ftTAFBYnWuISoAZvifTzLoQ7YBCIRtnRGkT6jevH2aTclAJJd w6OM0ywqLh4LgOW6UDFGkxqWELVgGWalWeUcqyJnAb/FjICetpKYMd4fMlESURwtVccT o86vx+DSOuBu9iQH4mhRLK2gwEr9wOrr51Sd3Sb8ZobFJi1DDMECwquGYzD5XJRjf3pG bECw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775214965; x=1775819765; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=fJAPLXH+JSPAdQeklsWr8qGoeKpyEbUrtjYWuQxTQmo=; b=WdhUIRi7QGFwhiTSsoc1dmeOxzTbsH/C4TEkRzwWBG/H2BnvVYnlNrXuhXhSNuzT7K W7JFMFrvCvSE9C1fgFB1PjTComQr0yIXknxoUMn7ANPOYcGKPYYYz6JLXhDwvEWhRdFK f1V+jA7gRq6vugBH0tKMyRy93brHAMomNpcrcffXXVfMofn8W26aSXFkSW1HWx1/trLL 4ZN6G5WYYv+sb6SODO8lba7SS6fyQtjKpsBcLXRp/ZnfpJ8Ph/CwKn59qY0humrf55YG 9XAiXl+0wyaq4KjU+N0WioXyJRV7RE3prddOrf8AIAVe+b5T9feSL/8LO6k35V39ALSd z11w== X-Forwarded-Encrypted: i=1; AJvYcCWB00qLO8hnnBA/2dcmJ2RDz1SZ3NC0Svc39yyicWpYO+0ObhO3q0oliwZ3RWnZGGbV2lU32dPLX4/WSLw=@vger.kernel.org X-Gm-Message-State: AOJu0Yx+teW0pAjKQemOH3IWmsHro6cI/tzLpuiyywfDZmaBklbScNeZ unpdVTO58m/8i00/CHCnkTAoWBrs0JqBzx/9QgzOhNU3SHMARRbXvroJ X-Gm-Gg: AeBDieugr46DnyYa4+tsvjM67Mlv7skP37qflGj56e7FRSyw7zzd5OAh84tP5WHIhyG 5wOlImxIV9rbPZAnVkRpnL4U9J9s3v1iZ5dequHyUiIsSukn9XeNo9Fk/WtpPBFdFGjrCGP3j8z b692KI3OSp1HVgcBHmLEMdgI7oQBRvHYHLFlTTQUYLZKPgBjIsncCvEL4Fbo6Hra3LV6yrpER4g LsrdXIQQ/mqOoauf7zxTp5ZaabQaW7pablIsmdTFAjo8954nNGOVcEWlK2KHjRYRYTJWv6XRQsb cj5IUeKtCJn7rPyjYgfkWbUt/OoGpa2KY16G1ygllENH8Kmq9d0CuvcbvL318QXMWAQhxLyyk7y +kmyfZpKY3V6Uq09LbMIO+NkvW/zSb8g8zbMAhzxf1CnAgatRk9Uxs6rKoRyBwm78y7pZQBSRqc JeE+kiVzOHi6hn96wEfx6XhbHMxV5lt2PbzKVhZzM= X-Received: by 2002:a05:6214:55c3:b0:899:a91a:2e08 with SMTP id 6a1803df08f44-8a704bb920fmr38024396d6.52.1775214964596; Fri, 03 Apr 2026 04:16:04 -0700 (PDT) Received: from sleek.hsd1.nh.comcast.net ([2603:3005:1473:4000::71a3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8a5974e8e8esm45319836d6.43.2026.04.03.04.16.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2026 04:16:04 -0700 (PDT) From: Joshua Milas To: tglx@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, pjw@kernel.org, samuel.holland@sifive.com, unicorn_wang@outlook.com, inochiama@gmail.com, daniel.lezcano@linaro.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, liujingqi@lanxincomputing.com, alexander.sverdlin@gmail.com, rabenda.cn@gmail.com, dlan@kernel.org, chao.wei@sophgo.com, anup@brainfault.org Cc: josh.milas@gmail.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, sophgo@lists.linux.dev, hanguidong02@gmail.com, michael.opdenacker@rootcommit.com Subject: [PATCH v5 4/5] riscv64: dts: sophgo: add SG2000 dtsi Date: Fri, 3 Apr 2026 07:15:15 -0400 Message-ID: <20260403111516.379795-5-josh.milas@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260403111516.379795-1-josh.milas@gmail.com> References: <20260403111516.379795-1-josh.milas@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Adds sg2000.dtsi on the RISCV side. Signed-off-by: Joshua Milas --- arch/riscv/boot/dts/sophgo/sg2000.dtsi | 53 ++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 arch/riscv/boot/dts/sophgo/sg2000.dtsi diff --git a/arch/riscv/boot/dts/sophgo/sg2000.dtsi b/arch/riscv/boot/dts/s= ophgo/sg2000.dtsi new file mode 100644 index 0000000000000..412adacc00576 --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/sg2000.dtsi @@ -0,0 +1,53 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) + +#define SOC_PERIPHERAL_IRQ(nr) ((nr) + 16) + +#include +#include +#include "cv180x-cpus.dtsi" +#include "cv180x.dtsi" +#include "cv181x.dtsi" + +/ { + compatible =3D "sophgo,sg2000"; + + memory@80000000 { + device_type =3D "memory"; + reg =3D <0x80000000 0x10000000>; + }; + + soc { + interrupt-parent =3D <&plic>; + dma-noncoherent; + + pinctrl: pinctrl@3001000 { + compatible =3D "sophgo,sg2000-pinctrl"; + reg =3D <0x03001000 0x1000>, + <0x05027000 0x1000>; + reg-names =3D "sys", "rtc"; + }; + + clk: clock-controller@3002000 { + compatible =3D "sophgo,sg2000-clk"; + reg =3D <0x03002000 0x1000>; + clocks =3D <&osc>; + #clock-cells =3D <1>; + }; + + plic: interrupt-controller@70000000 { + compatible =3D "sophgo,sg2000-plic", "thead,c900-plic"; + reg =3D <0x70000000 0x4000000>; + interrupts-extended =3D <&cpu0_intc 11>, <&cpu0_intc 9>; + interrupt-controller; + #address-cells =3D <0>; + #interrupt-cells =3D <2>; + riscv,ndev =3D <101>; + }; + + clint: timer@74000000 { + compatible =3D "sophgo,sg2000-clint", "thead,c900-clint"; + reg =3D <0x74000000 0x10000>; + interrupts-extended =3D <&cpu0_intc 3>, <&cpu0_intc 7>; + }; + }; +}; --=20 2.53.0 From nobody Mon Apr 6 13:57:20 2026 Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 380F338237E for ; Fri, 3 Apr 2026 11:16:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775214973; cv=none; b=BEP7TK4wNzEoDrQkNYazvGKI/KI6j41gzRfuJ/5E4gLBuyqUBvVBmIQzcsL8S9bMrrMzOUrAm/eFWbpsvoj/ODvy7/xwKdNBlGO6hxRyn5lwrwCGa7A6yb59moXUvxbEMl1SzIvKBCwbH4gJu0PtT/3jpCC86ptI+xkvTaLDe18= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775214973; c=relaxed/simple; bh=ifciZjFJsSlLqvMHHqbkFJuk8b7OaiYXAH2dMXVM6NQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DCeEKbTFCr573pRBOHT5IAlrQjx+MF2Nv50i6zeQ69pXRiiRSoocx5kjcTl1ePcfwWkT4bVgmswme+sBc2pcpbrli7/hE3H+/W8s9j7fQs4qidoK+poncGKd+8V7u+dluFHE78O8EpSiPXME7p+YfikIT46MWcDT1tu//tljwUc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Ok49FR6a; arc=none smtp.client-ip=209.85.160.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ok49FR6a" Received: by mail-qt1-f170.google.com with SMTP id d75a77b69052e-50b268fba9aso15617631cf.3 for ; Fri, 03 Apr 2026 04:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775214966; x=1775819766; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tU9gWymIXZu8VRSy2GyhvjXHSpA4tanwIEBlc+6eVbQ=; b=Ok49FR6aURjAd24hPWpXZufIc2IuGiqhDCpao5caLwRx6iBBz5siaVjdKcGk78F6ne KItZoptTIvljo7XpQXfWx+59t+PdYax55VJhTmC4S63ZHzEAQS448Ix2oTOXMtdOTGyP JagwLGNNyM09RW34CrSFAlWyJzce5lwrVjyyJkGKYicACSxl5kZ5vbPVNhmibSQbc2i+ KTW8Sfadnb1XeaCAC1/8tFHuAFs0ScWsJOAKQyYjI2YAIjPbIdvn+i0DJBqCXJ9ODM/K +TeNH2PdH9fQT+GSbL2KjaerxonsKncapcMsAbuje8DgADmi3/g/m8216GBa/z0SAIvw 0akg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775214966; x=1775819766; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=tU9gWymIXZu8VRSy2GyhvjXHSpA4tanwIEBlc+6eVbQ=; b=cHgXk86Dq+53EVS1dxIwmkW633Ch8eGgT6CHNS6B5dqilLtLaQcgihWNTPVR1dxwmW iR5TeYfD6dRcje0E84p8Xv99kZSp4zTV9+ZE3jRAbFu+0DE2HJ63lyfSV/lV70r/0Wg1 IIQ3xmocqnFgeAt6B7vX+bxShfZ3TK7j2dnSxRb1Klj9OBP6oAh35kBteq7br6x+mwMr 4yIdntWvGxjtOC14RQgkN9JMs49KKD/lCZlEdbPY0uZ8mbZPgEQzYYjE1+DRcc8jh0ag GBbOX6hYhNWeLXB8nPuwG4y6gxwHxdhcJJ/Kgo0j19Lh/6nYNQpbHACT969uqOPYMnzX S0Cg== X-Forwarded-Encrypted: i=1; AJvYcCVucYo/WlOXDJLyHgk5zB7rUSWsZCYNwi6Ms8SNsKpg+Hz4BwWSWOkC8ogPnBy8vBIN9NY2Le8vyFg4dRw=@vger.kernel.org X-Gm-Message-State: AOJu0YyT+Qmt1eqn6XvD4PJWOGwzq+N0vdFj7PTpv2vVNW/dPKOa7CZf zsoN61ajHx0ik9hYQ2d44gyD/VgVrykclRTSE2hY4bbpM/pjfhvrVEUk X-Gm-Gg: ATEYQzzLxJgLS7dDh4o6/2A7xiFQizLvSwShNHKNAoTkFrDIc2l0Z3O05GBIjGxJk7b +HlFxwX87apYrNznCstq4oDf+hfV+Z4wc0e7bSMHBcTcYLh1mILvyCgd4B41HVd+EM9lcpj1K9j 9I66QeiuS+txeN2pX+0fQCVivUd4TWT+01rXLmkEQVIWn4gwWwqbb3L+AhNjhDJtg2FwtRylcTD cHht09KoDxUfDz2N4lkHsHzi2r8KrBuKEMQQ+B7H04Btsxt+QOa+aOvqHOsFWf/nxLiyXFbEIre 0OniSoWuzG1l94ZUY+nQxIvzhoMw2EJub9TmHYCAeZ2vKs1Sb9NEC52K3RogPfv729kvn6LugjX 509cmjUgKsqzEbhrDa78SLXoJlp8W+AiCnvrxaKM/sss7hLQNogVWVitJcur0cKXzxQqIZMdAxy VKiSVcWO8yLM24gA/wUgpjVjvJ04vw X-Received: by 2002:ac8:5785:0:b0:50b:4bfb:1653 with SMTP id d75a77b69052e-50d62cc15d3mr37333391cf.41.1775214966031; Fri, 03 Apr 2026 04:16:06 -0700 (PDT) Received: from sleek.hsd1.nh.comcast.net ([2603:3005:1473:4000::71a3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8a5974e8e8esm45319836d6.43.2026.04.03.04.16.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2026 04:16:05 -0700 (PDT) From: Joshua Milas To: tglx@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, pjw@kernel.org, samuel.holland@sifive.com, unicorn_wang@outlook.com, inochiama@gmail.com, daniel.lezcano@linaro.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, liujingqi@lanxincomputing.com, alexander.sverdlin@gmail.com, rabenda.cn@gmail.com, dlan@kernel.org, chao.wei@sophgo.com, anup@brainfault.org Cc: josh.milas@gmail.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, sophgo@lists.linux.dev, hanguidong02@gmail.com, michael.opdenacker@rootcommit.com Subject: [PATCH v5 5/5] riscv64: dts: sophgo: add initial Milk-V Duo S board support Date: Fri, 3 Apr 2026 07:15:16 -0400 Message-ID: <20260403111516.379795-6-josh.milas@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260403111516.379795-1-josh.milas@gmail.com> References: <20260403111516.379795-1-josh.milas@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This adds initial riscv support for the Milk-V Duo S board [1] making it possible to boot Linux to the command line. Link: https://milkv.io/duo-s [1] Signed-off-by: Joshua Milas --- arch/riscv/boot/dts/sophgo/Makefile | 1 + .../boot/dts/sophgo/sg2000-milkv-duo-s.dts | 85 +++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 arch/riscv/boot/dts/sophgo/sg2000-milkv-duo-s.dts diff --git a/arch/riscv/boot/dts/sophgo/Makefile b/arch/riscv/boot/dts/soph= go/Makefile index 6f65526d4193b..58cc6b70d8de4 100644 --- a/arch/riscv/boot/dts/sophgo/Makefile +++ b/arch/riscv/boot/dts/sophgo/Makefile @@ -1,6 +1,7 @@ # 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 sg2000-milkv-duo-s.dtb dtb-$(CONFIG_ARCH_SOPHGO) +=3D sg2002-licheerv-nano-b.dtb dtb-$(CONFIG_ARCH_SOPHGO) +=3D sg2042-milkv-pioneer.dtb dtb-$(CONFIG_ARCH_SOPHGO) +=3D sg2042-evb-v1.dtb diff --git a/arch/riscv/boot/dts/sophgo/sg2000-milkv-duo-s.dts b/arch/riscv= /boot/dts/sophgo/sg2000-milkv-duo-s.dts new file mode 100644 index 0000000000000..8632470f43ab0 --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/sg2000-milkv-duo-s.dts @@ -0,0 +1,85 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) + +/dts-v1/; + +#include "sg2000.dtsi" + +/ { + model =3D "Milk-V Duo S"; + compatible =3D "milkv,duo-s", "sophgo,sg2000"; + + aliases { + i2c4 =3D &i2c4; + mmc0 =3D &sdhci0; + serial0 =3D &uart0; + spi3 =3D &spi3; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; +}; + +&osc { + clock-frequency =3D <25000000>; +}; + +&dmac { + status =3D "okay"; +}; + +&emmc { + bus-width =3D <4>; + no-1-8-v; + cap-mmc-hw-reset; + no-sd; + no-sdio; + non-removable; + status =3D "okay"; +}; + +&gmac0 { + status =3D "okay"; +}; + +&i2c4 { + status =3D "okay"; +}; + +&mdio { + status =3D "okay"; +}; + +&saradc { + status =3D "okay"; +}; + +&sdhci0 { + bus-width =3D <4>; + no-1-8-v; + disable-wp; + status =3D "okay"; +}; + +&sdhci1 { + bus-width =3D <4>; + cap-sdio-irq; + no-mmc; + no-sd; + non-removable; + status =3D "okay"; +}; + +&spi3 { + status =3D "okay"; +}; + +&uart0 { + status =3D "okay"; +}; + +&usb { + dr_mode =3D "host"; + status =3D "okay"; +}; + --=20 2.53.0