From patchwork Mon Aug 22 13:00:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 9293503 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 B0182607F0 for ; Mon, 22 Aug 2016 13:03:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5E8C2899D for ; Mon, 22 Aug 2016 13:03:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A247289A0; Mon, 22 Aug 2016 13:03:36 +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=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8CA042899D for ; Mon, 22 Aug 2016 13:03:35 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bborD-0006NN-0R; Mon, 22 Aug 2016 13:01:39 +0000 Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bbor6-0006Jc-O9 for linux-arm-kernel@lists.infradead.org; Mon, 22 Aug 2016 13:01:34 +0000 Received: by mail-lf0-x236.google.com with SMTP id g62so77020672lfe.3 for ; Mon, 22 Aug 2016 06:01:12 -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=TI7bRFJijEfagtDEpIE3dI7D69UpjX4K/g2iM/ZKYtMXYTuVVjpxvrdFuI447Ab+zR YxZRNXJnfJFSaqevCAREnmyPVclGsGDeC5y/4/CeIjbnZ+QjHG9pcWVpi6YfNBwrq4dE iFrzsYDuvIJ8+fVzxwOplt1Yq4Uzu70fIjwA0= 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=Cz3NbEMJ+hscrcIUZgLGLsW70xE0AbTuV7nXphTtDixdxjFJ1mtirbP00Lezx8m6gC gnHBx/I1jPtmX38EoQo49juZHYSceEZ4sIe+A0LzkWiQvVSHriiDRjd4pfdoyiUb6phl L2YLrqwnCm6NBj0Zrcyq/0QVI664prToHJLtaHBmgrtQio+9SZ35rgxOaAL8ky76aS+s 39mdNLqfUIeZuk+T+lmdsId93aM0JVNCt5cqVcAEq1Sr3zyB1J8Ixb+MTGFs6DbDCwSw b0HBh6Q+Idu0TxOwdgyKtGuhJX0LUtDrLQPquPQuQj0aG9/XJT7KcKt6BrvERYRkE3a9 C/Sw== X-Gm-Message-State: AEkoousWoVaTsETdjt70rZ5t5QLa1IXi+LCxaTfOMPqYZ9WvivyVoPVG3U+0DuytEP3P77L3 X-Received: by 10.25.32.136 with SMTP id g130mr6275441lfg.184.1471870870853; Mon, 22 Aug 2016 06:01:10 -0700 (PDT) Received: from ermac.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id 65sm3705892ljb.48.2016.08.22.06.01.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Aug 2016 06:01:09 -0700 (PDT) From: Jens Wiklander To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v11 1/4] dt/bindings: add bindings for optee Date: Mon, 22 Aug 2016 15:00:53 +0200 Message-Id: <1471870856-18684-2-git-send-email-jens.wiklander@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1471870856-18684-1-git-send-email-jens.wiklander@linaro.org> References: <1471870856-18684-1-git-send-email-jens.wiklander@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160822_060133_028615_CC13F125 X-CRM114-Status: GOOD ( 15.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: valentin.manea@huawei.com, Mark Rutland , javier@javigon.com, emmanuel.michel@st.com, Arnd Bergmann , Nishanth Menon , Greg Kroah-Hartman , Will Deacon , Michal Simek , jean-michel.delorme@st.com, Jason Gunthorpe , Rob Herring , Al Viro , Jens Wiklander , Andreas Dannenberg 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 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