mbox series

[v3,crypto+mailbox+firmware,RESEND,0/6] Armada 37xx mailbox + Turris

Message ID 20190331031537.10626-1-marek.behun@nic.cz
Headers show
Series Armada 37xx mailbox + Turris | expand

Message

Marek Behun March 31, 2019, 3:15 a.m. UTC
Hello,

this is a resend, since I did not receive any reviews on the actual code,
only on the dt-binding.

This patchset applies to Linus' master branch.

This is the third version of my patches to add support for the rWTM mailbox
of Marvell A3700 compatible devices, this time also with turris-mox-rwtm
firmware driver, which provides a true random number generator and ECDSA
signature generation with private key burned into eFuses in the CPU.

I would like to ask you guys for reviews, since I didn't get any review
for the first patch (adding mailbox support) yet.

What's new in v3:
 - Three more patches, to add support for communicating with the secure
   firmware on the Turris Mox board. The driver for this firmware needs
   the mailbox driver to be able to communicate with the secure
   processor.

Changes since v2:
 - changed the mailbox driver not to fail when sending a message if the
   firmware reports that secure processor is not ready. The firmware on
   EspressoBin does not indicate that it is ready in the designated
   register, even if it answers to commands. Print only a warning if the
   ready flag is not set in the FIFO_STATUS register.
 - added Rob's Reviewed-by tag for the mailbox dt-binding patch

Marek

Marek Behún (6):
  dt-bindings: mailbox: Document armada-3700-rwtm-mailbox binding
  mailbox: Add support for Armada 37xx rWTM mailbox
  arm64: dts: marvell: armada-37xx: add mailbox node
  dt-bindings: firmware: Document cznic,turris-mox-rwtm binding
  firmware: Add Turris Mox rWTM firmware driver
  firmware: turris-mox-rwtm: Add sysfs documentation

 .../testing/sysfs-firmware-turris-mox-rwtm    |  60 +++
 .../firmware/cznic,turris-mox-rwtm.txt        |  19 +
 .../marvell,armada-3700-rwtm-mailbox.txt      |  16 +
 arch/arm64/boot/dts/marvell/armada-37xx.dtsi  |   7 +
 drivers/firmware/Kconfig                      |  14 +
 drivers/firmware/Makefile                     |   1 +
 drivers/firmware/turris-mox-rwtm.c            | 508 ++++++++++++++++++
 drivers/mailbox/Kconfig                       |  10 +
 drivers/mailbox/Makefile                      |   2 +
 drivers/mailbox/armada-37xx-rwtm-mailbox.c    | 225 ++++++++
 include/linux/armada-37xx-rwtm-mailbox.h      |  23 +
 11 files changed, 885 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-firmware-turris-mox-rwtm
 create mode 100644 Documentation/devicetree/bindings/firmware/cznic,turris-mox-rwtm.txt
 create mode 100644 Documentation/devicetree/bindings/mailbox/marvell,armada-3700-rwtm-mailbox.txt
 create mode 100644 drivers/firmware/turris-mox-rwtm.c
 create mode 100644 drivers/mailbox/armada-37xx-rwtm-mailbox.c
 create mode 100644 include/linux/armada-37xx-rwtm-mailbox.h