From patchwork Thu Mar 15 16:07:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 131809 Delivered-To: patch@linaro.org Received: by 10.80.210.197 with SMTP id q5csp1663461edg; Thu, 15 Mar 2018 09:08:12 -0700 (PDT) X-Google-Smtp-Source: AG47ELvSSYoMJsGY3eGDGYu3RCfNIHcw1NPoiX4EMJsFknSmtUA5/I4pxMHP6CZXVQ+BxY+hR4nm X-Received: by 10.101.67.73 with SMTP id k9mr7083714pgq.244.1521130092194; Thu, 15 Mar 2018 09:08:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521130092; cv=none; d=google.com; s=arc-20160816; b=zwLkbDK7c6iafzK0yjt290IRRdgbFQWsWX8osmtlqhNfD9L3EyW5/9sG1XeYT40abY OQz18IFS25XaURL5MJXbMbN3ZllH54cc3+oBd64JFqP9Z14mPg05K1Xtgan5etxz9cvB EaeBijUZP/BkfkaB5gysnocFEnJqZgSw2CtPewTrwGZk1CaFBlsKnjtKtHrBLP1cWkTU fKnE42qSuw/hrPhSfgzGYXTPJXGGerg6KHohP2r45AiqiuWWKDqEh8onRz/KqHjqPQYG VyJuhsTLsPaYqhw+fSVwae1709blGWzgyGsXFLYHCwBDKZediuS0/ghsieJdBPnCg/3c 6RVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=j+e8zjGL/a6pJXiUE2ARCYfYacO85JK3k9DrZe8f2Ks=; b=WkNfbxpgmrZSNg/8PXmAn9uZBfH7DynlrfKMsFa2wkqrkiRvVwCfqoV+RJz5wvfce/ H6ZN/GgLnoWNOSWTqfKxRuaMcrcWXpY43GN5D83ENj7B7TTRxiWVekG+8MtqSH999hCL nZ49sep/xGlIOmtK9nJNxFBYcbsaUXPZdqPy8Val6+X3Q0iQMqSGyfhttRe7l+Yt0/le ZEbxoc0qkMmMOigFx2qd6FPtCwKO3mMCOAJVEWSAienrwiFG3QgLreh3bs3erpMgOvls LisbeafE0AAdH0NaDM3WDG11gvybgG5C4/1AXFoCwZIWMfW25hskwZ3lM9ijmZauRzej p15g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aU+s50/K; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23si614803pgn.235.2018.03.15.09.08.11; Thu, 15 Mar 2018 09:08:12 -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=@linaro.org header.s=google header.b=aU+s50/K; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751763AbeCOQIF (ORCPT + 28 others); Thu, 15 Mar 2018 12:08:05 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54890 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751625AbeCOQIA (ORCPT ); Thu, 15 Mar 2018 12:08:00 -0400 Received: by mail-wm0-f65.google.com with SMTP id h76so11528764wme.4 for ; Thu, 15 Mar 2018 09:07:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=j+e8zjGL/a6pJXiUE2ARCYfYacO85JK3k9DrZe8f2Ks=; b=aU+s50/K564Iyjsk5QwTWWOmmEdxCjotHwBK/uLf1e32cLzlW1zK+JYyJh4Or+vGLU 4tkJRV+W9gqCx6YbbwABnUyD2BcycYwsell5i004X261qiyx32rePtb37QP4KmtVHxFq hxc8aLxS49cP4w8FEnB9BLRixGJoQu1MhbjBQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=j+e8zjGL/a6pJXiUE2ARCYfYacO85JK3k9DrZe8f2Ks=; b=Zz/7nz+Uq4MO5zkA8p9zov5iT/9Evkx/0W4wPXhxEm68UN2FCJA5CeLq07JYat9z97 UtObbErtbIUxB5XXOPke+8Uvj7814l4zpRKSwLnyqhJUqogseV407dcClezpeg741rz3 rdDBYJSPDZhi1IIdTiQn6fNrMXGHs38HJV7wYk5MdonHsRJv1Z/Ban1tbZwE0sf1kTXb NRAe+R4K0XYmRcQTkxml3BB3Qcf1k2bXzunkGCTH5189eedu1ExZjifqDxCOX7znmC5A KhistFhRYWlKVxNUxrKU2SvVNOkOuO9SIBH9xn9z4+nvTlB2mKUpwmxddnT8ewQXPvA3 2FIg== X-Gm-Message-State: AElRT7EWFFUhKC4QczCplnYlBtL+Dy2IMBedaQZ5UxrWa9ymKBTClGs2 8G6nj1v+jlIpIEZFvGEyrGFMTg== X-Received: by 10.28.23.143 with SMTP id 137mr5528918wmx.153.1521130079109; Thu, 15 Mar 2018 09:07:59 -0700 (PDT) Received: from localhost.localdomain (li622-172.members.linode.com. [212.71.249.172]) by smtp.gmail.com with ESMTPSA id z7sm5389707wrg.1.2018.03.15.09.07.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Mar 2018 09:07:58 -0700 (PDT) From: Leo Yan To: Rob Herring , Mark Rutland , Wei Xu , Jassi Brar , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kaihua Zhong , Guodong Xu , Haojian Zhuang , Ruyi Wang Cc: Leo Yan Subject: [PATCH v7 1/3] dt-bindings: mailbox: Introduce Hi3660 controller binding Date: Fri, 16 Mar 2018 00:07:36 +0800 Message-Id: <1521130058-24796-2-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521130058-24796-1-git-send-email-leo.yan@linaro.org> References: <1521130058-24796-1-git-send-email-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce a binding for the Hi3660 mailbox controller, the mailbox is used within application processor (AP), communication processor (CP), HIFI and MCU, etc. Acked-by: Rob Herring Signed-off-by: Leo Yan --- .../bindings/mailbox/hisilicon,hi3660-mailbox.txt | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/hisilicon,hi3660-mailbox.txt -- 1.9.1 diff --git a/Documentation/devicetree/bindings/mailbox/hisilicon,hi3660-mailbox.txt b/Documentation/devicetree/bindings/mailbox/hisilicon,hi3660-mailbox.txt new file mode 100644 index 0000000..3e5b453 --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/hisilicon,hi3660-mailbox.txt @@ -0,0 +1,51 @@ +Hisilicon Hi3660 Mailbox Controller + +Hisilicon Hi3660 mailbox controller supports up to 32 channels. Messages +are passed between processors, including application & communication +processors, MCU, HIFI, etc. Each channel is unidirectional and accessed +by using MMIO registers; it supports maximum to 8 words message. + +Controller +---------- + +Required properties: +- compatible: : Shall be "hisilicon,hi3660-mbox" +- reg: : Offset and length of the device's register set +- #mbox-cells: : Must be 3 + <&phandle channel dst_irq ack_irq> + phandle : Label name of controller + channel : Channel number + dst_irq : Remote interrupt vector + ack_irq : Local interrupt vector + +- interrupts: : Contains the two IRQ lines for mailbox. + +Example: + +mailbox: mailbox@e896b000 { + compatible = "hisilicon,hi3660-mbox"; + reg = <0x0 0xe896b000 0x0 0x1000>; + interrupts = <0x0 0xc0 0x4>, + <0x0 0xc1 0x4>; + #mbox-cells = <3>; +}; + +Client +------ + +Required properties: +- compatible : See the client docs +- 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: + +stub_clock: stub_clock@e896b500 { + compatible = "hisilicon,hi3660-stub-clk"; + reg = <0x0 0xe896b500 0x0 0x0100>; + #clock-cells = <1>; + mboxes = <&mailbox 13 3 0>; +};