From patchwork Sat Jan 28 12:19:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 9543189 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 A361160429 for ; Sat, 28 Jan 2017 12:22:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F03927D4A for ; Sat, 28 Jan 2017 12:22:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 824B828338; Sat, 28 Jan 2017 12:22:21 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, T_DKIM_INVALID autolearn=no 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 BE83927D4A for ; Sat, 28 Jan 2017 12:22:19 +0000 (UTC) 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 1cXS1H-0000A3-ND; Sat, 28 Jan 2017 12:22:15 +0000 Received: from mail-lf0-f52.google.com ([209.85.215.52]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cXS0M-0008HS-MK for linux-arm-kernel@lists.infradead.org; Sat, 28 Jan 2017 12:21:20 +0000 Received: by mail-lf0-f52.google.com with SMTP id n124so173889992lfd.2 for ; Sat, 28 Jan 2017 04:20:58 -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=GwPuD5G5str4sXARi9GkG130Xv39lVLCyrn+7jZzWlz5ydImFdOWzTQ/YTKxrldEYB nhpC2yvuWn63xmzF9Ks6I3mugw6uGoDFqau29LkjpSA//9tj1ajd/XZMtFG7V2e7kEo1 dqkyJJ932wYOMB7i6+KXvufXWLopgu7CWlXMI= 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=r1l47mOWAUTtOdc859wwZeLSIhfUDGokyZE3Sci2goK2jDprDbc6EzmLsDySFWnzpM KDHo7fsP6bhWCQ27T52Immt/xw+iksRP2grdso8nsTMvEFzWeESiZl+p1cAqBXiXu0n2 kSsv4GbBRuBdRsVFUctoU6YLSlu1NZGEzST84YMkI3BNbW+m7mvWzNB7kdMhQr8bDmoU hjKEzJ2gb5AxziVCAkul5hAYw82WgKAV5YkcVKwTU1NoYjo9LModUyi7VQF74PU9XzCH Z6fZDUL6B7ha73qIW9bTIiHBhPGI5T6QULzfr0o71geUBD2E+hIyak9wxzgdyey+0J04 ftcQ== X-Gm-Message-State: AIkVDXIRB7OmEOR1Q2bzq5004pWganvqVBrCvtWcd5Vd9GXoak+7qYAJjnX3mJcGDyjxGuVh X-Received: by 10.25.38.136 with SMTP id m130mr4472064lfm.90.1485605996545; Sat, 28 Jan 2017 04:19:56 -0800 (PST) Received: from localhost.localdomain (h-84-45.a175.priv.bahnhof.se. [79.136.84.45]) by smtp.gmail.com with ESMTPSA id m18sm2033479lfe.45.2017.01.28.04.19.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 28 Jan 2017 04:19:55 -0800 (PST) From: Jens Wiklander To: Greg Kroah-Hartman , Arnd Bergmann , Olof Johansson , Andrew Morton Subject: [PATCH v15 1/5] dt/bindings: add bindings for optee Date: Sat, 28 Jan 2017 13:19:40 +0100 Message-Id: <1485605984-30064-2-git-send-email-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1485605984-30064-1-git-send-email-jens.wiklander@linaro.org> References: <1485605984-30064-1-git-send-email-jens.wiklander@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170128_042118_915750_F7608AA4 X-CRM114-Status: GOOD ( 16.36 ) 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 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)