From patchwork Fri Mar 15 00:59:20 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: 10853945 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 3057A15AC for ; Fri, 15 Mar 2019 01:00:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A5772A814 for ; Fri, 15 Mar 2019 01:00:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E5E42A80F; Fri, 15 Mar 2019 01:00:21 +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 A73D52A809 for ; Fri, 15 Mar 2019 01:00:20 +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=IH4lLXMkfiGqN9d57VYmrzoD6peZEv3w9R3RgIP2M4Y=; b=Qo8ZcR+CCuFWWl KId3w8B4LTFNUrtLNJcRhJAkU3sTbs6yi7ocYWtddY1fc7JjGpVmqkEaooIdJhUBzw/RqImR4lKjT yBdJ1WEqRsEEZbVytcuT4R/myUoBElUb3BegMYJP4xm91nhC7b2Q9t3APSHD8HZ+gFk31+ry1uHdF UJ2Uvi7twE/1UPh+LE6jPJr7wbVPlI7bH3NB2fvL5gTWbv3FeiRUfaXOw8S0tShqDtPyayfIKpiZp hiQdYKqKW5/SLFOszp68HWfPnhjLcR6RzHDU8w7RkO3xOB7Osz4BF8Um57oD7BZhdM+Zk7sp36oVb rJeLzO0UdJJskXw0yLEw==; 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 1h4bCo-0006Cr-Gm; Fri, 15 Mar 2019 01:00:14 +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 1h4bCW-00050v-L3 for linux-arm-kernel@lists.infradead.org; Fri, 15 Mar 2019 00:59:58 +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 2FE8460212; Fri, 15 Mar 2019 01:59:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1552611593; bh=XL67WXSvWF7TcYj3JnhjpnYDPLs+2DriTKa4AW6q5vE=; h=From:To:Date; b=BMPpTvxrmQZjsjvL9fSvc2AwGR0HFSVMaAeC8SN/9baGmm60oNjuVP147Ea9bSaCe 2DUkcdMOE6lEN43i7bEqDiv1LGVd+U1cTo/t6hlNacbHgt0CJOa7w6UTn+IU3w9t3R 5nRSWAGvlqwmttUvxiTNrHFPwjUHRA8OTZceN07g= From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Jassi Brar Subject: [PATCH v3 mailbox+firmware 0/6] Armada 37xx mailbox + Turris Mox secure firmware support Date: Fri, 15 Mar 2019 01:59:20 +0100 Message-Id: <20190315005926.5994-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-20190314_175957_083484_75AA9195 X-CRM114-Status: GOOD ( 14.26 ) 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: Gregory CLEMENT , linux-kernel@vger.kernel.org, =?utf-8?q?Marek_Beh=C3=BAn?= , Jassi Brar , arm@kernel.org, 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 the third version of my patches to add support for rWTM mailbox of Marvell A3700 compatible devices, this time also with turris-mox-rwtm firmware driver. 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): mailbox: Add support for Armada 37xx rWTM mailbox dt-bindings: mailbox: Document armada-3700-rwtm-mailbox binding arm64: dts: marvell: armada-37xx: add mailbox node firmware: Add Turris Mox rWTM firmware driver firmware: turris-mox-rwtm: Add sysfs documentation dt-bindings: firmware: Document cznic,turris-mox-rwtm binding .../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