From patchwork Sat Jan 28 12:19:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 721034 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3v9ZgP1wttz9t0p for ; Sat, 28 Jan 2017 23:28:00 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="GwPuD5G5"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751010AbdA1M16 (ORCPT ); Sat, 28 Jan 2017 07:27:58 -0500 Received: from mail-lf0-f53.google.com ([209.85.215.53]:35107 "EHLO mail-lf0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751213AbdA1M15 (ORCPT ); Sat, 28 Jan 2017 07:27:57 -0500 Received: by mail-lf0-f53.google.com with SMTP id n124so173940273lfd.2 for ; Sat, 28 Jan 2017 04:27:36 -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=16aGrc30nxC0TZOMLEbc2vT3ri4q2rdos9WhhKZlOm0=; b=GwPuD5G5str4sXARi9GkG130Xv39lVLCyrn+7jZzWlz5ydImFdOWzTQ/YTKxrldEYB nhpC2yvuWn63xmzF9Ks6I3mugw6uGoDFqau29LkjpSA//9tj1ajd/XZMtFG7V2e7kEo1 dqkyJJ932wYOMB7i6+KXvufXWLopgu7CWlXMI= 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=16aGrc30nxC0TZOMLEbc2vT3ri4q2rdos9WhhKZlOm0=; b=kcldRhvBQ/44fe5atZIQctbI1rZt7TMi78RM9QcLDpTwPKy/k57KfcrqwwwlM9XuFd xkTHf72dO85YHN+jiD9WQ/cUl4KjWZnoC2E18EAOtep/n5SIkhbETv+Vf7vig4WdK20t GFRk0f5Vc/gwAT7uGrp/UVBV6A9RziquylJfxTxzQ6xuUudMjYTyIc4EwoGCOvIg2mXN RQFAOoeNLPYuCAbN8S7uqN/sZ0mY0pd5VEkg2oSj9bgVu7N9d6ZxIvTca0pk6pu2oJpt KvUjojKJZ22wFpV/WCS6FK2NoeDt066YhQVQpz1KL0NyMh3cNEm8073bfXWg6Zv+bgCq G83A== X-Gm-Message-State: AIkVDXKeMcszMLTlJ+sgHWnZL5ZsaeBsgzy/YYB8pFjabEmawoRuqLdAfZA2Yg0FYWnq4vpX X-Received: by 10.25.38.136 with SMTP id m130mr4472064lfm.90.1485605996545; Sat, 28 Jan 2017 04:19:56 -0800 (PST) Received: from localhost.localdomain (h-84-45.a175.priv.bahnhof.se. [79.136.84.45]) by smtp.gmail.com with ESMTPSA id m18sm2033479lfe.45.2017.01.28.04.19.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 28 Jan 2017 04:19:55 -0800 (PST) From: Jens Wiklander To: Greg Kroah-Hartman , Arnd Bergmann , Olof Johansson , Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Al Viro , jean-michel.delorme@st.com, emmanuel.michel@st.com, javier@javigon.com, Jason Gunthorpe , Mark Rutland , Michal Simek , Rob Herring , Will Deacon , Nishanth Menon , "Andrew F . Davis" , broonie@kernel.org, scott.branden@broadcom.com, Loic PALLARDY , Etienne CARRIERE , Benjamin GAIGNARD , Patrice CHOTARD , Christophe PRIOUZEAU , Eric FINCO , Franck ALBESA , Wei Xu , Jens Wiklander Subject: [PATCH v15 1/5] dt/bindings: add bindings for optee Date: Sat, 28 Jan 2017 13:19:40 +0100 Message-Id: <1485605984-30064-2-git-send-email-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1485605984-30064-1-git-send-email-jens.wiklander@linaro.org> References: <1485605984-30064-1-git-send-email-jens.wiklander@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 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 000000000000..d38834c67dff --- /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 16d3b5e7f5d1..4b1192bb4224 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -161,6 +161,7 @@ lacie LaCie lantiq Lantiq Semiconductor lenovo Lenovo Group Ltd. lg LG Corporation +linaro Linaro Limited linux Linux-specific binding lltc Linear Technology Corporation lsi LSI Corp. (LSI Logic)