From patchwork Mon Feb 15 13:50:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 61932 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1080133lbl; Mon, 15 Feb 2016 05:51:09 -0800 (PST) X-Received: by 10.98.93.155 with SMTP id n27mr23517547pfj.88.1455544269230; Mon, 15 Feb 2016 05:51:09 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e84si43620943pfb.26.2016.02.15.05.51.08; Mon, 15 Feb 2016 05:51:09 -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; dkim=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753376AbcBONvF (ORCPT + 30 others); Mon, 15 Feb 2016 08:51:05 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:35578 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753358AbcBONvB (ORCPT ); Mon, 15 Feb 2016 08:51:01 -0500 Received: by mail-pa0-f51.google.com with SMTP id ho8so87330053pac.2 for ; Mon, 15 Feb 2016 05:51:01 -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=gGNU1grm9XyeErss+EXmPiVR0SRuWszN73j68qvMReQ=; b=CWJ8oP6zna7nuFq9hJEJumhx+DvW1Bhq5JTQbBwoOYnau5qp3vyirvF9cMe7jfJpuh Y89WxVke4q4fnPiZhj5Dsx5hUxeUzlWQMZyGHM+0Kn0UrJPc0lD9d4UL6qYDfETyuaWi rP64TvKj1mno6sbPN6yRAj7UsBPdqoW7IJ3DU= 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=gGNU1grm9XyeErss+EXmPiVR0SRuWszN73j68qvMReQ=; b=UNoqKV0dZbNQDom4I9stqwGhBxbB7OsOCsg9cHKL2X+9BY17opEvGFW5INVed+M12r itfSvzB4fjfRoBTDOVGA0VqdWUvXpfY/rFDQQ1CgQHFRfNy4Y3lmmOQNm5xtAuZkZO1w /noQyhLItvJtWA2R6obFDm7/YI1kgdm4QTfYJPKsUQwdG5lN7/30muSqCs6HD2UfL1Nm zUyX1Uop3QTLUpa6nkmV0swtf9CHd5gDf8WU0kse4f4xorF+YnyUuuRpSeBpYxajnLnQ 8lZp/wZYdsHQiWnDU0kwI+/P3ni825JP4s0f6Nwy+zwdCwETQqemmqjyzyontqktRrbA EOXw== X-Gm-Message-State: AG10YORZ/sRa8AhidY843OBtyf191DVWrtMuADcF0UkNetVYyrjTdSV1ITZ4Y8c/aAcH/ve0 X-Received: by 10.66.142.132 with SMTP id rw4mr22834545pab.26.1455544261350; Mon, 15 Feb 2016 05:51:01 -0800 (PST) Received: from localhost.localdomain (v17.blockcn.net. [192.241.236.26]) by smtp.gmail.com with ESMTPSA id cf6sm38929900pad.41.2016.02.15.05.50.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Feb 2016 05:51:00 -0800 (PST) From: Leo Yan To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Jassi Brar , Leo Yan , Tyler Baker , Arnd Bergmann , Sudeep Holla , Bintian Wang , Chen Feng , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Wei Xu Subject: [PATCH v7 RESEND 1/4] dt-bindings: mailbox: Document Hi6220 mailbox driver Date: Mon, 15 Feb 2016 21:50:23 +0800 Message-Id: <1455544226-10094-2-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455544226-10094-1-git-send-email-leo.yan@linaro.org> References: <1455544226-10094-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 Document DT binding for Hisilicon Hi6220 mailbox driver. Acked-by: Rob Herring 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 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..044b17f --- /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>; + };