Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp525997rdb; Fri, 26 Jan 2024 03:04:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IG57DVkZXAhP0U0ch5w5Y4hKVB9ell1dtbE+3Q84lN2LjB3qdVHZHOMrCka8MrZV/9X9/PX X-Received: by 2002:aa7:d1ca:0:b0:55a:70be:5e30 with SMTP id g10-20020aa7d1ca000000b0055a70be5e30mr587165edp.41.1706267080070; Fri, 26 Jan 2024 03:04:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706267080; cv=pass; d=google.com; s=arc-20160816; b=JmPMHj0R5xOoeabmHuFHTE/skTqZaKf9w2kyS1pou+XxjF/bbnqUqbclR1ITkISnxj 59LVkvJeJwPy1m72qUI9PnoJN6T3+LESvj2etRCSHVzQ3FLf7eCd78rIfPbnzH8dHGLE /7vF1wytArGk62fpVmsC1YZtIEL9JADfxOBY3cbV+WtoJaUTnBPt3HjtyT6yEoTE65hf T1xgEUAgk4BWqwQz1mdouGiBPQYCXH2vWFMKAmXDNtdk7l+Lu4Lvez67XcilWKp1NBio r9t12q/tL5Dgr92OY8QSLv8MoI3ENpqtDuvpx1+D28RYp+f3M3pnDQcP/Us0cIW/MY9q adTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=dshtbFxRCnFVER93fqS4xoshF/3Vm7dUsgixiL+seOM=; fh=pOqLaJZkwi+Dckz0KFoZQ8tiVe+vcg0A8DVCV0SGXeI=; b=id8aEvQrI7NbLNmjWR/mQYiDZJqUYDOTQbk6vQ79FBOJdloUlpftOLFc69gWPsC4i+ 1383AU3XQHiS7DpnJvdUCMRikBfMJNO/EP75Y/Ofxpgb1YLNAA9e9mjoLhPta+uRTlkp 7SA/tooxcGJLkT2md6vsuxlOntkyo7xdzEZknJep+/p+ld5L/oT+1ErXNseoZyaqeC0m n4TsYzOrXQj5nHmkSQFzu7NVWo6/l0mJecnmRUnKi8lB+R75v1BwuXy5FeOmu09YKtLc k/ktJJzGS6qBqNN2eXxp1gjbFq9/NVPV25Mi/8R2IKGS3dqD1B//osNu0/VwdPyMg3aV jVog== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VjIADlhn; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-40026-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40026-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g17-20020aa7c591000000b0055854396553si500033edq.309.2024.01.26.03.04.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 03:04:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40026-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VjIADlhn; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-40026-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40026-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id A6F821F227E9 for ; Fri, 26 Jan 2024 11:04:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64BBA13FEE; Fri, 26 Jan 2024 11:03:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VjIADlhn" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87CC4134BD for ; Fri, 26 Jan 2024 11:03:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706267011; cv=none; b=r/z1MiZcBSF93DWzarxQ02lHgtCaPqsuGzWQK5+PKjAHfaI4wpZ3B6Ql27iqJ0HeJ4eHucp3y0uTU5PwLD9TBa4FLlOrN7VV5QoEJwSDP6kyLK1+CqPgjF2aeB488McMVhXOpJX1S4JJrJ4d3EUeP6D8qVWAB3ecyHzM7p4Otb8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706267011; c=relaxed/simple; bh=TA+ntvp3JdYQPvJsnk42CXmY67EVNq9+cY9GQU3HUPE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=T/YcSwxo/DmaJuqH7J8WJ5Tds3VZR4dGCfIJaPOcL3qIxKntcw/+x91fHWrSiT6QzOFfh+AK2v5/ULftlXCJnWO0JdT8wnQPzWtjoP6jKKTmitSkGysrnALAI4P683267XSFnQQXK+QXAf55l31ytuFyAosR7qHDnazLXnn+78o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=VjIADlhn; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-51020e061b5so256563e87.1 for ; Fri, 26 Jan 2024 03:03:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706267007; x=1706871807; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=dshtbFxRCnFVER93fqS4xoshF/3Vm7dUsgixiL+seOM=; b=VjIADlhn7I12XdVvaNFjJAdNY3TfTNkCILTRw1fj8keLiqbuz9I4sQA+ay463VXPNK Wo+OWzCV0uAEoADhJ2ZT1sI+hU71gmrrI7xc3VDjGHKWY8TRo2QgrY7TFG8Xo7PZvWye tAtDWsI5cXRES921/pbox8UqhKYZuesqxy6Dmnoz3zAQw52FemUu2FTTCijnJeK3hQKr UPWPANvfE5Fye61D7T4DRNH6iBHpUWWX3KDgpJswHRJyHMIwDJWRe+ZHt/WBADH0bC9+ JC3mkxGLbKIcTfHI/psCUtFS7f8zpegJ9Z0lF7B02XwB/n/0siTmS/xwUDrT/O4S5eMk XwgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706267007; x=1706871807; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dshtbFxRCnFVER93fqS4xoshF/3Vm7dUsgixiL+seOM=; b=oXrFvc/KDslz/3VQsR4icGRef87Hngn6H1ewHBBMREQ8yzczXPmAIkI4+dP1+CnUO0 zrXAaaWKa/DMwGg3N3T1jvS6uSXqlYDHqZcAd/jKvWdGU44DDBGeXVr9wjMQ/AzT1gDx wvXZb8nq1qEUw/BS2LDomlgT8+GmKQvoFJXzqBcD/uDw1kFb3wLsFy3dA2uQ3TaBoizw rxHyZbN+POmv5zuax0NSxpulb3bid87H7CX3w1fcVgessgd13kBtU/+/kp8yFN/Zkxer L3ibXzofPutHx6hmyI6IczoFbc/vcueVZ2UezQ6GLdsQpgn3y7nVNL3D2yQosCF+wMSx dmBQ== X-Gm-Message-State: AOJu0Yy8BNfye5wGPzQaLahelyNdwR9BFQI66st9hU42LexyjlkQQhvZ mI9IO7LqSChnrFUB5bSVkyEq/w5dxE1XoOwg9hM8n6hRQseUTcMHNBNuv2fGHlM= X-Received: by 2002:a05:6512:3e07:b0:510:1b46:7f6e with SMTP id i7-20020a0565123e0700b005101b467f6emr821365lfv.120.1706267007468; Fri, 26 Jan 2024 03:03:27 -0800 (PST) Received: from [192.168.1.20] ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id vk2-20020a170907cbc200b00a31c211fa71sm505575ejc.107.2024.01.26.03.03.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Jan 2024 03:03:27 -0800 (PST) Message-ID: <75429209-8f30-4880-8f92-ecb3cf90ae33@linaro.org> Date: Fri, 26 Jan 2024 12:03:25 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/4] dt-bindings: remoteproc: Add compatibility for TEE support Content-Language: en-US To: Arnaud Pouliquen , Bjorn Andersson , Mathieu Poirier , Jens Wiklander , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: 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 References: <20240118100433.3984196-1-arnaud.pouliquen@foss.st.com> <20240118100433.3984196-3-arnaud.pouliquen@foss.st.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwMFCRRfreEFCwkIBw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6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240118100433.3984196-3-arnaud.pouliquen@foss.st.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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? Best regards, Krzysztof