Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2158771ybl; Sun, 18 Aug 2019 19:56:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNO7H/Jx6pWy8Whi/ZSSH7AJFhX5Nn6P2bxztx4WIXG8SCNQIsGI44LRD8dNPY7jdgbBkL X-Received: by 2002:a17:902:aa09:: with SMTP id be9mr19712040plb.52.1566183368124; Sun, 18 Aug 2019 19:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566183368; cv=none; d=google.com; s=arc-20160816; b=XZFRqWqO43IHQro9aYvwMwFbgUJV4Zq9XJvk/NsEQdlyVddeFG6m6ZXaJyD7K/Kk1P oUGGFi3caT53qor1RFeUB1Rc7R/FUpIN8eRckfmWD4Qr9UDGuS36bZg9XEXydVLRz3fz vk0k1BESqNwQW3g6ox4rp3avQMXRwG2e6dMuRtmwdzBm7RNZWzW4TS12vTGA9D7U4oX2 P/iwHSQDyohXL/s1sZQCKhR3+juqxyOoRW/6pqLXF2VfzXTgxHTwnPRHklkDFx3J34Mq p24TmOaYu3OkEr+CdA9tyl5Iow0+KC/+MjQB8yyjN3ms1ziYp6/uhbUcJoEuY7So0BUV VSxQ== 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=MYXc7JSYx/NfRRn1KFRAw7gafEYAmWlX7+FpoTHZMpo=; b=EPKVzKsRLPcuXTCVPmWQHJ6K2ybcYNYSLZnc/MziSH7c2CdSaGYkQQEK2ZEGOEMtOs HoALD6d1mJjqrpFeG6+a5LXiAAg6buVAi77MElqCgLdyBcYBPJjRlLDMPoOTe3aivdtl Ycok6NullL6f76LixJdXatjFN5EfqB/4u3BxOPwiGos+1mtDyeh8KgDFqBeq2aoRPJV2 xW8GQlNsZcPVjCnE5o+W9qIAJCNg4ZgauB2HuSgtHIZMjq9T+ypUA2OaSKpXypShHZV8 XIGJOqBfwZWr310x/zlDGe44cCA6fUeCdc/rUOJgPkuS+0WBzlSAHFZHILh1urna7uZD kpbQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n12si8997269pgi.550.2019.08.18.19.55.53; Sun, 18 Aug 2019 19:56:08 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726543AbfHSCyN (ORCPT + 99 others); Sun, 18 Aug 2019 22:54:13 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:44743 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726103AbfHSCyK (ORCPT ); Sun, 18 Aug 2019 22:54:10 -0400 X-UUID: 074b50fd38164b48a01a1a0b82cebe6b-20190819 X-UUID: 074b50fd38164b48a01a1a0b82cebe6b-20190819 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 1489503701; Mon, 19 Aug 2019 10:54:01 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 19 Aug 2019 10:54:01 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 19 Aug 2019 10:54:01 +0800 From: Bibby Hsieh To: Jassi Brar , Matthias Brugger , Rob Herring , CK HU CC: Daniel Kurtz , Sascha Hauer , , , , , , Sascha Hauer , Philipp Zabel , Nicolas Boichat , YT Shen , Daoyuan Huang , Jiaguang Zhang , Dennis-YC Hsieh , Houlong Wei , , Bibby Hsieh Subject: [PATCH v12 03/12] dt-binding: gce: add binding for gce client reg property Date: Mon, 19 Aug 2019 10:53:50 +0800 Message-ID: <20190819025359.11381-4-bibby.hsieh@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190819025359.11381-1-bibby.hsieh@mediatek.com> References: <20190819025359.11381-1-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-client-reg. Signed-off-by: Bibby Hsieh Reviewed-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/mailbox/mtk-gce.txt b/Documentation/devicetree/bindings/mailbox/mtk-gce.txt index 1f7f8f2a3f49..7b13787ab13d 100644 --- a/Documentation/devicetree/bindings/mailbox/mtk-gce.txt +++ b/Documentation/devicetree/bindings/mailbox/mtk-gce.txt @@ -25,8 +25,16 @@ Required properties: 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. +Optional properties for a client device: +- mediatek,gce-client-reg: Specify the sub-system id which is corresponding + to the register address, it should have this property and list of phandle, + sub-system specifiers. + <&phandle subsys_number start_offset size> + phandle: Label name of a gce node. + subsys_number: specify the sub-system id which is corresponding + to the register address. + start_offset: the start offset of register address that GCE can access. + size: the total size of register address that GCE can access. 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. @@ -48,9 +56,9 @@ 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 = ; mutex-event-eof = ; - + mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0x3000 0x1000>, + <&gce SUBSYS_1401XXXX 0x2000 0x100>; ... }; -- 2.18.0