Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3497286ybl; Mon, 19 Aug 2019 20:24:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLlvNgSb4+PFxNyya42JiRGaHiyX685gg4xY3womi1O2fV2/yQBMNHIExDgq6/S7ifj4wY X-Received: by 2002:a65:52ca:: with SMTP id z10mr23370886pgp.424.1566271460553; Mon, 19 Aug 2019 20:24:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566271460; cv=none; d=google.com; s=arc-20160816; b=tJBxm/S3SFYmwtXjOZ8NoXMhz3rqScb3EWwfo/85RgmUmFE4lmAk7fg4bwuQvhhdjY iuP1RuXCA/Vwaxha+CSHY4ryj7HRR0/Cikrw/9eL8gaBEOGRA9Lz2D2zBXCdxBHJxgpW d9vW5OoMKZ3kgtojEmgJVZvPxwToBXZnCg7HxqfZjXcVrKaX89XCvW3iccMigbnju1/4 HbBU3q3JlDcgxQNxVS7BwaIMCjavQbtHoveSbi/8rlx0y9BcCxxCSYBo/BaCb5C8dPOD 8k559VePRKs4OwObnG5EtJZl9CTy0JOMsPtYPBTB1FsM0eExw4eH201bgYOCfRjEJlTC sIxA== 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=P1jz8fwnKD8XlfOMJ4PdvhOiV7IECdbznxXKaX9/fWU=; b=yjMpvnAyb0WBc5r2JdY+ofVEKlRZsFjCIHWe1//Qw9Aa0Pp1gSxt/WDJ3fBym6J4dn Y/EaXg1xi/6164Iw6zYTieUevURkATWRENrrDIZpz+iYer09ZDsvrcyq/bc1MQZ8pb0O FpNMQgmvBQM27STTEPM0KYOampCl5hpva8ifp3sqAZV2BEBMlBXH3D+Hw0pXxeVqtBsG xk1mpGtajguQZntUAIaPvUuev4HtFWZwvOiBkVL0dWMNzOdVd9h8iuWmNmWqHIvu8AqF eklhNP9y11oofqT471wZSbDCVq1goR1L67NQLG928+NMMpeNkg9CZCzHFEoKE0pQo+Sh fi9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=mGR1KHmo; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=rQ8BX9Az; 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 s10si11213423plr.43.2019.08.19.20.24.04; Mon, 19 Aug 2019 20:24:20 -0700 (PDT) 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=fm3 header.b=mGR1KHmo; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=rQ8BX9Az; 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 S1729072AbfHTDXQ (ORCPT + 99 others); Mon, 19 Aug 2019 23:23:16 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:59901 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728719AbfHTDXP (ORCPT ); Mon, 19 Aug 2019 23:23:15 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id 278163537; Mon, 19 Aug 2019 23:23:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 19 Aug 2019 23:23:14 -0400 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=fm3; bh=P1jz8fwnKD8Xl fOMJ4PdvhOiV7IECdbznxXKaX9/fWU=; b=mGR1KHmoaEEXPl9SRVmwzqzhfZdml 8u8rRVz+VjUSWlSZ/pu3yk/0619nby/yd5vBBi9JeOgbOByrkTEPqJI3uv1qPauO dUGKoZPLIH1m84HBxrFwacgsBnFTbMDyVPvtWhALzN0cNwmkWkm+Is89LSX7Mi4b eUBFWu81ZJrvIvsIwv7afr0/6lLVk7oMtl5xZeVevecTuFQzLCpzwlztLConDqQW TbacFZZ++JdrMxURTbzvnuTZdFwx5HpkNWX1dkwF1kUav0YjzIUqEJMdjesUWcoa wrRv+S3I75yJT1Z4FWBzp6PORqjoA9J0K+t3XMARjtef3KiaJ8GybzvZg== 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= fm3; bh=P1jz8fwnKD8XlfOMJ4PdvhOiV7IECdbznxXKaX9/fWU=; b=rQ8BX9Az O8fsmxG+UpVcJIpa5gs6ycOpj8WuD/6ZqAZAaST9Fz+50/jrqeBGaz5UPtSrAmU0 fFOJYGMZjUtvvVtJucJ6qo2o/T+sKImq+/9KxWAxa3BEsV7lPjVN+oicuqLa+pQO 5Ytgsj9/qMLL0VB6GA3laKyO2r/QXtyk1CIPdGRaJN2JpFtqMx4qg9Pyy1AO+TAu 87ilh8PolUc1+NZ9IdpYTzU+zK3xqsYbBti3FN9l0Pa1sDmE9mtKeWy/sWvf9l60 cgRRUSD0poNGMfX1OGVRrcdKNMb7+PQyGhx7qLIe5wJvpW12wCEURKnzUeqAZBMC 0bM8xC8oBYluCA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudegtddgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucffoh hmrghinhepuggvvhhitggvthhrvggvrdhorhhgnecukfhppeejtddrudefhedrudegkedr udehudenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghnug drohhrghenucevlhhushhtvghrufhiiigvpedt 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 D2BCD8005B; Mon, 19 Aug 2019 23:23:12 -0400 (EDT) From: Samuel Holland To: Maxime Ripard , Chen-Yu Tsai , Jassi Brar , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Corentin Labbe , Vasily Khoruzhick 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 , Rob Herring Subject: [PATCH v4 03/10] dt-bindings: mailbox: Add a sunxi message box binding Date: Mon, 19 Aug 2019 22:23:04 -0500 Message-Id: <20190820032311.6506-4-samuel@sholland.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190820032311.6506-1-samuel@sholland.org> References: <20190820032311.6506-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. Reviewed-by: Rob Herring Signed-off-by: Samuel Holland --- .../mailbox/allwinner,sunxi-msgbox.yaml | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/allwinner,sunxi-msgbox.yaml diff --git a/Documentation/devicetree/bindings/mailbox/allwinner,sunxi-msgbox.yaml b/Documentation/devicetree/bindings/mailbox/allwinner,sunxi-msgbox.yaml new file mode 100644 index 000000000000..f34a1909ab2e --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/allwinner,sunxi-msgbox.yaml @@ -0,0 +1,79 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mailbox/allwinner,sunxi-msgbox.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner sunxi Message Box + +maintainers: + - Samuel Holland + +description: | + 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. Each FIFO can hold four 32-bit + messages; when a FIFO is full, clients must wait before more transmissions. + + Refer to ./mailbox.txt for generic information about mailbox device-tree + bindings. + +properties: + compatible: + oneOf: + - items: + - enum: + - allwinner,sun8i-a83t-msgbox + - allwinner,sun8i-h3-msgbox + - allwinner,sun9i-a80-msgbox + - allwinner,sun50i-a64-msgbox + - allwinner,sun50i-h6-msgbox + - const: allwinner,sun6i-a31-msgbox + - items: + - const: allwinner,sun6i-a31-msgbox + + reg: + items: + - description: MMIO register range + + clocks: + maxItems: 1 + description: bus clock + + resets: + maxItems: 1 + description: bus reset + + interrupts: + maxItems: 1 + description: controller interrupt + + '#mbox-cells': + const: 1 + +required: + - compatible + - reg + - clocks + - resets + - interrupts + - '#mbox-cells' + +examples: + - | + #include + #include + #include + + 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.21.0