From patchwork Thu Sep 16 15:49:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Peter X-Patchwork-Id: 12499525 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B057C433F5 for ; Thu, 16 Sep 2021 15:52:24 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 19A8561164 for ; Thu, 16 Sep 2021 15:52:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 19A8561164 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=svenpeter.dev Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=Pqu8JySPL0ZZIh48ctzV8Ya02QmJ17c/H/wtbnqANOc=; b=lDhoD30FVxEJrN GyKCIokAwWdko5l7ROVCrn+6ZBzEG3z38gU4ninMRqxvTPS32vjmdWRXp8n/E6FB1XjFUh3QH2448 WHlb7BBgHb8t6JStdHQZSIY9JE3urpHhX4nbMxCi7zuPMzgyWEw7yrJ5t2z73Yj2XBKTFSeF72TFR FJ2ZmhifRdkBD0TGwDypqLi2MJZ3Cw05HkOZMbVt+zSe7kNtn7VPHPvrKmOy/XPLf3mGhJqVs1WL6 winXp6SvhbknmDqMQMvsxJo/smuJiP4I4Rlf48BGAPalwbL25/VNFOb0i9FtXSIibv/R5R4zbvTZ3 QhNC2eWMTSPpuXXOcUDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mQtdy-00BWhe-HH; Thu, 16 Sep 2021 15:49:46 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mQtdt-00BWbs-SA for linux-arm-kernel@lists.infradead.org; Thu, 16 Sep 2021 15:49:43 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id CFC43580E74; Thu, 16 Sep 2021 11:49:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 16 Sep 2021 11:49:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=Zh6CdkZjA6wvOyQTH00eBmRM6e sKnexFeXTctqmVuOQ=; b=VWpAcdhx+hyf3OPMJA7S19GJ2l8CSjVgDuRARFWk8l Gqd1Lvxj0GKVl4dspizab8JHplN7M6KMJWrIx+ku9/rfLIh1kbCXQNUEkF2IRvht CQzex+djiELhnWcUU+1jbgDxVoWaT6nlxBIQMAxURGhzCNolVmbHicjnxXPg3cg6 VUl3rDhU2ho5HZUn/0jbTP6RVL+OeAdFWJTx0elKu+vk7Dc1/lXsTp3KD4wGAlR4 WHE0OcmWiL9yLDhtTm23cgvpN4Pg7ViRz54DPTWWwPJbCJ8lq+2/Hpkhnb/+Bruv lIoGD6GBshKfTAMTbVi08ywX/BNNeZeOwp3cxK9dFK+w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=Zh6CdkZjA6wvOyQTH 00eBmRM6esKnexFeXTctqmVuOQ=; b=wm1MBX4H3YfNHp491Sv7cm+5Vwm4bs7vH Eo1HlApGat8OIN2g16QI4bRX9eaTI4ALzTlWEkHRdcUXzaSQH7O0wUx8JRW07dEX 1gMn1wTz92tIFI6AEuyuoprZns/EydLgNcSiox3ifH0jwm0qLy/x+vXLb+UeRuBF 324lOGkhj0xmp0/KD3Z7aH86HDOcjKTxEuluS5X4/tCNzSkCt1fOKzzoFvF5cqbA 8D6Kq71LLOSHHmn5txZNcPBVaAvlJCUN5RoY5CLal2hHxJBqldPdhXJpnBtNYSG2 O5qnEl+2mwBRo5/3Fb//gq0ZWzLQYfdkI7sbtZfFMPg2QJZjO9uHg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudehgedgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuvhgvnhcurfgv thgvrhcuoehsvhgvnhesshhvvghnphgvthgvrhdruggvvheqnecuggftrfgrthhtvghrnh epfeehudeftddvhfehvdduhedtjeejheeuudfftdfgvdekvdelleeuveelgfeflefgnecu ffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehsvhgvnhesshhvvghnphgvthgvrhdruggvvh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 Sep 2021 11:49:28 -0400 (EDT) From: Sven Peter To: Jassi Brar Cc: Sven Peter , Rob Herring , Mark Kettenis , Hector Martin , Alyssa Rosenzweig , Mohamed Mediouni , Stan Skowronek , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] Apple Mailbox Controller support Date: Thu, 16 Sep 2021 17:49:09 +0200 Message-Id: <20210916154911.3168-1-sven@svenpeter.dev> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210916_084942_038309_1BD1C50F X-CRM114-Status: GOOD ( 12.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This is the second version of my series which adds support for the mailbox controllers found on the Apple M1. v1: https://lore.kernel.org/lkml/20210907145501.69161-1-sven@svenpeter.dev/ Thanks to Jassi, Mark and Alyssa for the initial review. I've addressed your comments with the following changes: - switched to txdone_irq instead of introducing a new mode - switched to a threaded interrupt handler for receiving messages - added co-processor examples to the device tree binding - reformatted the register defines and clarified multiple comments Best, Sven Sven Peter (2): dt-bindings: mailbox: Add Apple mailbox bindings mailbox: apple: Add driver for Apple mailboxes .../bindings/mailbox/apple,mailbox.yaml | 84 ++++ MAINTAINERS | 3 + drivers/mailbox/Kconfig | 12 + drivers/mailbox/Makefile | 2 + drivers/mailbox/apple-mailbox.c | 431 ++++++++++++++++++ include/linux/apple-mailbox.h | 18 + 6 files changed, 550 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/apple,mailbox.yaml create mode 100644 drivers/mailbox/apple-mailbox.c create mode 100644 include/linux/apple-mailbox.h