From patchwork Fri Oct 28 10:19:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 79882 Delivered-To: patches@linaro.org Received: by 10.140.97.247 with SMTP id m110csp1093942qge; Fri, 28 Oct 2016 03:19:56 -0700 (PDT) X-Received: by 10.25.32.67 with SMTP id g64mr8122826lfg.180.1477649996440; Fri, 28 Oct 2016 03:19:56 -0700 (PDT) Return-Path: Received: from mail-lf0-x22a.google.com (mail-lf0-x22a.google.com. [2a00:1450:4010:c07::22a]) by mx.google.com with ESMTPS id f6si7603608lfe.316.2016.10.28.03.19.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Oct 2016 03:19:56 -0700 (PDT) Received-SPF: pass (google.com: domain of jens.wiklander@linaro.org designates 2a00:1450:4010:c07::22a as permitted sender) client-ip=2a00:1450:4010:c07::22a; 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::22a as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x22a.google.com with SMTP id f134so48120840lfg.2 for ; Fri, 28 Oct 2016 03:19:56 -0700 (PDT) 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=RoDt2MB5EZjGNqNfmOo5JpAHiL5JGVYY4Y74L3ftVN8=; b=G5lWdG+gKMPMNISlNMWkZyKLNScuwk0pHSu4K+pi/gKhRl7Q5XtBiQSOumBaEL/8bZ Kkg8zgjo/JO0rTUpv3DcIOVjWIvEf0Nqh9NA2SQe5fufi4UENY5E3LflxF3G6JEDzwHZ vD1KDiapw1LHLvTk/nXDXvpnGFRrHMxeLT8sU= 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=RoDt2MB5EZjGNqNfmOo5JpAHiL5JGVYY4Y74L3ftVN8=; b=Nve8+qJHEJM3g3qeTFza8H4WdZp9Ye3WiQNr6U/xEx/g7zGnXy7NG258nUUkpok6Vf aoKIglSEEvtQw5DLG+Bpx1e4zpW6Zb1iVRHh1IjdoJEEE3zxpMXF1YVrteSFUZ2CuUeH v0zdcFFxRRKaNRbdMI57y3J6txF58eqEgJwAkYbDKtdjb0dF/yUfAkv3pTen5oDoIAOb i02eEZPZ/oxndIg/+CY3v7PNJyZ4JmCWh0tE0oSS59bdBhmscpPgBdkAmkGYZnpjnzEQ ZuF4tXOf5FkBalR59iYPoWZszm41mmFyeB0iJD/AFovP8oQ62BOGTsu95jCPnfMlkzY2 AMjw== X-Gm-Message-State: ABUngvdCF5rhs/4i/gvJmhhYMxq16VFqQIgGNrUO4a9CGtuoLkDkyz4fxJwawiOlVMLP16IIVGk= X-Received: by 10.25.211.138 with SMTP id k132mr3656898lfg.45.1477649995928; Fri, 28 Oct 2016 03:19:55 -0700 (PDT) Return-Path: Received: from ermac.urgonet (h-84-45.a175.priv.bahnhof.se. [79.136.84.45]) by smtp.gmail.com with ESMTPSA id 79sm1954656lja.16.2016.10.28.03.19.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Oct 2016 03:19:55 -0700 (PDT) From: Jens Wiklander To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: Greg Kroah-Hartman , Al Viro , 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 , Arnd Bergmann , Nishanth Menon , "Andrew F. Davis" , broonie@kernel.org, Jens Wiklander Subject: [PATCH v12 RESEND 1/4] dt/bindings: add bindings for optee Date: Fri, 28 Oct 2016 12:19:41 +0200 Message-Id: <1477649984-16777-2-git-send-email-jens.wiklander@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1477649984-16777-1-git-send-email-jens.wiklander@linaro.org> References: <1477649984-16777-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 -- 1.9.1 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 0000000..d38834c --- /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 f0a48ea..6ab5d04 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -155,6 +155,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)