From patchwork Thu Nov 4 14:14:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 516801 Delivered-To: patch@linaro.org Received: by 2002:ad5:5208:0:0:0:0:0 with SMTP id p8csp1983946iml; Thu, 4 Nov 2021 07:15:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxA62KDxZxRlBUevh4rEyjn3/J/KaKRKfy86VSWJIZ13jO6Vk2HwHe2I7d6cQk1H7XOjpbo X-Received: by 2002:a17:906:2295:: with SMTP id p21mr22563921eja.35.1636035337889; Thu, 04 Nov 2021 07:15:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636035337; cv=none; d=google.com; s=arc-20160816; b=T61ksDDobzf0aqqem1l8359joSjy2Pysnrq1zkLCkpxoTPpnZGZJQeHKBQnjpidxJ/ WNFJxU8XutS/nIXXa7GeCOIgDFgYLCq3n4I0PD1P+7Gx1OALCtGT9MIwOdDc57rubix0 8oT42FC+I5ArJdOhrylrp9zLltLaWSuo66zH8ZHf6yg4QzJRoo9NCnnzi9LEUXwlhXAe UioNNdYG+B0ZS5GO2/sDgGfQqaZtSH1sP8lc56RBla46lArBvpK22QCd4s/0aVTICtBT 0dc+5QDFb9dkwIEiIHkT0kzKF6vKGErrKUJQST6FRuAWMV3Sxw3xXTX5hAKa68E6yLWe Acog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=GwukvzmJPZYXPQnkpOk3wLvayYjR0CTW51E8hAEdtOM=; b=edE3aNAMcZCyweLPycY1Hk661nXmW1YtrO2RKCulw9Cad5YaUIOZTD2/aylR//OMxY 9uvv/rXxslIAZWl//RX8/6juLlPyaIc7tPtJncqBDhoBTd+1wYB2Rh4I2S2L3qH7wFy3 jUfVJbR+17i9h3Hcqgb7tUSeUk4PexKcXcz/hIMf+nW4yF29+Tw7tK3h1Gl+Nkzxpz6s AIxYOGbQx9VKJfQlHGnQe5xkN01IL9rYklIiMzvYThN4YdYmqxfNy6dwieMUGu4ybO5P WSZXut5qm1l8yZsGBHcHsXSvUVe1ueXwxN3EzszKjPEiCLcLyP4uJKq8VimA01xWtR65 //Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D+OpBPYF; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id hp29si9442299ejc.80.2021.11.04.07.15.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Nov 2021 07:15:37 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D+OpBPYF; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 53F2A836C0; Thu, 4 Nov 2021 15:15:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="D+OpBPYF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3E1D083661; Thu, 4 Nov 2021 15:15:13 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A7CB7836BD for ; Thu, 4 Nov 2021 15:15:03 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=etienne.carriere@linaro.org Received: by mail-wr1-x436.google.com with SMTP id u1so8819119wru.13 for ; Thu, 04 Nov 2021 07:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GwukvzmJPZYXPQnkpOk3wLvayYjR0CTW51E8hAEdtOM=; b=D+OpBPYFVWGYj48BSUpufbLqS4cBgoOcHIsKSzAsWRTctdb6aORPnT0dT3Jmlwjfby 6SMG/Veuqaf6cOyE+uC+wxts++OtcQEb9AE+OxSlEvV6EjCUfAuNrrlWTf5epdLFKNms fQf+dy6OFkI6wAC1/+sur1FxiQHoQ4BPRe/6US8W6Dve3it0wU8dg+7AJiNEvviGPniD RZAEockmrkQtMNWU4U7MhhZTTXuQ2OToTk8TxMeUgTIzkukR6MCBO9l58e8Sh9NxnS6q zM/JJo+RO1LnbOJkZ77cdhyqF5fy7GPDEq82e1TNGTGd/VWBELUXuzU8oOj9jpdO2CPe KPnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GwukvzmJPZYXPQnkpOk3wLvayYjR0CTW51E8hAEdtOM=; b=CF2OMo4bfqeLMjXcxX6iAqmIrD7LFdgdMWU6TNFnCAA8EN9xdeABryfxDqxzf99ZiA Iq+DwpFGQD2d3rZSgGo5kC1cXDwIrDeBhSUJ1UiwfPgxmoLDDJVYTXyq8x20xX8HcgRZ rkhrAgFEu0DyOr6RhmHAMXHl01ZFiGDj2NA8tFLZgedRXd923ye/8YqjWMaKpdWyKGLT TTRLXyZZuPW9IP0gZPuFpkXnAQaIoN7UPv556m47EEyvi5p4pZdOBN/pz/zdD+aDLKYy kFsG3Gbl6FOB/CIUJvF/PbdJvTsQjdqMurgWvwv0XeZLz30l6ojGn87UgxjNnXFkh+37 5avQ== X-Gm-Message-State: AOAM531ZMQQ5GDKMloNfwPqT4V0qK/1ujmwKxF8alMVATt3hOWcvAl3C WmpPHfUys2/h3+THgff4mJpbo0neu7SF1A== X-Received: by 2002:a5d:6151:: with SMTP id y17mr58237292wrt.275.1636035302834; Thu, 04 Nov 2021 07:15:02 -0700 (PDT) Received: from lmecxl0524.lme.st.com ([2a04:cec0:10b3:52ee:40ee:3a6f:5eb8:bd35]) by smtp.gmail.com with ESMTPSA id l26sm5354862wms.15.2021.11.04.07.15.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Nov 2021 07:15:02 -0700 (PDT) From: Etienne Carriere To: u-boot@lists.denx.de Cc: Etienne Carriere , Jaehoon Chung Subject: [PATCH 4/5] dt-bindings: arm: scmi: OP-TEE as transport channel for SCMI messages Date: Thu, 4 Nov 2021 15:14:50 +0100 Message-Id: <20211104141451.29967-4-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211104141451.29967-1-etienne.carriere@linaro.org> References: <20211104141451.29967-1-etienne.carriere@linaro.org> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Introduce compatible "linaro,scmi-optee" for SCMI transport channel based on an OP-TEE service invocation. Define "linaro,optee-channel-id" property to identify the OP-TEE SCMI channel used by the protocol(s). OP-TEE SCMI transport can either use shared memory or a static shared memory buffer identified by the DT. These bindings were posted to the Linux kernel DT bindings mailing list and acked by maintainer [1]. Link: [1] https://lore.kernel.org/linux-arm-kernel/20211029102118.GG6526@e120937-lin/T/ Cc: Jaehoon Chung Signed-off-by: Etienne Carriere Reviewed-by: Patrick Delaunay --- doc/device-tree-bindings/arm/arm,scmi.txt | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) -- 2.17.1 diff --git a/doc/device-tree-bindings/arm/arm,scmi.txt b/doc/device-tree-bindings/arm/arm,scmi.txt index a76124f4a3..92572eabb5 100644 --- a/doc/device-tree-bindings/arm/arm,scmi.txt +++ b/doc/device-tree-bindings/arm/arm,scmi.txt @@ -14,7 +14,8 @@ Required properties: The scmi node with the following properties shall be under the /firmware/ node. -- compatible : shall be "arm,scmi" or "arm,scmi-smc" for smc/hvc transports +- compatible : shall be "arm,scmi" or "arm,scmi-smc" for smc/hvc transports, + or "linaro,scmi-optee" for OP-TEE transport. - mboxes: List of phandle and mailbox channel specifiers. It should contain exactly one or two mailboxes, one for transmitting messages("tx") and another optional for receiving the notifications("rx") if @@ -26,6 +27,8 @@ The scmi node with the following properties shall be under the /firmware/ node. - #size-cells : should be '0' as 'reg' property doesn't have any size associated with it. - arm,smc-id : SMC id required when using smc or hvc transports +- linaro,optee-channel-id : Channel specifier required when using OP-TEE + transport. Optional properties: @@ -33,16 +36,16 @@ Optional properties: See Documentation/devicetree/bindings/mailbox/mailbox.txt for more details about the generic mailbox controller and client driver bindings. - -The mailbox is the only permitted method of calling the SCMI firmware. Mailbox doorbell is used as a mechanism to alert the presence of a messages and/or notification. Each protocol supported shall have a sub-node with corresponding compatible as described in the following sections. If the platform supports dedicated -communication channel for a particular protocol, the 3 properties namely: -mboxes, mbox-names and shmem shall be present in the sub-node corresponding -to that protocol. +communication channel for a particular protocol, properties shall be present +in the sub-node corresponding to that protocol. These properties are: +- mboxes, mbox-names and shmem for mailbox transport +- arm,smc-id and shmem for smc/hvc transport +- linaro,optee-channel-id and possibly shmem for OP-TEE transport Clock/Performance bindings for the clocks/OPPs based on SCMI Message Protocol ------------------------------------------------------------