From patchwork Wed Jan 18 12:58:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 9523579 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 EEC70601B7 for ; Wed, 18 Jan 2017 12:58:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDA2E285AA for ; Wed, 18 Jan 2017 12:58:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CEAC9285AE; Wed, 18 Jan 2017 12:58:56 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 500B6285AA for ; Wed, 18 Jan 2017 12:58:56 +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 1cTppF-0005gt-Un; Wed, 18 Jan 2017 12:58:53 +0000 Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cTppC-0005d5-7c for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2017 12:58:52 +0000 Received: by mail-lf0-x235.google.com with SMTP id k86so10764350lfi.0 for ; Wed, 18 Jan 2017 04:58:29 -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=bRgL05DB7m5zTLXeyE8BaiYMpzb4XQ83ihGWUE7nVZSNB7FGJ1JAMrXYaxU9+Bd0pY 9w/L7UMkKvZfcp/le+BikTaJlNohqghKjzbUwL50LDcIU2NiV3TsE/AaqSNd2k6thBOc vbLoZtu1CJYpfNY6+LUEEU2zEmjBO3KmbMUu8= 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=QgeJITIoPK7JeeLU4UrCjezkgaF08CoR19XQN4RtIo6ya+5He/pt/gYgnaGiuD9W3L Kxoimdd+4bI0EaQq32ZSIQMCbpWnimRpdH2qM23P4K36o1F2FbV41gsQuw44Z8ycoNVm 1dcMzCj/eM2BjtmhFFzIiEeXO2HHslQGID9oBU/OTMqC1L2aXUaePTYLFPOPyV2MlvSJ dP0YH2/gQ5hgqyubRGI/780/msJO02mgqAjddGKivcebYHJcnGzXrRZNvwVZwle28QdK HodrSQ/MeUbVmdb7VSosHI/jHUjPO5IvhRr9XAXZCdNWrnozVVD8xPjZeMXEvCWocbk9 1jJg== X-Gm-Message-State: AIkVDXIuuTS5lo1gP6qB0ivwfFvjJ9DFIkpk8vZfpqEEIcsPBj0Dq7QkchW7aGNSKFfhINuo X-Received: by 10.25.80.26 with SMTP id e26mr1182665lfb.82.1484744308090; Wed, 18 Jan 2017 04:58:28 -0800 (PST) Received: from jax.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id e12sm116843ljb.38.2017.01.18.04.58.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jan 2017 04:58:27 -0800 (PST) From: Jens Wiklander To: Greg Kroah-Hartman , Arnd Bergmann , Olof Johansson , Andrew Morton , Wei Xu Subject: [PATCH v14 1/5] dt/bindings: add bindings for optee Date: Wed, 18 Jan 2017 13:58:12 +0100 Message-Id: <1484744296-30003-2-git-send-email-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484744296-30003-1-git-send-email-jens.wiklander@linaro.org> References: <1484744296-30003-1-git-send-email-jens.wiklander@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170118_045850_458462_F26F6D3E X-CRM114-Status: GOOD ( 16.33 ) 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: valentin.manea@huawei.com, devicetree@vger.kernel.org, javier@javigon.com, emmanuel.michel@st.com, scott.branden@broadcom.com, Nishanth Menon , broonie@kernel.org, Will Deacon , linux-kernel@vger.kernel.org, jean-michel.delorme@st.com, Jason Gunthorpe , Rob Herring , Al Viro , Jens Wiklander , Mark Rutland , "Andrew F . Davis" , Michal Simek , linux-arm-kernel@lists.infradead.org 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)