From patchwork Wed Feb 28 04:54:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 10246791 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6F99760362 for ; Wed, 28 Feb 2018 04:56:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5DE0028BE8 for ; Wed, 28 Feb 2018 04:56:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 52B2328BEB; Wed, 28 Feb 2018 04:56:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E2A1728BE8 for ; Wed, 28 Feb 2018 04:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=4ZcQBSLzubCqfkD/VLqA84mLvGd2pDt27CfmEAq5/3Q=; b=XgWdNpDpQt3l6I/XExIWX9CH0n qxWdYkf3LH3k2zK8EH+Kx8IpAetlwuNZhfNJJ3x8tDRBp9mtwiT5oCShI+vFUNAuDIeOGvujyZGvx TE207HtLTl8adKqKfMu4T7Q9ziQTyEGojlmijkH4bnASmM1QJFBTJCqNG3Ud66EV9x/8tbrbaKL82 mMNhtM7QCf3yt5peRKIJmb34aRZEGRMLIzJeGCIyK/IXF0vQObSd/Nfenu5zjEx2Ol0xE1TfMlfyE 83HCBtv8XQNQWzH0mjig6nRt2Zgyd2laaeTz3ROLdQFoh5HHyNcToIAJniRK3dSdE4WnRIFr/HxvB iowcja8w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eqtnH-0005Wk-FZ; Wed, 28 Feb 2018 04:56:43 +0000 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eqtmQ-00054J-LF for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2018 04:55:55 +0000 Received: by mail-qk0-x243.google.com with SMTP id j4so1477104qke.10 for ; Tue, 27 Feb 2018 20:55:40 -0800 (PST) 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=TWvhRrb4nOj2fylSyrnJpUm55JQR7TCW+gHkz2VXCND8UD2YX+lsaB6QJv+O/xd/zE 62MnNN0xt3vpH2WzONkzdxpL7aS9I9WwiaecygWrKTiOKtDFihnhVb7mwEhIWufBwkcm 3XEpJEJvUiKQ9dsCWt7JyBFKuihwpeP0q22ho= 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=YXfJQ6SoGW0WW0k3MaJAh1wJoO5OQXY+fm4ljh0GoJ4luolHscOU+kSoLlZuTGStIv Z4xs8QwvQVYMgp//8IFhaWKNNbs9ikd9Z5ThA2YdHZUnwHHsYczrd5FMX2+O7qGWOiD5 YHZN7QqfshEAJJtVnrKu3r9TugUYsM+TPY+5KGavzWPZ0AXBDy3SXlayYO6AUu1hh7cL 5fOBG9VtttanHggJ9obRmPJ7FArdGN9pnMG0zuZ99zruEi7tSm6bKDIJaJjwkMvG1XP/ AxIFsha/npMj2aPm5uFHyTkN7I+LDa4LXPVffNmaJ3D3PEJ8KNvILVe/hVRVbpJsWnHc QdlA== X-Gm-Message-State: APf1xPDniiYai60yZ7Hec6zMrWjVqiT2D72VY1BP4CYQfrf9jL0bvnJF Q9PMlzd0c50P7Llkchst+0fPAw== X-Google-Smtp-Source: AG47ELvXvkyHSQ5V0k9COs/89vRCXmV6aSsuILZ4O6ob6jL6WpfDmpYyPRXtsveJykNu8SSAHQX5hg== X-Received: by 10.55.221.198 with SMTP id u67mr26987603qku.91.1519793739377; Tue, 27 Feb 2018 20:55:39 -0800 (PST) Received: from localhost.localdomain ([45.77.212.61]) by smtp.gmail.com with ESMTPSA id 2sm596728qkv.2.2018.02.27.20.55.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Feb 2018 20:55:38 -0800 (PST) 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 Subject: [PATCH v6 1/3] dt-bindings: mailbox: Introduce Hi3660 controller binding Date: Wed, 28 Feb 2018 12:54:53 +0800 Message-Id: <1519793695-20198-2-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1519793695-20198-1-git-send-email-leo.yan@linaro.org> References: <1519793695-20198-1-git-send-email-leo.yan@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180227_205550_941836_A16CAA84 X-CRM114-Status: GOOD ( 13.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leo Yan MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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>; +};