Received: by 10.223.176.5 with SMTP id f5csp1008923wra; Tue, 30 Jan 2018 23:32:00 -0800 (PST) X-Google-Smtp-Source: AH8x226GJjJkhPsd+NW0a5On0BS3kdNxbc5ykJUCTAcvFrKP+s8mndnn7CG57ZpedGVbMe8yJUgv X-Received: by 10.98.224.3 with SMTP id f3mr33031395pfh.205.1517383920177; Tue, 30 Jan 2018 23:32:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517383920; cv=none; d=google.com; s=arc-20160816; b=Fv4PWZkAqzZZSko5Y0RrTOVXA1uDAqI7/XyatsAJ0DzeIuHYMUk/75zQQJyMbydtui saaR57bs3cZdWjwo4vMVLUh4XZE3avE+SyqZ4dXPpAq95xC95IBNWU/ZXwbm+rHnrdMw jsIwBwO01p7VQWvF+WwGHIt7pvnzqTfdXNSwSzqnlOmjWIM0xN3q7nvtU6XDQ+3lxnnU st7WBbgRYINhQFfDmcYJmD3t66cf7wFcTPbDru6XKEhcT9tCsYNkuWie/tuOtCOUZ/kI JN3OMT53P5E1DBTBPVY1JAqSgNoly1qsU28CwMamkUm3qxdS/TlHq2ZBfnLFre936tN7 IVyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=XmzA3AJb8nUV1z4PcdF8l9o+WiGCjfC6iJPHZ9+zGXc=; b=fzw0BjE5nEmd70OuPkF1UeelfRc8GFwd1VD02X7NMlSTVZdC8Hjxiyi2MxjVHMJv6K BFDgBZ218xjNCaLYvv3QUeY0ACe8IwK7vhcXfIOgHZPddQ5HvrOGWSnq3+PDc0fy7iZs 46iV6jbSmO9ZDsLOzw8lo+FpKJuQQZwDDFSaLmBlkkI0nXPyDU9K+kEckZNd8GKwUeyL YuriOds3Lp0RoBM2c+9GgsmQ7qpNeZKaCBHSiDMVu31ZB/I/WKMLVHbYyDeehHDXRw5m Ar+a3460EiwBDnmJAaff+yilvTxne3c6pheJO33kUIsh9EssztD4WA8pfbMVdoliCaym bWzQ== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9-v6si1766260plk.730.2018.01.30.23.31.45; Tue, 30 Jan 2018 23:32:00 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752970AbeAaH3b (ORCPT + 99 others); Wed, 31 Jan 2018 02:29:31 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:28694 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752877AbeAaH31 (ORCPT ); Wed, 31 Jan 2018 02:29:27 -0500 X-UUID: 92001e108a58436bb09d394b6582c16a-20180131 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 244769415; Wed, 31 Jan 2018 15:29:23 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 31 Jan 2018 15:29:21 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 31 Jan 2018 15:29:20 +0800 From: To: Jassi Brar , Matthias Brugger , Rob Herring CC: Daniel Kurtz , Sascha Hauer , , , , , , Sascha Hauer , Philipp Zabel , Nicolas Boichat , CK HU , cawa cheng , Bibby Hsieh , YT Shen , Daoyuan Huang , Damon Chu , Josh-YC Liu , Glory Hung , Jiaguang Zhang , Dennis-YC Hsieh , Monica Wang , Houlong Wei , HS Liao Subject: [PATCH v21 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit Date: Wed, 31 Jan 2018 15:28:10 +0800 Message-ID: <1517383693-25591-2-git-send-email-houlong.wei@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1517383693-25591-1-git-send-email-houlong.wei@mediatek.com> References: <1517383693-25591-1-git-send-email-houlong.wei@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "hs.liao@mediatek.com" This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: Houlong Wei Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt | 43 ++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/mtk-gce.txt diff --git a/Documentation/devicetree/bindings/mailbox/mtk-gce.txt b/Documentation/devicetree/bindings/mailbox/mtk-gce.txt new file mode 100644 index 0000000..d2d3ccb --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/mtk-gce.txt @@ -0,0 +1,43 @@ +MediaTek GCE +=============== + +The Global Command Engine (GCE) is used to help read/write registers with +critical time limitation, such as updating display configuration during the +vblank. The GCE can be used to implement the Command Queue (CMDQ) driver. + +CMDQ driver uses mailbox framework for communication. Please refer to +mailbox.txt for generic information about mailbox device-tree bindings. + +Required properties: +- compatible: Must be "mediatek,mt8173-gce" +- reg: Address range of the GCE unit +- interrupts: The interrupt signal from the GCE block +- clock: Clocks according to the common clock binding +- clock-names: Must be "gce" to stand for GCE clock +- #mbox-cells: Should be 2 + +Required properties for a client device: +- mboxes: client use mailbox to communicate with GCE, it should have this + property and list of phandle, mailbox channel specifiers, and atomic + execution flag. + +Example: + + gce: gce@10212000 { + compatible = "mediatek,mt8173-gce"; + reg = <0 0x10212000 0 0x1000>; + interrupts = ; + clocks = <&infracfg CLK_INFRA_GCE>; + clock-names = "gce"; + + #mbox-cells = <2>; + }; + +Example for a client device: + + mmsys: clock-controller@14000000 { + compatible = "mediatek,mt8173-mmsys"; + mboxes = <&gce 0 1 /* main display with atomic execution */ + &gce 1 1>; /* sub display with atomic execution */ + ... + }; -- 1.7.9.5