[PATCH v3 0/5] riscv: dts: starfive: Add Milk-V Mars CM (Lite) SoM

E Shattow posted 5 patches 5 months ago
.../devicetree/bindings/riscv/starfive.yaml   |   2 +
arch/riscv/boot/dts/starfive/Makefile         |   2 +
.../dts/starfive/jh7110-milkv-marscm-emmc.dts |  12 ++
.../dts/starfive/jh7110-milkv-marscm-lite.dts |  25 +++
.../dts/starfive/jh7110-milkv-marscm.dtsi     | 159 ++++++++++++++++++
5 files changed, 200 insertions(+)
create mode 100644 arch/riscv/boot/dts/starfive/jh7110-milkv-marscm-emmc.dts
create mode 100644 arch/riscv/boot/dts/starfive/jh7110-milkv-marscm-lite.dts
create mode 100644 arch/riscv/boot/dts/starfive/jh7110-milkv-marscm.dtsi
[PATCH v3 0/5] riscv: dts: starfive: Add Milk-V Mars CM (Lite) SoM
Posted by E Shattow 5 months ago
Milk-V Mars CM and Mars CM Lite System-on-Module both are based on the
StarFive JH7110 SoC and compatible with the Raspberry Pi CM4IO Classic IO
Board carrier. Mars CM Lite is Mars CM without the eMMC storage component
on mmc0 and the mmc0 interface configured instead for SD Card use. The
optional WiFi+BT chipset is connected via SDIO on the mmc1 interface that
would otherwise be connected to an SD Card slot on the StarFive
VisionFive2 reference design.

Add the related devicetree files for both Milk-V Mars CM and Milk-V Mars
CM Lite describing the currently supported features, namely PMIC, UART,
I2C, GPIO, eMMC or SD Card, WiFi+BT, QSPI Flash, and Ethernet.

Caveat with vendor AP6256 firmware files present the firmware loading is
successful but subsequently fails IRQ wake initialization. Common GPIO
conflicts for "WiFi" optioned boards having this module:

pwmdac_pins:
 - AP6256: WL_REG_ON>>WIFI_REG_ON_H_GPIO33
 - AP6256: WL_HOST_WAKE>>WIFI_WAKE_HOST_H_GPIO34

i2c2_pins:
 - AP6256: UART_CTS_N<<UART1_RTSn_GPIO2
 - AP6256: UART_RTS_N>>UART1_CTSn_GPIO3

i2c6_pins:
 - AP6256: UART_RXD<<UART_TX_GPIO16
 - AP6256: UART_TXD>>UART_RX_GPIO17

Tested successfully for basic mmc0 storage, USB, and network functionality on:
- Milk-V Mars CM 8GB
- Milk-V Mars CM Lite 4GB
- Milk-V Mars CM Lite WiFi 8GB

Changes since v2:
- PATCH 3/5 delete newline at end of file
- PATCH 5/5 delete newline at end of file

Link to v2:
https://lore.kernel.org/lkml/20250831225959.531393-1-e@freeshell.de/

E Shattow (5):
  riscv: dts: starfive: add common board dtsi for Milk-V Mars CM
    variants
  dt-bindings: riscv: starfive: add milkv,marscm-emmc
  riscv: dts: starfive: add Milk-V Mars CM system-on-module
  dt-bindings: riscv: starfive: add milkv,marscm-lite
  riscv: dts: starfive: add Milk-V Mars CM Lite system-on-module

 .../devicetree/bindings/riscv/starfive.yaml   |   2 +
 arch/riscv/boot/dts/starfive/Makefile         |   2 +
 .../dts/starfive/jh7110-milkv-marscm-emmc.dts |  12 ++
 .../dts/starfive/jh7110-milkv-marscm-lite.dts |  25 +++
 .../dts/starfive/jh7110-milkv-marscm.dtsi     | 159 ++++++++++++++++++
 5 files changed, 200 insertions(+)
 create mode 100644 arch/riscv/boot/dts/starfive/jh7110-milkv-marscm-emmc.dts
 create mode 100644 arch/riscv/boot/dts/starfive/jh7110-milkv-marscm-lite.dts
 create mode 100644 arch/riscv/boot/dts/starfive/jh7110-milkv-marscm.dtsi


base-commit: 8181cc2f3f21657392da912eb20ee17514c87828
-- 
2.50.0
Re: [PATCH v3 0/5] riscv: dts: starfive: Add Milk-V Mars CM (Lite) SoM
Posted by Conor Dooley 4 months, 3 weeks ago
From: Conor Dooley <conor.dooley@microchip.com>

On Fri, 05 Sep 2025 07:39:38 -0700, E Shattow wrote:
> Milk-V Mars CM and Mars CM Lite System-on-Module both are based on the
> StarFive JH7110 SoC and compatible with the Raspberry Pi CM4IO Classic IO
> Board carrier. Mars CM Lite is Mars CM without the eMMC storage component
> on mmc0 and the mmc0 interface configured instead for SD Card use. The
> optional WiFi+BT chipset is connected via SDIO on the mmc1 interface that
> would otherwise be connected to an SD Card slot on the StarFive
> VisionFive2 reference design.
> 
> [...]

Applied to riscv-dt-for-next, thanks!

[1/5] riscv: dts: starfive: add common board dtsi for Milk-V Mars CM variants
      https://git.kernel.org/conor/c/651b30c58775
[2/5] dt-bindings: riscv: starfive: add milkv,marscm-emmc
      https://git.kernel.org/conor/c/d1829e0b2f06
[3/5] riscv: dts: starfive: add Milk-V Mars CM system-on-module
      https://git.kernel.org/conor/c/8d193bc0aa2e
[4/5] dt-bindings: riscv: starfive: add milkv,marscm-lite
      https://git.kernel.org/conor/c/12a29108384c
[5/5] riscv: dts: starfive: add Milk-V Mars CM Lite system-on-module
      https://git.kernel.org/conor/c/4cce8b2503ab

Thanks,
Conor.
Re: [PATCH v3 0/5] riscv: dts: starfive: Add Milk-V Mars CM (Lite) SoM
Posted by Conor Dooley 4 months, 4 weeks ago
Emil, This look okay to take?

On Fri, Sep 05, 2025 at 07:39:38AM -0700, E Shattow wrote:
> Milk-V Mars CM and Mars CM Lite System-on-Module both are based on the
> StarFive JH7110 SoC and compatible with the Raspberry Pi CM4IO Classic IO
> Board carrier. Mars CM Lite is Mars CM without the eMMC storage component
> on mmc0 and the mmc0 interface configured instead for SD Card use. The
> optional WiFi+BT chipset is connected via SDIO on the mmc1 interface that
> would otherwise be connected to an SD Card slot on the StarFive
> VisionFive2 reference design.
> 
> Add the related devicetree files for both Milk-V Mars CM and Milk-V Mars
> CM Lite describing the currently supported features, namely PMIC, UART,
> I2C, GPIO, eMMC or SD Card, WiFi+BT, QSPI Flash, and Ethernet.
> 
> Caveat with vendor AP6256 firmware files present the firmware loading is
> successful but subsequently fails IRQ wake initialization. Common GPIO
> conflicts for "WiFi" optioned boards having this module:
> 
> pwmdac_pins:
>  - AP6256: WL_REG_ON>>WIFI_REG_ON_H_GPIO33
>  - AP6256: WL_HOST_WAKE>>WIFI_WAKE_HOST_H_GPIO34
> 
> i2c2_pins:
>  - AP6256: UART_CTS_N<<UART1_RTSn_GPIO2
>  - AP6256: UART_RTS_N>>UART1_CTSn_GPIO3
> 
> i2c6_pins:
>  - AP6256: UART_RXD<<UART_TX_GPIO16
>  - AP6256: UART_TXD>>UART_RX_GPIO17
> 
> Tested successfully for basic mmc0 storage, USB, and network functionality on:
> - Milk-V Mars CM 8GB
> - Milk-V Mars CM Lite 4GB
> - Milk-V Mars CM Lite WiFi 8GB
> 
> Changes since v2:
> - PATCH 3/5 delete newline at end of file
> - PATCH 5/5 delete newline at end of file
> 
> Link to v2:
> https://lore.kernel.org/lkml/20250831225959.531393-1-e@freeshell.de/
> 
> E Shattow (5):
>   riscv: dts: starfive: add common board dtsi for Milk-V Mars CM
>     variants
>   dt-bindings: riscv: starfive: add milkv,marscm-emmc
>   riscv: dts: starfive: add Milk-V Mars CM system-on-module
>   dt-bindings: riscv: starfive: add milkv,marscm-lite
>   riscv: dts: starfive: add Milk-V Mars CM Lite system-on-module
> 
>  .../devicetree/bindings/riscv/starfive.yaml   |   2 +
>  arch/riscv/boot/dts/starfive/Makefile         |   2 +
>  .../dts/starfive/jh7110-milkv-marscm-emmc.dts |  12 ++
>  .../dts/starfive/jh7110-milkv-marscm-lite.dts |  25 +++
>  .../dts/starfive/jh7110-milkv-marscm.dtsi     | 159 ++++++++++++++++++
>  5 files changed, 200 insertions(+)
>  create mode 100644 arch/riscv/boot/dts/starfive/jh7110-milkv-marscm-emmc.dts
>  create mode 100644 arch/riscv/boot/dts/starfive/jh7110-milkv-marscm-lite.dts
>  create mode 100644 arch/riscv/boot/dts/starfive/jh7110-milkv-marscm.dtsi
> 
> 
> base-commit: 8181cc2f3f21657392da912eb20ee17514c87828
> -- 
> 2.50.0
> 
Re: [PATCH v3 0/5] riscv: dts: starfive: Add Milk-V Mars CM (Lite) SoM
Posted by Conor Dooley 4 months, 3 weeks ago
On Thu, Sep 11, 2025 at 07:07:10PM +0100, Conor Dooley wrote:
> Emil, This look okay to take?

I'm just going to take it so it can make 6.18. Please yell Emil if you
don't want me to.