From patchwork Thu Feb 11 17:14:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 61797 Delivered-To: patches@linaro.org Received: by 10.112.43.199 with SMTP id y7csp330318lbl; Thu, 11 Feb 2016 09:14:50 -0800 (PST) X-Received: by 10.194.240.42 with SMTP id vx10mr47163159wjc.38.1455210890090; Thu, 11 Feb 2016 09:14:50 -0800 (PST) Return-Path: Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com. [2a00:1450:400c:c09::235]) by mx.google.com with ESMTPS id 2si1800947wmr.64.2016.02.11.09.14.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Feb 2016 09:14:50 -0800 (PST) Received-SPF: pass (google.com: domain of jens.wiklander@linaro.org designates 2a00:1450:400c:c09::235 as permitted sender) client-ip=2a00:1450:400c:c09::235; Authentication-Results: mx.google.com; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 2a00:1450:400c:c09::235 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dkim=pass header.i=@linaro.org Received: by mail-wm0-x235.google.com with SMTP id p63so83210667wmp.1 for ; Thu, 11 Feb 2016 09:14:49 -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=9pbXZpNQp3lA2CgRPWs/AHvxqCMQdr6GeYJDLQSa4QE=; b=fhgmyQQpyY82tShQA5hyJnYZNP3A9BlUIKsUS+YTLpSm7TsKZqlADteYBECP6xMaFh J9J5HBKkH2w7060dpFWDfuy3fFHxKUvXZlQJXFHqxCXrW+cfTZXyANabZbftA7CZdn6K zWkrTZ9fq/r5Qu6kkdFNLp2MGDzeaRzPcQ3mE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9pbXZpNQp3lA2CgRPWs/AHvxqCMQdr6GeYJDLQSa4QE=; b=AKREdrhugrDIoD3FFEttI0IDbQRpOqIZTZZKXWDSEtdXsZ3TK0sT1EB9xF0zaSurNL AI0el1ueCE5A2SWwBnVUHGolVdkT6GZ+1Qnm7W3VC8Ez98PRGqy55wuf5BAjVmRTeXk9 nijGx+/S/xkrJKzNmuNpWy179aFvdJbpb9EZPj7lMJ0M79uPQIQLSPIMSPaICc1f31/6 XUyMeOYNotpyu/0A2uxObREDXMd3zO7wnYQVFLpqc7ijcKuVyoSUXxYWmcZsR0OoSTVp gWkuko2qP5DHoW6z9gfu3BkvnJr8/LO2V9xOcmUUavm3ANh6XP9StsYIJlTxGbo0KG4M EjBA== X-Gm-Message-State: AG10YOQDE14RGvMuiW0wBB20s2mWmmqVKaiumaeZjr9z3bNbtnPzBXxSjilDWmkIrEABhl8GX+4= X-Received: by 10.194.235.137 with SMTP id um9mr53369386wjc.146.1455210889766; Thu, 11 Feb 2016 09:14:49 -0800 (PST) Return-Path: Received: from ermac.urgonet (h-84-45.a175.priv.bahnhof.se. [79.136.84.45]) by smtp.gmail.com with ESMTPSA id v191sm8894326wme.1.2016.02.11.09.14.47 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 11 Feb 2016 09:14:48 -0800 (PST) From: Jens Wiklander To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Greg Kroah-Hartman Cc: valentin.manea@huawei.com, jean-michel.delorme@st.com, emmanuel.michel@st.com, javier@javigon.com, Jason Gunthorpe , Mark Rutland , Michal Simek , Rob Herring , Will Deacon , Arnd Bergmann , Jens Wiklander Subject: [PATCH v8 1/4] dt/bindings: add bindings for optee Date: Thu, 11 Feb 2016 18:14:34 +0100 Message-Id: <1455210877-15748-2-git-send-email-jens.wiklander@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455210877-15748-1-git-send-email-jens.wiklander@linaro.org> References: <1455210877-15748-1-git-send-email-jens.wiklander@linaro.org> Introduces linaro prefix and adds bindings for ARM TrustZone based OP-TEE implementation. Acked-by: Rob Herring Signed-off-by: Jens Wiklander --- .../bindings/arm/firmware/linaro,optee-tz.txt | 31 ++++++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.txt -- 1.9.1 diff --git a/Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.txt b/Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.txt new file mode 100644 index 0000000..d38834c --- /dev/null +++ b/Documentation/devicetree/bindings/arm/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"; + }; + }; diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 72e2c5a..0c1e2f2 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -130,6 +130,7 @@ lacie LaCie lantiq Lantiq Semiconductor lenovo Lenovo Group Ltd. lg LG Corporation +linaro Linaro Limited linux Linux-specific binding lsi LSI Corp. (LSI Logic) lltc Linear Technology Corporation