From patchwork Fri Mar 10 15:11:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 95157 Delivered-To: patches@linaro.org Received: by 10.140.82.71 with SMTP id g65csp93939qgd; Fri, 10 Mar 2017 07:11:55 -0800 (PST) X-Received: by 10.28.203.204 with SMTP id b195mr3063198wmg.51.1489158715904; Fri, 10 Mar 2017 07:11:55 -0800 (PST) Return-Path: Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com. [2a00:1450:400c:c09::22f]) by mx.google.com with ESMTPS id r123si3192040wmd.141.2017.03.10.07.11.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Mar 2017 07:11:55 -0800 (PST) Received-SPF: pass (google.com: domain of jens.wiklander@linaro.org designates 2a00:1450:400c:c09::22f as permitted sender) client-ip=2a00:1450:400c:c09::22f; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 2a00:1450:400c:c09::22f as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-wm0-x22f.google.com with SMTP id v186so12715715wmd.0 for ; Fri, 10 Mar 2017 07:11:55 -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=s8PSyUGJ0+mPhydCBmQdYrrS2V5UObt9cMcn+lX8Wm8=; b=gpTfgchSN6FPsv3mi63IvR/wdQoexFyfV4UDJjUs9P5QBvkcD8g+le5HjPtdl5yTmX wwn+7BMKU/SJmw4xyl7iP2UAeTF9yJMaUbnaxnxf3p9IyxSgxka5dHeOxo55TX8bBiPq bGRyT3xWDKA+ixXB+wL2o5YWdCGh3uM5jEMIo= 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=s8PSyUGJ0+mPhydCBmQdYrrS2V5UObt9cMcn+lX8Wm8=; b=dsVCTmcpQ7o1GUo5duAVth+RmSVn456AoPqfvZysQtqyQ2HIEeye7KJW1O6lNs89QG v8TMXFBTOcluMysXKLN27Tgvherr0emaI7yvS25YotuRKzFh2rGcDN33ccQVQsj0yVq3 P23jcVUperIKELGolXxJ/obN5qtxxBQLUoke6StYIubH3OE8q2oV1N3njkI3A/z82o9Y Hp2IdqI+A+rnBPnzupiyug17sgbr6zbOWCalDBZPtAg33JRBH/Hg+vFOpdSf7FwHXaIR sLtngkiLqZwXpHOrWWvoLdDjU8Pcc1Q4HWy9e1ymhh+hnLalxdsLTrX8L3eTq0UL7ix1 hsUw== X-Gm-Message-State: AFeK/H2HmOAHDDOgKiHtjzUQpq7igzFbPtZxUthCnDayUnjqL2LIu/aKbp7NEmB8+Lj0smMuZmY= X-Received: by 10.28.96.194 with SMTP id u185mr2717253wmb.82.1489158715537; Fri, 10 Mar 2017 07:11:55 -0800 (PST) Return-Path: Received: from jax.c.hoisthospitality.com ([109.74.56.122]) by smtp.gmail.com with ESMTPSA id y6sm13234201wrc.40.2017.03.10.07.11.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Mar 2017 07:11:54 -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 v16 1/5] dt/bindings: add bindings for optee Date: Fri, 10 Mar 2017 16:11:39 +0100 Message-Id: <1489158703-22241-2-git-send-email-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1489158703-22241-1-git-send-email-jens.wiklander@linaro.org> References: <1489158703-22241-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 ec0bfb9bbebd..e18a96cf7c3a 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -168,6 +168,7 @@ lego LEGO Systems A/S lenovo Lenovo Group Ltd. lg LG Corporation licheepi Lichee Pi +linaro Linaro Limited linux Linux-specific binding lltc Linear Technology Corporation lsi LSI Corp. (LSI Logic)