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: 92745 Delivered-To: patches@linaro.org Received: by 10.140.20.99 with SMTP id 90csp665929qgi; Sat, 28 Jan 2017 04:19:57 -0800 (PST) X-Received: by 10.46.19.25 with SMTP id 25mr4489261ljt.15.1485605996980; Sat, 28 Jan 2017 04:19:56 -0800 (PST) Return-Path: Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com. [2a00:1450:4010:c07::232]) by mx.google.com with ESMTPS id l79si4654672lfg.377.2017.01.28.04.19.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Jan 2017 04:19:56 -0800 (PST) Received-SPF: pass (google.com: domain of jens.wiklander@linaro.org designates 2a00:1450:4010:c07::232 as permitted sender) client-ip=2a00:1450:4010:c07::232; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 2a00:1450:4010:c07::232 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x232.google.com with SMTP id x1so87600291lff.0 for ; Sat, 28 Jan 2017 04:19:56 -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=hBuGgqCcVZ4MTsIqQeVVjbMwcmoBH4BZ6uUz+8Yb1kESoREjzheXYSRexgeG7tBy3s pmZqVvebQKsHcIqqjEBX3/kuDpHFCfL8hge5KaHZqb2kLGpKbnJCqIMwwt3AL5KmKfr4 CiVth2ekBwNVMkJ5YBclTiMjRjkueaCjq+ecDDY/pC9sBarIzmV+aaTd1Ih2YePMXwz9 xeFQEOkKaQoY3ayLFhDjPbWZz5J2DPuHtIti/vHHa4iG+MBwsVEv0kaaQU+EcMbQEl8r LcPAzrDwPSRbOgGojLoayaZKXbn6w9kstIxfbCptcgjGbrDYOahJ1OOAggsJ9H/3QEA/ hFEw== X-Gm-Message-State: AIkVDXKUN4scbzjC+/vJH44luAMumuUwRh+D9iVFku80hKOwmNuoUDcGKJITv70Z4OX2PKCkClk= X-Received: by 10.25.38.136 with SMTP id m130mr4472064lfm.90.1485605996545; Sat, 28 Jan 2017 04:19:56 -0800 (PST) Return-Path: 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> 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 -- 2.7.4 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)