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: 10878679 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 348781805 for ; Sun, 31 Mar 2019 03:16:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F42A28468 for ; Sun, 31 Mar 2019 03:16:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12AE22883F; Sun, 31 Mar 2019 03:16:32 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A8AFD28922 for ; Sun, 31 Mar 2019 03:16:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8Lwl/4hqaC7GirYEQiTxx7A9yjz23RVdKiDWUXMpx+M=; b=Adpnzt6qUOEWYo lUnDLyf0utaCA1JafEDY7NpXItq21ChfpyyrZVpVKmtrnCqJcaRj26okFOzYSr4uFNioCNR3gTJl9 kPXA35NMLMZxCKxdh21kugXyqKWZ7lxseukGT/ZIJdFVYml96Oa/ArIdHobTuvsx7K9WIK24lO0U7 yASgd7Czjd9CFn8jAWs3yE8sl3F6etGPEZvaFqyM/7KTLYgplMnxrEv0NGWsGW5ECXvOtUDvIv2jr doqx3tsZYiqjbWpEh5+MBSD+/QPpWGrQ+Rh+xMEyUUtpRxKfWhrgCYLWdBLnaSdEMiNphfTRCynHL 4CKvcsmcNMXmbsga8OTw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hAQxR-0004WK-6I; Sun, 31 Mar 2019 03:16:29 +0000 Received: from mail.nic.cz ([217.31.204.67]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hAQwi-0003o6-Nz for linux-arm-kernel@lists.infradead.org; Sun, 31 Mar 2019 03:15:47 +0000 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190330_201545_207363_FABACC19 X-CRM114-Status: GOOD ( 15.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Herbert Xu , Gregory CLEMENT , linux-kernel@vger.kernel.org, =?utf-8?q?Marek_Beh=C3=BAn?= , Jassi Brar , arm@kernel.org, Linux Crypto Mailing List , Miquel Raynal , Linus Walleij , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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