Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1167062rdb; Tue, 30 Jan 2024 09:42:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IHnNW29ioAUYq7pvIlYMNUqQ9llBgGV3+d2ZBd1yffyzBMa2lVeUForVT/TPDCUMvXqphgM X-Received: by 2002:a17:90a:a609:b0:295:3d81:7c4b with SMTP id c9-20020a17090aa60900b002953d817c4bmr4176147pjq.9.1706636543854; Tue, 30 Jan 2024 09:42:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706636543; cv=pass; d=google.com; s=arc-20160816; b=X/p3CcHoY09auFydq64Uj3SJsh1NLBY4/IKqVgEHnjzEwznpPrD7tg9yc/lQbgFIE9 dGIGA7h4bc5HpJJjl6eop8Nmne9FYHIXa2kbrDFaascFWdPWdtKzePTM5mKYEYL2Xk+M KM3c9MGYqhyD7mX650938lNL+KOGXhG+ANdf47fKt8/k8g92iGKYXYxSMXVIx3H6u4G9 6q+RXgJ6lluV+hihA5TT7fSVjSXyPVdE4t4YJvsmsBFfmdFm3FLZmLI80SDu2vDDBle/ yTHN3n6AlOnTYV3kwiMgryI0y7T3+jF/TEVRXeyCVxAdbh0rB2j9WuaP8VHvj+J8vDpW V32A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CG+RTrLoTnPy30wv//yKsKe+aW4OG4FSg2ebf2qqU+E=; fh=a4lixrXJjdNQofRqKYxyKGNds37hL59MQSNAjLp4kfs=; b=P3k7BML7VKfrwrpnX0x/bwQsUAMj2VdEiSOjYwg6ReKf28jOalUzzS2KT+/8duyFVa Q79yuX6uKPw8HGJyu6NMq58rVnVeZygdIK+cpuegiKro9an3aJWhPdDkTpJ17YMDe0Jc ZTdCc0/csmuXs3HO73lfVa7xe+CBXaOdzbyoJ5ZGUO4tdtOHe1nwfVwRgwUvLgCxQH8B UZDrlYHuwoOeISM84qcpM/+EcJ8P5usVPGlmSOVLy3P4pyTqumC0M/fNqk/jFrjwOLI3 9Bs5PDDK6kQcNEiI2ehT1wmpJW8ZeGVA/rT9isifgUi0Ny3UtWJ5fypOPEhk9eHAuNWI x1HA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kmWXiDzF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-45033-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45033-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s2-20020a17090a6e4200b0029041146a9bsi7899290pjm.142.2024.01.30.09.42.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 09:42:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45033-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kmWXiDzF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-45033-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45033-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 52841B263B9 for ; Tue, 30 Jan 2024 17:22:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4ECBF364AC; Tue, 30 Jan 2024 17:22:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kmWXiDzF" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 750E112836C; Tue, 30 Jan 2024 17:21:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706635319; cv=none; b=RHBbozkPZThP2GroBXYfvPNg5cRW64Z+EZlD6RuxJphMEj6o/3QLQdyFSVu8o6b+ZRovrIbB63alc9bc1ORb++0w10wo/pO+Ggx/J5vjbzIHpwMUPvEO0ElIgPExMxsOBufsi4RcyLMwk2ZvT/LTZry+OtJjKz05fO7Pmbr3Mq8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706635319; c=relaxed/simple; bh=4wWtwu39k0xPKfG1c0t6Pd+ipT50TOdvHg/dYeAN4AY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YwwzMr8M/5CyCABAldMX1xclvLtDQfNu6MkGEhs9QGHSMQaLRQV2EDMKl5ZdMxUfuivQIRISYrYNlU/bnOp/06SIumjCcwm8nR2YXUboBMq1sIrVtc5gGJtzqNrzIr4WAIXuYK1GFSEHUdmqRHMa2UOVhQ4z5Vc6mjjBXOeELzk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kmWXiDzF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB412C433F1; Tue, 30 Jan 2024 17:21:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706635318; bh=4wWtwu39k0xPKfG1c0t6Pd+ipT50TOdvHg/dYeAN4AY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kmWXiDzFUZWMZzmBpA4YYhgxS/sibS2eQcWpJvG1LA1+FZUYuc4kD2PbTzNoe036L wYJKCwdrnHW7bBjNmXHyy8rgOVYVsejkz3nh71I0n3LOa/8TvyUVadKn8sCQ0gSJ/C aAvDPnVAQKBuUw0wGxr97lIUE4fyGPbIWebRkfIiqV6jtg3Wsbn9wcJH4POQzdOiEq woKbFV9NOfEOOFaAzQfCzXP/UzV33va2G+x2r0t1Q4XFJu1SYiUPYxLMZM7Qnh9ZyM QRZw0o3pTGGHBr/CrZGen3PvVQRFXtsel6if2VsexK0EHc9ypSF3Qvz44AgM3qYOhc 9FELK1rhUbM1Q== Date: Tue, 30 Jan 2024 11:21:56 -0600 From: Rob Herring To: Krzysztof Kozlowski Cc: Arnaud Pouliquen , Bjorn Andersson , Mathieu Poirier , Jens Wiklander , Krzysztof Kozlowski , Conor Dooley , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, op-tee@lists.trustedfirmware.org, devicetree@vger.kernel.org Subject: Re: [PATCH v2 2/4] dt-bindings: remoteproc: Add compatibility for TEE support Message-ID: <20240130172156.GA2008728-robh@kernel.org> References: <20240118100433.3984196-1-arnaud.pouliquen@foss.st.com> <20240118100433.3984196-3-arnaud.pouliquen@foss.st.com> <75429209-8f30-4880-8f92-ecb3cf90ae33@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <75429209-8f30-4880-8f92-ecb3cf90ae33@linaro.org> On Fri, Jan 26, 2024 at 12:03:25PM +0100, Krzysztof Kozlowski wrote: > On 18/01/2024 11:04, Arnaud Pouliquen wrote: > > The "st,stm32mp1-m4-tee" compatible is utilized in a system configuration > > where the Cortex-M4 firmware is loaded by the Trusted execution Environment > > (TEE). > > For instance, this compatible is used in both the Linux and OP-TEE > > device-tree: > > - In OP-TEE, a node is defined in the device tree with the > > st,stm32mp1-m4-tee to support signed remoteproc firmware. > > Based on DT properties, OP-TEE authenticates, loads, starts, and stops > > the firmware. > > - On Linux, when the compatibility is set, the Cortex-M resets should not > > be declared in the device tree. > > > > Signed-off-by: Arnaud Pouliquen > > --- > > V1 to V2 updates > > - update "st,stm32mp1-m4" compatible description to generalize > > - remove the 'reset-names' requirement in one conditional branch, as the > > property is already part of the condition test. > > --- > > .../bindings/remoteproc/st,stm32-rproc.yaml | 52 +++++++++++++++---- > > 1 file changed, 43 insertions(+), 9 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml > > index 370af61d8f28..6af821b15736 100644 > > --- a/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml > > +++ b/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml > > @@ -16,7 +16,12 @@ maintainers: > > > > properties: > > compatible: > > - const: st,stm32mp1-m4 > > + enum: > > + - st,stm32mp1-m4 > > + - st,stm32mp1-m4-tee > > The patch looks good to me, but I wonder about this choice of two > compatibles. > > Basically this is the same hardware with the same interface, but two > compatibles to differentiate a bit different firmware setup. We have > already such cases for Qualcomm [1] [2] and new ones will be coming. [3] > > I wonder whether this should be rather the same compatible with > additional property, e.g. "st,tee-control" or "remote-control". > > [1] > https://elixir.bootlin.com/linux/v6.7.1/source/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml#L54 > > [2] > https://elixir.bootlin.com/linux/v6.7.1/source/Documentation/devicetree/bindings/net/qcom,ipa.yaml#L129 > (that's a bit different) > > [3] https://lore.kernel.org/linux-devicetree/20240124103623.GJ4906@thinkpad/ > > @Rob, > Any general guidance for this and Qualcomm? I think we have cases using compatible already as well. Either way is fine with me. Rob