Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp212071imb; Thu, 28 Feb 2019 21:34:45 -0800 (PST) X-Google-Smtp-Source: APXvYqyO2aGGYqlUSYb9dKS567Idp2shTU8dtvzUmJqp1imUah5YG6QlKM0vTDNYd8Giyr524DwY X-Received: by 2002:a17:902:765:: with SMTP id 92mr3531629pli.95.1551418485084; Thu, 28 Feb 2019 21:34:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551418485; cv=none; d=google.com; s=arc-20160816; b=xEc71FlONtt7nLnxC6+Ex3Ag7TAyknOqaLu0RTXmkI15vaJeNQc5Cxg/pmZ+B3s78f IhwTdwNO8HGawFF7G3bASj3AgKUP4NMGYMHsTyyzqWDAZRnUwK8UcimQRY+0LEm2qS9M aeNgD8lDLdVLzM8aEl8TT1vtGT6MTG12CzG2lSwm4XkWQs94fJnTPBNnGL46TmOpBMKF /axKsRwnE5/QfnR/AbiWT3a+Xpz8mWSALFzR1ubCgHUU5Il/LPEYPybdJlo5aRdDGEzd bfkPjlTuhdUKsnO3MXMqJ7nqxFq1tzv9D0B/Md3Uz0yPCRwz0d342YzCiJMHqONYmvrQ ko9A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=M96FGgsCu/e2Eq9aZjdotyD+op/vvfCg0VjjMXQ7q3w=; b=CQAPtOpB55FKSMvTsIg88PgwBhat7BzyyoW5vKaeVhio0T2dMNb7YOlEyQ2asHtiJB F+6wVZLOoHxnNW/WdBDGprKpa7fx7mhDfccotwHzZr6wgKRVIP4WMJtBAWDgmEb2ZFW0 WjLsRvaJVvrefPInZjW4V/8kwza4jd1ySFjA73bkbY8sZ65XtNVmGlfd0odVslQFoCil 1oYQUGVNO3r8jgjaHuWUJozjTLcnbbJBo/aRt+LB8iPhg0zjqtNETJ58uSUVK5QuelNk /1GVwPhhlN4Etb45E/OTVSO0iIKgJvo/Gp2fBKL+qv+ZDmmyjkIhzLdrB03VrQaXtdVs fhlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=MVZtHRov; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=NnO4M3BL; 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 d1si19150551pll.283.2019.02.28.21.34.30; Thu, 28 Feb 2019 21:34:45 -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=MVZtHRov; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=NnO4M3BL; 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 S1731683AbfCAFar (ORCPT + 99 others); Fri, 1 Mar 2019 00:30:47 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:53759 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726243AbfCAF3w (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 C197F2208C; 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:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=M96FGgsCu/e2E q9aZjdotyD+op/vvfCg0VjjMXQ7q3w=; b=MVZtHRovNtHd5Rht0mmeJFLkpO1Sm 1Monlk3sWsxdlMT0ugXncKRvQFfMLXipC9kQsLMJ0U9DaEuLoo7ZGgO7DrIuiCp2 W3mufIqi8uSue4cN+PK2VJk7bpbYRBPEXte0ZzrPl4T+l6ZnAbkdSXe/qPzT9+fv kmTTopP4fZrfqWtv89JiSNnegx5UmCHV/B6bTOHB1j8bgDFmufuWXUnnCqL5yVUF vYLbvAqWovvnj9+xCp1DUg07ZTjUVM6YgeAPsS6J3dIU9scftGRSRyQh3WXEXSvT VGy150SuTVQ9XXIwZuz114icG+O43lbE/cjgxrKKxUouHlRw197XCkq+g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=M96FGgsCu/e2Eq9aZjdotyD+op/vvfCg0VjjMXQ7q3w=; b=NnO4M3BL H6Y/PQj8Yz4Da5Yeh88hoTkTFDj1wlSQhagd3XjU5wYh5Fup9lZ7mw597U5+pDI7 PUXTz7xzYfResNYcaeLQkzKnHoPtFvXa7qB46nue5AGwqqklmUSgywFViOhAsioD JhYDZvTRMEIP6yMqnmMYI42gZ27H9G8QVYqlkAFCwk7ZGPFy5rRqz/zsvqmh/pML y2IOEhXsotpRuiiH7KJedMugRxwR8M6wmMM8keVFWrkruLvJfMEoYavhKo9fDMP6 clskPLTl2jmkWRmltUdYEMbTwXIKe8RtAL8VgmxQj/PNLxjdO7n1zO+5Ca511llq lAQrC3GJJ98tYw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrvdeggdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecukfhppe ejtddrudefhedrudegkedrudehudenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhu vghlsehshhholhhlrghnugdrohhrghenucevlhhushhtvghrufhiiigvpedv 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 E5453E4662; Fri, 1 Mar 2019 00:29:50 -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 04/10] dt-bindings: mailbox: Add a sunxi message box binding Date: Thu, 28 Feb 2019 23:29:41 -0600 Message-Id: <20190301052947.32032-5-samuel@sholland.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190301052947.32032-1-samuel@sholland.org> References: <20190301052947.32032-1-samuel@sholland.org> 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 mailbox hardware is present in Allwinner sun8i, sun9i, and sun50i SoCs. Add a device tree binding for it. Signed-off-by: Samuel Holland --- .../bindings/mailbox/sunxi-msgbox.txt | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/sunxi-msgbox.txt diff --git a/Documentation/devicetree/bindings/mailbox/sunxi-msgbox.txt b/Documentation/devicetree/bindings/mailbox/sunxi-msgbox.txt new file mode 100644 index 000000000000..4560ab8efeca --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/sunxi-msgbox.txt @@ -0,0 +1,44 @@ +Allwinner sun6i Message Box +=========================== + +The hardware message box on sun6i and newer sunxi SoCs is a two-user mailbox +controller containing 8 unidirectional FIFOs. An interrupt is raised for +received messages, but software must poll to know when a transmitted message has +been acknowledged by the remote user. + +Refer to ./mailbox.txt for generic information about mailbox device-tree +bindings. + +Mailbox Device Node: +==================== + +Required properties: +-------------------- +- compatible: Must contain at least "allwinner,sun6i-a31-msgbox". + Should also contain another SoC-specific string when + used on other SoCs which are compatible, e.g. + - allwinner,sun6i-a31-msgbox + - allwinner,sun8i-a83t-msgbox, allwinner,sun6i-a31-msgbox + - allwinner,sun8i-h3-msgbox, allwinner,sun6i-a31-msgbox + - allwinner,sun9i-a80-msgbox, allwinner,sun6i-a31-msgbox + - allwinner,sun50i-a64-msgbox, allwinner,sun6i-a31-msgbox + - allwinner,sun50i-h6-msgbox, allwinner,sun6i-a31-msgbox +- reg: Contains the mailbox register address range (base + address and length). +- clocks: phandle for the bus clock controller and specifier. +- resets: phandle for the bus reset controller and specifier. +- interrupts: Contains interrupt information for the mailbox. +- #mbox-cells: Must be 1. + +Example: +-------- + + msgbox: mailbox@1c17000 { + compatible = "allwinner,sun8i-h3-msgbox", + "allwinner,sun6i-a31-msgbox"; + reg = <0x01c17000 0x1000>; + clocks = <&ccu CLK_BUS_MSGBOX>; + resets = <&ccu RST_BUS_MSGBOX>; + interrupts = ; + #mbox-cells = <1>; + }; -- 2.19.2