Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp211982imb; Thu, 28 Feb 2019 21:34:29 -0800 (PST) X-Google-Smtp-Source: APXvYqwnTXjhcbdeLO8qn5hw/VhOCbx+YyyVw+2fs0GFNiXck+xbflsyLQv9NhZQtbCLka59p3UW X-Received: by 2002:a65:4203:: with SMTP id c3mr3149661pgq.271.1551418469415; Thu, 28 Feb 2019 21:34:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551418469; cv=none; d=google.com; s=arc-20160816; b=AmC7aFcns/j/zXc92r/BX7f5056f2qZwubSO7jx29DZX9ROU/Y4WaMpHpxdyTvOdOs mYZxMYUwbcgWrATsppP+vC+FQR5rHkFll5IJWn8H5JBMwmxAkB2GUv2M7P258uV0IVOa nea8VVVuf1I8/tqykBEYPq5RDMe1qLFfNGD/aeclvPeyOB02+rg5dURejXu3fOp67hyG 3xxp6CymQHxI0x1RmeDmS0W9+2gUEe7B0cRtn2cRTOyoIn0XyhqyPM77f1R3aySQSV8q k+gj6zQIn7udMEYKeOknuxCp27E2LHkf4Slusqw5d5XBqoESwwo35MwXPOf2Xt9zxO5z Kibw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=7M5K78LB7EYmNUrCPEf3BoEpQl6rAR21E72L070cDCk=; b=QmzNYVSMYlz8i8t9gAj6IjUwX0GNzDgWoWaOCwQHXAbdC3gSKs5fkU+lT1sPmc5rfW cYS2VkbyDtje3mw92dbxDCXW8I/H8BskRifJ+knGo/Proy3EbSDjBghtLzOngU36TUjc l8O7vCiFL0iuTcR9RTpOuJ9ZVeQ2JsCzQTThbxHfCUBfwK5zPEBG6JPee2Ou4cy3JnVJ mxnvh8og5v4p7yltycQtF12ZO8JnHRXf5SwVBttsIJpHMumHHpIejmnGrJgyqWNtF/6r RqgJxxZ5Vrkq3vLjjZ0uJRdVd8SaRrqQ8hGwA2Ltsiis0mhE4lfa/eCNuOE8LFme3QNB TN9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=WuIVe8b8; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=xyG7ldRw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c6si19461632pfg.192.2019.02.28.21.34.14; Thu, 28 Feb 2019 21:34:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=WuIVe8b8; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=xyG7ldRw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731348AbfCAFal (ORCPT + 99 others); Fri, 1 Mar 2019 00:30:41 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:48751 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726051AbfCAF3w (ORCPT ); Fri, 1 Mar 2019 00:29:52 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 605DF22089; Fri, 1 Mar 2019 00:29:51 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 01 Mar 2019 00:29:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=7M5K78LB7EYmNUrCPEf3BoEpQl 6rAR21E72L070cDCk=; b=WuIVe8b85SsESF/Vr5yiX3pI9jT3SQisfFcJq+9pDw /GU2hbLLHQ4TEw424dk/ufEfxNNmw2M5jtFWO/L0JHvaDgn+oWCyx60HqEFdJD9M 98dYBiK6SK/g4TBoct2Pi1ou1VOH9USBA3TGlF42Grq44Lo2lSEaIe/x8r3LnqF3 rPzgsZ6gL5A1jCMAezc70fkv864oeXDW2+K4BgzWMuGJQrNAlLhiks5h9NlNRIly UyiQ2QlxDzXew4DzcrBaPVZN1TmMNJwA1rOvUBgYs44rlRc6G2ciYuCOGEBnvbaC zYoax7ycroM6NC1RwM+u2HBgk9kYQT+e5A1C2X90qGrw== 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=fm2; bh=7M5K78LB7EYmNUrCP Ef3BoEpQl6rAR21E72L070cDCk=; b=xyG7ldRwSV5nevCxWuuFXha6BqjL4Pacn 5CBHuflhTFjst9ZUYPkclefbrF1UzPwOhpbPLRQcxznDn2FCWBlgwRJxvtUs2dWH aJAgH/iQ8VvngC3SFLOAl0chnFy3DZ0/vkH9zxNHMpMPM98Dm4l8pRxkBQG5r8T3 MgFuUY7apUL0g4VY49r0xfnfhYbhiCEWSUuVkI1VPGw2Qu1jpbvwk0rUkMhfRE7I 68FWEhAF4JMcrNdwYnmxhkmWtwycqIV7aRYqzFnRp6wSEavE6jYydDndjmVre3ov 8hYGdXo94zJ9lA6JwCAPWSlutD/+yUbs2L+McgTVa55iVSQ301wjA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrvdeggdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghlucfj ohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecukfhppeejtd drudefhedrudegkedrudehudenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghl sehshhholhhlrghnugdrohhrghenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from titanium.stl.sholland.net (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id 923A1E40C1; Fri, 1 Mar 2019 00:29:48 -0500 (EST) From: Samuel Holland To: Jassi Brar , Maxime Ripard , Chen-Yu Tsai , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Samuel Holland Subject: [PATCH v2 00/10] Allwinner sunxi message box support Date: Thu, 28 Feb 2019 23:29:37 -0600 Message-Id: <20190301052947.32032-1-samuel@sholland.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds support for the "hardware message box" in sun8i, sun9i, and sun50i SoCs, used for communication with the ARISC management processor (the platform's equivalent of the ARM SCP). The end goal is to use the arm_scpi driver as a client, communicating with firmware running on the ARISC CPU, or to use the mailbox to forward NMIs that the firmware picks up from R_INTC. Changes from v1: - Marked message box clocks as critical instead of hacks in the driver - 8 unidirectional channels instead of 4 bidirectional pairs - Use per-SoC compatible strings and an A31 fallback compatible - Dropped the mailbox framework patch - Include DT patches for SoCs that document the message box Samuel Holland (10): clk: sunxi-ng: sun8i: Mark the msgbox clock as critical clk: sunxi-ng: sun9i: Mark the msgbox clock as critical clk: sunxi-ng: sun50i: Mark the msgbox clock as critical dt-bindings: mailbox: Add a sunxi message box binding mailbox: sunxi-msgbox: Add a new mailbox driver ARM: dts: sunxi: a80: Add msgbox node ARM: dts: sunxi: a83t: Add msgbox node ARM: dts: sunxi: h3/h5: Add msgbox node arm64: dts: allwinner: a64: Add msgbox node arm64: dts: allwinner: h6: Add msgbox node .../bindings/mailbox/sunxi-msgbox.txt | 44 +++ arch/arm/boot/dts/sun8i-a83t.dtsi | 10 + arch/arm/boot/dts/sun9i-a80.dtsi | 10 + arch/arm/boot/dts/sunxi-h3-h5.dtsi | 10 + arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 10 + arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 + drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 2 +- drivers/clk/sunxi-ng/ccu-sun50i-h6.c | 2 +- drivers/clk/sunxi-ng/ccu-sun8i-a23.c | 2 +- drivers/clk/sunxi-ng/ccu-sun8i-a33.c | 2 +- drivers/clk/sunxi-ng/ccu-sun8i-a83t.c | 2 +- drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 2 +- drivers/clk/sunxi-ng/ccu-sun9i-a80.c | 2 +- drivers/mailbox/Kconfig | 11 + drivers/mailbox/Makefile | 2 + drivers/mailbox/sunxi-msgbox.c | 315 ++++++++++++++++++ 16 files changed, 429 insertions(+), 7 deletions(-) create mode 100644 Documentation/devicetree/bindings/mailbox/sunxi-msgbox.txt create mode 100644 drivers/mailbox/sunxi-msgbox.c -- 2.19.2