From patchwork Fri Sep 16 11:09:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 670802 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3sbCHK6DCsz9sC3 for ; Fri, 16 Sep 2016 21:10:05 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=dVXkqqX8; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757293AbcIPLKD (ORCPT ); Fri, 16 Sep 2016 07:10:03 -0400 Received: from mail-lf0-f48.google.com ([209.85.215.48]:35803 "EHLO mail-lf0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755186AbcIPLKC (ORCPT ); Fri, 16 Sep 2016 07:10:02 -0400 Received: by mail-lf0-f48.google.com with SMTP id l131so58792286lfl.2 for ; Fri, 16 Sep 2016 04:10:01 -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=TcIjcT2nZUVIFolfepEBMw39MEvZqG3gALcRgWIOWNk=; b=dVXkqqX8jE2pscKe3tfefk2Z5g2wpV+FRbwSyRncokHS6W7Jc/vngG/XDapczDAXBM Ba+bWQskaAr2ktqGsLgUplJ2rQ+wkBALK8/2gIA610lZErhOQ+ssbNXlCaq4ys1MqIU4 loVciG+uGCUiJb9Zp9vThDP0hm12KpUQNnQek= 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=TcIjcT2nZUVIFolfepEBMw39MEvZqG3gALcRgWIOWNk=; b=XYcxQrFyHAccRe6cCd7JnGkobRZYuGNwY6qfu7wIEyhzKiEq/wxfQEQb6WKGWTthPy 3Imzk+IIaB4SYRkNE9rKKIJYzbP//cPBq56XSj81FssMMqfYaKkBtWg1xsyG5jG/kVb2 lXRsxaklhPXU3p+E9OLcmEOcs1ehAUblS4YszM2A8VAfirkNYAZdMnAmlBFq9Je3YWH6 uoKAkB6PY5Ln8DWbY63s6kAp2zglyBvfpjj2r+RKjyhhoVZhVUryRXDwYVtDsBQjmEvz pqsEWgNM889WSSb4UAjPduU/DC1AwldqkTvGl4f8d6HARxneYfL5b+484d2RK+JWaq1p n7tQ== X-Gm-Message-State: AE9vXwOMF9UnN1/pbOW11huygzD2QPzMAU8ks9hq41KeX6FUgsxZdV8njCKBLW+m5Tj6VJZ3 X-Received: by 10.25.161.85 with SMTP id k82mr5860600lfe.90.1474024200898; Fri, 16 Sep 2016 04:10:00 -0700 (PDT) Received: from ermac.urgonet (h-84-45.a175.priv.bahnhof.se. [79.136.84.45]) by smtp.gmail.com with ESMTPSA id e8sm2215350lji.40.2016.09.16.04.09.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Sep 2016 04:10:00 -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" , Jens Wiklander Subject: [PATCH v12 1/4] dt/bindings: add bindings for optee Date: Fri, 16 Sep 2016 13:09:24 +0200 Message-Id: <1474024167-23253-2-git-send-email-jens.wiklander@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1474024167-23253-1-git-send-email-jens.wiklander@linaro.org> References: <1474024167-23253-1-git-send-email-jens.wiklander@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 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 1992aa9..e62c0ae 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -148,6 +148,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