Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3967571imb; Wed, 6 Mar 2019 01:53:14 -0800 (PST) X-Google-Smtp-Source: APXvYqw2pb2tiJCTXMFc1RRSffVJn65sCv7O2RnbxFtA7xRDClhPA3ekVs4ifnax43P8seSXoE1x X-Received: by 2002:a62:574d:: with SMTP id l74mr6532733pfb.9.1551865994019; Wed, 06 Mar 2019 01:53:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551865994; cv=none; d=google.com; s=arc-20160816; b=DasG0PirA42mdCqz6x/gOEg6qB5rQCkqUqkRU0zod8KqILYidrV6YR79QYm3Un7yhF X1GFLgZjw5PuBXk6yxL5yEQdd1Q3Uzv7aV4AmMT+m14yrpvhZiHp8lLojOgejDKve/6X NZNhnLTOROETRRmxIvS1ps1PRNdqJkdaBnDbD2v+CGikgI95QKhjFiBQfVEwbpiSkzgh emLObGWtN+UgQRp+R3W3ZkPah42+yFgqJbs0AwOIVBWTfNmWO1NbxmgOYHAQSN6b0l+7 XAeDUT9XAH3WhyRUfm3xeifeX2yCAp863A9LRQ6D30TvDqUalucC+x1kphR91f9ahRCg T3nQ== 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; bh=f/wE+RMcAWe3shxnwvUrXxPfMG02z3F3ffGxHX3Ydw8=; b=I4pDdmq0Mr/a/dpHnfGM1h4s35ZmvpptH+hSuZ+bpKrk8xh+q2HAmX0d0It7PN9qXg NXMw/XAa0FQUo4jO6nXBtenUvEwc7ZS84WyAwyoHlaIvxbB8OTUqo2ih7cp64KelYXmI XEgKatmsH6pF/xpyaVESzycAatU/i3Qf+bKkj10RP79IH+eEkaNCyuWvpjYcgkD2vMxP YAGgQW5V98ndim8Ss9gJIt99ULf8XHwLY4rMTlfAmtyDjcpJwCf/nySFEukQ1UPDt6Cf bextu9NRehnaRHYpb8Io9Rtm3JdsB8+8orqlWSbl8PcTyKR7SY0ZmP2cNZQBmkXxQSsx WL+w== 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 cc9si1137468plb.59.2019.03.06.01.52.59; Wed, 06 Mar 2019 01:53:14 -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 S1729959AbfCFJu7 (ORCPT + 99 others); Wed, 6 Mar 2019 04:50:59 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:25403 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729922AbfCFJu4 (ORCPT ); Wed, 6 Mar 2019 04:50:56 -0500 X-UUID: 7ebe354551274b06ace225d328fadcac-20190306 X-UUID: 7ebe354551274b06ace225d328fadcac-20190306 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 641903706; Wed, 06 Mar 2019 17:50:38 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 6 Mar 2019 17:50:37 +0800 Received: from mtkslt302.mediatek.inc (10.21.14.115) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 6 Mar 2019 17:50:37 +0800 From: Bibby Hsieh To: Jassi Brar , Matthias Brugger , Rob Herring , CK HU CC: Daniel Kurtz , Sascha Hauer , , , , , , Sascha Hauer , Philipp Zabel , Nicolas Boichat , Bibby Hsieh , YT Shen , Daoyuan Huang , Jiaguang Zhang , Dennis-YC Hsieh , Houlong Wei , , , Frederic Chen Subject: [PATCH v2 02/10] dt-binding: gce: add binding for gce event property Date: Wed, 6 Mar 2019 17:50:27 +0800 Message-ID: <1551865835-50974-3-git-send-email-bibby.hsieh@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1551865835-50974-1-git-send-email-bibby.hsieh@mediatek.com> References: <1551865835-50974-1-git-send-email-bibby.hsieh@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 cmdq driver provide a function that get event number from device node for client. add specification for #event-cells, mediatek,gce-event-names, mediatek,gce-events. Signed-off-by: Bibby Hsieh --- Documentation/devicetree/bindings/mailbox/mtk-gce.txt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mailbox/mtk-gce.txt b/Documentation/devicetree/bindings/mailbox/mtk-gce.txt index 9c0d982..812698f 100644 --- a/Documentation/devicetree/bindings/mailbox/mtk-gce.txt +++ b/Documentation/devicetree/bindings/mailbox/mtk-gce.txt @@ -21,12 +21,20 @@ Required properties: priority: Priority of GCE thread. atomic_exec: GCE processing continuous packets of commands in atomic way. +- #event-cells: Should be 1. + <&phandle event_number> + phandle: Label name of a gce node. + event_number: the event number defined in 'dt-bindings/gce/mt8173-gce.h' + or 'dt-binding/gce/mt8183-gce.h'. Required properties for a client device: - mboxes: Client use mailbox to communicate with GCE, it should have this property and list of phandle, mailbox specifiers. - mediatek,gce-subsys: u32, specify the sub-system id which is corresponding to the register address. +- mediatek,gce-event-names: the event name can be defined by user. +- mediatek,gce-events: u32, the event number defined in + 'dt-bindings/gce/mt8173-gce.h' or 'dt-binding/gce/mt8183-gce.h'. Some vaules of properties are defined in 'dt-bindings/gce/mt8173-gce.h' or 'dt-binding/gce/mt8183-gce.h'. Such as sub-system ids, thread priority, event ids. @@ -41,6 +49,7 @@ Example: clock-names = "gce"; thread-num = CMDQ_THR_MAX_COUNT; #mbox-cells = <3>; + #event-cells = <1>; }; Example for a client device: @@ -50,8 +59,9 @@ Example for a client device: mboxes = <&gce 0 CMDQ_THR_PRIO_LOWEST 1>, <&gce 1 CMDQ_THR_PRIO_LOWEST 1>; mediatek,gce-subsys = ; - mutex-event-eof = ; - + mediatek,gce-event-names = "rdma0_sof", + "rsz0_sof"; + mediatek,gce-events = <&gce CMDQ_EVENT_MDP_RDMA0_SOF>, + <&gce CMDQ_EVENT_MDP_RSZ0_SOF>; ... }; -- 1.9.1