From nobody Mon Oct 6 04:59:38 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 BAE771F4606; Thu, 24 Jul 2025 09:50:01 +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=1753350604; cv=none; b=Pk3Yu+tAHQkIlEI4Qoc9JSrQr60nL751QALJNFsJMisxU8Kigu9eWCd5P90FyxTUL7nHPVXPdz9XQiigDly/zf+9e8lVOf0EFfKgXYZXtm4OXfAdeqgI+dG5vTc4AglKiEkpfrP117xe351dbADmSQEnEGohgikQCSgDUdpyIE8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753350604; c=relaxed/simple; bh=Xdo8tfKZzksKN04rSDAoQsTANQVfalzQJEcOqWDB030=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cIGE8f9QwVcfQ+GlcRqe2o0V+Scip2S0cZ7mP8QVvZ9OcTHHWrC6ZQm+liuW3wC867Dszz5TVrVZXYkLdFWg6o56GZnkMhDFf+YFRFshZcYHb/i3tTQJ93LvQec87q7moF3EZXjapafJ6OKa6pzaimqg4vvglb1NBROQDROZGMk= 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 0DD9EB4D00E4; Thu, 24 Jul 2025 11:49:56 +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: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, E Shattow , linux-riscv@lists.infradead.org Subject: [PATCH v1 1/4] dt-bindings: riscv: starfive: add milkv,marscm-emmc Date: Thu, 24 Jul 2025 02:48:44 -0700 Message-ID: <20250724094912.253723-2-e@freeshell.de> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250724094912.253723-1-e@freeshell.de> References: <20250724094912.253723-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 Mon Oct 6 04:59:38 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 6988D255E27; Thu, 24 Jul 2025 09:50:11 +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=1753350614; cv=none; b=KrEQzT6L0LVSjRpvlYQsTDFNj7Q3GfXQXHsbf284HXAqCeWBl0hNacWkTt7BAJrs/KxHI0DOvfGRCuWEXlWx7frFI7lKxIzTrJGmKzRmK+jWlBJgOBPCFtyZBpwIL3IyPm00GsLBWdECtqjEo3bBy3dOALL/0mdTy+ampQiPadM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753350614; c=relaxed/simple; bh=d6VVSZ+1w7Ya2KIWEoAODf0ufUFQWphzdxEvVZpC+7Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oP1mquZX9aGbMCf6Ll4kfxD9S+A7JO4j622e9r4m/x7cN4VJCh5swLbg6DuDezBaaQ1lUmmXvKGLjBEUfoSckdivwd+C43LKUkfZNwEQzNx8cJm39iAvhXoedGvoIJzYaOtiI3Qv0i1vBqd0gk7cAhefVUnG8nXiF0C+a7OgBoE= 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 41AB9B4D0188; Thu, 24 Jul 2025 11:50:07 +0200 (CEST) From: E Shattow To: Conor Dooley , Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, E Shattow , E Shattow , linux-riscv@lists.infradead.org Subject: [PATCH v1 2/4] riscv: dts: starfive: add Milk-V Mars CM system-on-module Date: Thu, 24 Jul 2025 02:48:45 -0700 Message-ID: <20250724094912.253723-3-e@freeshell.de> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250724094912.253723-1-e@freeshell.de> References: <20250724094912.253723-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, PWM DAC, 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 + .../dts/starfive/jh7110-milkv-marscm-emmc.dts | 163 ++++++++++++++++++ 2 files changed, 164 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..59766cdb912b --- /dev/null +++ b/arch/riscv/boot/dts/starfive/jh7110-milkv-marscm-emmc.dts @@ -0,0 +1,163 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2025 E Shattow + */ + +/dts-v1/; +#include +#include +#include "jh7110-common.dtsi" + +/ { + model =3D "Milk-V Mars CM"; + compatible =3D "milkv,marscm-emmc", "starfive,jh7110"; + + 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 { + 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 Mon Oct 6 04:59:38 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 A83372566D9; Thu, 24 Jul 2025 09:50:17 +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=1753350620; cv=none; b=sHZvKiTO+Fe+ECvNzC2aRmRtm+RFrM5OeEHndeyPJ5B2m9MchGp/fgCEZwUcOvqwaFwL1SZ0zupAEdy/2BuMQXfLXxzwdjJ47RQZs6ExeAOvw+XUgMWT2bXf9KHRzqrrSbfzSpmN55cRU/AJPb8ggIYhh9g5bqz1ciw7XZWvMe4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753350620; c=relaxed/simple; bh=eKPwLC6suTl8LKR7YXTDenyAa+IsErU2lpYt4JIQZow=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hvuwAvCOg3D58zOOY9d3ux2ImdYll6weZ3epJ4ochsP/4f0YW3ZOT3uNDnyQSeb4oy97Zjv9RF/HKNUeNlNSFZEDYdd/tCKw8m6ONbjFKsYf2vQcf1/dzsXSGyoGLzH5CaWio3Fpz1G6uXzH8YtlH1XXJY1rn91uEOoIpu/XlJ0= 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 7A16EB4D00F1; Thu, 24 Jul 2025 11:50:13 +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: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, E Shattow , linux-riscv@lists.infradead.org Subject: [PATCH v1 3/4] dt-bindings: riscv: starfive: add milkv,marscm-lite Date: Thu, 24 Jul 2025 02:48:46 -0700 Message-ID: <20250724094912.253723-4-e@freeshell.de> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250724094912.253723-1-e@freeshell.de> References: <20250724094912.253723-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 Mon Oct 6 04:59:38 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 6D5492571C2; Thu, 24 Jul 2025 09:50:27 +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=1753350629; cv=none; b=Kw07Kh12yjxfsqayZkUn3HWZi8zdWkwTncV1wf8/tmLV5pN+mHIzbs1s+I6JE5xiUUiSrlReV24j9G2UumJrYa4S5nnB5WJ0i2h0d71dqeThuSWExinpedPlZQPHZ+Y4g96mpPl3afTXZ5j0cQRpPdhVQyBtogwlRRHpOcVNG0M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753350629; c=relaxed/simple; bh=h6Bgo2bklDJST7hHhH+86aEXeQqWnZDVYkoiDw0DffE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=V90d2gLzJdMMBwOOxqafQRIBrfU392N1CdPhTtL2hiTvEv7E+gNys8SzgzU41XpCT7ryu50r3JBgxKY2GQp8PkPxOydOL2AoJw82DMQ2S9pCjKTTtxdPVCC/UlIxzVUPl3ExQy3mzEy8lCcFgeXZgnPX8BBpHCYtmqG+/rfdvqk= 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 89C6EB4D0D91; Thu, 24 Jul 2025 11:50:23 +0200 (CEST) From: E Shattow To: Emil Renner Berthing , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, E Shattow , linux-riscv@lists.infradead.org Subject: [PATCH v1 4/4] riscv: dts: starfive: add Milk-V Mars CM Lite system-on-module Date: Thu, 24 Jul 2025 02:48:47 -0700 Message-ID: <20250724094912.253723-5-e@freeshell.de> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250724094912.253723-1-e@freeshell.de> References: <20250724094912.253723-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 | 176 ++++++++++++++++++ 2 files changed, 177 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..e110146f0b76 --- /dev/null +++ b/arch/riscv/boot/dts/starfive/jh7110-milkv-marscm-lite.dts @@ -0,0 +1,176 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2025 E Shattow + */ + +/dts-v1/; +#include +#include +#include "jh7110-common.dtsi" + +/ { + model =3D "Milk-V Mars CM Lite"; + compatible =3D "milkv,marscm-lite", "starfive,jh7110"; + + 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"; +}; + +&mmc0 { + bus-width =3D <4>; + cd-gpios =3D <&sysgpio 41 GPIO_ACTIVE_LOW>; +}; + +&mmc0_pins { + pwren-pins { + pinmux =3D ; + }; +}; + +&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 { + 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