From patchwork Mon Feb 1 09:15:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 60886 Delivered-To: patches@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp2911625lbb; Mon, 1 Feb 2016 01:15:47 -0800 (PST) X-Received: by 10.112.149.230 with SMTP id ud6mr7837381lbb.12.1454318147430; Mon, 01 Feb 2016 01:15:47 -0800 (PST) Return-Path: Received: from mail-lb0-x22c.google.com (mail-lb0-x22c.google.com. [2a00:1450:4010:c04::22c]) by mx.google.com with ESMTPS id l187si13151438lfe.219.2016.02.01.01.15.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Feb 2016 01:15:47 -0800 (PST) Received-SPF: pass (google.com: domain of jens.wiklander@linaro.org designates 2a00:1450:4010:c04::22c as permitted sender) client-ip=2a00:1450:4010:c04::22c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 2a00:1450:4010:c04::22c as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dkim=pass header.i=@linaro.org Received: by mail-lb0-x22c.google.com with SMTP id bc4so70918256lbc.2 for ; Mon, 01 Feb 2016 01:15:47 -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=EhZk/r+Xe+jSZcMtvzV9k8s1jD+eDgjQEcUPcBvf1ds=; b=W9KAAwXvnMRVZt200UKPLCUVgFFecVt6hmrPtE64T8o7/K9pHfrjvfn1c9qnKa+Vo+ NBWfgJHn769uxaKO+DeGSxcB9yBTfZO+ZilbI3tgogkqgB5A0w1G7bus8AOoh6e4LMz0 trMG8sLW1YLLQCLCu9K0uGOfYdsSMXGnF1afc= 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=EhZk/r+Xe+jSZcMtvzV9k8s1jD+eDgjQEcUPcBvf1ds=; b=Qm7VSMTvFrpL6Z2m+7rnNDh7zJ1iVfGf7Py+uLw5ojGUz9H9L949GFsPV1eQE4grOd DbdPPp9SwCZm2lxy748sobO4TS+9yG8aTa8dbgqM01bBw6QpP54pFWQyCaWugGXJcR7i 4XbBOmXbvx8B6inO+VsBmSAlM3YvqMRWJeDgr/G50R5WUW2sXEYu1f3ZBJ7lT6fwtXG2 9fWD8WEjGPqkDymKtiZElvKQ6LwOdeip+O5wpu0E1FKAoETRrgGLgsum41Cij0gw5nc2 rh+mpIhHzJC2LHPwUFFscecUdRm6pFaU73kEo/Fp6/qewG0lImfqZPkKv9gseIEyNUkl 4a/g== X-Gm-Message-State: AG10YOQKW8ioVjwJpTK2FSriWTR1tihDaH64Do36Eit4DRHQ5lzky+CMN0+ATEHXiu3xfk9N5jg= X-Received: by 10.112.118.206 with SMTP id ko14mr8203678lbb.108.1454318147288; Mon, 01 Feb 2016 01:15:47 -0800 (PST) Return-Path: Received: from ermac.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id ne8sm3903402lbc.21.2016.02.01.01.15.45 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 01 Feb 2016 01:15:46 -0800 (PST) From: Jens Wiklander To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Arnd Bergmann , Greg Kroah-Hartman Cc: 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 , Jens Wiklander Subject: [PATCH v7 1/4] dt/bindings: add bindings for optee Date: Mon, 1 Feb 2016 10:15:37 +0100 Message-Id: <1454318140-7962-2-git-send-email-jens.wiklander@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454318140-7962-1-git-send-email-jens.wiklander@linaro.org> References: <1454318140-7962-1-git-send-email-jens.wiklander@linaro.org> Introduces linaro prefix and adds bindings for ARM TrustZone based OP-TEE implementation. 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..7fd7e3e --- /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 porperty 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 72e2c5a..0c1e2f2 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -130,6 +130,7 @@ lacie LaCie lantiq Lantiq Semiconductor lenovo Lenovo Group Ltd. lg LG Corporation +linaro Linaro Limited linux Linux-specific binding lsi LSI Corp. (LSI Logic) lltc Linear Technology Corporation