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: 7517161 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B68079F399 for ; Thu, 29 Oct 2015 08:24:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E67AF20A01 for ; Thu, 29 Oct 2015 08:24:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 69595209FC for ; Thu, 29 Oct 2015 08:24:43 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZriUB-0001Dz-Pl; Thu, 29 Oct 2015 08:23:03 +0000 Received: from mail-lb0-x22d.google.com ([2a00:1450:4010:c04::22d]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZriTU-0000vM-8e for linux-arm-kernel@lists.infradead.org; Thu, 29 Oct 2015 08:22:21 +0000 Received: by lbbwb3 with SMTP id wb3so22927872lbb.1 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=nI1O6eKIgRryl7+inYYcgVqHo/B3cXgxMeuCQsoHASjHefxaVMkWsgYpcasTc0pMLo XWfqqFkFjnOaUs6ynCdyBgI4cRL8KEuePjfgIfKkXrSW8cnq7zk4nTdA30q+EZnwR0tF XrlNiM+OMVAi8F5zhjVZKBdiEAecYE6Mb3NVbBiSVEo/oyUK1kCyFtKrKrECUBVN/ha2 tJkxbliXnVsDwhwZob2iqcYw1wqbv4XXTDwO7ntYxa2WUDhOUs4GwY5sGzttwA6lBehM KlOGmTZprqh5BW8Uyh5Ak7wiWCVvgBZr3xaC52auo4TvWcZZsYvGuGYjX3mT+X2zl+ba R+Xw== X-Gm-Message-State: ALoCoQk1zsQqBgU4cd20TqIfm5pBC0s9zKrO0NLlJn9SQjFSH5scy9bOytLGLVSrJca12TeoX9MY X-Received: by 10.112.138.37 with SMTP id qn5mr260580lbb.52.1446106917501; Thu, 29 Oct 2015 01:21:57 -0700 (PDT) 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151029_012220_726267_2BA5353F X-CRM114-Status: GOOD ( 17.30 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: valentin.manea@huawei.com, Mark Rutland , javier@javigon.com, emmanuel.michel@st.com, Will Deacon , Michal Simek , jean-michel.delorme@st.com, Jason Gunthorpe , Rob Herring , Jens Wiklander MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 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