From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) (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 3F4081C68F for ; Fri, 3 Apr 2026 11:15:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775214960; cv=none; b=rpXDihDSM5CZPZdD82XlcUCh9pKjmdNtgbFv0nYeoueoXQXeHi6HbZ2b7ixMFCGFpVZiad531q5AE0TBPSuagiwPzECoR6QPuBPwSuhP+HDDoAatkMsP6MXIO68H9iFUZyVSDfAwDR8eARjfoId8Cs1M32YJ/sB9XV+dVJTtRcM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775214960; c=relaxed/simple; bh=oFEYEJ7SA8sUm/pXg5pC1/BYgPiYYcdFYQGF/ujaB4E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iVl9C3PLJcMdIS+PpU9eFv2+PWWTcgC94Xirrwj4w/z0H4THmGgfdUtMLVzy3HQ0lhC1vAPpMtfNRSLo5X0uOgFvtnLll3mVMARkiIZHo9+t+t3nhIiSb89lW1CWIst8WJZQlUsLTTxKjFdJyUfx95IiHagoI7U3WYlXc4n+GAE= 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=fgOcIj4m; arc=none smtp.client-ip=209.85.219.44 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="fgOcIj4m" Received: by mail-qv1-f44.google.com with SMTP id 6a1803df08f44-8a032383008so24344186d6.1 for ; Fri, 03 Apr 2026 04:15:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775214958; x=1775819758; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=VScxEqB1ufMX1zFMz0Kwtu1aZDayJH9mecM8OM4h8BQ=; b=fgOcIj4m3RtuJC4kq8D860u4rpAeW0Em2ldYtKyPdBKkGYqFyvm9csXy05P1pw84N/ u1ArLQuk7TTv+AxoVV4dWVKIijmS5aXoLgZZylP2QlcNUt2FgmfSeXTITlkAmqW2eNii dyKfPC8Kqg8jVP2FsDv+uJ81399N2is2N2wJgZaIoTUgAEMH7/ZXTEeipNcNayCAnNbH u8uCQz87RsCFnyYzwcGGLR9JiD7Cv+2PkcwtZVFu1oX60mZ84htdM1Z1qT7k0rzY+JEu FzwDjFtchNwObvekYLY6VE7c5YE2R3d0mS3Th0IAvwyf9DhRhxGCoDNTvTPnvx+svdga Epxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775214958; x=1775819758; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VScxEqB1ufMX1zFMz0Kwtu1aZDayJH9mecM8OM4h8BQ=; b=KFPWBAmJV/SAzUF/2DShyRTcfmBZ3yOC0Z0dFCPU5Bne2B81ysvMTrx/FEk2rDHf33 1WDXJOWMWpSxVxAUSuX2y3x7y8M+ZGqEwXz7BsWinHizI7rm/S/NDbEy6YzmHC8QDxpH PcND4vDvxe4wiYp52SoixhiDpwvocsb8bi8ZkLbofoZRYykmMeWAQHOd5zMR5w+Kj4CX BfQGn+kPTymHhw5ScsVCWQcbNMNjajL+frFQdWdLLvccowe0juTakw+uEdvBv3CLNmJ7 Ven4BbkYXe2g4JzTGH6xvXS3z26JjyntEGqnfDrSoXtHc17EJWY9FhyqabPn43L3IOLM wc5w== X-Forwarded-Encrypted: i=1; AJvYcCWySgaKz+vKRsrmrhI37AvnUO6nRdCEGNolnqYdURKMz7w72kXhAdw+QV6rPzEtDwvphuGkyxa2Rseu6uw=@vger.kernel.org X-Gm-Message-State: AOJu0YzEaeZ1HiYdRa7Fd44ARBsMXj5gh4sWgwMWMAfP8hloxYxQAjkP B+lki52XGRw0i7Z7VONsQ0VsD4L5fIHRIm1OV1uqvxW+iEt4twTwN5wA X-Gm-Gg: AeBDiestukPfh24yfy991exfmG+nypN1kZRgULwsbMzygq1wUTUR02lu/Y+RXXm10nM k2XTfV1L5f/wVXKTEVLiNjbBCudbhBcY4nw574SHK9aeFkblDAj01DtoqgfiHDjYjN5LP4kNbBq GTLHdTEifV+L8VMHskSZaIQXs8ntaNrho+DCOXJ21VYGHr3v7o6VP9QootaFZrxagyEMOkjrgV5 kqsK/c7k53QrkLCfd37kR5RAXLd2yoVLTLLvMBHYJ6nVf0+0ZbVXnln+TgLzY1Yql+Og1CH8lau YeKa4cxG0QtQHKdZ/frES24jq4Q7hbrTfnt0IetZwhyQRDFwJIS7Zz4A/MbrYln9+LQsyRxEOh1 yYVktuwl8tSrlnARt8xuJP09s3b/52jA0LNIU+OaALo4YaVzVjF22CQoUIaRibc6qoVKGnruXvG yD24izVBlfEe1SddvaoW/j03bubCLtnzjKr70roFI= X-Received: by 2002:a05:6214:226c:b0:89c:d7e3:7f01 with SMTP id 6a1803df08f44-8a704ea730bmr37757456d6.48.1775214958204; Fri, 03 Apr 2026 04:15:58 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2026 04:15:57 -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 0/5] Add initial Milk-V Duo S board support Date: Fri, 3 Apr 2026 07:15:11 -0400 Message-ID: <20260403111516.379795-1-josh.milas@gmail.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This adds an initial device tree for the Milk-V Duo S board with support for reading from the SD card and network over Ethernet. This is continued work from Michael Opdenacker's v6 series [1] on the ARM64 and RISCV side. It has been tested with ARM64 and RISCV64 to boot from an SD card, have networking, and read I2C slave devices over i2c4. --- v5 - Fixes spaces at beginning of line in &usb node of DTS v4: https://lore.kernel.org/sophgo/20260328173450.219664-2-josh.milas@gmail.com/ - Rebased to latest sophogo/for-next - Added usb node to arm64 and riscv DTS - Removed sg200x link in commit messages - Added missing change to v3 and removed link from v2 v3: https://lore.kernel.org/sophgo/20251029001052.36774-1-josh.milas@gmail.com/ - Added sg2000 interrupt controller and timer to documentation - Added sg2000.dtsi for RISCV and moved DTS over to use it - remove devices from DTS's to match what is available in the default pinmux config. spi0-2, i2c0-3, uart1-4 - Added i2c4 and spi3 aliases - Removed milkv,duo-s from sophgo,cv1812h in documentation v2: https://lore.kernel.org/sophgo/20251011014811.28521-1-josh.milas@gmail.com/ - Made new entry in docs to avoid DTC error - "Milk-V DuoS" -> "Milk-V Duo S" - Sorting of aliases - Added uart*, emmc, mdio, gmac0, i2c*, spi*, dmac, saradc to device tree matching what is available on the pinout - Removal of 'no-mmc' and 'no-sdio' for sdhci0 as it works without - Added riscv device tree v1: https://lore.kernel.org/sophgo/20250927173619.89768-1-josh.milas@gmail.com/ Link: https://lore.kernel.org/linux-riscv/20240421055710.143617-1-michael.opdenacker@bootlin.com/ [1] Joshua Milas (5): dt-bindings: soc: sophgo: add Milk-V Duo S board compatibles arm64: dts: sophgo: add initial Milk-V Duo S board support dt-bindings: soc: sophgo: add sg2000 plic and clint documentation riscv64: dts: sophgo: add SG2000 dtsi riscv64: dts: sophgo: add initial Milk-V Duo S board support .../sifive,plic-1.0.0.yaml | 1 + .../bindings/soc/sophgo/sophgo.yaml | 4 + .../bindings/timer/sifive,clint.yaml | 1 + arch/arm64/boot/dts/sophgo/Makefile | 1 + .../boot/dts/sophgo/sg2000-milkv-duo-s.dts | 85 +++++++++++++++++++ arch/riscv/boot/dts/sophgo/Makefile | 1 + .../boot/dts/sophgo/sg2000-milkv-duo-s.dts | 85 +++++++++++++++++++ arch/riscv/boot/dts/sophgo/sg2000.dtsi | 53 ++++++++++++ 8 files changed, 231 insertions(+) create mode 100644 arch/arm64/boot/dts/sophgo/sg2000-milkv-duo-s.dts create mode 100644 arch/riscv/boot/dts/sophgo/sg2000-milkv-duo-s.dts create mode 100644 arch/riscv/boot/dts/sophgo/sg2000.dtsi base-commit: 9aa6068586a9b4cd34cf04f8dee72a7283ab4ae4 -- 2.53.0