From patchwork Tue Nov 9 16:08:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 518046 Delivered-To: patch@linaro.org Received: by 2002:ad5:5208:0:0:0:0:0 with SMTP id p8csp1900055iml; Tue, 9 Nov 2021 08:09:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYiUJSUif8RXSInAY/IVN+R1s3WvqXmBYKMfSK49VFGqZ1QGBQ2xCLkUsfQQPlaTrRzPca X-Received: by 2002:a17:907:2da1:: with SMTP id gt33mr10785752ejc.378.1636474180537; Tue, 09 Nov 2021 08:09:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636474180; cv=none; d=google.com; s=arc-20160816; b=t4+/VBf6teC1Mm0Jq2PQixsZmbNr6ahVgiTLbeM/68Wd91wEhAbwbJxXoeB0u5PR5i fW4bAzAGykg6aWWvk6JcNVshCHTzIBM55twud35mbuJfWP9Dt2gahPaxT6B8MOVBu3Uc 40D2daxx+nvnmycK3S2+a1uakxSltzTRds8GbpqZTb9fk78nX0+Ea3iKGesumk/UXScq c3oX6XU0XfUqc0st+BilyD/HigLPVmWHgBYX2HudYUWohTcDydw0JmuHdfHXgBvYkayG keWzibSlIu/gNSZNVlhr+hMXrtWyVWH/tbz63uLQpMQngQKpmvOlw6T1jgxdF/VxxX7O CD1w== 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=cbvpwsOoEqmSNb3CBX9RLhDsYwpLwYyAK/ClUm1PWsY=; b=bNMvgi2fUx6jefpPn1Glr/QwHxOK3HmvIWmMbj9/7t6HQwxzSc9vk4A4OWGa/Sy1ch kCI7ldiuj9X4B/AHxdfRD+zDUNh+PbhHzEH1GEaYXVfgOvX0UshbpWxd+Sq518LlJjVy rAkM/Ce8AFpLoXerGZIc/HA3pTGIVt/3b3UjogJqyaHINu/7Hm3y3NTP8/5xLW7kcTvU 3Ya9s941Eq852GQ+zmLlOBs4fbJm0hUxqP1pDehrTFt9KUKCQuE3Z3nA4mXIUdyxGnSD ZXEiQY+ypPdyshZFIibrvQmWTj6WeL2pgZFU1qooD0ccBOUyyNYAgfUDYP8k3Th3OEN/ cR3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G0TdY2c9; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id h14si28931439ejt.392.2021.11.09.08.09.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Nov 2021 08:09:40 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G0TdY2c9; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 DAC4D8397D; Tue, 9 Nov 2021 17:09:24 +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="G0TdY2c9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2700383953; Tue, 9 Nov 2021 17:09:14 +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-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (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 5D84083957 for ; Tue, 9 Nov 2021 17:09:07 +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-wm1-x32e.google.com with SMTP id g191-20020a1c9dc8000000b0032fbf912885so2625742wme.4 for ; Tue, 09 Nov 2021 08:09:07 -0800 (PST) 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=cbvpwsOoEqmSNb3CBX9RLhDsYwpLwYyAK/ClUm1PWsY=; b=G0TdY2c9VIiGjHOCOBZTojzk2VmxHILFSa94tl3GVRkSChL+Uk2sz4olPnWpVrlz6r BnbfQ5IiqfhA5jubv+tpzjokSJ/NA+uw1gTd9aBpHtPmUU254SH0NtZe7+XulgDiixo4 7W7UEfv0tNdJgB2qboeR0sUJvXKvUt12zgyMoNLUP5zNtAc7zkCX0VRhjXf8Kk6v6/Wr XAMtL4wYTJ+JYx/Bl2CUZkxFYY22TBx2fCGPX014ilaHhL2CDLSSZ7P8byXr1gExVQyl E/wufmNhfjp+tVjVw9y7k30ntSXVY2rDEKI4RvELT72mRW7uIBS2OClAcLzcjXAF12UE lkAQ== 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=cbvpwsOoEqmSNb3CBX9RLhDsYwpLwYyAK/ClUm1PWsY=; b=EyXBXqELYc4s+ZnaVJatx2S4GpVuXVVVkj6pWexlTWwUV9qwMgOOR8Qj/tMsVXrInH XUbRG+b2s1qfAt9tL+pxiufuBSd5knd005GYSc281tfeP/emAU2KS6eUneQr4vTZbQBf UEZgVgIGL3L+NkWvicut+F7vhlYqe5KFHa4qul8alE/HSLkhJqILwBhFjyaCp3lYEEmr lt7s/NGLUDQsd1nJEElTyjH32/NplV1RSOybdye9EWO89RCiXnD4fF674SxYKRezXoXp b3zxKZXvelBXJR4Lzt2EmdTNHZ+VUZD10jW/r1Tl7WkNY11oVprJnqfmdL1jrZUqaoyf vJVg== X-Gm-Message-State: AOAM531ETT6F+rrwk0JWrEE5yuZ5tBvXvP+4ZFeq6NM1Qrf7ecHHrM/C 5XyeDuK+ZaG4g1MnLMAWTeGyHzTvOJUH+mqM X-Received: by 2002:a7b:cc1a:: with SMTP id f26mr8414896wmh.39.1636474146629; Tue, 09 Nov 2021 08:09:06 -0800 (PST) Received: from lmecxl0524.lme.st.com ([2a04:cec0:10ec:fe30:ed93:5b26:60a4:aace]) by smtp.gmail.com with ESMTPSA id e18sm20130236wrs.48.2021.11.09.08.09.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Nov 2021 08:09:06 -0800 (PST) From: Etienne Carriere To: u-boot@lists.denx.de Cc: Etienne Carriere , Jaehoon Chung Subject: [PATCH v2 4/5] dt-bindings: arm: scmi: OP-TEE as transport channel for SCMI messages Date: Tue, 9 Nov 2021 17:08:23 +0100 Message-Id: <20211109160824.18268-4-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211109160824.18268-1-etienne.carriere@linaro.org> References: <20211109160824.18268-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 Reviewed-by: Patrick Delaunay Signed-off-by: Etienne Carriere --- Changes since v1: - Apply review tag --- doc/device-tree-bindings/arm/arm,scmi.txt | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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 ------------------------------------------------------------