From patchwork Fri Mar 10 15:11:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 9617641 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 246CE60415 for ; Fri, 10 Mar 2017 15:12:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D94028505 for ; Fri, 10 Mar 2017 15:12:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0224B285A0; Fri, 10 Mar 2017 15:12:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 918D228505 for ; Fri, 10 Mar 2017 15:12:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=LkQqo7wEjgjJxfMOaQ8UTqxlXkJvk+1jzDWxPGNlIvE=; b=j6Q9Oe2+kZRrG8Uv0JIp8K8dS4 GGjDcGyYbFlUOvyZRaeYpDlAo4+FH6oJkjVFgqDqcnrOn625Ms97edstamTjbDziIACueq8yFi7sq oq9lDf0BunJlfAnAL+Vc0NSUPnIrZ89vfz88CfF6W/v3mTrzMIoHIU7z8O9zICcFnQZsbuVm4soPD CIaTICqflZxEz7dHDQPGq1TnSMK12ubDOlcDj3jsYDDahIaRhtJHOOSUfqCKZuRk32fMGsjWL8lhi IC8rFxycJLOypWC5wgcqelk/MDW92Tq8OmVSZufR2TdJ3/vdP2pgOjy58xx3/1j5b9D0O+TYCfnsc Z5fVxteA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cmMDN-0003Oj-TS; Fri, 10 Mar 2017 15:12:21 +0000 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cmMDJ-0003Go-I8 for linux-arm-kernel@lists.infradead.org; Fri, 10 Mar 2017 15:12:19 +0000 Received: by mail-wm0-x22a.google.com with SMTP id n11so12694286wma.1 for ; Fri, 10 Mar 2017 07:11:56 -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=s8PSyUGJ0+mPhydCBmQdYrrS2V5UObt9cMcn+lX8Wm8=; b=gpTfgchSN6FPsv3mi63IvR/wdQoexFyfV4UDJjUs9P5QBvkcD8g+le5HjPtdl5yTmX wwn+7BMKU/SJmw4xyl7iP2UAeTF9yJMaUbnaxnxf3p9IyxSgxka5dHeOxo55TX8bBiPq bGRyT3xWDKA+ixXB+wL2o5YWdCGh3uM5jEMIo= 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=s8PSyUGJ0+mPhydCBmQdYrrS2V5UObt9cMcn+lX8Wm8=; b=pGWx5AtsIhfQ0Mf8HDGN+upBLhE/R82xxGHuNrJMFWIFdJ3hUANl/ndxXjcwSPliD9 /StQRuSchy670r+D3wiClLnzS82Ubq5wLpbakrUC+akpCIbvtMe9kW/WuIY1tpG/lADC FHoOgitM2vQxb1UGhNyxD2/C6kw8o0T0tH3UNH4WHIz6j5ShUnMFlO5aEGkfOdrMJ2/s 0WURSRZb4Ncj4AllsnZkIbOzGfYGX/11T5U2iRWZnZ2KF71lxhYaE7ztPk0ezUPFzSgK GGe1JSI7f+v8W528/8cCUyYZLWpJ3OLhMgtonNV7RXzl7VzdX6nweGB39AmsMnXJgPbK JDUg== X-Gm-Message-State: AFeK/H2GNXO68QMEHaKsLwf4Km+/BPFGsdLUljkxKFnRtHIYBN6vDePbfFfpLJ8lu8KiC5we X-Received: by 10.28.96.194 with SMTP id u185mr2717253wmb.82.1489158715537; Fri, 10 Mar 2017 07:11:55 -0800 (PST) Received: from jax.c.hoisthospitality.com ([109.74.56.122]) by smtp.gmail.com with ESMTPSA id y6sm13234201wrc.40.2017.03.10.07.11.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Mar 2017 07:11:54 -0800 (PST) From: Jens Wiklander To: Greg Kroah-Hartman , Arnd Bergmann , Olof Johansson , Andrew Morton Subject: [PATCH v16 1/5] dt/bindings: add bindings for optee Date: Fri, 10 Mar 2017 16:11:39 +0100 Message-Id: <1489158703-22241-2-git-send-email-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1489158703-22241-1-git-send-email-jens.wiklander@linaro.org> References: <1489158703-22241-1-git-send-email-jens.wiklander@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170310_071217_777355_7798991B X-CRM114-Status: GOOD ( 16.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Nishanth Menon , Benjamin GAIGNARD , Will Deacon , Patrice CHOTARD , Christophe PRIOUZEAU , Franck ALBESA , javier@javigon.com, Loic PALLARDY , Michal Simek , Wei Xu , Jason Gunthorpe , devicetree@vger.kernel.org, scott.branden@broadcom.com, jean-michel.delorme@st.com, broonie@kernel.org, Al Viro , linux-arm-kernel@lists.infradead.org, Etienne CARRIERE , emmanuel.michel@st.com, Eric FINCO , linux-kernel@vger.kernel.org, "Andrew F . Davis" , Rob Herring , Jens Wiklander MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 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 ec0bfb9bbebd..e18a96cf7c3a 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -168,6 +168,7 @@ lego LEGO Systems A/S lenovo Lenovo Group Ltd. lg LG Corporation licheepi Lichee Pi +linaro Linaro Limited linux Linux-specific binding lltc Linear Technology Corporation lsi LSI Corp. (LSI Logic)