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: 10218007 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 8809960467 for ; Wed, 14 Feb 2018 03:50:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80BF528B00 for ; Wed, 14 Feb 2018 03:50:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 72C7028AF2; Wed, 14 Feb 2018 03:50:43 +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 E397628A98 for ; Wed, 14 Feb 2018 03:50:42 +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:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4ZcQBSLzubCqfkD/VLqA84mLvGd2pDt27CfmEAq5/3Q=; b=mn2SuSabtGtAKP BNioGvSJPPOxB34ZN/8nACsmRwoM50jLC7ab7PNKeNIucJQ5WBi/tssuh7Ml1K4HfsIPspVUTyeWi h66R/UeBYg6mfX72e4EuaQmnMtZCcTbal8QJb3pao39eP1kpqi/mP4jqwKt1g4+1Usxh5inDyqeLu 2bEoWszmTWg1F6iQdlY3ufEK5QmpyblGhq4keFT689ZOOn/aj6hruMnbUfO8Xv+jR49mT9m0pNDF0 o6fw2mvXJ1gjgcz+jrIGqCPlTJ1/EWfm5gUGVJ+b9r2MKd7OYHbCF4G1Mn7c+4fDEI4LVRLNOUbk3 NaNEPY/qG1eZyKtDIsEw==; 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 1elo5a-0000qr-Dp; Wed, 14 Feb 2018 03:50:34 +0000 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1elo5U-0000Ll-KT for linux-arm-kernel@lists.infradead.org; Wed, 14 Feb 2018 03:50:30 +0000 Received: by mail-qk0-x242.google.com with SMTP id g129so10582200qkb.13 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=Hx54uAxaO49Fu4eeBprIVyQd1iAqyyP3RZggNMg1VjknFwRvL6SzL5nWY4dJvIdIBo WIgahLUW+CfXhpoSLSg31rhZ7xvOrej8i906xgEvDX9zVwvtjsJpIL5rh+Wwm0mzhUip ZhLsRq3hFqNs35pKI9/URls3WgzqDSbNPQV2g8AM4scdJpnxCXg9JJYM3gUX04Jy9jif ghsyUiU2hlCA1HZ9H1aG9BquhhvUYDeVYPmbcO5yhissVCiYCdOjSBOYGH3X7Y+hym7P c1Wohsi3tfnpmUnOqzgzVj7qSso40aiLVxlmIpNxdypiKeswTXQFRussHmQLq91Yb7gf dYxg== X-Gm-Message-State: APf1xPBs1M4Eazqu5bpv9rcvSaMbyj9rfqqIoMvkbHhFOoNgiE/gcC5E gNRpFPh7TH0poBatiZYlczO1aA== 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180213_195028_738632_DB16D701 X-CRM114-Status: GOOD ( 13.88 ) 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: , 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>; +};