Skip to content

RFC zorro: add a CS-Lab Warp 1260 MFD

Paolo Pisati linux-m68k 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8zorro: warp mfd: add the CS-Lab Warp multifunction parentdrivers/zorro/Kconfig drivers/zorro/Makefile drivers/zorro/warp-mfd.c +1 more+139 -00 replies
2/8ata: pata_cswarp: bind to the Warp mfd cell instead of the Zorro devicedrivers/ata/Kconfig drivers/ata/pata_cswarp.c+22 -280 replies
3/8m68k: defconfig: enable WARP_MFDarch/m68k/configs/amiga_defconfig arch/m68k/configs/multi_defconfig+2 -00 replies
4/8zorro: warp mfd: add the dual-port RAM command channel and expose the board identitydrivers/zorro/warp-mfd.c drivers/zorro/warp-mfd.h+373 -30 replies
5/8zorro: warp mfd: expose the voltage and temperature sensorsdrivers/zorro/warp-mfd.c drivers/zorro/warp-mfd.h+83 -00 replies
6/8zorro: warp mfd: expose the fan duty cycledrivers/zorro/warp-mfd.c+2 -00 replies
7/8zorro: warp mfd: expose the Kickstart slot selectiondrivers/zorro/warp-mfd.c drivers/zorro/warp-mfd.h+55 -00 replies
8/8zorro: warp mfd: expose the WiFi configurationdrivers/zorro/warp-mfd.c drivers/zorro/warp-mfd.h+156 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/8] zorro: add a CS-Lab Warp 1260 MFD

The CS-Lab Warp 1260 is an A1200 trapdoor multifunction accelerator: it contains a 68060, an FPGA, an ARM co-processor and several sub-devices hanging off them. The 68k drives the IDE interface and the RTG display controller directly, through the FPGA; the ARM owns most of the rest - USB, SD card, WiFi, audio, the Kickstart slots, the CPU clock, fan control and the board telemetry - and the 68k reaches it through a dual-port RAM mailbox.

pata_cswarp [1], queued for 7.4, binds the board's Zorro device for the IDE window alone. This series puts an mfd parent on the device instead, hands the IDE window to pata_cswarp as a cell, and uses the mailbox for a first set of board functions, exposed as sysfs attributes on the Zorro device:

  1-3  the mfd parent, pata_cswarp as its first cell, defconfig
  4    the dual-port RAM command channel and the board identity
  5-8  voltages and temperatures, fan duty cycle, Kickstart slot

selection, WiFi configuration

The layout - an mfd parent in drivers/zorro/ handing cells to the function drivers - is modelled on Geert's Zorro MFD experiments [2], which were the inspiration for this series.

It is an RFC because I would like opinions on the shape before going further:

- Geert, does this fit where you wanted to take the Zorro MFD work? Should the parent stay in drivers/zorro/, as in your experiments, or move to drivers/mfd/?
- Would you rather see the voltages, temperatures and fan in hwmon than as plain sysfs attributes?
- Writing kickslot makes the ARM reset the machine on the spot. Is a sysfs attribute acceptable for that?

Tested on a Warp 1260 (firmware 20.27) on top of 7.3. Every patch builds with W=1 for m68k multi_defconfig on next-20261021, which carries pata_cswarp [1] and its defconfig patch.

I wrote the original version of this driver myself, by hand. An LLM coding assistant came in later: it was used to review that code against CS-Lab's AmigaOS sources, to write several of the fixes folded into these patches, to split the work into this series and to draft the commit messages. I reviewed every change and tested the result on my Warp 1260.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/libata/linux.git/commit/?id=d388f9657ad68eca31d86765d48133b9258b8983
[2] https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git/log/?h=zorro-mfd

Paolo Pisati (8):
zorro: warp mfd: add the CS-Lab Warp multifunction parent
ata: pata_cswarp: bind to the Warp mfd cell instead of the Zorro
device
m68k: defconfig: enable WARP_MFD
zorro: warp mfd: add the dual-port RAM command channel and expose the
board identity
zorro: warp mfd: expose the voltage and temperature sensors
zorro: warp mfd: expose the fan duty cycle
zorro: warp mfd: expose the Kickstart slot selection
zorro: warp mfd: expose the WiFi configuration

 arch/m68k/configs/amiga_defconfig |   1 +
 arch/m68k/configs/multi_defconfig |   1 +
 drivers/ata/Kconfig               |   2 +-
 drivers/ata/pata_cswarp.c         |  48 ++-
 drivers/zorro/Kconfig             |  31 ++
 drivers/zorro/Makefile            |   2 +
 drivers/zorro/warp-mfd.c          | 601 ++++++++++++++++++++++++++++++
 drivers/zorro/warp-mfd.h          | 170 +++++++++
 8 files changed, 828 insertions(+), 28 deletions(-)
 create mode 100644 drivers/zorro/warp-mfd.c
 create mode 100644 drivers/zorro/warp-mfd.h

base-commit: 9a482184d910775cf648863148944945b74e2815

Signature · 1 line
2.43.0