From patchwork Tue Feb 2 10:09:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 61000 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp630053lbb; Tue, 2 Feb 2016 02:10:45 -0800 (PST) X-Received: by 10.66.222.101 with SMTP id ql5mr45980899pac.144.1454407845416; Tue, 02 Feb 2016 02:10:45 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q80si943698pfi.236.2016.02.02.02.10.45; Tue, 02 Feb 2016 02:10:45 -0800 (PST) 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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754513AbcBBKKn (ORCPT + 6 others); Tue, 2 Feb 2016 05:10:43 -0500 Received: from mail-pf0-f176.google.com ([209.85.192.176]:36426 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754478AbcBBKKc (ORCPT ); Tue, 2 Feb 2016 05:10:32 -0500 Received: by mail-pf0-f176.google.com with SMTP id n128so100070909pfn.3 for ; Tue, 02 Feb 2016 02:10:32 -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=48YrOv9+wnwwEvUrDkDpnZq/biKkh6Xsxr7fdLvNTuw=; b=IWAeH/sjVwQF7Wi2lM3FmY93Nm174AQzS8jNRUtq2B0PLXYVxJsUup8bytiHyA2zlH /KFNpYCNtxmJ7f7gzZVOlhbCTNfFTZUGN1dADhT6gGpromo59ugty4uz5YBQijxUPDO1 GB6n1w8mOlX1upj92quAeLR3/EvmfLZ48aZl0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=48YrOv9+wnwwEvUrDkDpnZq/biKkh6Xsxr7fdLvNTuw=; b=doPZ2xk8SkYkpXSD9PqejfTAB90sxa/jTQQbfr/V9RI1U6DASUp93oxUUMJNyxDLeY GuqRkIIbRYlEHJJTI1k7KagYfQ5I6v1UqlgIyek3XMOwCnlB/RMHPcFDAAnbtbBOxU5u fHE/zVh4rNJYR1kQZE2SYmxPXPa+tG5zGb5LGLmRKyJG0Gclrmx4Bgt3PGlwPQaMSjXJ p8gBjogpfScFgn4SSj/i8s8zHu84NyzWsLAlgXsfYAgWRj3TRDbfEUJQiH5W9Bdbjyna Yx6JUXkuzLL0YHcD2GEMjQzQhYSaOUaIr5AuaqGK0TWsx2UA4ratkJ5E2Fx/MWmKd/Bv lkuQ== X-Gm-Message-State: AG10YOTmzQQKQgo9am8d3y4CeKhhQ9g4MtKa5mNgaUs9kvo+E5TcJz08tyGIE+VXBpPJNSer X-Received: by 10.98.9.129 with SMTP id 1mr10232620pfj.163.1454407831953; Tue, 02 Feb 2016 02:10:31 -0800 (PST) Received: from localhost.localdomain (v17.blockcn.net. [192.241.236.26]) by smtp.gmail.com with ESMTPSA id bx1sm1340138pab.33.2016.02.02.02.10.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Feb 2016 02:10:30 -0800 (PST) From: Leo Yan To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Jassi Brar , Leo Yan , Yiping Xu , Wei Xu , Bintian Wang , Sudeep Holla , Chen Feng , Tyler Baker , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Haojian Zhuang Subject: [PATCH v6 1/4] dt-bindings: mailbox: Document Hi6220 mailbox driver Date: Tue, 2 Feb 2016 18:09:39 +0800 Message-Id: <1454407782-24674-2-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454407782-24674-1-git-send-email-leo.yan@linaro.org> References: <1454407782-24674-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 Document DT binding for Hisilicon Hi6220 mailbox driver. Signed-off-by: Leo Yan --- .../bindings/mailbox/hisilicon,hi6220-mailbox.txt | 74 ++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/hisilicon,hi6220-mailbox.txt -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Rob Herring diff --git a/Documentation/devicetree/bindings/mailbox/hisilicon,hi6220-mailbox.txt b/Documentation/devicetree/bindings/mailbox/hisilicon,hi6220-mailbox.txt new file mode 100644 index 0000000..8508c8a --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/hisilicon,hi6220-mailbox.txt @@ -0,0 +1,74 @@ +Hisilicon Hi6220 Mailbox Driver +=============================== + +Hisilicon Hi6220 mailbox supports up to 32 channels. Each channel +is unidirectional with a maximum message size of 8 words. I/O is +performed using register access (there is no DMA) and the cell +raises an interrupt when messages are received. + +Mailbox Device Node: +==================== + +Required properties: +-------------------- +- compatible: Shall be "hisilicon,hi6220-mbox" +- reg: Contains the mailbox register address range (base + address and length); the first item is for IPC + registers, the second item is shared buffer for + slots. +- #mbox-cells: Common mailbox binding property to identify the number + of cells required for the mailbox specifier. Must be 3. + <&phandle slot_id dst_irq ack_irq> + phandle: Label name of mailbox controller + slot_id: Slot id used either for TX or RX + dst_irq: IRQ identifier index number which used by MCU + ack_irq: IRQ identifier index number with generating a + TX/RX interrupt to application processor, + mailbox driver uses it to acknowledge interrupt +- interrupts: Contains the interrupt information for the mailbox + device. The format is dependent on which interrupt + controller the SoCs use. + +Optional Properties: +-------------------- +- hi6220,mbox-tx-noirq: Property of MCU firmware's feature, so mailbox driver + use this flag to ask MCU to enable "automatic idle + flag" mode or IRQ generated mode to acknowledge a TX + completion. + +Example: +-------- + + mailbox: mailbox@F7510000 { + compatible = "hisilicon,hi6220-mbox"; + reg = <0x0 0xF7510000 0x0 0x1000>, /* IPC_S */ + <0x0 0x06DFF800 0x0 0x0800>; /* Mailbox */ + interrupt-parent = <&gic>; + interrupts = ; + #mbox-cells = <3>; + }; + + +Mailbox client +=============== + +Required properties: +-------------------- +- compatible: Many (See the client docs). +- mboxes: Standard property to specify a Mailbox (See ./mailbox.txt) + Cells must match 'mbox-cells' (See Mailbox Device Node above). + +Optional Properties: +-------------------- +- mbox-names: Name given to channels seen in the 'mboxes' property. + +Example: +-------- + + stub_clock: stub_clock { + compatible = "hisilicon,hi6220-stub-clk"; + hisilicon,hi6220-clk-sram = <&sram>; + #clock-cells = <1>; + mbox-names = "mbox-tx", "mbox-rx"; + mboxes = <&mailbox 1 0 11>, <&mailbox 0 1 10>; + };