From patchwork Wed Jun 1 12:41:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 69027 Delivered-To: patches@linaro.org Received: by 10.140.92.199 with SMTP id b65csp71681qge; Wed, 1 Jun 2016 05:41:43 -0700 (PDT) X-Received: by 10.28.217.72 with SMTP id q69mr20683565wmg.81.1464784903067; Wed, 01 Jun 2016 05:41:43 -0700 (PDT) Return-Path: Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com. [2a00:1450:400c:c09::234]) by mx.google.com with ESMTPS id 79si43140295wmq.42.2016.06.01.05.41.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jun 2016 05:41:43 -0700 (PDT) Received-SPF: pass (google.com: domain of jens.wiklander@linaro.org designates 2a00:1450:400c:c09::234 as permitted sender) client-ip=2a00:1450:400c:c09::234; 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::234 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-wm0-x234.google.com with SMTP id n184so29809162wmn.1 for ; Wed, 01 Jun 2016 05:41:42 -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=zspOhJTQqXjcUOKLkt5Jq3Lqqsqkvy1vQqnBaZBo83M=; b=CnvFcLrgcERrdBNodjYXgTCbn8W5DxjHUzMpvW4LOss6tOpdOkGNtedpDg9kN7jbeH 3ZGpraNcuyBVmoay3QQvpvHDGjDHHweF4Nd7RZxv/LP5vOOHu19vGDZ4RVaXpn4Ex06F ICPBloliYGo16o8rpm4AvFi3XIUvYWXnAnRug= 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=zspOhJTQqXjcUOKLkt5Jq3Lqqsqkvy1vQqnBaZBo83M=; b=hAXk0TnzUWNtD1JMlmAO45cmQ6SECticDVaQThA8kQq9JH0d28hzKfgReYISyKaT1v iAXcT4agHk64cbPYfEia4JltWpbnqNmZAEJtIIzSat5/dg/LGIP0hJPriOLl41W1pkDA c3PkfRe5FBTpJ+GU5wle1BMnk+TzVomfRJDxXFMeanvFlMRrVMOD7RN0xIwylkVmmv6k gkQRxrF01ccYqTK8hMqSGye+4ChrH8om6xuIwie6k2h4Qak+Os1V5NpCJ2m8ZD0xbTOT z/U+DFL+cOrNi1HS11YFtrk+jF5PyvKnqJF2aYeRpWMPYkcnJBl/4RPbCUz+vM2qFWjh wFUA== X-Gm-Message-State: ALyK8tJ1JsD9q/NS2tu33NkVEyG8ZbL8hVl8VwI7CtzvJ8yvaa2cyd5XCwRFaSZovdMBbx0cFVE= X-Received: by 10.194.86.200 with SMTP id r8mr3328296wjz.158.1464784902728; Wed, 01 Jun 2016 05:41:42 -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 u6sm34855676wmd.21.2016.06.01.05.41.38 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Jun 2016 05:41:39 -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 , Andreas Dannenberg , 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 , Jens Wiklander Subject: [PATCH v10 1/4] dt/bindings: add bindings for optee Date: Wed, 1 Jun 2016 14:41:25 +0200 Message-Id: <1464784888-19854-2-git-send-email-jens.wiklander@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464784888-19854-1-git-send-email-jens.wiklander@linaro.org> References: <1464784888-19854-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 a7440bc..fcc6edc 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -147,6 +147,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