From patchwork Wed Aug 19 14:22:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 52556 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id 9A0AC2156D for ; Wed, 19 Aug 2015 14:24:33 +0000 (UTC) Received: by lagz9 with SMTP id z9sf2144333lag.3 for ; Wed, 19 Aug 2015 07:24:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=7EOA5W9ZSBeOYkbZd9nFF5B4ImwI9SrbtXmRwbjCU0U=; b=bYydl0EnXXgcDZCrwIPe9L5irT1FbupaDBxV4GuFXwYVcPZDXu9etos6HGi3l4Ef+Q 5uVuSgxzXcIU6ZkyQOQGQq/g141+I5FfcsaNGq73RpZQ6cGKOHeEjeu+bJz56VTMfjfP U14q7mPx9G6aIgnVXlNlHp4GB200C7hGVzL8X7cHryDXd34I3nic6wpJWSkv6iviWGj/ 8VwNqmSAy1CeWwhAyVLn7NYKMOpb3Tz1bUIFgnUIqnWsPTRop8E/cMVE5XMORl3VTumf 7gz4ufNb0GYx7xcirtHfdW5QUNbPTkxKWSXzmhwFnFBwEd8qOgd8KgoxeAWS2wzcowU2 J/2A== X-Gm-Message-State: ALoCoQkwwVoRHAw9KGFAjhdVXGxMh0JovM0PRImSFLwgSQ2lQJrGRtNgRdG772gltK7peV5v6O/p X-Received: by 10.112.189.105 with SMTP id gh9mr3337079lbc.16.1439994272506; Wed, 19 Aug 2015 07:24:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.198 with SMTP id le6ls31519lab.56.gmail; Wed, 19 Aug 2015 07:24:32 -0700 (PDT) X-Received: by 10.112.199.66 with SMTP id ji2mr11458358lbc.1.1439994272242; Wed, 19 Aug 2015 07:24:32 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id i19si635935lbh.10.2015.08.19.07.24.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Aug 2015 07:24:32 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by lahi9 with SMTP id i9so4069804lah.2 for ; Wed, 19 Aug 2015 07:24:32 -0700 (PDT) X-Received: by 10.112.176.228 with SMTP id cl4mr11591065lbc.106.1439994272055; Wed, 19 Aug 2015 07:24:32 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.162.200 with SMTP id yc8csp410068lbb; Wed, 19 Aug 2015 07:24:31 -0700 (PDT) X-Received: by 10.67.22.233 with SMTP id hv9mr25939487pad.138.1439994270886; Wed, 19 Aug 2015 07:24:30 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kw9si1474300pab.114.2015.08.19.07.24.29; Wed, 19 Aug 2015 07:24:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754170AbbHSOY2 (ORCPT + 8 others); Wed, 19 Aug 2015 10:24:28 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:34424 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753780AbbHSOXC (ORCPT ); Wed, 19 Aug 2015 10:23:02 -0400 Received: by wicne3 with SMTP id ne3so128469140wic.1 for ; Wed, 19 Aug 2015 07:23:01 -0700 (PDT) X-Received: by 10.194.216.68 with SMTP id oo4mr23422156wjc.81.1439994180974; Wed, 19 Aug 2015 07:23:00 -0700 (PDT) Received: from localhost.localdomain (host81-129-169-167.range81-129.btcentralplus.com. [81.129.169.167]) by smtp.gmail.com with ESMTPSA id o3sm1290750wjx.16.2015.08.19.07.22.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Aug 2015 07:23:00 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@stlinux.com, jassisinghbrar@gmail.com, devicetree@vger.kernel.org, Lee Jones Subject: [PATCH v3 1/5] mailbox: dt: Supply bindings for ST's Mailbox IP Date: Wed, 19 Aug 2015 15:22:51 +0100 Message-Id: <1439994175-13360-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439994175-13360-1-git-send-email-lee.jones@linaro.org> References: <1439994175-13360-1-git-send-email-lee.jones@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Lee Jones --- .../devicetree/bindings/mailbox/sti-mailbox.txt | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/sti-mailbox.txt diff --git a/Documentation/devicetree/bindings/mailbox/sti-mailbox.txt b/Documentation/devicetree/bindings/mailbox/sti-mailbox.txt new file mode 100644 index 0000000..9fb4400 --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/sti-mailbox.txt @@ -0,0 +1,52 @@ +ST Microelectronics Mailbox Driver + +Each ST Mailbox IP currently consists of 4 instances of 32 channels. Messages +are passed between Application and Remote processors using shared memory. + +Controller +---------- + +Required properties: +- compatible : Should be "st,stih407-mailbox" +- reg : Offset and length of the device's register set +- mbox-name : Name of the mailbox +- #mbox-cells: : Must be 2 + <&phandle instance channel direction> + phandle : Label name of controller + instance : Instance number + channel : Channel number + +Optional properties +- interrupts : Contains the IRQ line for a Rx mailbox +- tx-only : Denotes Mailbox cannot receive messages + +Example: + +mailbox0: mailbox@0 { + compatible = "st,stih407-mailbox"; + reg = <0x08f00000 0x1000>; + interrupts = ; + #mbox-cells = <2>; + mbox-name = "a9"; +}; + +Client +------ + +Required properties: +- compatible : Many (See the client docs) +- reg : Shared (between Application and Remote) memory address +- mboxes : Standard property to specify a Mailbox (See ./mailbox.txt) + Cells must match 'mbox-cells' (See Controller docs above) + +Optional properties +- mbox-names : Name given to channels seen in the 'mboxes' property. + +Example: + +mailbox_test { + compatible = "mailbox_test"; + reg = <0x[shared_memory_address], [shared_memory_size]>; + mboxes = <&mailbox2 0 1>, <&mailbox0 2 1>; + mbox-names = "tx", "rx"; +};