Received: by 10.223.185.116 with SMTP id b49csp3224010wrg; Mon, 5 Mar 2018 16:58:48 -0800 (PST) X-Google-Smtp-Source: AG47ELsu12b/ROAztcGxrxOtx8fZNXfUWVju8TFhlD8oTfUOWmkA2YrKK9r38pqb2PyVKjYAqv5X X-Received: by 10.101.92.72 with SMTP id v8mr13547831pgr.153.1520297928466; Mon, 05 Mar 2018 16:58:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520297928; cv=none; d=google.com; s=arc-20160816; b=S2Ex/GPt5WjuNG8BSc/uHjOT/np6rEYVK6DAFjGpriuA3jlR0rxSIHzKw+/wXc+y2/ zjKOYS8x+thRISNPb//JCD4ZzVswrse1tFHJ5/gLqZdp34fmY+pqR3D9I+gltjK509Fu NomNQeIWD4KzuDS/EQG2IyRAeIIFEarDuvJhastuWho3NBPeHDsuvvxiVA9llJoSu59j O0L+qLis6yrKWmwXhHSwoztEidWbBnK0PjhPNijViJrrG+12U7IIOOPg88eBTovAfaYM ux6PfgccHFVL9H0+dY0yAZuPjlnBB6J3tm5ifphmnhE8seoGz8B4P8lFIaePM/zO3KJt bCpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=ARDwBCTYvv7WDhFj4r3UuVps7eLp+ABFz8cPCqm2AIg=; b=bNe2B/LJ58NFpurFfHc2mab9RqvPsgXYvDeXPhdSmEGybqYa0/UfYrnFclYsxVW+jE 4kRsRXByZuV/A3MkSsOLgFThFZEv4waKhL+4RenEdaqyg1XfAnV+SEkGcouTGJ9YdoEQ PM/mfl5Kf+UIuc41YTGAYGa/NIvsJJJJO2A7Mk8KTs19rafAo07kf/8WWE4EkqUEEqn4 VKHMkXvG1EHbk7FVul94AKh95nNCnIP+ldS7N/6CqwpUZo0jZs7Wjf3HprC98YvjfWJA of7IxrG2jNcrlyEgRpegPQy9xQVOCy3ufNUOTuwOdt3gRornr7W9oJuoZ7FnYOpw28wl 9TYA== ARC-Authentication-Results: i=1; mx.google.com; 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 x22si10924947pfm.321.2018.03.05.16.58.34; Mon, 05 Mar 2018 16:58:48 -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; 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 S1752894AbeCFA5c (ORCPT + 99 others); Mon, 5 Mar 2018 19:57:32 -0500 Received: from mail-oi0-f65.google.com ([209.85.218.65]:46540 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751462AbeCFA5b (ORCPT ); Mon, 5 Mar 2018 19:57:31 -0500 Received: by mail-oi0-f65.google.com with SMTP id x12so13588087oie.13; Mon, 05 Mar 2018 16:57:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ARDwBCTYvv7WDhFj4r3UuVps7eLp+ABFz8cPCqm2AIg=; b=NYCp1cSlt/X5w013v447UTf5CvnBFTaMYqsXjswtJtBu71O4W/iYD0BWZHZqNwqtcw By1vC/hnng8m6/RW/uoCI1WaXjVheKyf6qzp1TqGaNVkrwrqAXnr00qKCJAFvH/pDPvj fv7oxS9G3i6CyvETXSeUBcBbIAAfeGxQAMCmKQY7nJ3msGi+hjzSkzxISEj7KM6Y7rDR EYBiXGHYPLVNV6UtpTOKleoda0pUmuf5xoShZrFM1OC3Y+Ow/Rp/3vwDd1IpJGBcDS67 1lE/mDn9RIPgdRuuYK9BgfPvaqxhC42XMI3xyWiyYnofnIjptx/8S5lcoxLUPF8r+SuV APvg== X-Gm-Message-State: AElRT7E0yBtsfxJoEYI11iydMvTpMX8QrVCgeTYDjOVqDjo2FVLO1Tjr ueNydyXUZfAi25n7aMD8bw== X-Received: by 10.202.177.215 with SMTP id a206mr894237oif.167.1520297850350; Mon, 05 Mar 2018 16:57:30 -0800 (PST) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id t96sm6078004ota.3.2018.03.05.16.57.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Mar 2018 16:57:29 -0800 (PST) Date: Mon, 5 Mar 2018 18:57:29 -0600 From: Rob Herring To: Fabien Dessenne Cc: Mark Rutland , Maxime Coquelin , Alexandre Torgue , Jassi Brar , Ludovic Barre , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard , Loic Pallardy , Arnaud Pouliquen Subject: Re: [PATCH 1/2] dt-bindings: mailbox: add STMicroelectronics STM32 IPCC binding Message-ID: <20180306005729.odhf4g5br7tfrq35@rob-hp-laptop> References: <1519824270-7134-1-git-send-email-fabien.dessenne@st.com> <1519824270-7134-2-git-send-email-fabien.dessenne@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1519824270-7134-2-git-send-email-fabien.dessenne@st.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 28, 2018 at 02:24:29PM +0100, Fabien Dessenne wrote: > Add a binding for the STMicroelectronics STM32 IPCC block exposing a > mailbox mechanism between two processors. > > Signed-off-by: Fabien Dessenne > Signed-off-by: Ludovic Barre > --- > .../devicetree/bindings/mailbox/stm32-ipcc.txt | 48 ++++++++++++++++++++++ > 1 file changed, 48 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mailbox/stm32-ipcc.txt > > diff --git a/Documentation/devicetree/bindings/mailbox/stm32-ipcc.txt b/Documentation/devicetree/bindings/mailbox/stm32-ipcc.txt > new file mode 100644 > index 0000000..2321689 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mailbox/stm32-ipcc.txt > @@ -0,0 +1,48 @@ > +* STMicroelectronics STM32 IPCC (Inter-Processor Communication Controller) > + > +The IPCC block provides a non blocking signaling mechanism to post and > +retrieve messages in an atomic way between two processors. > +It provides the signaling for N bidirectionnal channels. The number of channels > +(N) can be read from a dedicated register. > + > +Required properties: > +- compatible: Must be "st,stm32-ipcc" Kind of generic. There's only 1 version of h/w across all stm32 parts? > +- reg: Register address range (base address and length) > +- st,proc_id: Processor id using the mailbox (0 or 1) s/_/-/ > +- clocks: Input clock > +- interrupt-names: List of names for the interrupts described by the interrupt > + property. Must contain the following entries: > + - "rx" > + - "tx" > +- interrupts: Interrupt specifiers for "rx channel occupied" and "tx channel > + free" > +- #mbox-cells: Number of cells required for the mailbox specifier. Must be 1. > + The data contained in the mbox specifier of the "mboxes" > + property in the client node is the mailbox channel index. > + > +Optional properties: > +- wakeup-source: Flag to indicate whether this device can wake up the system > +- interrupts: Wakeup interrupt used to wake up the system. > +- interrupt-names: "wakeup" for the wakeup interrupt. Make these required. "wakeup-source" alone determines if you use it. > + > + > + > +Example: > + ipcc: mailbox@4c001000 { > + compatible = "st,stm32-ipcc"; > + #mbox-cells = <1>; > + reg = <0x4c001000 0x400>; > + st,proc_id = <0>; > + interrupts-extended = <&intc GIC_SPI 100 IRQ_TYPE_NONE>, > + <&intc GIC_SPI 101 IRQ_TYPE_NONE>, > + <&aiec 62 1>; > + interrupt-names = "rx", "tx", "wakeup"; > + clocks = <&rcc_clk IPCC>; > + wakeup-source; > + } > + > +Client: > + mbox_test { > + ... > + mboxes = <&ipcc 0>, <&ipcc 1>; > + }; > -- > 2.7.4 >