From patchwork Thu Feb 4 15:24:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 61198 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp521762lbl; Thu, 4 Feb 2016 07:25:37 -0800 (PST) X-Received: by 10.98.79.156 with SMTP id f28mr11754739pfj.55.1454599537157; Thu, 04 Feb 2016 07:25:37 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ly9si17290369pab.115.2016.02.04.07.25.36; Thu, 04 Feb 2016 07:25:37 -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 S966177AbcBDPZf (ORCPT + 30 others); Thu, 4 Feb 2016 10:25:35 -0500 Received: from mail-pf0-f170.google.com ([209.85.192.170]:33808 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966143AbcBDPZc (ORCPT ); Thu, 4 Feb 2016 10:25:32 -0500 Received: by mail-pf0-f170.google.com with SMTP id o185so48104524pfb.1 for ; Thu, 04 Feb 2016 07:25:31 -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=hWRigU3Fj+BaAGGv20xWvq9zrJVw1ae56BR9mVNVHZkOsag0hCHQgc0x8GYZajAP4w qHb8Nzl2mGK3+7kT2VyAwARzgO4yUKp2oYJ6leQ3PpStuHLjdy+Z5/ux5/0LaSTT6aA/ TRwUFU1SVDfPKus/LXs4F8Fxxir3sZulUKDqU= 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=H0Pk76Z75MUDYkkzbe+cRSCap6jsJFTS/0sVyzc3KeInzVTRpYx9fbL5Nz36UCYqWe MdfMbddiWKpWY0um/SkGWQDmSv63sRrRNz8lqMvvPTGBfzbj9nEbOivNk3r+/x2BianW UDlGewtYhZtKx4p5QaDO+jvPAvd+EgBncItgcpeG0wAq77YwdbcCX41EtAIHlmumfCIO /QO5kpo/TYGVGzl1+jnhwv6Q8TMnKLI8ZnhMNyk1YSKO6eIQDL3RCxvS6Xs2uYWAaJLd z0oxvJDiSyU4LyozS9F1UlxhL0Zv1omqCoyKXDfzOVzqBXzCZND4erCGdVXcD+BDJt// PP7g== X-Gm-Message-State: AG10YORhGnUo7039izJh8GseeXx/YSLw1CEUvyhdqZR0BA1U3TrpIEDmdOAi7TTWdDba3Jvj X-Received: by 10.66.197.131 with SMTP id iu3mr11714988pac.57.1454599531303; Thu, 04 Feb 2016 07:25:31 -0800 (PST) Received: from localhost.localdomain (v17.blockcn.net. [192.241.236.26]) by smtp.gmail.com with ESMTPSA id q136sm17950149pfq.66.2016.02.04.07.25.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Feb 2016 07:25:29 -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 , Bintian Wang , Haojian Zhuang , Arnd Bergmann , Chen Feng , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 1/4] dt-bindings: mailbox: Document Hi6220 mailbox driver Date: Thu, 4 Feb 2016 23:24:57 +0800 Message-Id: <1454599500-15600-2-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454599500-15600-1-git-send-email-leo.yan@linaro.org> References: <1454599500-15600-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>; + };