From nobody Fri Oct 3 12:16:44 2025 Received: from freeshell.de (freeshell.de [116.202.128.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B8B128E3F; Sun, 31 Aug 2025 23:01:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=116.202.128.144 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756681301; cv=none; b=XUKvKWLmHNAOq0R25sYhJ8vXX9l+/dIcyLKTg3DN4iCiY+a9BwmDyDMRWYhi1RnduzMe+PnyjEg8CvVfseIjGlNJokqzc0RiicGYuRiH5DwV4s6QNq/abBDxdWvtcEr0jglV/j/S+HT4J3DmTeO27NVpw/nkF70aPlujTd5pH6o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756681301; c=relaxed/simple; bh=Izc1aFIyDGmf8d+ALXW9MS1Y9NuPvV19PCEOutaDbbM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DV0r93ov0WBU+sf8KKIMMN49te9W7LPnnfH7gPqkKVcveVMFCgXqQ9gcmla9cAeWs76YbsN7yJyN7gDo7F9XePjaTip5vgo8AQL95Vb0G4kbiMYSYm16TL7aUD5TDT+EVRaYoMWlkjQryBr7sXdORBco0BlvxetQt0341K6iKAY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=freeshell.de; spf=pass smtp.mailfrom=freeshell.de; arc=none smtp.client-ip=116.202.128.144 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=freeshell.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=freeshell.de Received: from hay.lan (unknown [IPv6:2605:59c0:2078:cf00:6ecf:39ff:fe00:8375]) (Authenticated sender: e) by freeshell.de (Postfix) with ESMTPSA id EB3C6B220079; Mon, 1 Sep 2025 01:01:34 +0200 (CEST) From: E Shattow To: Conor Dooley , Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, E Shattow Subject: [PATCH v2 1/5] riscv: dts: starfive: add common board dtsi for Milk-V Mars CM variants Date: Sun, 31 Aug 2025 15:59:26 -0700 Message-ID: <20250831225959.531393-2-e@freeshell.de> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250831225959.531393-1-e@freeshell.de> References: <20250831225959.531393-1-e@freeshell.de> 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" Add a common board dtsi for use by Milk-V Mars CM and Milk-V Mars CM Lite. Signed-off-by: E Shattow --- .../dts/starfive/jh7110-milkv-marscm.dtsi | 159 ++++++++++++++++++ 1 file changed, 159 insertions(+) create mode 100644 arch/riscv/boot/dts/starfive/jh7110-milkv-marscm.dtsi diff --git a/arch/riscv/boot/dts/starfive/jh7110-milkv-marscm.dtsi b/arch/r= iscv/boot/dts/starfive/jh7110-milkv-marscm.dtsi new file mode 100644 index 000000000000..25b70af564ee --- /dev/null +++ b/arch/riscv/boot/dts/starfive/jh7110-milkv-marscm.dtsi @@ -0,0 +1,159 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2025 E Shattow + */ + +/dts-v1/; +#include +#include "jh7110-common.dtsi" + +/ { + aliases { + i2c1 =3D &i2c1; + i2c3 =3D &i2c3; + i2c4 =3D &i2c4; + serial3 =3D &uart3; + }; + + sdio_pwrseq: sdio-pwrseq { + compatible =3D "mmc-pwrseq-simple"; + reset-gpios =3D <&sysgpio 33 GPIO_ACTIVE_LOW>; + }; +}; + +&gmac0 { + assigned-clocks =3D <&aoncrg JH7110_AONCLK_GMAC0_TX>; + assigned-clock-parents =3D <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>; + starfive,tx-use-rgmii-clk; + status =3D "okay"; +}; + +&i2c0 { + status =3D "okay"; +}; + +&i2c2 { + status =3D "disabled"; +}; + +&i2c6 { + status =3D "disabled"; +}; + +&mmc1 { + #address-cells =3D <1>; + #size-cells =3D <0>; + + mmc-pwrseq =3D <&sdio_pwrseq>; + non-removable; + status =3D "okay"; + + ap6256: wifi@1 { + compatible =3D "brcm,bcm43456-fmac", "brcm,bcm4329-fmac"; + reg =3D <1>; + interrupt-parent =3D <&sysgpio>; + interrupts =3D <34 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names =3D "host-wake"; + pinctrl-0 =3D <&wifi_host_wake_irq>; + pinctrl-names =3D "default"; + }; +}; + +&pcie0 { + status =3D "okay"; +}; + +&phy0 { + rx-internal-delay-ps =3D <1500>; + tx-internal-delay-ps =3D <1500>; + motorcomm,rx-clk-drv-microamp =3D <3970>; + motorcomm,rx-data-drv-microamp =3D <2910>; + motorcomm,tx-clk-10-inverted; + motorcomm,tx-clk-100-inverted; + motorcomm,tx-clk-1000-inverted; + motorcomm,tx-clk-adj-enabled; +}; + +&pwm { + status =3D "okay"; +}; + +&spi0 { + status =3D "okay"; +}; + +&sysgpio { + uart1_pins: uart1-0 { + tx-pins { + pinmux =3D ; + bias-disable; + drive-strength =3D <12>; + input-disable; + input-schmitt-disable; + }; + + rx-pins { + pinmux =3D ; + bias-pull-up; + input-enable; + input-schmitt-enable; + }; + + cts-pins { + pinmux =3D ; + bias-disable; + input-enable; + input-schmitt-enable; + }; + + rts-pins { + pinmux =3D ; + bias-disable; + input-disable; + input-schmitt-disable; + }; + }; + + usb0_pins: usb0-0 { + vbus-pins { + pinmux =3D ; + bias-disable; + input-disable; + input-schmitt-disable; + slew-rate =3D <0>; + }; + }; + + wifi_host_wake_irq: wifi-host-wake-irq-0 { + wake-pins { + pinmux =3D ; + input-enable; + }; + }; +}; + +&uart1 { + uart-has-rtscts; + pinctrl-0 =3D <&uart1_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + +&usb0 { + dr_mode =3D "host"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&usb0_pins>; + status =3D "okay"; +}; --=20 2.50.0 From nobody Fri Oct 3 12:16:44 2025 Received: from freeshell.de (freeshell.de [116.202.128.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7631730CD95; Sun, 31 Aug 2025 23:01:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=116.202.128.144 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756681314; cv=none; b=Dt+gDDfbCDLbgjgFyvSzPnEHCV4vpZmoPMM4TFzHJBNPTLsUIx6RTtPLrFntYsGXsjjb0wVkhD4c1unuD3qNyqb6zCFWPV7dBt0Waayj2Ie2wuEM6smweQZd6cFH4gYzkciLbWlmHDMN9xJjuPlnbzYRMfz3+Hm6ecmKmw1U3gQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756681314; c=relaxed/simple; bh=oLmJam8elgXo4Z2XcH7sJyxfqIuwgBp85TduPnnZeUk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mB44i5KY2I4i4O36YKi8X8AiICzBrnlWuF7X87kkuX/LugRYoC8BH7vBnOFVyrQUoJrDmH0HgRTvNcyC+6rjchGeGufSS3FYilFE4hJnQUfD9BocTMpKstUc8slgNJ+2olw1/kTE4+qrk5sXFmrDfnXvdUq1sAnaGes16WNDN58= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=freeshell.de; spf=pass smtp.mailfrom=freeshell.de; arc=none smtp.client-ip=116.202.128.144 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=freeshell.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=freeshell.de Received: from hay.lan (unknown [IPv6:2605:59c0:2078:cf00:6ecf:39ff:fe00:8375]) (Authenticated sender: e) by freeshell.de (Postfix) with ESMTPSA id 24905B220250; Mon, 1 Sep 2025 01:01:47 +0200 (CEST) From: E Shattow To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Michael Zhu , Drew Fustini Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, E Shattow Subject: [PATCH v2 2/5] dt-bindings: riscv: starfive: add milkv,marscm-emmc Date: Sun, 31 Aug 2025 15:59:27 -0700 Message-ID: <20250831225959.531393-3-e@freeshell.de> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250831225959.531393-1-e@freeshell.de> References: <20250831225959.531393-1-e@freeshell.de> 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" Add "milkv,marscm-emmc" as a StarFive JH7110 SoC-based system-on-module. Signed-off-by: E Shattow Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/riscv/starfive.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/riscv/starfive.yaml b/Docume= ntation/devicetree/bindings/riscv/starfive.yaml index 7ef85174353d..0713edb687fe 100644 --- a/Documentation/devicetree/bindings/riscv/starfive.yaml +++ b/Documentation/devicetree/bindings/riscv/starfive.yaml @@ -28,6 +28,7 @@ properties: - enum: - deepcomputing,fml13v01 - milkv,mars + - milkv,marscm-emmc - pine64,star64 - starfive,visionfive-2-v1.2a - starfive,visionfive-2-v1.3b --=20 2.50.0 From nobody Fri Oct 3 12:16:44 2025 Received: from freeshell.de (freeshell.de [116.202.128.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0AAF120766E; Sun, 31 Aug 2025 23:02:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=116.202.128.144 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756681327; cv=none; b=gNeL/GewZ98/vnQgQA1xdUlan75+wO6b/OWQtFm9hIVIuFKowDB4zpwxujXxTBv10FoU1yXgt9cM4i+Re0BPYR+yIn8hzbFezH6w/Tf49dswZucG4rHJ5os7c3LzV8XYZG6kxG2koBP80CpDBDExfPhQ7AhZPcH2IkqlC3ETTTk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756681327; c=relaxed/simple; bh=E9c9zmJDKxN6igMoDXkYVSRag/US251oyhqhXvjGBcE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LsLlcZIz0YceW+fiMvYdN8IC/B1tAXKQcnEO2fPQoYCf0JbaUCEaDm/TrVQESiI4agq2FNV6Zg3dDme+Q7yyAcc4uQpT0rxQwR0kiBjvEMHU8zYIWn4EXVw3f2SsoW+d8dKknSQuZ1KMYvDzPEUrPS9kydER8k7lNpqigE5o0jQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=freeshell.de; spf=pass smtp.mailfrom=freeshell.de; arc=none smtp.client-ip=116.202.128.144 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=freeshell.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=freeshell.de Received: from hay.lan (unknown [IPv6:2605:59c0:2078:cf00:6ecf:39ff:fe00:8375]) (Authenticated sender: e) by freeshell.de (Postfix) with ESMTPSA id B0401B220254; Mon, 1 Sep 2025 01:02:01 +0200 (CEST) From: E Shattow To: Conor Dooley , Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, E Shattow Subject: [PATCH v2 3/5] riscv: dts: starfive: add Milk-V Mars CM system-on-module Date: Sun, 31 Aug 2025 15:59:28 -0700 Message-ID: <20250831225959.531393-4-e@freeshell.de> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250831225959.531393-1-e@freeshell.de> References: <20250831225959.531393-1-e@freeshell.de> 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" Milk-V Mars CM is a System-on-Module based on the StarFive VisionFive 2 board and Radxa CM3 System-on-Module compatible with the Raspberry Pi CM4IO Classic IO Board. Mars CM SoM features: - StarFive JH7110 System on Chip with RV64GC up to 1.5GHz - AXP15060 Power Management Unit - LPDDR4 2GB / 4GB / 8GB DRAM memory - BL24C04F 4K bits (512 x 8) EEPROM - GigaDevice 25LQ128EWIG QSPI NOR Flash 16M or SoC ROM UART loader for boot (selectable by GPIO) - eMMC5.0 8GB / 16GB / 32GB flash storage onboard - AP6256 via SDIO 2.0 onboard wireless connectivity WiFi 5 + Bluetooth 5.2 (optional, present in models with WiFi feature) - 1x Motorcomm YT8531C Gigabit Ethernet PHY - IMG BXE-4-32 Integrated GPU with 3D Acceleration: - H.264 & H.265 4K@60fps Decoding - H.265 1080p@30fps Encoding - JPEG encoder / decoder Additional features available via 2x 100-pin connectors for CM4IO Board: - 1x HDMI 2.0 - 1x MIPI DSI (4-lanes) - 1x 2CH Audio out (via GPIO) - 1x MIPI CSI (2x2-lanes or 1x4-lanes) - 1x USB 2.0 - 1x PCIe 1-lane Host, Gen 2 (5Gbps) - Up to 28x GPIO, supporting 3.3V - UART x6 - PWM x8 - I2C x7 - SPI - I2S Link to Milk-V Mars CM schematics: https://github.com/milkv-mars/mars-files= /tree/main/Mars-CM_Hardware_Schematices Link to StarFive JH7110 Technical Reference Manual: https://doc-en.rvspace.= org/JH7110/TRM/index.html Link to Raspberry Pi CM4IO datasheet: https://datasheets.raspberrypi.com/cm= 4io/cm4io-datasheet.pdf Add the devicetree file to make use of StarFive JH7110 common supported features PMIC, EEPROM, UART, I2C, GPIO, eMMC, PCIe, QSPI Flash, PWM, and Ethernet. Also configure the common SD Card interface mmc1 for onboard SDIO BT+WiFi. Signed-off-by: E Shattow --- arch/riscv/boot/dts/starfive/Makefile | 1 + .../boot/dts/starfive/jh7110-milkv-marscm-emmc.dts | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 arch/riscv/boot/dts/starfive/jh7110-milkv-marscm-emmc.d= ts diff --git a/arch/riscv/boot/dts/starfive/Makefile b/arch/riscv/boot/dts/st= arfive/Makefile index b3bb12f78e7d..79742617ddab 100644 --- a/arch/riscv/boot/dts/starfive/Makefile +++ b/arch/riscv/boot/dts/starfive/Makefile @@ -10,6 +10,7 @@ dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7100-starfive-visionfi= ve-v1.dtb =20 dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-deepcomputing-fml13v01.dtb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-milkv-mars.dtb +dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-milkv-marscm-emmc.dtb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-pine64-star64.dtb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-starfive-visionfive-2-v1.2a.dtb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-starfive-visionfive-2-v1.3b.dtb diff --git a/arch/riscv/boot/dts/starfive/jh7110-milkv-marscm-emmc.dts b/ar= ch/riscv/boot/dts/starfive/jh7110-milkv-marscm-emmc.dts new file mode 100644 index 000000000000..1cf8e52d4f65 --- /dev/null +++ b/arch/riscv/boot/dts/starfive/jh7110-milkv-marscm-emmc.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2025 E Shattow + */ + +/dts-v1/; +#include "jh7110-milkv-marscm.dtsi" + +/ { + model =3D "Milk-V Mars CM"; + compatible =3D "milkv,marscm-emmc", "starfive,jh7110"; +}; + --=20 2.50.0 From nobody Fri Oct 3 12:16:44 2025 Received: from freeshell.de (freeshell.de [116.202.128.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CA5E20766E; Sun, 31 Aug 2025 23:02:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=116.202.128.144 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756681341; cv=none; b=JmRBjDjeV9+bE5E83YG5Nr8pS/QRTM13J8CvorFge9Xh5FXzFoFXQ8t+9bJkB2NsWy4OVW0+79SZgFjoAGRNLgpqO7K3wtw4FsLXkIOp9lLCitI9tGePN3yHWpysDVsKDQwEF8SYs8sIpmajD+Mp6CktwQM61hAEY59McXJ1Ctw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756681341; c=relaxed/simple; bh=3LyvE11Qu5pSGMb8tir6CKwHeC6b4jd4BDYEPmgpdgg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lx6MchJ/CjCBvN4ngOaoG+juuIcTQ+gLjnlUc24NRdQ31AaUVMbvsVsMXwMOg0LCTpoflDsMGEeH7vVFSoDD78tKZ1BnWps+Cq8IIlZgZosGnJCmuW1/BZphz5ySnGAZu8KYalFB8Ty+sPI8lf+pw5wDPQBQtE7FM7zWe4J4Xlw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=freeshell.de; spf=pass smtp.mailfrom=freeshell.de; arc=none smtp.client-ip=116.202.128.144 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=freeshell.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=freeshell.de Received: from hay.lan (unknown [IPv6:2605:59c0:2078:cf00:6ecf:39ff:fe00:8375]) (Authenticated sender: e) by freeshell.de (Postfix) with ESMTPSA id 0D3A2B22030F; Mon, 1 Sep 2025 01:02:15 +0200 (CEST) From: E Shattow To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Michael Zhu , Drew Fustini Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, E Shattow Subject: [PATCH v2 4/5] dt-bindings: riscv: starfive: add milkv,marscm-lite Date: Sun, 31 Aug 2025 15:59:29 -0700 Message-ID: <20250831225959.531393-5-e@freeshell.de> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250831225959.531393-1-e@freeshell.de> References: <20250831225959.531393-1-e@freeshell.de> 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" Add "milkv,marscm-lite" as a StarFive JH7110 SoC-based system-on-module. Signed-off-by: E Shattow Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/riscv/starfive.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/riscv/starfive.yaml b/Docume= ntation/devicetree/bindings/riscv/starfive.yaml index 0713edb687fe..04510341a71e 100644 --- a/Documentation/devicetree/bindings/riscv/starfive.yaml +++ b/Documentation/devicetree/bindings/riscv/starfive.yaml @@ -29,6 +29,7 @@ properties: - deepcomputing,fml13v01 - milkv,mars - milkv,marscm-emmc + - milkv,marscm-lite - pine64,star64 - starfive,visionfive-2-v1.2a - starfive,visionfive-2-v1.3b --=20 2.50.0 From nobody Fri Oct 3 12:16:44 2025 Received: from freeshell.de (freeshell.de [116.202.128.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E61B24290D; Sun, 31 Aug 2025 23:02:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=116.202.128.144 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756681358; cv=none; b=C965mzZBi/MjOfmOmy0NYaOZPxXuxQmeMUNDj/22ieuOiDCr7C80QakKKIgUm+BSDO8K3g5qaDdfu0cA85MnvVe/VNehnGTO5eWZfS9KvCAAy+7g19WIJmjv1y0kWoVozToWGNi+htRCyUoFwxxWqejCfIs6Zc7IKcUDluAhoFI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756681358; c=relaxed/simple; bh=iuRLKwj7sFVlu3C7D7aB3zxNlXrFtCUmp9KoG/GKdyM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Y62uibJ7xHrZjIANmhyhbnafp5+aSTaL7s9/yppDeN5kpdac+A8DH81WTIvbgYAMzkyHoMO6IRVtNz/aaJVIkouxS775oihkdjMbnEmT+upYtyIESwd616sVfXt2sVpQdUDtWm+mNSpF7ERUHzvpPlMGYWPWqj5Wv51pkbYlwpM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=freeshell.de; spf=pass smtp.mailfrom=freeshell.de; arc=none smtp.client-ip=116.202.128.144 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=freeshell.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=freeshell.de Received: from hay.lan (unknown [IPv6:2605:59c0:2078:cf00:6ecf:39ff:fe00:8375]) (Authenticated sender: e) by freeshell.de (Postfix) with ESMTPSA id 2C306B2200E7; Mon, 1 Sep 2025 01:02:32 +0200 (CEST) From: E Shattow To: Conor Dooley , Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, E Shattow Subject: [PATCH v2 5/5] riscv: dts: starfive: add Milk-V Mars CM Lite system-on-module Date: Sun, 31 Aug 2025 15:59:30 -0700 Message-ID: <20250831225959.531393-6-e@freeshell.de> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250831225959.531393-1-e@freeshell.de> References: <20250831225959.531393-1-e@freeshell.de> 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" Milk-V Mars CM Lite is a System-on-Module based on the Milk-V Mars CM without the onboard eMMC storage component populated and configured instead for SD3.0 Card Slot on that interface via 100-pin connector. Link to Milk-V Mars CM Lite schematics: https://github.com/milkv-mars/mars-= files/tree/main/Mars-CM_Hardware_Schematices Link to StarFive JH7110 Technical Reference Manual: https://doc-en.rvspace.= org/JH7110/TRM/index.html Link to Raspberry Pi CM4IO datasheet: https://datasheets.raspberrypi.com/cm= 4io/cm4io-datasheet.pdf Add the devicetree file to make use of StarFive JH7110 common supported features PMIC, EEPROM, UART, I2C, GPIO, PCIe, QSPI Flash, PWM, and Ethernet. Also configure the eMMC interface mmc0 for SD Card use and configure the common SD Card interface mmc1 for onboard SDIO BT+WiFi. Signed-off-by: E Shattow --- arch/riscv/boot/dts/starfive/Makefile | 1 + .../dts/starfive/jh7110-milkv-marscm-lite.dts | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 arch/riscv/boot/dts/starfive/jh7110-milkv-marscm-lite.d= ts diff --git a/arch/riscv/boot/dts/starfive/Makefile b/arch/riscv/boot/dts/st= arfive/Makefile index 79742617ddab..62b659f89ba7 100644 --- a/arch/riscv/boot/dts/starfive/Makefile +++ b/arch/riscv/boot/dts/starfive/Makefile @@ -11,6 +11,7 @@ dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7100-starfive-visionfi= ve-v1.dtb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-deepcomputing-fml13v01.dtb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-milkv-mars.dtb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-milkv-marscm-emmc.dtb +dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-milkv-marscm-lite.dtb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-pine64-star64.dtb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-starfive-visionfive-2-v1.2a.dtb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-starfive-visionfive-2-v1.3b.dtb diff --git a/arch/riscv/boot/dts/starfive/jh7110-milkv-marscm-lite.dts b/ar= ch/riscv/boot/dts/starfive/jh7110-milkv-marscm-lite.dts new file mode 100644 index 000000000000..9052e8d515e1 --- /dev/null +++ b/arch/riscv/boot/dts/starfive/jh7110-milkv-marscm-lite.dts @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2025 E Shattow + */ + +/dts-v1/; +#include "jh7110-milkv-marscm.dtsi" + +/ { + model =3D "Milk-V Mars CM Lite"; + compatible =3D "milkv,marscm-lite", "starfive,jh7110"; +}; + +&mmc0 { + bus-width =3D <4>; + cd-gpios =3D <&sysgpio 41 GPIO_ACTIVE_LOW>; +}; + +&mmc0_pins { + pwren-pins { + pinmux =3D ; + }; +}; + --=20 2.50.0