From patchwork Tue Sep 25 14:40:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 147471 Delivered-To: patches@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp812516lji; Tue, 25 Sep 2018 07:40:40 -0700 (PDT) X-Received: by 2002:a2e:591d:: with SMTP id n29-v6mr1155277ljb.70.1537886440172; Tue, 25 Sep 2018 07:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537886440; cv=none; d=google.com; s=arc-20160816; b=P4rhvVL6XHsFQTvoqklwgB25bDaYnDVMaVukNSm9sya9BbHkTVwVYeZ5QB8uZJcqcq jcYstZ0cX0RkxSIJeWe15AnHf5nD8ihqzLOTSqNbz/4oilrUX9FUiIrBjo/UIa3X+Rt1 XcXevxIidssbHR2PpwgURlsNVURl8g8FcpgUMZhlf7JHsi2FoyT1Q8x5rzgUd4el9PEc jVDHU1NLDpYUm606ybZOXJ5CT98ZoUTFEk7IcpHBMob6W2LmtGRBncXgOQt0GE9EeK29 +787bIL5qibduXVvl1v9qLtYq5gh3Qhwxfp5y28gbpqUUia5UtoesOiFH/YG+X8F1Ndd lz+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=r4JLSiAcP3AW2k27s0h/gqSILGpSH0OAObkcQcT5ru0=; b=EpWfPdXUyHvPzaN8re0OX3T96QoAJig8pJX//zYoUuf2OaMX86eQlCJHtpTawAzPJl O5AyArbywmCre3EaoLdXMh2fYN8dbjjcDaNcYZBaLt7XYXR7h2PFNZozk1pvKzqGm70p FU9s5QTWgUcMf72pofJWQYWENYU90XO9iOMQ4hy8j7QuxYT4BubTcXBeyDuFaokk5HmW uL6MDABWdWNJzIV2WdLLgRocFaKnZjUL64qkX2AZpXAdHrlSairYMLfNv73/59QEPd0h fQE9Cvqfvn4apFRtWpuo2VxdrKAJnG8AmrjB2t45prOLLXTGbF/qA0tDTKoMstXHeM1+ kJcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="L/XYzQpx"; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id f67-v6sor1142963lff.62.2018.09.25.07.40.39 for (Google Transport Security); Tue, 25 Sep 2018 07:40:40 -0700 (PDT) Received-SPF: pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="L/XYzQpx"; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=r4JLSiAcP3AW2k27s0h/gqSILGpSH0OAObkcQcT5ru0=; b=L/XYzQpxOZJNw2CvlPgpc4MKC9067U6UDY03WXLPGnUIya71gEh8bSjIMRSh1//aem zdUMPclx+9EEOLnWPay7eMPNdA/CSDuv0cv2ALtL/4/2Urc+wIZwzdFvy1odUWQyet70 fizsCKmIm+KCPnJc3mkJDP333ubTar8MF0VyI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=r4JLSiAcP3AW2k27s0h/gqSILGpSH0OAObkcQcT5ru0=; b=t1PmSzD0Qb08WgCPDiSc7By/qYJosAz+VtqLJDnZGASKfkxRT5b2rMPLKwbvEbVsoY cWR7Hq7DPoOjR8G4qdJjnc3YwvKUPdCAUI1gbdVEM44/yEu2uTDBbn3SoHD964G9HnGm 9hB02vXonme0R6pIBtwJ6ecaaETM4kTVKQ7DGvqSd9r+ajAYPtKouT1yc2M5o6XhFQdf EJxXU1EghI8g8FbzH//5bq8MOxiTrs8of03LbVmx1mgYl42eEXpNz8PQ6ch3Eub8QtxA 6/XqPXqvLIAxCGsql6AKhuojU0S3z3U7IvWRWIGO6OElKKIGsbo/3bXSz08XtT1Djiwn WxnA== X-Gm-Message-State: ABuFfojqTDO/BfS6TItjDBkaJX9PgLu04RhST4AAXwWEv3kXiX6bTRiD uwwWLJMEWG+A0VIy/lVFNJMMDeNk X-Google-Smtp-Source: ACcGV63uwa1gYsXngj0RlVeTcvAFBefL7E+m8ghx3f7wvXEEDtCUr4V//1AIhNehJLFEFM31TFe8Ag== X-Received: by 2002:a19:dc42:: with SMTP id f2-v6mr1166719lfj.48.1537886439692; Tue, 25 Sep 2018 07:40:39 -0700 (PDT) Return-Path: Received: from jax.urgonet (h-84-105.A175.priv.bahnhof.se. [79.136.84.105]) by smtp.gmail.com with ESMTPSA id g14-v6sm14483lja.96.2018.09.25.07.40.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Sep 2018 07:40:38 -0700 (PDT) From: Jens Wiklander To: u-boot@lists.denx.de Cc: Simon Glass , Igor Opaniuk , Tom Rini , Jaehoon Chung , Pierre Aubert , Albert Aribaud , Peter Griffin , Michal Simek , Jens Wiklander Subject: [PATCH v4 06/19] dt/bindings: add bindings for optee Date: Tue, 25 Sep 2018 16:40:10 +0200 Message-Id: <20180925144023.24555-7-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180925144023.24555-1-jens.wiklander@linaro.org> References: <20180925144023.24555-1-jens.wiklander@linaro.org> Sync with c8bfafb15944 ("dt/bindings: add bindings for optee") from Linux kernel. Introduces linaro prefix and adds bindings for ARM TrustZone based OP-TEE implementation. Reviewed-by: Simon Glass Signed-off-by: Jens Wiklander --- .../firmware/linaro,optee-tz.txt | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 doc/device-tree-bindings/firmware/linaro,optee-tz.txt -- 2.17.1 diff --git a/doc/device-tree-bindings/firmware/linaro,optee-tz.txt b/doc/device-tree-bindings/firmware/linaro,optee-tz.txt new file mode 100644 index 000000000000..d38834c67dff --- /dev/null +++ b/doc/device-tree-bindings/firmware/linaro,optee-tz.txt @@ -0,0 +1,31 @@ +OP-TEE Device Tree Bindings + +OP-TEE is a piece of software using hardware features to provide a Trusted +Execution Environment. The security can be provided with ARM TrustZone, but +also by virtualization or a separate chip. + +We're using "linaro" as the first part of the compatible property for +the reference implementation maintained by Linaro. + +* OP-TEE based on ARM TrustZone required properties: + +- compatible : should contain "linaro,optee-tz" + +- method : The method of calling the OP-TEE Trusted OS. Permitted + values are: + + "smc" : SMC #0, with the register assignments specified + in drivers/tee/optee/optee_smc.h + + "hvc" : HVC #0, with the register assignments specified + in drivers/tee/optee/optee_smc.h + + + +Example: + firmware { + optee { + compatible = "linaro,optee-tz"; + method = "smc"; + }; + };