Skip to contentSkip to conversation

ARM: dts: armada-370: Add WD My Cloud EX2 (Gen1)

PATCH New ImAthanasia 1 participant 1 message Nov 17

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: armada-370: Add WD My Cloud EX2 (Gen1)

Hello,

This adds a board file for the Western Digital My Cloud EX2 (Gen1) NAS (board RD-88F6710 "KingsCanyon", Marvell Armada 370 / 88F6710), which has no mainline board file today.

Enabled by the board: both SATA ports, USB2 and USB3 hosts, gpio HDD status LEDs, the 4-GPIO chassis fan (gpio-fan, 1500/1700/1800/2100 rpm speed map), the rear reset button, mvneta ethernet with the Marvell 88E1510 phy (rgmii-id), fixed regulators gating USB and SATA disk power, and the NAND controller with the stock fixed partition layout.

The NAND node sets "marvell,nand-keep-config". This is required on this
board: the stock bootloader programs controller timings that mainline does not reproduce, and reprogramming them corrupts reads and aborts writes. This is the established pattern for NAS boxes on this platform, not a WD
quirk: the same property (with nand-on-flash-bbt and ECC 4/512) is used by armada-370-dlink-dns327l.dts, armada-370-netgear-rn102.dts and armada-370-netgear-rn104.dts, and by WD's own EX2 Ultra / Mirror Gen2 board file (arch/arm/boot/dts/marvell/armada-385-wd_cloud.dtsi in OpenWrt).

The file is derived from the Armada 370 DB reference design with the community GPL description for the WD My Cloud Mirror Gen1 as the hardware reference, adjusted to the EX2: NAND moved to the mainline nand-controller + nand@0 binding (the legacy "nand@d0000" node has no reg resource), and the gpio-fan node does not claim an alarm gpio overlapping one of the fan speed GPIOs.

Tested on hardware with 6.12.117: boots unattended from NAND with a USB root, RAID1 md0 assembles, LEDs/fan/ethernet/NAND operational; UBI/UBIFS volumes attach, mount and persist across reboots. The DTB passes dtbs_check with the same legacy-dtsi warning set as the existing armada-370 boards (57, identical to armada-370-netgear-rn102.dtb), with zero board-specific findings.

Tool-assistance disclosure: portions of this patch were prepared with the help of an AI coding assistant; I reviewed, built, and tested the result on hardware and take full responsibility for its content. Signed-off-by is mine (human).

Best regards,
ImAthanasia
https://github.com/ImAthanasia

---
 arch/arm/boot/dts/marvell/Makefile            |   1 +
 .../marvell/armada-370-wd-my-cloud-ex2.dts    | 285 ++++++++++++++++++
 2 files changed, 286 insertions(+)
 create mode 100644 arch/arm/boot/dts/marvell/armada-370-wd-my-cloud-ex2.dts
arch/arm/boot/dts/marvell/Makefile +1 -0
index fc4273b..e923397 100644
@@ -164,6 +164,7 @@ dtb-$(CONFIG_MACH_KIRKWOOD) += \
 	kirkwood-ts419-6281.dtb \
 	kirkwood-ts419-6282.dtb
 
+dtb-$(CONFIG_MACH_ARMADA_370) += armada-370-wd-my-cloud-ex2.dtb
 dtb-$(CONFIG_MACH_ARMADA_370) += armada-370-wd-my-cloud-ex2-appliance.dtb
 dtb-$(CONFIG_MACH_ARMADA_370) += armada-370-wd-my-cloud-ex2-appliance-big.dtb
 dtb-$(CONFIG_MACH_ARMADA_370) += armada-370-wd-my-cloud-ex2-appliance-big-keepcfg.dtb
arch/arm/boot/dts/marvell/armada-370-wd-my-cloud-ex2.dts new file +285 -0

285 lines not on this page · raw message

Signature · 1 line
2.39.5