Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3968131imb; Wed, 6 Mar 2019 01:54:22 -0800 (PST) X-Google-Smtp-Source: APXvYqzdtxByzomfrxOM8S6ycbm+HYQ6QXiIZiEjRPEkGi4H8gLlfR6SEcjnLsSu5/F1AARt/Kem X-Received: by 2002:a17:902:8c95:: with SMTP id t21mr5949789plo.300.1551866062761; Wed, 06 Mar 2019 01:54:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551866062; cv=none; d=google.com; s=arc-20160816; b=Hk2aLColftd8Jzu7iY1eE+wxiw4f5nfaNiUqf6B+nhb34B9gX5qcTHWnqm3sMp5R3A XfUcZmyL13el6yOxm4UrBkH8CnY3de19gdvTrLleU2LX1U6aKcas6/vPvUUyfV5Asub3 O+p8m36ZuHgHukWmu53qoJiGZRNPbp6Gqx0ykWP9HAX2HGjEiW8Sf4Ze/nOAR0a4uSPN LzbjE87F6LocW+J6Bb1AzgvNhQlHD49dEuHz/csUdGGmPY5MicM3xTiKseKmso0VD00E d8iVdqeU+/nTkbloctgJKs1xAG/+7gK22Tes793ZZZVdx0c/H1M32hFUgfQb6iEhv6kR QcjQ== 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=+7TSVvKavDUTcy9F9yx86/Ep5LBNUefWDfGwdKg1tRc=; b=ZKMdgIbUmWSdpi/7IQJXD8GClN0jbYFL5XjcZmq9MTZXYrCNJOx1E6oznYEvDXEs1d O6JUfp9+1BC0H8qK5z7QFhKcWmqAVlms9nhcGRv/ajvX+mERQBms515pf44ifVnsVlJ6 lQlDX2kwUgTXFBXap/FNZGzgfEJb2bD4op9NzUb+tIRGwgeBGWxaKth2LT8oEL/X45j5 DZk/xJinOzp9DdWHynQrA8dZInfMX5YHPWPd+pyTmmv3Nr1uSw7lUowewR57iephzgH4 6iJQsyI+ZK765/UJUtmXqLWmyhj7mHJ7yCtXkAnuLF/OYrkunjJsWZ3I9NDcamFoOHC2 7F1A== 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 r203si1037086pgr.517.2019.03.06.01.54.07; Wed, 06 Mar 2019 01:54:22 -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 S1729872AbfCFJuo (ORCPT + 99 others); Wed, 6 Mar 2019 04:50:44 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:47271 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728866AbfCFJuo (ORCPT ); Wed, 6 Mar 2019 04:50:44 -0500 X-UUID: 42e6f09927904a28b4c6f445de785950-20190306 X-UUID: 42e6f09927904a28b4c6f445de785950-20190306 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 890644307; Wed, 06 Mar 2019 17:50:39 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 6 Mar 2019 17:50:38 +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 03/10] dt-binding: gce: add binding for gce subsys property Date: Wed, 6 Mar 2019 17:50:28 +0800 Message-ID: <1551865835-50974-4-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 the relationship of sub system number from device node for client. add specification for #subsys-cells, mediatek,gce-subsys. Signed-off-by: Bibby Hsieh --- Documentation/devicetree/bindings/mailbox/mtk-gce.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mailbox/mtk-gce.txt b/Documentation/devicetree/bindings/mailbox/mtk-gce.txt index 812698f..07b2adf 100644 --- a/Documentation/devicetree/bindings/mailbox/mtk-gce.txt +++ b/Documentation/devicetree/bindings/mailbox/mtk-gce.txt @@ -26,6 +26,13 @@ Required properties: 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'. +#subsys-cells: Should be 2. + <&phandle register_base_address subsys_number> + phandle: Label name of a gce node. + register_base_address: the register base address that client + want to write or read. + subsys_number: specify the sub-system id which is corresponding + to the register address. Required properties for a client device: - mboxes: Client use mailbox to communicate with GCE, it should have this @@ -50,6 +57,7 @@ Example: thread-num = CMDQ_THR_MAX_COUNT; #mbox-cells = <3>; #event-cells = <1>; + #subsys-cells = <2>; }; Example for a client device: @@ -58,7 +66,8 @@ Example for a client device: compatible = "mediatek,mt8173-mmsys"; mboxes = <&gce 0 CMDQ_THR_PRIO_LOWEST 1>, <&gce 1 CMDQ_THR_PRIO_LOWEST 1>; - mediatek,gce-subsys = ; + mediatek,gce-subsys = <&gce 0x14000000 SUBSYS_1400XXXX>, + <&gce 0x14010000 SUBSYS_1401XXXX>; mediatek,gce-event-names = "rdma0_sof", "rsz0_sof"; mediatek,gce-events = <&gce CMDQ_EVENT_MDP_RDMA0_SOF>, -- 1.9.1