From patchwork Wed Jan 18 12:58:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 91744 Delivered-To: patches@linaro.org Received: by 10.182.3.34 with SMTP id 2csp870083obz; Wed, 18 Jan 2017 04:58:29 -0800 (PST) X-Received: by 10.25.102.10 with SMTP id a10mr1017388lfc.48.1484744309030; Wed, 18 Jan 2017 04:58:29 -0800 (PST) Return-Path: Received: from mail-lf0-x22d.google.com (mail-lf0-x22d.google.com. [2a00:1450:4010:c07::22d]) by mx.google.com with ESMTPS id v12si105281ljd.90.2017.01.18.04.58.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Jan 2017 04:58:29 -0800 (PST) Received-SPF: pass (google.com: domain of jens.wiklander@linaro.org designates 2a00:1450:4010:c07::22d as permitted sender) client-ip=2a00:1450:4010:c07::22d; 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::22d 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-x22d.google.com with SMTP id v186so10775399lfa.1 for ; Wed, 18 Jan 2017 04:58:28 -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=bRgL05DB7m5zTLXeyE8BaiYMpzb4XQ83ihGWUE7nVZSNB7FGJ1JAMrXYaxU9+Bd0pY 9w/L7UMkKvZfcp/le+BikTaJlNohqghKjzbUwL50LDcIU2NiV3TsE/AaqSNd2k6thBOc vbLoZtu1CJYpfNY6+LUEEU2zEmjBO3KmbMUu8= 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=i7fC3MBMuFsZYhqlPTB9rij1jWgxT4PqkrSwsXAEjvAWRjib4NOyBC6/1n2Z1cGg+r dPlCk3n3dfw2m4QG0uCP9SkXkz5cZhKkHotD2APpHKN4mItlwausjuOBaNQL+GfN25Vc LIDlI7hTiH1om41T1MEtHUo5EUUPVAsuW55GbZVdX/bUfk4TyhAkDtFQY8XRXfB2rq9a LuJCVC4TQNfHrIckOhqnsMO5aUj5URIQbb5o5jViKd0ZMpzzdhU5jq+ulbsrwsjEZZ2O eRxp8YHu+emh205he3xcfqw+vkPF6SCsVhNqDIgRM95tM3A6cgVZP34HwD3bisFq2iTV balg== X-Gm-Message-State: AIkVDXKzPOPAhlSTPFr2idqZD9aepQeIbKyAFoX+Ak6KVA9IJy0Q0FtGa3seDgFtpfyIJ9cwyCY= X-Received: by 10.25.80.26 with SMTP id e26mr1182665lfb.82.1484744308090; Wed, 18 Jan 2017 04:58:28 -0800 (PST) Return-Path: Received: from jax.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id e12sm116843ljb.38.2017.01.18.04.58.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jan 2017 04:58:27 -0800 (PST) From: Jens Wiklander To: Greg Kroah-Hartman , Arnd Bergmann , Olof Johansson , Andrew Morton , Wei Xu Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, 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 , Nishanth Menon , "Andrew F . Davis" , broonie@kernel.org, scott.branden@broadcom.com, Jens Wiklander Subject: [PATCH v14 1/5] dt/bindings: add bindings for optee Date: Wed, 18 Jan 2017 13:58:12 +0100 Message-Id: <1484744296-30003-2-git-send-email-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484744296-30003-1-git-send-email-jens.wiklander@linaro.org> References: <1484744296-30003-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)