[v2,2/4] dt-bindings: mailbox: mediatek: gce-mailbox: Add reference to gce-props.yaml
Message ID | 20240110063532.14124-3-jason-jh.lin@mediatek.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-21747-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp612870dyi; Tue, 9 Jan 2024 22:36:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IEsuStDcnyTdAMu4DxPMqj+qQamMookcbq2qxhkaFft92xiUs3Zsbc3ZI6Y5Bo6BcZqQ6pE X-Received: by 2002:a05:6830:2052:b0:6dd:e0fc:2592 with SMTP id f18-20020a056830205200b006dde0fc2592mr309631otp.11.1704868585568; Tue, 09 Jan 2024 22:36:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704868585; cv=none; d=google.com; s=arc-20160816; b=pdwy2wogX/E4Aqg5ft4JmnxnhX204/HjoBcCsPb0Mehu8/UJ+xDKAmL1fYh7xYu5n/ 6S1qSuo/KkmGBnv1JbHk6LEwZ4ODhLWeka4WwtOjUS3xVec8hfjWZeLWZJdhKg3sjdAZ WNjrcPq5ivJlVlu8UgrvCF6pe3iFZISf3/x/GsdULkK3vq6Pk7XEUQYMGQrSKDAVNNeb piJzuQLv7VTob2PFPz677SbmattTDQ9iH+8kPviB204gtaJHIHgRvOcYyzNAb0yuIrT8 egQfmx05AW1N+3aSeFV8LMUzCuB5I9QSoXMNgA5kVba/LWaNirRlZzQxuJfhy5KNGl9w hUfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lcCbFNmFcDjwLfDNroezfdb2otTHOVj9cqaCJYHFNhE=; fh=TvNDxVETlEXuSJjX30y6avaj0GvLUkY14Q8+7iKKIpw=; b=DqtJhpwK1J/1ecBGLrxdbh91h3XLQxRH4eUpPsdLyU/tbq5RWbmI9EzWhCmSzRyHPG WIP0RH95hIkGZ/FrJwkIHJ/e2Me0Xgb5pMmEBOMQeu2yCH1iigxHTwysG+OGMw5CwpVr oNUkqS097FIXcLxp/d/FOsBs0EhPGXN4v/DIUT1Ha/6yTzgVhav3RuBPrfmO+RdtoP+s Jyi05zvldl9wyd0aLLCFhph6UUyJds0A+6JGNy7Jyd5IXbS6RpIzf0cm9m3aGkJnTB2l nOiS1wMwhVz3WoeSCtr9qn9jlFGRdqJ/0BfGn+q5K3g/DF2NXVaEM1ftC3jK+7sTDdXL GXWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=j0ZyMil9; spf=pass (google.com: domain of linux-kernel+bounces-21747-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21747-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e2-20020a630f02000000b005cd9600a04fsi2905105pgl.215.2024.01.09.22.36.25 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 22:36:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21747-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=j0ZyMil9; spf=pass (google.com: domain of linux-kernel+bounces-21747-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21747-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 56AE228988A for <ouuuleilei@gmail.com>; Wed, 10 Jan 2024 06:36:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 931E739FE4; Wed, 10 Jan 2024 06:35:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="j0ZyMil9" Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BA497F7; Wed, 10 Jan 2024 06:35:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: 75d85238af8211ee9e680517dc993faa-20240110 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=lcCbFNmFcDjwLfDNroezfdb2otTHOVj9cqaCJYHFNhE=; b=j0ZyMil9PVCSqZ9LqVklLMgmoPOQPflW/GrCgY/CD2t4uhrzcj2lF4MS4c9DuEdwr2r0ETC0ubBhCHIxj+l2zjlXbTJIykGeEnWeWA+VS8Y81By+RDlWMx/z9spEqrXjylBlyafqYLZMR2psiF0E7eS0BHpN29GMgqwCaFPsjAc=; X-CID-P-RULE: Spam_GS6885AD X-CID-O-INFO: VERSION:1.1.35,REQID:fafce948-1d83-4735-99dd-61d6953ffdfe,IP:0,U RL:25,TC:0,Content:100,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Spam_GS6885AD,AC TION:quarantine,TS:125 X-CID-META: VersionHash:5d391d7,CLOUDID:eac02f7f-4f93-4875-95e7-8c66ea833d57,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:801,TC:nil,Content:3,EDM:-3,IP:nil,U RL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR: NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_ULN,TF_CID_SPAM_SNR X-UUID: 75d85238af8211ee9e680517dc993faa-20240110 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from <jason-jh.lin@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 2035505861; Wed, 10 Jan 2024 14:35:35 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Wed, 10 Jan 2024 14:35:33 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Wed, 10 Jan 2024 14:35:33 +0800 From: Jason-JH.Lin <jason-jh.lin@mediatek.com> To: Jassi Brar <jassisinghbrar@gmail.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Chun-Kuang Hu <chunkuang.hu@kernel.org> CC: <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-media@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-mediatek@lists.infradead.org>, Jason-ch Chen <jason-ch.chen@mediatek.com>, Johnson Wang <johnson.wang@mediatek.com>, "Jason-JH . Lin" <jason-jh.lin@mediatek.com>, Singo Chang <singo.chang@mediatek.com>, Nancy Lin <nancy.lin@mediatek.com>, Shawn Sung <shawn.sung@mediatek.com>, <Project_Global_Chrome_Upstream_Group@mediatek.com> Subject: [PATCH v2 2/4] dt-bindings: mailbox: mediatek: gce-mailbox: Add reference to gce-props.yaml Date: Wed, 10 Jan 2024 14:35:30 +0800 Message-ID: <20240110063532.14124-3-jason-jh.lin@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20240110063532.14124-1-jason-jh.lin@mediatek.com> References: <20240110063532.14124-1-jason-jh.lin@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--4.735000-8.000000 X-TMASE-MatchedRID: y/MOm6ldwRK5u1dzaqGIEwPZZctd3P4BKhNpTcvbdUJa2Ghz+vIal7l+ 75cRptKm8izX0ZvrybNpuwczjzvbdUBduJGafVsPngIgpj8eDcCbifj2/J/1cS8z+bJ2nm9UKra uXd3MZDWHa3kXaoLg85MEyCAdbSnUTBw+1q+L/poFcTh9oTEFS2weV3hBhNXz31op4IqnOD3MfH kOT6w0ZV8j6O98Ee9zo7hK7NXLqvRBLAb/FTpmUnQE0HbT5LEft/yYljnuhl10loENhqV3WYc7S 1VgNXhPQwymtxuJ6y0= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--4.735000-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 2D8C7380F05ECC953BF4EE69CDC11939361AFA394D3B83209CFBD993FB8E7A102000:8 X-MTK: N X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787684281900458759 X-GMAIL-MSGID: 1787684281900458759 |
Series |
Add mediatek,gce-props.yaml for other bindings reference mediatek,gce-events
|
|
Commit Message
Jason-JH Lin (林睿祥)
Jan. 10, 2024, 6:35 a.m. UTC
1. Add "Provider" to the title to make it clearer.
2. Add reference to gce-props.yaml for adding mediatek,gce-events property.
Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com>
---
.../devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Comments
On Wed, Jan 10, 2024 at 02:35:30PM +0800, Jason-JH.Lin wrote: > 1. Add "Provider" to the title to make it clearer. > 2. Add reference to gce-props.yaml for adding mediatek,gce-events property. I can see this from the diff. There's still no explanation here as to why the mailbox provider needs to have a gce-event id. NAK until you can explain that. Cheers, Conor. > > Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com> > --- > .../devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml b/Documentation/devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml > index cef9d7601398..728dc93117a6 100644 > --- a/Documentation/devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml > +++ b/Documentation/devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml > @@ -4,7 +4,7 @@ > $id: http://devicetree.org/schemas/mailbox/mediatek,gce-mailbox.yaml# > $schema: http://devicetree.org/meta-schemas/core.yaml# > > -title: Mediatek Global Command Engine Mailbox > +title: MediaTek Global Command Engine Mailbox Provider > > maintainers: > - Houlong Wei <houlong.wei@mediatek.com> > @@ -57,6 +57,8 @@ required: > - clocks > > allOf: > + - $ref: mediatek,gce-props.yaml > + > - if: > not: > properties: > @@ -67,7 +69,7 @@ allOf: > required: > - clock-names > > -additionalProperties: false > +unevaluatedProperties: false > > examples: > - | > -- > 2.18.0 >
Hi Conor, Thanks for the reviews. On Wed, 2024-01-10 at 10:36 +0000, Conor Dooley wrote: > On Wed, Jan 10, 2024 at 02:35:30PM +0800, Jason-JH.Lin wrote: > > 1. Add "Provider" to the title to make it clearer. > > 2. Add reference to gce-props.yaml for adding mediatek,gce-events > > property. > > I can see this from the diff. There's still no explanation here as to > why the mailbox provider needs to have a gce-event id. NAK until you > can > explain that. > Sorry for missing the reason in commit message, I'll add it in the next version. There are 2 reasons why the mailbox provider needs gce-events: 1. The mailbox provider here is CMDQ mailbox driver. It configures GCE hardware register by CPU directly. If we want to set the default value from 0 to 1 for specific gce-events during the initialization of CMDQ driver. We need to tell CMDQ driver what gce-events need to be set and I think such GCE hardware setting can get from its device node. 2. We'll have the secure CMDQ mailbox driver in the future patch [1]. It will request or reserve a mailbox channel, which is a dedicate GCE thread, as a secure IRQ handler. This GCE thread executes a looping instruction set that keeps waiting for the gce-event set from another GCE thread in the secure world. So we also need to tell the CMDQ driver what gce-event need to be waited. [1] cmdq_sec_irq_notify_start() is where the GCE thread is requested to prepare a looping instruction set to wait for the gce-event. - https://patchwork.kernel.org/project/linux-mediatek/patch/20231222045228.27826-9-jason-jh.lin@mediatek.com/ Regards, Jason-JH.Lin > Cheers, > Conor. > > > > > Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com> > > --- > > .../devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml | 6 > > ++++-- > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > diff --git > > a/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > mailbox.yaml > > b/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > mailbox.yaml > > index cef9d7601398..728dc93117a6 100644 > > --- a/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > mailbox.yaml > > +++ b/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > mailbox.yaml > > @@ -4,7 +4,7 @@ > > $id: > > http://devicetree.org/schemas/mailbox/mediatek,gce-mailbox.yaml# > > $schema: http://devicetree.org/meta-schemas/core.yaml# > > > > -title: Mediatek Global Command Engine Mailbox > > +title: MediaTek Global Command Engine Mailbox Provider > > > > maintainers: > > - Houlong Wei <houlong.wei@mediatek.com> > > @@ -57,6 +57,8 @@ required: > > - clocks > > > > allOf: > > + - $ref: mediatek,gce-props.yaml > > + > > - if: > > not: > > properties: > > @@ -67,7 +69,7 @@ allOf: > > required: > > - clock-names > > > > -additionalProperties: false > > +unevaluatedProperties: false > > > > examples: > > - | > > -- > > 2.18.0 > >
On Wed, Jan 10, 2024 at 04:36:20PM +0000, Jason-JH Lin (林睿祥) wrote: > Hi Conor, > > Thanks for the reviews. > > On Wed, 2024-01-10 at 10:36 +0000, Conor Dooley wrote: > > On Wed, Jan 10, 2024 at 02:35:30PM +0800, Jason-JH.Lin wrote: > > > 1. Add "Provider" to the title to make it clearer. > > > 2. Add reference to gce-props.yaml for adding mediatek,gce-events > > > property. > > > > I can see this from the diff. There's still no explanation here as to > > why the mailbox provider needs to have a gce-event id. NAK until you > > can > > explain that. > > > Sorry for missing the reason in commit message, I'll add it in the next > version. > > There are 2 reasons why the mailbox provider needs gce-events: > 1. The mailbox provider here is CMDQ mailbox driver. It configures GCE > hardware register by CPU directly. If we want to set the default value > from 0 to 1 for specific gce-events during the initialization of CMDQ > driver. We need to tell CMDQ driver what gce-events need to be set and > I think such GCE hardware setting can get from its device node. Why would someone want to set it to 1 or 0? At what level will that vary? Per SoC? Per board? Something else? > 2. We'll have the secure CMDQ mailbox driver in the future patch [1]. > It will request or reserve a mailbox channel, which is a dedicate GCE > thread, as a secure IRQ handler. This GCE thread executes a looping > instruction set that keeps waiting for the gce-event set from another > GCE thread in the secure world. So we also need to tell the CMDQ driver > what gce-event need to be waited. Ditto here, what level does this vary at? Do different SoCs or different boards/platforms dictate the value? Could this channel be determined from the soc-specific compatible? In other words, please explain in your commit message why this requires a property and is not detectable from any existing mechanism. From reading this I don't know what is preventing the secure mailbox channel from picking a "random" unused channel. Thanks, Conor. > [1] cmdq_sec_irq_notify_start() is where the GCE thread is requested to > prepare a looping instruction set to wait for the gce-event. > - > https://patchwork.kernel.org/project/linux-mediatek/patch/20231222045228.27826-9-jason-jh.lin@mediatek.com/ > > Regards, > Jason-JH.Lin > > > Cheers, > > Conor. > > > > > > > > Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com> > > > --- > > > .../devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml | 6 > > > ++++-- > > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > > > diff --git > > > a/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > > mailbox.yaml > > > b/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > > mailbox.yaml > > > index cef9d7601398..728dc93117a6 100644 > > > --- a/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > > mailbox.yaml > > > +++ b/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > > mailbox.yaml > > > @@ -4,7 +4,7 @@ > > > $id: > > > http://devicetree.org/schemas/mailbox/mediatek,gce-mailbox.yaml# > > > $schema: http://devicetree.org/meta-schemas/core.yaml# > > > > > > -title: Mediatek Global Command Engine Mailbox > > > +title: MediaTek Global Command Engine Mailbox Provider > > > > > > maintainers: > > > - Houlong Wei <houlong.wei@mediatek.com> > > > @@ -57,6 +57,8 @@ required: > > > - clocks > > > > > > allOf: > > > + - $ref: mediatek,gce-props.yaml > > > + > > > - if: > > > not: > > > properties: > > > @@ -67,7 +69,7 @@ allOf: > > > required: > > > - clock-names > > > > > > -additionalProperties: false > > > +unevaluatedProperties: false > > > > > > examples: > > > - | > > > -- > > > 2.18.0 > > >
On Thu, 2024-01-11 at 17:31 +0000, Conor Dooley wrote: > On Wed, Jan 10, 2024 at 04:36:20PM +0000, Jason-JH Lin (林睿祥) wrote: > > Hi Conor, > > > > Thanks for the reviews. > > > > On Wed, 2024-01-10 at 10:36 +0000, Conor Dooley wrote: > > > On Wed, Jan 10, 2024 at 02:35:30PM +0800, Jason-JH.Lin wrote: > > > > 1. Add "Provider" to the title to make it clearer. > > > > 2. Add reference to gce-props.yaml for adding mediatek,gce- > > > > events > > > > property. > > > > > > I can see this from the diff. There's still no explanation here > > > as to > > > why the mailbox provider needs to have a gce-event id. NAK until > > > you > > > can > > > explain that. > > > > > > > Sorry for missing the reason in commit message, I'll add it in the > > next > > version. > > > > There are 2 reasons why the mailbox provider needs gce-events: > > 1. The mailbox provider here is CMDQ mailbox driver. It configures > > GCE > > hardware register by CPU directly. If we want to set the default > > value > > from 0 to 1 for specific gce-events during the initialization of > > CMDQ > > driver. We need to tell CMDQ driver what gce-events need to be set > > and > > I think such GCE hardware setting can get from its device node. > > Why would someone want to set it to 1 or 0? GCE HW have an event table in SRAM. Each event ID has a boolean event value and the default value is 0. There are 1024 event IDs (0~1023) in the event table. The mediatek,gce-events is the property to get the event IDs. E.g. In some camera suspend/resume use cases, the may set the event ID: 100 to 1 before suspend. When CMDQ driver resumes, all the event value of event IDs will be clear to 0. But camera driver won't know the event IDs:100 has been cleared to 0 and still send a cmd to wait for the event ID:100. So CMDQ driver may need to keep the value of event ID: 100 before suspend and set back the value to 1 after CMDQ driver clearing all the event value of event IDs. CMDQ driver will need to know which event IDs' values need to be backupped and restored in that camera suspend/resume use case. > At what level will that vary? Per SoC? Per board? Something else? > I think the SoC supports camera feature may need this property. > > 2. We'll have the secure CMDQ mailbox driver in the future patch > > [1]. > > It will request or reserve a mailbox channel, which is a dedicate > > GCE > > thread, as a secure IRQ handler. This GCE thread executes a looping > > instruction set that keeps waiting for the gce-event set from > > another > > GCE thread in the secure world. So we also need to tell the CMDQ > > driver > > what gce-event need to be waited. > > Ditto here, what level does this vary at? Do different SoCs or > different > boards/platforms dictate the value? It's a SoC level, the SoC supports secure feature will need this property. > Could this channel be determined from the soc-specific compatible? > > In other words, please explain in your commit message why this > requires > a property and is not detectable from any existing mechanism. From > reading this I don't know what is preventing the secure mailbox > channel > from picking a "random" unused channel. The secure channel could be dedicated from the soc-specific compatible, but the event ID couldn't. The same event signal corresponding event ID may changes in different SoC. E.g. The HW event signal for CMDQ_EVENT_VDO0_MUTEX_STREAM_DONE_0 is corresponding to GCE event ID: 574 in MT8188, but it's corresponding to eventID: 597 in MT8195. I can take any of the "unused" mailbox channel for the secure irq handler. But without the property mediatek,gce-events, the secure channel might not know what event ID to wait for. Regards, Jason-JH.Lin > > Thanks, > Conor. > > > [1] cmdq_sec_irq_notify_start() is where the GCE thread is > > requested to > > prepare a looping instruction set to wait for the gce-event. > > - > > https://patchwork.kernel.org/project/linux-mediatek/patch/20231222045228.27826-9-jason-jh.lin@mediatek.com/ > > > > Regards, > > Jason-JH.Lin > > > > > Cheers, > > > Conor. > > > > > > > > > > > Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com> > > > > --- > > > > .../devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml | > > > > 6 > > > > ++++-- > > > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > > > > > diff --git > > > > a/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > > > mailbox.yaml > > > > b/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > > > mailbox.yaml > > > > index cef9d7601398..728dc93117a6 100644 > > > > --- a/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > > > mailbox.yaml > > > > +++ b/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > > > mailbox.yaml > > > > @@ -4,7 +4,7 @@ > > > > $id: > > > > http://devicetree.org/schemas/mailbox/mediatek,gce-mailbox.yaml# > > > > $schema: http://devicetree.org/meta-schemas/core.yaml# > > > > > > > > -title: Mediatek Global Command Engine Mailbox > > > > +title: MediaTek Global Command Engine Mailbox Provider > > > > > > > > maintainers: > > > > - Houlong Wei <houlong.wei@mediatek.com> > > > > @@ -57,6 +57,8 @@ required: > > > > - clocks > > > > > > > > allOf: > > > > + - $ref: mediatek,gce-props.yaml > > > > + > > > > - if: > > > > not: > > > > properties: > > > > @@ -67,7 +69,7 @@ allOf: > > > > required: > > > > - clock-names > > > > > > > > -additionalProperties: false > > > > +unevaluatedProperties: false > > > > > > > > examples: > > > > - | > > > > -- > > > > 2.18.0 > > > >
On Fri, Jan 12, 2024 at 07:44:13AM +0000, Jason-JH Lin (林睿祥) wrote: > On Thu, 2024-01-11 at 17:31 +0000, Conor Dooley wrote: > > On Wed, Jan 10, 2024 at 04:36:20PM +0000, Jason-JH Lin (林睿祥) wrote: > > > Hi Conor, > > > > > > Thanks for the reviews. > > > > > > On Wed, 2024-01-10 at 10:36 +0000, Conor Dooley wrote: > > > > On Wed, Jan 10, 2024 at 02:35:30PM +0800, Jason-JH.Lin wrote: > > > > > 1. Add "Provider" to the title to make it clearer. > > > > > 2. Add reference to gce-props.yaml for adding mediatek,gce- > > > > > events > > > > > property. > > > > > > > > I can see this from the diff. There's still no explanation here > > > > as to > > > > why the mailbox provider needs to have a gce-event id. NAK until > > > > you > > > > can > > > > explain that. > > > > > > > > > > Sorry for missing the reason in commit message, I'll add it in the > > > next > > > version. > > > > > > There are 2 reasons why the mailbox provider needs gce-events: > > > 1. The mailbox provider here is CMDQ mailbox driver. It configures > > > GCE > > > hardware register by CPU directly. If we want to set the default > > > value > > > from 0 to 1 for specific gce-events during the initialization of > > > CMDQ > > > driver. We need to tell CMDQ driver what gce-events need to be set > > > and > > > I think such GCE hardware setting can get from its device node. > > > > Why would someone want to set it to 1 or 0? > > GCE HW have an event table in SRAM. Each event ID has a boolean event > value and the default value is 0. There are 1024 event IDs (0~1023) in > the event table. The mediatek,gce-events is the property to get the > event IDs. > > E.g. > In some camera suspend/resume use cases, the may set the event ID: 100 > to 1 before suspend. When CMDQ driver resumes, all the event value of > event IDs will be clear to 0. But camera driver won't know the event > IDs:100 has been cleared to 0 and still send a cmd to wait for the > event ID:100. So CMDQ driver may need to keep the value of event ID: > 100 before suspend and set back the value to 1 after CMDQ driver > clearing all the event value of event IDs. > > CMDQ driver will need to know which event IDs' values need to be > backupped and restored in that camera suspend/resume use case. Unfortunately "some use case" doesn't really help me here, it is hard for me to tell whether these use cases are software policy or an attribute of the hardware. If I had the same exact camera but was using it for a different reason, might I set it to 1 before suspend in one case but not in the other? I also don't really understand how having this property helps in this case either. If a camera is a mailbox consumer, it should have a gce-event property for the event ID that it is using in its node. Why is that not sufficient and a gce-event also needs to be present in the consumer node? It seems to me like having it in the consumer alone should be sufficient, and the registration process would inform the mailbox provider driver which gce-event ID was being used by the camera. > > > At what level will that vary? Per SoC? Per board? Something else? > > > > I think the SoC supports camera feature may need this property. > > > > 2. We'll have the secure CMDQ mailbox driver in the future patch > > > [1]. > > > It will request or reserve a mailbox channel, which is a dedicate > > > GCE > > > thread, as a secure IRQ handler. This GCE thread executes a looping > > > instruction set that keeps waiting for the gce-event set from > > > another > > > GCE thread in the secure world. So we also need to tell the CMDQ > > > driver > > > what gce-event need to be waited. > > > > Ditto here, what level does this vary at? Do different SoCs or > > different > > boards/platforms dictate the value? > > It's a SoC level, the SoC supports secure feature will need this > property. > > > Could this channel be determined from the soc-specific compatible? > > > > In other words, please explain in your commit message why this > > requires > > a property and is not detectable from any existing mechanism. From > > reading this I don't know what is preventing the secure mailbox > > channel > > from picking a "random" unused channel. > > The secure channel could be dedicated from the soc-specific compatible, > but the event ID couldn't. > > The same event signal corresponding event ID may changes in different > SoC. > E.g. > The HW event signal for CMDQ_EVENT_VDO0_MUTEX_STREAM_DONE_0 is > corresponding to GCE event ID: 574 in MT8188, but it's corresponding to > eventID: 597 in MT8195. Is it always 574 in MT8188 and always 597 in MT8195? Thanks, Conor. > I can take any of the "unused" mailbox channel for the secure irq > handler. But without the property mediatek,gce-events, the secure > channel might not know what event ID to wait for. > > Regards, > Jason-JH.Lin > > > > Thanks, > > Conor. > > > > > [1] cmdq_sec_irq_notify_start() is where the GCE thread is > > > requested to > > > prepare a looping instruction set to wait for the gce-event. > > > - > > > > https://patchwork.kernel.org/project/linux-mediatek/patch/20231222045228.27826-9-jason-jh.lin@mediatek.com/ > > > > > > Regards, > > > Jason-JH.Lin > > > > > > > Cheers, > > > > Conor. > > > > > > > > > > > > > > Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com> > > > > > --- > > > > > .../devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml | > > > > > 6 > > > > > ++++-- > > > > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > > > > > > > diff --git > > > > > a/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > > > > mailbox.yaml > > > > > b/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > > > > mailbox.yaml > > > > > index cef9d7601398..728dc93117a6 100644 > > > > > --- a/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > > > > mailbox.yaml > > > > > +++ b/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > > > > mailbox.yaml > > > > > @@ -4,7 +4,7 @@ > > > > > $id: > > > > > > http://devicetree.org/schemas/mailbox/mediatek,gce-mailbox.yaml# > > > > > $schema: http://devicetree.org/meta-schemas/core.yaml# > > > > > > > > > > -title: Mediatek Global Command Engine Mailbox > > > > > +title: MediaTek Global Command Engine Mailbox Provider > > > > > > > > > > maintainers: > > > > > - Houlong Wei <houlong.wei@mediatek.com> > > > > > @@ -57,6 +57,8 @@ required: > > > > > - clocks > > > > > > > > > > allOf: > > > > > + - $ref: mediatek,gce-props.yaml > > > > > + > > > > > - if: > > > > > not: > > > > > properties: > > > > > @@ -67,7 +69,7 @@ allOf: > > > > > required: > > > > > - clock-names > > > > > > > > > > -additionalProperties: false > > > > > +unevaluatedProperties: false > > > > > > > > > > examples: > > > > > - | > > > > > -- > > > > > 2.18.0 > > > > >
On Mon, 2024-01-15 at 17:23 +0000, Conor Dooley wrote: > On Fri, Jan 12, 2024 at 07:44:13AM +0000, Jason-JH Lin (林睿祥) wrote: > > On Thu, 2024-01-11 at 17:31 +0000, Conor Dooley wrote: > > > On Wed, Jan 10, 2024 at 04:36:20PM +0000, Jason-JH Lin (林睿祥) > > > wrote: > > > > Hi Conor, > > > > > > > > Thanks for the reviews. > > > > > > > > On Wed, 2024-01-10 at 10:36 +0000, Conor Dooley wrote: > > > > > On Wed, Jan 10, 2024 at 02:35:30PM +0800, Jason-JH.Lin wrote: > > > > > > 1. Add "Provider" to the title to make it clearer. > > > > > > 2. Add reference to gce-props.yaml for adding mediatek,gce- > > > > > > events > > > > > > property. > > > > > > > > > > I can see this from the diff. There's still no explanation > > > > > here > > > > > as to > > > > > why the mailbox provider needs to have a gce-event id. NAK > > > > > until > > > > > you > > > > > can > > > > > explain that. > > > > > > > > > > > > > Sorry for missing the reason in commit message, I'll add it in > > > > the > > > > next > > > > version. > > > > > > > > There are 2 reasons why the mailbox provider needs gce-events: > > > > 1. The mailbox provider here is CMDQ mailbox driver. It > > > > configures > > > > GCE > > > > hardware register by CPU directly. If we want to set the > > > > default > > > > value > > > > from 0 to 1 for specific gce-events during the initialization > > > > of > > > > CMDQ > > > > driver. We need to tell CMDQ driver what gce-events need to be > > > > set > > > > and > > > > I think such GCE hardware setting can get from its device node. > > > > > > Why would someone want to set it to 1 or 0? > > > > GCE HW have an event table in SRAM. Each event ID has a boolean > > event > > value and the default value is 0. There are 1024 event IDs (0~1023) > > in > > the event table. The mediatek,gce-events is the property to get the > > event IDs. > > > > E.g. > > In some camera suspend/resume use cases, the may set the event ID: > > 100 > > to 1 before suspend. When CMDQ driver resumes, all the event value > > of > > event IDs will be clear to 0. But camera driver won't know the > > event > > IDs:100 has been cleared to 0 and still send a cmd to wait for the > > event ID:100. So CMDQ driver may need to keep the value of event > > ID: > > 100 before suspend and set back the value to 1 after CMDQ driver > > clearing all the event value of event IDs. > > > > CMDQ driver will need to know which event IDs' values need to be > > backupped and restored in that camera suspend/resume use case. > > Unfortunately "some use case" doesn't really help me here, it is hard > for me to tell whether these use cases are software policy or an > attribute of the hardware. If I had the same exact camera but was > using > it for a different reason, might I set it to 1 before suspend in one > case but not in the other? > It depends on the scenario, not the camera. If the same camera will use the value of event ID after resume, it should backup the value of event ID before suspend. > I also don't really understand how having this property helps in this > case either. If a camera is a mailbox consumer, it should have a > gce-event property for the event ID that it is using in its node. > > Why is that not sufficient and a gce-event also needs to be present > in > the consumer node? It seems to me like having it in the consumer > alone > should be sufficient, and the registration process would inform the > mailbox provider driver which gce-event ID was being used by the > camera. Hmm... In this camera scenario, I think gce-events can be set in consumer's device node cloud be sufficient. The CMDQ mailbox driver can open an API for camera driver to set its event ID to be backup, so we don't need to get this event ID from mailbox provider's device node. > > > > > > At what level will that vary? Per SoC? Per board? Something else? > > > > > > > I think the SoC supports camera feature may need this property. > > > > > > 2. We'll have the secure CMDQ mailbox driver in the future > > > > patch > > > > [1]. > > > > It will request or reserve a mailbox channel, which is a > > > > dedicate > > > > GCE > > > > thread, as a secure IRQ handler. This GCE thread executes a > > > > looping > > > > instruction set that keeps waiting for the gce-event set from > > > > another > > > > GCE thread in the secure world. So we also need to tell the > > > > CMDQ > > > > driver > > > > what gce-event need to be waited. > > > > > > Ditto here, what level does this vary at? Do different SoCs or > > > different > > > boards/platforms dictate the value? > > > > It's a SoC level, the SoC supports secure feature will need this > > property. > > > > > Could this channel be determined from the soc-specific > > > compatible? > > > > > > In other words, please explain in your commit message why this > > > requires > > > a property and is not detectable from any existing mechanism. > > > From > > > reading this I don't know what is preventing the secure mailbox > > > channel > > > from picking a "random" unused channel. > > > > The secure channel could be dedicated from the soc-specific > > compatible, > > but the event ID couldn't. > > > > The same event signal corresponding event ID may changes in > > different > > SoC. > > E.g. > > The HW event signal for CMDQ_EVENT_VDO0_MUTEX_STREAM_DONE_0 is > > corresponding to GCE event ID: 574 in MT8188, but it's > > corresponding to > > eventID: 597 in MT8195. > > Is it always 574 in MT8188 and always 597 in MT8195? > Yes, some gce-events are hardware bound and they can not change by software. For example, in MT8195, when VDO0_MUTEX is stream done, VDO_MUTEX will send an event signal to GCE, and the value of event ID:597 will be set to 1. In MT8188, the value of event ID: 574 will be set to 1 when VOD0_MUTEX is stream done. Some of gce-events are not hardware bound and they can change by software. For example, in MT8188, we can take the event ID: 855 that is not bound to any hardware to set its value to 1 when the driver in secure world completes a task. But in MT8195, the event ID: 855 is already bound to VDEC_LAT1, so we have to take another event ID to achieve the same purpose. This event ID can be change any IDs that is not bound to any hardware and is not use in any software driver yet. We can see if the event ID is bound to the hardware or is used by software driver in the header include/de-bindings/mailbox/mediatek,mt8188-gce.h. Regards, Jason-JH.Lin > Thanks, > Conor. > > > I can take any of the "unused" mailbox channel for the secure irq > > handler. But without the property mediatek,gce-events, the secure > > channel might not know what event ID to wait for. > > > > Regards, > > Jason-JH.Lin > > > > > > Thanks, > > > Conor. > > > > > > > [1] cmdq_sec_irq_notify_start() is where the GCE thread is > > > > requested to > > > > prepare a looping instruction set to wait for the gce-event. > > > > - > > > > > > > > https://patchwork.kernel.org/project/linux-mediatek/patch/20231222045228.27826-9-jason-jh.lin@mediatek.com/ > > > > > > > > Regards, > > > > Jason-JH.Lin > > > > > > > > > Cheers, > > > > > Conor. > > > > > > > > > > > > > > > > > Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com> > > > > > > --- > > > > > > .../devicetree/bindings/mailbox/mediatek,gce- > > > > > > mailbox.yaml | > > > > > > 6 > > > > > > ++++-- > > > > > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > > > > > > > > > diff --git > > > > > > a/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > > > > > mailbox.yaml > > > > > > b/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > > > > > mailbox.yaml > > > > > > index cef9d7601398..728dc93117a6 100644 > > > > > > --- > > > > > > a/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > > > > > mailbox.yaml > > > > > > +++ > > > > > > b/Documentation/devicetree/bindings/mailbox/mediatek,gce- > > > > > > mailbox.yaml > > > > > > @@ -4,7 +4,7 @@ > > > > > > $id: > > > > > > > > > > http://devicetree.org/schemas/mailbox/mediatek,gce-mailbox.yaml# > > > > > > $schema: http://devicetree.org/meta-schemas/core.yaml# > > > > > > > > > > > > -title: Mediatek Global Command Engine Mailbox > > > > > > +title: MediaTek Global Command Engine Mailbox Provider > > > > > > > > > > > > maintainers: > > > > > > - Houlong Wei <houlong.wei@mediatek.com> > > > > > > @@ -57,6 +57,8 @@ required: > > > > > > - clocks > > > > > > > > > > > > allOf: > > > > > > + - $ref: mediatek,gce-props.yaml > > > > > > + > > > > > > - if: > > > > > > not: > > > > > > properties: > > > > > > @@ -67,7 +69,7 @@ allOf: > > > > > > required: > > > > > > - clock-names > > > > > > > > > > > > -additionalProperties: false > > > > > > +unevaluatedProperties: false > > > > > > > > > > > > examples: > > > > > > - | > > > > > > -- > > > > > > 2.18.0 > > > > > >
On Tue, Jan 16, 2024 at 08:21:15AM +0000, Jason-JH Lin (林睿祥) wrote: > On Mon, 2024-01-15 at 17:23 +0000, Conor Dooley wrote: > > On Fri, Jan 12, 2024 at 07:44:13AM +0000, Jason-JH Lin (林睿祥) wrote: > > > On Thu, 2024-01-11 at 17:31 +0000, Conor Dooley wrote: > > > > On Wed, Jan 10, 2024 at 04:36:20PM +0000, Jason-JH Lin (林睿祥) > > > > > 2. We'll have the secure CMDQ mailbox driver in the future > > > > > patch > > > > > [1]. > > > > > It will request or reserve a mailbox channel, which is a > > > > > dedicate > > > > > GCE > > > > > thread, as a secure IRQ handler. This GCE thread executes a > > > > > looping > > > > > instruction set that keeps waiting for the gce-event set from > > > > > another > > > > > GCE thread in the secure world. So we also need to tell the > > > > > CMDQ > > > > > driver > > > > > what gce-event need to be waited. > > > > > > > > Ditto here, what level does this vary at? Do different SoCs or > > > > different > > > > boards/platforms dictate the value? > > > > > > It's a SoC level, the SoC supports secure feature will need this > > > property. > > > > > > > Could this channel be determined from the soc-specific > > > > compatible? > > > > > > > > In other words, please explain in your commit message why this > > > > requires > > > > a property and is not detectable from any existing mechanism. > > > > From > > > > reading this I don't know what is preventing the secure mailbox > > > > channel > > > > from picking a "random" unused channel. > > > > > > The secure channel could be dedicated from the soc-specific > > > compatible, > > > but the event ID couldn't. > > > > > > The same event signal corresponding event ID may changes in > > > different > > > SoC. > > > E.g. > > > The HW event signal for CMDQ_EVENT_VDO0_MUTEX_STREAM_DONE_0 is > > > corresponding to GCE event ID: 574 in MT8188, but it's > > > corresponding to > > > eventID: 597 in MT8195. > > > > Is it always 574 in MT8188 and always 597 in MT8195? > > > Yes, some gce-events are hardware bound and they can not change by > software. For example, in MT8195, when VDO0_MUTEX is stream done, > VDO_MUTEX will send an event signal to GCE, and the value of event > ID:597 will be set to 1. In MT8188, the value of event ID: 574 will be > set to 1 when VOD0_MUTEX is stream done. > > Some of gce-events are not hardware bound and they can change by > software. For example, in MT8188, we can take the event ID: 855 that is > not bound to any hardware to set its value to 1 when the driver in > secure world completes a task. But in MT8195, the event ID: 855 is > already bound to VDEC_LAT1, so we have to take another event ID to > achieve the same purpose. > This event ID can be change any IDs that is not bound to any hardware > and is not use in any software driver yet. > We can see if the event ID is bound to the hardware or is used by > software driver in the header > include/de-bindings/mailbox/mediatek,mt8188-gce.h. I see. Bring this particular patch back with your future series that adds support for the secure channel then. Thanks, Conor.
On Tue, 2024-01-16 at 17:22 +0000, Conor Dooley wrote: > On Tue, Jan 16, 2024 at 08:21:15AM +0000, Jason-JH Lin (林睿祥) wrote: > > On Mon, 2024-01-15 at 17:23 +0000, Conor Dooley wrote: > > > On Fri, Jan 12, 2024 at 07:44:13AM +0000, Jason-JH Lin (林睿祥) > > > wrote: > > > > On Thu, 2024-01-11 at 17:31 +0000, Conor Dooley wrote: > > > > > On Wed, Jan 10, 2024 at 04:36:20PM +0000, Jason-JH Lin (林睿祥) > > > > > > 2. We'll have the secure CMDQ mailbox driver in the future > > > > > > patch > > > > > > [1]. > > > > > > It will request or reserve a mailbox channel, which is a > > > > > > dedicate > > > > > > GCE > > > > > > thread, as a secure IRQ handler. This GCE thread executes a > > > > > > looping > > > > > > instruction set that keeps waiting for the gce-event set > > > > > > from > > > > > > another > > > > > > GCE thread in the secure world. So we also need to tell the > > > > > > CMDQ > > > > > > driver > > > > > > what gce-event need to be waited. > > > > > > > > > > Ditto here, what level does this vary at? Do different SoCs > > > > > or > > > > > different > > > > > boards/platforms dictate the value? > > > > > > > > It's a SoC level, the SoC supports secure feature will need > > > > this > > > > property. > > > > > > > > > Could this channel be determined from the soc-specific > > > > > compatible? > > > > > > > > > > In other words, please explain in your commit message why > > > > > this > > > > > requires > > > > > a property and is not detectable from any existing mechanism. > > > > > From > > > > > reading this I don't know what is preventing the secure > > > > > mailbox > > > > > channel > > > > > from picking a "random" unused channel. > > > > > > > > The secure channel could be dedicated from the soc-specific > > > > compatible, > > > > but the event ID couldn't. > > > > > > > > The same event signal corresponding event ID may changes in > > > > different > > > > SoC. > > > > E.g. > > > > The HW event signal for CMDQ_EVENT_VDO0_MUTEX_STREAM_DONE_0 is > > > > corresponding to GCE event ID: 574 in MT8188, but it's > > > > corresponding to > > > > eventID: 597 in MT8195. > > > > > > Is it always 574 in MT8188 and always 597 in MT8195? > > > > > > > Yes, some gce-events are hardware bound and they can not change by > > software. For example, in MT8195, when VDO0_MUTEX is stream done, > > VDO_MUTEX will send an event signal to GCE, and the value of event > > ID:597 will be set to 1. In MT8188, the value of event ID: 574 will > > be > > set to 1 when VOD0_MUTEX is stream done. > > > > Some of gce-events are not hardware bound and they can change by > > software. For example, in MT8188, we can take the event ID: 855 > > that is > > not bound to any hardware to set its value to 1 when the driver in > > secure world completes a task. But in MT8195, the event ID: 855 is > > already bound to VDEC_LAT1, so we have to take another event ID to > > achieve the same purpose. > > This event ID can be change to any IDs that is not bound to any > > hardware > > and is not used in any software driver yet. > > We can see if the event ID is bound to the hardware or is used by > > software driver in the header > > include/de-bindings/mailbox/mediatek,mt8188-gce.h. > > I see. Bring this particular patch back with your future series that > adds support for the secure channel then. > OK, I'll move this particular patch to the future secure series that adds support for the secure channel. Thanks! Regards, Jason-JH.Lin > Thanks, > Conor.
diff --git a/Documentation/devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml b/Documentation/devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml index cef9d7601398..728dc93117a6 100644 --- a/Documentation/devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml +++ b/Documentation/devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/mailbox/mediatek,gce-mailbox.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Mediatek Global Command Engine Mailbox +title: MediaTek Global Command Engine Mailbox Provider maintainers: - Houlong Wei <houlong.wei@mediatek.com> @@ -57,6 +57,8 @@ required: - clocks allOf: + - $ref: mediatek,gce-props.yaml + - if: not: properties: @@ -67,7 +69,7 @@ allOf: required: - clock-names -additionalProperties: false +unevaluatedProperties: false examples: - |