From patchwork Wed Jan 17 08:02:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 124783 Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp1295329lje; Wed, 17 Jan 2018 00:02:38 -0800 (PST) X-Google-Smtp-Source: ACJfBot35y/B3MR5Rn5yzEwL+sdOp4WfIDppr70T70JPZ2D7yFjbFzr66ygMIBqg0OLixBt/8gzH X-Received: by 10.99.157.13 with SMTP id i13mr33381131pgd.309.1516176158708; Wed, 17 Jan 2018 00:02:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516176158; cv=none; d=google.com; s=arc-20160816; b=Ub4gGxDveP5UdlBLLmD49w/B0EOfPtL+PjMSYMlEzsku5c4RvbIbFzX4CoptmUFP+C yCWoiwNtYI7IE0Ive2/0nvdVgqXmBDlJr6Pe8e4Ph33qlZlNSLvW0Mv42y9cFUSJEmj4 L8K4GCN0bYgOgNbHr3UxAy1Ubj4yp5SZ6k7uI9B9zVe/oOx+qoK/hMkwz46lMMgZJIvu io7rtNxEjqa8rk8IPO9oE90laEeA/JlVmtvXrcKbzq3A2G5SnR+kj18lrgAQAiVSlngf PAM1MEOEWN1R5O2hkLy573OR4jCIEqmlvFGSqFEQ8IN3tWxJWI56qEOBgLgqkmPMMg/H 5I+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :dkim-signature:arc-authentication-results; bh=3RjLaQ9TjABbeJppPka1yyjjJhYSsTdgLxsrOG6gw0Q=; b=P5EVNP7xW63plwsfsqRCVkG1kyzpyLH58XjmZ/dvLkeqPSF1nY1LTqK9SmlQcW5oNq q9yHtbo0bqS5O+XKkRbuFJYCqvOArd6bH0UHB+79s9ZN3S+xrPEUTcR0yVD6rbmZujI1 rGDV/7PC0UP16801SKhhP2O3a1aTlfkyeNluyOpIoIz7RzHJdUmxTgpsK/fAf66uZdtx 3OcdKhV7EYiIc37kRNEzpGp6vpK28bHd16vSORHoIKtAzN2PvoIAPAQ3P1hrBoyYHqs0 Id/Q38vAnqrRHfYk4Xs7e8oMy2fzyRO/3mA3Yocz4hz7zxRbhD7ifFfwp713wRAA1LUJ FwyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=amyW6GsU; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y15si3373722pge.81.2018.01.17.00.02.38; Wed, 17 Jan 2018 00:02:38 -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; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=amyW6GsU; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752455AbeAQICh (ORCPT + 6 others); Wed, 17 Jan 2018 03:02:37 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:39893 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752416AbeAQICf (ORCPT ); Wed, 17 Jan 2018 03:02:35 -0500 Received: by mail-wr0-f193.google.com with SMTP id z48so17894218wrz.6 for ; Wed, 17 Jan 2018 00:02:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=j+e8zjGL/a6pJXiUE2ARCYfYacO85JK3k9DrZe8f2Ks=; b=amyW6GsUG/qtLEUF4XZqsC7IFbUQQ5i7Vb3Nqs5oxKeu7A7K93zYJwjD8B07SvZw0Y +mtVPG2GVWwhNy7jeDM7HLPfR7bUljGOMrvPFxfwKE1i0Ff5JUCIV9w5p7m9e8ID9fyt ZSubwG7oUa0e/dvITx640KoSuXTRT5v4WnS2c= 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; bh=j+e8zjGL/a6pJXiUE2ARCYfYacO85JK3k9DrZe8f2Ks=; b=TcL0iOAAYbLjHfsMx9nwVRboR688zxiSI7pfidGwyGzp4RBw/ZWnH9itsxUoVjCJ2Q oCUQ6EaPDH+T+eIDiM92S97HunPsmvKQ5O8M49a6AVP7EqRdpfNHmUJvbDFyRZdryCHV HnMqal9u/6rrE5iroV3SWDCIv3bH9Q39dvyTUIl18Dkp9zUdBw+LxyOI3G8jOorTJN1R 9zCt+4YtAcSvKWIjYMppsrqU+wGrhlb+5qClTbd038knzsWwAjD3WYHSnVdKk6SRMFx2 z27HQGevukWK8px6TNLcELqXg8kgiULlyJm4bc75QGFJREJP8VQtAh08kocln61RGypG fiYA== X-Gm-Message-State: AKwxyte6/k82Zzt8pcmsxq1X4b5xRtui4oIifw2k4znV9Ap58E614GFq 7NPShGtKZ6nzFngxHSGdAWpVDw== X-Received: by 10.223.156.145 with SMTP id d17mr1655928wre.198.1516176154006; Wed, 17 Jan 2018 00:02:34 -0800 (PST) Received: from localhost.localdomain (li560-169.members.linode.com. [151.236.216.169]) by smtp.gmail.com with ESMTPSA id k89sm4930677wmc.17.2018.01.17.00.02.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Jan 2018 00:02:32 -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 v5 1/3] dt-bindings: mailbox: Introduce Hi3660 controller binding Date: Wed, 17 Jan 2018 16:02:23 +0800 Message-Id: <1516176145-9387-1-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 -- 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 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>; +};