From patchwork Sun Mar 31 03:15:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 10878667 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C45BB922 for ; Sun, 31 Mar 2019 03:16:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B101D28468 for ; Sun, 31 Mar 2019 03:16:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A51FC28922; Sun, 31 Mar 2019 03:16:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2DFE28468 for ; Sun, 31 Mar 2019 03:16:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731143AbfCaDPo (ORCPT ); Sat, 30 Mar 2019 23:15:44 -0400 Received: from mail.nic.cz ([217.31.204.67]:37855 "EHLO mail.nic.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731061AbfCaDPm (ORCPT ); Sat, 30 Mar 2019 23:15:42 -0400 Received: from dellmb.labs.office.nic.cz (unknown [IPv6:2001:1488:fffe:6:cac7:3539:7f1f:463]) by mail.nic.cz (Postfix) with ESMTP id E2290605FC; Sun, 31 Mar 2019 05:15:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1554002138; bh=dBK1CDTkhiSe5esZt+L/V8OhCS6bAS+y/lpiCVaJawc=; h=From:To:Date; b=KGnq7c9C3uIXfpS38ZdZcZeTcTh9fCJzn7+QoxMF3Q7tqkC+w1iDGa/uKWohPeyvH QbAIGUrP4poZuMvISi7MtskMvVWYGE7UG407Hw8po7IFp8YKZgTLPgy3QBDk737i7f hdvIxp/Brvk+FNoGJDdK5DQd9Aj0xrdio+pq2BiE= From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Jassi Brar Cc: Jassi Brar , linux-kernel@vger.kernel.org, Gregory CLEMENT , Miquel Raynal , Linus Walleij , linux-arm-kernel@lists.infradead.org, arm@kernel.org, Linux Crypto Mailing List , Herbert Xu , =?utf-8?q?Marek_Beh=C3=BAn?= Subject: [PATCH v3 crypto+mailbox+firmware RESEND 0/6] Armada 37xx mailbox + Turris Date: Sun, 31 Mar 2019 05:15:31 +0200 Message-Id: <20190331031537.10626-1-marek.behun@nic.cz> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.99.2 at mail X-Virus-Status: Clean Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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