From patchwork Wed Feb 14 03:49:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 873237 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="GtULeT8s"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3zh56w2GSCz9t3B for ; Wed, 14 Feb 2018 14:51:20 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966743AbeBNDuZ (ORCPT ); Tue, 13 Feb 2018 22:50:25 -0500 Received: from mail-qk0-f193.google.com ([209.85.220.193]:38743 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966735AbeBNDuW (ORCPT ); Tue, 13 Feb 2018 22:50:22 -0500 Received: by mail-qk0-f193.google.com with SMTP id s198so9008178qke.5 for ; Tue, 13 Feb 2018 19:50:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=j+e8zjGL/a6pJXiUE2ARCYfYacO85JK3k9DrZe8f2Ks=; b=GtULeT8sxJgms2pt1eTTQNgh9S4jvjONOdjsrW06OLJtKdfvSSeTNOmAwZE42/5095 j+luss3DLpEeLonvkE4IBLVFffjeHYSOdXKOMcOy4O2MH0HVVjWw8JtNjIYZrib+97gF peuAm2tbvWo0al1JKRXuX9tkHWeN1sAFltDlU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=j+e8zjGL/a6pJXiUE2ARCYfYacO85JK3k9DrZe8f2Ks=; b=cM4ZPrvqAYXvMblergA1PTEAl6Q1BJpNz0VIyjh8CWU666SUoq9fPl8yj1Ob/xos3H PH/kXI+cLAlPcr3c0dCOtKMOOlKXiTNzcicU9kMDws3Pwf/tYF8NdMf0mre8FpqAcAsm gzk4jvZxALVmFY67p/3Uu3/5L/mqOxGfKVnn0UAcdOpJ3bJk7FEEZ3bGDNq4hIJDrcjQ sbcJ5tCNQ0zODmz/gCBRt8CYVG8RAC2kZOPP8uge0PF5dpBhtchJYHApyoRD5OFIve3A WZnKSV+7jRX+TgT6yeb4ec4ea4FKT+Ing6sDaFGYmRxQRD+hbTGbe5qr5ReZqIGteA8P LBlw== X-Gm-Message-State: APf1xPA5ug/KpFG396i7fU6YXBsyaC/8D4Wa9J/lCSFlZJ+BSvJJrm1v xo7MRHvRs/y7VHja8hTrfpwhxQ== X-Google-Smtp-Source: AH8x225PPAbYPnwhkVfOCqs/gi3vxQ4JAT+GBfTXgwO+Vr9LUkAd3mYY267GW1XC3ELqX3LSl46xKw== X-Received: by 10.55.95.4 with SMTP id t4mr5624127qkb.102.1518580221842; Tue, 13 Feb 2018 19:50:21 -0800 (PST) Received: from localhost.localdomain ([45.77.212.61]) by smtp.gmail.com with ESMTPSA id h45sm8913800qtc.34.2018.02.13.19.50.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Feb 2018 19:50:20 -0800 (PST) From: Leo Yan To: Rob Herring , Mark Rutland , Wei Xu , Jassi Brar , Leo Yan , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kaihua Zhong , Guodong Xu , Haojian Zhuang Subject: [PATCH RESEND v5 1/3] dt-bindings: mailbox: Introduce Hi3660 controller binding Date: Wed, 14 Feb 2018 11:49:49 +0800 Message-Id: <1518580191-26451-2-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1518580191-26451-1-git-send-email-leo.yan@linaro.org> References: <1518580191-26451-1-git-send-email-leo.yan@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 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>; +};