linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] riscv: dts: starfive: Add Milk-V Mars CM (Lite) SoM
@ 2025-08-31 22:59 E Shattow
  2025-08-31 22:59 ` [PATCH v2 1/5] riscv: dts: starfive: add common board dtsi for Milk-V Mars CM variants E Shattow
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: E Shattow @ 2025-08-31 22:59 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti
  Cc: linux-kernel, linux-riscv, devicetree, E Shattow

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 v1:
- create common board include jh7110-milkv-marscm.dtsi
- drop redundant include starfive,jh7110-pinctrl.h from jh7110-milkv-marscm.dtsi
- add wifi-host-wake-irq '-0' suffix to conform with dt-bindings
- PATCH 1/4 collect tags
- PATCH 2/4 use common board include jh7110-milkv-marscm.dtsi
- PATCH 2/4 correction of S-o-by email address
- PATCH 2/4 drop 'PWM DAC' from description of common supported features
- PATCH 3/4 collect tags
- PATCH 4/4 use common board include jh7110-milkv-marscm.dtsi

Link to v1:
https://lore.kernel.org/lkml/20250724094912.253723-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 |  13 ++
 .../dts/starfive/jh7110-milkv-marscm-lite.dts |  26 +++
 .../dts/starfive/jh7110-milkv-marscm.dtsi     | 159 ++++++++++++++++++
 5 files changed, 202 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: f66eb149b87677da3171a0ed51c77c3599ad55d6
-- 
2.50.0


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-08-31 23:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-31 22:59 [PATCH v2 0/5] riscv: dts: starfive: Add Milk-V Mars CM (Lite) SoM E Shattow
2025-08-31 22:59 ` [PATCH v2 1/5] riscv: dts: starfive: add common board dtsi for Milk-V Mars CM variants E Shattow
2025-08-31 22:59 ` [PATCH v2 2/5] dt-bindings: riscv: starfive: add milkv,marscm-emmc E Shattow
2025-08-31 22:59 ` [PATCH v2 3/5] riscv: dts: starfive: add Milk-V Mars CM system-on-module E Shattow
2025-08-31 22:59 ` [PATCH v2 4/5] dt-bindings: riscv: starfive: add milkv,marscm-lite E Shattow
2025-08-31 22:59 ` [PATCH v2 5/5] riscv: dts: starfive: add Milk-V Mars CM Lite system-on-module E Shattow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).