From patchwork Thu Oct 29 08:21:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 55744 Delivered-To: patches@linaro.org Received: by 10.112.61.134 with SMTP id p6csp403814lbr; Thu, 29 Oct 2015 01:21:58 -0700 (PDT) X-Received: by 10.25.21.83 with SMTP id l80mr159069lfi.79.1446106918680; Thu, 29 Oct 2015 01:21:58 -0700 (PDT) Return-Path: Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com. [2a00:1450:4010:c04::229]) by mx.google.com with ESMTPS id i198si272693lfe.150.2015.10.29.01.21.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Oct 2015 01:21:58 -0700 (PDT) Received-SPF: pass (google.com: domain of jens.wiklander@linaro.org designates 2a00:1450:4010:c04::229 as permitted sender) client-ip=2a00:1450:4010:c04::229; Authentication-Results: mx.google.com; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 2a00:1450:4010:c04::229 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dkim=pass header.i=@linaro_org.20150623.gappssmtp.com Received: by lbjm5 with SMTP id m5so22893360lbj.3 for ; Thu, 29 Oct 2015 01:21:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZlrTve6qeqLiTzhDpUta4c26XrdW/PYtV8wmqcWWWBw=; b=aCcRwPRyQ4XajnyxhlqhCrFU2XVJNRDJhfHHg8UHAwN0N2ec6bGj14T400Pp40OVhD KMjp5FALnwizrGq3ZWvdI+S/SeJgwLlr3VoEDXLhrZVGobaW8H6BTv+nVzn9Ywod1H6T a+ltYQQX+SlCxLesAn0iNZvJ5S/n2r1IhVS9/aeioFRhwMaTcfy98d0Ec0RKsZyJ+iRM NXUrIKLrEFRHT3y4LLxynbCKS0NYm3pK/LBl8yGFJ6DBQgu4IZ50iGLhz307+4QZWJZE VXjqPUIHryjl8ErBHoCHHK0BCdJxPMItZC/vM9v05U2MTkK1nYWMdJioxN8U+bGrWJxU cfqg== 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=ZlrTve6qeqLiTzhDpUta4c26XrdW/PYtV8wmqcWWWBw=; b=czvNTp7OagDYb4QW0wqho3033vBIple6GCHHb6+3dHwOwDiTodDkjZnXMcnCcwSeoC Qsj4Bcf7AJEVGijpQAJOBj/CinAq5AADQwQEgWnz5JpaNMhpF3ErAxVW/qsbkqnRMyW3 jKDkreotaOI+vmx/9LLLZ5hE7VEyZCaRWpTmT97E6K1Ufsx6aUwhYflFiZ/+ajJhdRdZ wbkkjbt4V6x/IYmzUpfzCS4UwCmsiMs1XsfyWqsBJbHJQc/6iXXnUm2dH/CovFKRx9Q/ Mspb5x92fmUyudNiyyEYDr9d+hl5yrCJK0z9NiI3eteTHVo/GDcGwMuNXZupUfQE8xjR QjJQ== X-Gm-Message-State: ALoCoQmW1SJI15x2uotYIUM4j3WwBHyO8Q+DY0QZI0DzDiOh70m8NCaxcFrlShADEJlhKYpaFOVk X-Received: by 10.112.138.37 with SMTP id qn5mr260580lbb.52.1446106917501; Thu, 29 Oct 2015 01:21:57 -0700 (PDT) Return-Path: Received: from ermac.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id q201sm73103lfe.43.2015.10.29.01.21.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Oct 2015 01:21:56 -0700 (PDT) From: Jens Wiklander To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Arnd Bergmann , Greg Kroah-Hartman , Kees Cook 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 , Jens Wiklander Subject: [PATCH v6 3/6] dt/bindings: add bindings for optee Date: Thu, 29 Oct 2015 09:21:25 +0100 Message-Id: <1446106888-8983-4-git-send-email-jens.wiklander@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1446106888-8983-1-git-send-email-jens.wiklander@linaro.org> References: <1446106888-8983-1-git-send-email-jens.wiklander@linaro.org> Introduces optee prefix and adds bindings for ARM TrustZone based OP-TEE implementation. Signed-off-by: Jens Wiklander --- .../bindings/arm/firmware/optee,optee-tz.txt | 29 ++++++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/firmware/optee,optee-tz.txt -- 1.9.1 diff --git a/Documentation/devicetree/bindings/arm/firmware/optee,optee-tz.txt b/Documentation/devicetree/bindings/arm/firmware/optee,optee-tz.txt new file mode 100644 index 0000000..0a8ed0d --- /dev/null +++ b/Documentation/devicetree/bindings/arm/firmware/optee,optee-tz.txt @@ -0,0 +1,29 @@ +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. As there's no single OP-TEE +vendor we're using "optee" as the first part of compatible property, +indicating the OP-TEE protocol is used when communicating with the secure +world. + +* OP-TEE based on ARM TrustZone required properties: + +- compatible : should contain "optee,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: + optee { + compatible = "optee,optee-tz"; + method = "smc"; + }; diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 82d2ac9..38e632f 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -159,6 +159,7 @@ nxp NXP Semiconductors okaya Okaya Electric America, Inc. onnn ON Semiconductor Corp. opencores OpenCores.org +optee OP-TEE, Open Portable Trusted Execution Environment option Option NV ortustech Ortus Technology Co., Ltd. ovti OmniVision Technologies